POP3 TCP:110 (incoming mail)
Uncomment pop3 service in /etc/inetd.conf:
pop3 stream tcp nowait root /usr/sbin/popa3d popa3d
Restart inetd: as root, run:
# kill -HUP `cat /var/run/inetd.pid`
SMTP TCP:25 (outgoing mail)
Edit localhost.cf instead of sendmail.cf
# makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
# makemap hash /etc/mail/access.db < /etc/mail/access
You'll need to rebuild these databases and restart sendmail each time you
make changes to the virtusertable or access files.
If you wish to query the hosts file before DNS servers, create a /etc/mail/service.switch file which contains the following line:
hosts files dns
If you wish to query ONLY the hosts file, use the following:
hosts files
OLD: NEW:
=========================== ===========================
/etc/sendmail.cf /etc/mail/sendmail.cf
/etc/sendmail.cw /etc/mail/local-host-names
/etc/sendmail.ct /etc/mail/trusted-users
/etc/sendmail.oE /etc/mail/error-header
/etc/aliases /etc/mail/aliases
/etc/service.switch /etc/mail/service.switch
/etc/userdb /etc/mail/userdb
/usr/share/misc/sendmail.hf /etc/mail/helpfile
/var/log/sendmail.st /etc/mail/statistics