sendmail
Frantisek Hanzlik
franta at hanzlici.cz
Sun Jul 8 21:29:56 UTC 2012
rb wrote:
> I'm trying to send email, using sendmail, with authentication port 587 and
> credentials.
>
> I modified sendmail.mc as follows:
> TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
> define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
> PLAIN')dnl
> FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
>
> DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
> DAEMON_OPTIONS(`Port=587, Name=MSA, M=E')dnl
>
> the file client-info contains:
> AuthInfo:smtp.auth.orange-business.com "U:<my_authentication>"
> "P:<my_password>" "M:PLAIN"
>
> I tried first to send an email via
> telnet smtp.auth.orange-business.com 587
> using the credentials above, which I encoded with Base64 Coder,
> and it worked.
>
> When I use
> mail -s "my subject" <my email> < some_file
> I get in /var/log/maillog:
> Jul 8 07:54:09 godefroy sendmail[19322]: q685q9XO019320:
> to=<roland at cat.be>, ctladdr=<roland at godefroy.fr> (504/500),
> delay=00:02:00, xdelay=00:02:00, mailer=relay, pri=121220,
> relay=smtp.auth.orange-business.com. [194.2.0.87], dsn=4.0.0,
> stat=Deferred: Connection timed out with smtp.auth.orange-business.com.
in addition to use (before mentioned) 'SMART_HOST' for relaying entire
mails to this host, when You want relay only mails for some destination
domains to smtp.auth.orange-business.com:587, You can perhaps define
own mailer, some kind as (it is same as esmtp mailer):
MAILER_DEFINITIONS
Mmy587, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990, T=DNS/RFC822/SMTP, A=TCP $h 587
at end of Your sendmail.mc. And then use mailertable for definition
for which domains will be this mailer used as:
.cat.be: my587:smtp.auth.orange-business.com
(and define proper authentication information in access map or with
FEATURE(`authinfo') in separate map)
Franta
More information about the users
mailing list