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@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@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
yes - i allready have smtp auth running on the smtp box but i have to connect to it from this client. Basically any mail sent from this box should smtp auth if possible
thanks
On Tue, 18 Oct 2005, Tom Brown wrote:
i allready have smtp auth running on the smtp box but i have to connect to it from this client. Basically any mail sent from this box should smtp auth if possible
Tom, search for "Providing SMTP AUTH Data when sendmail acts as Client" in /usr/share/doc/sendmail/README.cf, I think that will tell you what you need.
-David
Am Di, den 18.10.2005 schrieb Tom Brown um 14:59:
my previous email shows how to add auth to your relay. This is a bit different to what you asked for --- sorry
yes - i allready have smtp auth running on the smtp box but i have to connect to it from this client. Basically any mail sent from this box should smtp auth if possible
Pretty easy with a single line entry in access_db:
http://www.sendmail.org/~ca/email/sm-812.html#812AUTH
Alexander
Quoting Tom Brown tom.brown@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.mc
Two 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.mc
Are 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