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!

Hi, I'm a new user, I used

Status
Not open for further replies.

owedark

ISP
Apr 25, 2003
21
PH
Hi,

I'm a new user, I used SendMail server, I'd like to know why I cannot used my smtp server with the other computer with the same IP block.. It always relaying denied, but if I will used my owned PC, the sending is smooth and I dont see any problem.. Please give me some tips. Thank You!

Owel
 
Are you saying that you moved the server to another machine and it quit relaying or you are using an e-mail client on a different machine? If it's the latter, you need to tell sendmail that it is ok to relay mail that comes from you. This is done by editing the /etc/mail/access file. You will see that it has two columns. The first can be an e-mail address, domain or range of ip addresses. The second column is for what you want it to do with the mail. The choices are OK, Relay, Reject or an error message. When you are done you need to create access.db with the following command:

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

The path to this file may be different on your distro. If sendmail hasn't been told that it's ok to relay some kinds of mail, you will need to do that also. You will need to edit /etc/mail/sendmail.mc and add the following line:

FEATURE(`relay_local_from')dnl

Then run:

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top