1. Enable saslauth + shadow. Edit /etc/sysconfig/saslauthd or /etc/rc.d/init.d/saslauthd and change from MECH=pam to MECH=shadow.
2. Enable saslauthd service on boot:
# chkconfig --level 2345 saslauthd on
3. Start saslauthd:
# /etc/init.d/saslauthd start
4. Now is just adding some lines to sendmail.mc and rebuild sendmail.cf from it ( you can do it via webmin easily or from commandline)
From commandline:
Backup your /etc/mail/sendmail.mc
# cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.BKP
# cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.BKP
Edit /etc/mail/sendmail.mc and do these:
Just after:
CODE
define(`confAUTH_OPTIONS', `A')dnl
Add:
CODE
dnl # <added>
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl # </added>
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl # </added>
Then change this:
CODE
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to
CODE
DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl
And finally rebuild sendmail.cf from the sendmail.mc:
# cd /etc/mail/
# m4 sendmail.mc > sendmail.cf
5. Chmod mail folder to be able to collect via pop3 :
# chmod 1777 /var/spool/mail
6. Restart sendmail:
# service sendmail restart
7. Make sure you have pop3/imap enabled under xinetd:
Edit files in /etc/xinetd.d/ and set ipop3 and imap to disable = no and restart xinetd ( service xinetd restart ).
8. Done.