SMTP Auth for Sendmail
Help please !I have to stop unwanted relay and at the same time need to allow authenticated users (they may dial up or connect from any IP.. may be behind firewall that can be of local intranet too... say 192.168.1.11)
To allow relay only the authenticated (with email user/pass) users I tried the following ...
cd /usr/share/ssl/certs
make sendmail.pem
Put this in /etc/mail/sendmail.mc:
define(`confAUTH_OPTIONS', `A p y')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
define(`confCACERT_PATH',`/usr/share/ssl/certs')
define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart
source : http://www.joreybump.com/code/howto/smtpauth.html
But it did not help.
on another try I did following ...
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth/auth-info')dnl
FEATURE(`no_default_msa')dnl turn off default entry for MSA
DAEMON_OPTIONS(`Port=587, Name=MSA, M=E')dnl
source :http://www.sendmail.org/~ca/email/auth.html
But again did not did not help.
Can anyone help please?
Feature('promiscuous_relay') allow customers to relay so all spammers are using the server making the server down.
Platform : Fedora 1.0 , Sendmail version 8.12.10