Hi Default sendmail setup on a centos4.1 box - I need to send report type mails from this machine under cron. The SMTP relay i need to use requires user/pass so how can i send user/pass smtp auth from within the 'default' sendmail install? Anyone know what to change in sendmail.mc thanks
Try adding these to your sendmail.mc and recompile sendmail.cf define(`confAUTH_OPTIONS', `A')dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl Tom Brown wrote:> Hi > > Default sendmail setup on a centos4.1 box - I need to send report type > mails from this machine under cron. The SMTP relay i need to use > requires user/pass so how can i send user/pass smtp auth from within > the 'default' sendmail install? Anyone know what to change in sendmail.mc > > thanks > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Ok, my previous email shows how to add auth to your relay. This is a bit different to what you asked for --- sorry P. Tom Brown wrote:> Hi > > Default sendmail setup on a centos4.1 box - I need to send report type > mails from this machine under cron. The SMTP relay i need to use > requires user/pass so how can i send user/pass smtp auth from within > the 'default' sendmail install? Anyone know what to change in sendmail.mc > > thanks > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Quoting Tom Brown <tom.brown at goodtechnology.com>:> Hi > > Default sendmail setup on a centos4.1 box - I need to send report > type mails from this machine under cron. The SMTP relay i need to use > requires user/pass so how can i send user/pass smtp auth from within > the 'default' sendmail install? Anyone know what to change in > sendmail.mcTwo possible workarounds that I can think of. Use Kerberos to authenticate local sendmail service to remote sendmail (by generating keytab entry in /etc/krb5.keytab). This is something you might try if you already use Kerberos to authenticate users. Might work (never attempted it myself). Use X.509 certificates to authenticate one sendmail to the other during STARTTLS. Create your own certificate authority (CA), and sign certificates using your own CA. Install certificates (including your CA certificate) into sendmail. Then in /etc/mail/access file allow relaying from client's DN or simply from any DN that was signed by your CA. See STARTTLS section of /usr/share/sendmail-cf/README file for details (part of sendmail-cf RPM). ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Tue, 18 Oct 2005, Tom Brown wrote:> Default sendmail setup on a centos4.1 box - I need to send report > type mails from this machine under cron. The SMTP relay i need to > use requires user/pass so how can i send user/pass smtp auth from > within the 'default' sendmail install? Anyone know what to change in > sendmail.mcAre you in a position to change the settings on the relay host? If so, just add a RELAY or OK line into the relay host's access.db (or its moral equivalent). Otherwise, see Benji Fisher's notes on automating client authentication in sendmail: http://www.sendmail.org/~ca/email/auth.html#smtpclient -- Paul Heinlein <> heinlein at madboa.com <> www.madboa.com