Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

relay (once again..)

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
oi~

i myself am able to sent mail to yahoo.com on my w98 pc which connects to my Linux RedHat 7.1 machine with sendmail, but one of my users cannot sent mail, following error:
--
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'hscgirl@yahoo.com'. Subject 'Hello Sheryl!', Account: 'mail.roeiboot.com', Server: 'mail.roeiboot.com', Protocol: SMTP, Server Response: '550 5.7.1 <hscgirl@yahoo.com>.. Relaying denied', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
--
how do i allow that user and other users to sent mail without opening the whole relay stuff.

please be specific, i'm not a Linux guru yet :}
thanks alot!

--
rgds,
rb.
 
You need to edit /etc/access and add your user in there. By default, only mail from localhost can relay through your server. If you have a remote user, You need to put either their ip address or e-mail address. The access file is very simple. In the first column, put either a domain, network, or e-mail address. In the column next to it use Reject, Relay or Ok. Here are a few examples:

joe@yourdomin.com Relay (relay mail from this user)
12.220. Reject (reject any mail from this network)
@yourdomain Relay (relay everything from this domain)

Once you're done editing this file, you will need to create access.db. This is done with the following command:

makemap hash /etc/access.db < /etc/access

If this doesn't work, then you don't have any type of relaying allowed in sendmail.cf. You can add this line to it:

FEATURE('relay_local_from') dnl

This can get spooky. This is telling sendmail to relay ALL mail that has your domain in thr &quot;From&quot; address. If you use this feature, make sure you setup &quot;pop-before-smtp&quot;. This will cause your mail server to get the user name and password before it passes the mail through your server. When you are done editing sendmail.mc, compile it using m4 as follows:

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

These paths may be different on your system.
 
my access & (compiled) access.db are located in /ect/mail/ hope that's not a problem, according to my user it still doesn't work, this is what my access file looks like:
--
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
all REJECT
roeiboot RELAY
192.168.1.1 RELAY
cam191@roeiboot.com RELAY
--
is there any way i can test it myself, 'cuz the user isn't online all the time & i have to wait everytime for them to test :} and i can sent to all over the place so relaying is allowed until some point.

thanks!

 
Do you have relaying allowed in sendmail.cf? If not then access.db won't do much good. If you edited sendmail.mc, did you compile a new sendmail.cf? Did you restart sendmail? The only way I know of to test is to have access to a remote machine and create an account on it using a valid user name on your system. Then send an e-mail to say, a hotmail account and see if it will relay.

 
Ace, see other post.. don't wanna double post like i already kinda did.. sorry :}}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top