Linux: How to configure sendmail to receive email (Basic Steps)

Ref:http://www.sendmail.org/tips/virtualHosting

(a) Edit /etc/mail/sendmail.mc and modify bellow lines , It will allow sendmail to received email from outside of localhost.

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to
 
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

(b) Edit /etc/mail/virtualtable type , this will map virtual addresses into real addresses

joe@yourdomain.com jschmoe

Here, sendmail will receive email , and any email comming with address joe@yourdomain.com will be delivered into to jschmoe’s inbox

(c) Edit /etc/mail/local-host-names and insert the domain name. This lets Sendmail know that you will provide it with a list of domains for which it may accept mail

fosiul.com
domain1.com
domain2.com

(d) Now restart sendmail

service sendmail restart

e) Open the port 25 in your firewall or iptables

Leave a Reply

*