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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail not sending mails outside domain

Status
Not open for further replies.

110010

Technical User
Jul 25, 2003
5
SG
Hi

I am a newbie for sendmail. I have setup my new sendmail server and configured. The problem im facing is i am able to send, receive mails properly locally, but when i send a mail outside my domain it fails.

Another thing is i am able to receive mails from outside, only problem is, not able to send mails to yahoo or hotmail or any other domain. Do i have to do anychanges to relay domains??

Please help me guys!!

Regds
 
Here are a few things to check:

1. Make sure your domain's MX record is pointing to your ip.

2. Open /etc/mail/local-host-names and make sure your domain is listed along with any other domains your server hosts.

3. Opne /etc/mail/access and add "yourdomain.com RELAY" to the list. Then execute this command:

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

4. If you want to allow users to be able to send mail from outside your network, let's say from their home PC, you will need to add this line to sendmail.mc:

FEATURE(`relay_local_from')dnl note that the first ` is a back tic not '. It is the one on the same key as ~. When you are done editing, issue this command:

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

You will want to be careful any time you allow relaying from the outside world because there is a chance that your domain can be spoofed and allow relaying of spam through it. You may want to look up some good how-tos on securing your server.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top