Archive for the ‘sendmail’ Category

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

Monday, December 13th, 2010


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

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

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

Here, sendmail will receive email , and any email comming with address 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

(d) Now restart sendmail

service sendmail restart

e) Open the port 25 in your firewall or iptables