Sendmail & Relay
Posted: Sun Nov 10, 2013 2:52 am
When I set sendmail up for AuthInfo, all I had to do is add the following lines in sendmail.mc and create a new sendmail.cf:
and it worked fine.
I got an email and a phone call from Verizon this week saying they are switching from outgoing.verizon.net:25 to smtp.verizon.net:465 so I spent some time working on it.
Stunnel was set up after adding smtps to TCP wrapper. Details can be read from Stunnel post:
viewtopic.php?f=7&t=960
From past experience, relay configuration was straightforward and should take much time to figure out but I was wrong this time.
I added the following lines in /etc/mail/sendmail.cf (55555 is the Stunnel port for smtps-465):
I ran the following command to create a new sendmail.cf:
The only differences from previous working sendmail.cf are:
However, it just didn't work.
I checked with Kevin J. Cummings <cummings@kjchome.homeip.net> who had similar situation with me. I found him online from his post:
https://lists.fedoraproject.org/piperma ... 32241.html
He's been very supportive. After a few communications, I asked him if the square brackets in SMART_HOST is a must.
I said I didn't have to use [] with outgoing.verizon.net. He said:
$h doesn't seem to pick up the DS value (relay server defined in SMART_HOST.
So, I manually updated the entries
From:
To:
and it worked!
I then sent a few test email messages and they seemed to work as expected. Out of curiosity, I tried [] in SMART_HOST and recreated sendmail.cf for comparison. The only difference between the sendmail.cf files is:
After spending almost 2 days, the solution is just the square brackets ([]).
BTW, the client-info file can be as simple as following:
Code: Select all
define(`SMART_HOST',`outgoing.verizon.net')dnl
FEATURE(`authinfo',`dbm /etc/mail/auth/client-info')dnl
I got an email and a phone call from Verizon this week saying they are switching from outgoing.verizon.net:25 to smtp.verizon.net:465 so I spent some time working on it.
Stunnel was set up after adding smtps to TCP wrapper. Details can be read from Stunnel post:
viewtopic.php?f=7&t=960
From past experience, relay configuration was straightforward and should take much time to figure out but I was wrong this time.
I added the following lines in /etc/mail/sendmail.cf (55555 is the Stunnel port for smtps-465):
Code: Select all
define(`SMART_HOST', `relay.hsiao.net')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 55555')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 55555')dnl
Code: Select all
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf.new
Code: Select all
< DSrelay.hsiao.net
---
> DSoutgoing.verizon.net
Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
< A=TCP $h 10025
---
> A=TCP $h
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
< A=TCP $h 10025
---
> A=TCP $h
I checked with Kevin J. Cummings <cummings@kjchome.homeip.net> who had similar situation with me. I found him online from his post:
https://lists.fedoraproject.org/piperma ... 32241.html
He's been very supportive. After a few communications, I asked him if the square brackets in SMART_HOST is a must.
Code: Select all
EX.
define(`SMART_HOST', `[localhost.localdomain]')dnl
I didn't try it first. Instead, I increased sendmail LogLevel from 9 to 15 and saw detailed log entries for troubleshooting.Kevin J. Cummings wrote: The [] around the smart host name tells sendmail to look it up as an IP address record (A) instead of an MX (mail-exchanger) record. That can sometimes be important. It was for me back when I was with RCN and they started requiring that all outgoing email be funneled through their outgoing email server.
Successful email sending (outgoing.verizon.net:25) wrote: Nov 9 21:13:56 cahtoh02 sendmail[25661]: [ID 801593 mail.info] rAA2Dudt025661: from=cah, size=62, class=0, nrcpts=1, msgid=<201311100213.rAA2Dudt025661@hsiao.net>, relay=cah@localhost
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] NOQUEUE: connect from localhost [127.0.0.1]
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 702911 mail.info] AUTH: available mech=SCRAM-SHA-1 GSSAPI DIGEST-MD5 OTP CRAM-MD5 PLAIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: Milter: no active filter
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 220 hsiao.net ESMTP Sendmail 8.14.6/8.14.5; Sat, 9 Nov 2013 21:13:56 -0500 (EST)
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: <-- EHLO hsiao.net
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-hsiao.net Hello localhost [127.0.0.1], pleased to meet you
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-ENHANCEDSTATUSCODES
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-PIPELINING
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-8BITMIME
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-SIZE
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250-DELIVERBY
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250 HELP
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: <-- MAIL From:<cah@hsiao.net> SIZE=62 AUTH=cah@hsiao.net
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 702911 mail.notice] ruleset=trust_auth, arg1=cah@hsiao.net, relay=localhost [127.0.0.1], reject=550 5.7.1 <cah@hsiao.net>... not authenticated
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250 2.1.0 <cah@hsiao.net>... Sender ok
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: <-- RCPT To:<chang_an@yahoo.com>
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250 2.1.5 <chang_an@yahoo.com>... Recipient ok
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: <-- DATA
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 354 Enter mail, end with "." on a line by itself
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: from=<cah@hsiao.net>, size=324, class=0, nrcpts=1, msgid=<201311100213.rAA2Dudt025661@hsiao.net>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 050 <chang_an@yahoo.com>... Connecting to outgoing.verizon.net. via relay...
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: SMTP outgoing connect on hsiao.net
Nov 9 21:13:56 cahtoh02 sendmail[25662]: [ID 702911 mail.info] AUTH=client, relay=outgoing.verizon.net., mech=PLAIN, bits=0
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 050 <chang_an@yahoo.com>... Sent (Ok, envelope id 0MW000DWZZJ8CJO0@vms173011.mailsrvcs.net)
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: to=<chang_an@yahoo.com>, ctladdr=<cah@hsiao.net> (1001/4), delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=30324, relay=outgoing.verizon.net. [206.46.232.12], dsn=2.0.0, stat=Sent (Ok, envelope id 0MW000DWZZJ8CJO0@vms173011.mailsrvcs.net)
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: done; delay=00:00:05, ntries=1
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1j025662: --- 250 2.0.0 rAA2Du1j025662 Message accepted for delivery
Nov 9 21:14:01 cahtoh02 sendmail[25661]: [ID 801593 mail.info] rAA2Dudt025661: to=chang_an@yahoo.com, ctladdr=cah (1001/4), delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rAA2Du1j025662 Message accepted for delivery)
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1k025662: <-- QUIT
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] rAA2Du1k025662: --- 221 2.0.0 hsiao.net closing connection
Nov 9 21:14:01 cahtoh02 sendmail[25662]: [ID 801593 mail.info] NOQUEUE: --- 050 Closing connection to outgoing.verizon.net.
Even though, both esmtp and relay haveFailed email sending (relay.hsiao.net:55555) wrote: Nov 9 21:21:17 cahtoh02 sendmail[25789]: [ID 801593 mail.info] rAA2LH2M025789: from=cah, size=62, class=0, nrcpts=1, msgid=<201311100221.rAA2LH2M025789@hsiao.net>, relay=cah@localhost
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] NOQUEUE: connect from localhost [127.0.0.1]
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 702911 mail.info] AUTH: available mech=SCRAM-SHA-1 GSSAPI DIGEST-MD5 OTP CRAM-MD5 PLAIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: Milter: no active filter
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 220 hsiao.net ESMTP Sendmail 8.14.6/8.14.6; Sat, 9 Nov 2013 21:21:17 -0500 (EST)
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: <-- EHLO hsiao.net
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-hsiao.net Hello localhost [127.0.0.1], pleased to meet you
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-ENHANCEDSTATUSCODES
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-PIPELINING
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-8BITMIME
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-SIZE
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250-DELIVERBY
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250 HELP
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: <-- MAIL From:<cah@hsiao.net> SIZE=62 AUTH=cah@hsiao.net
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 702911 mail.notice] ruleset=trust_auth, arg1=cah@hsiao.net, relay=localhost [127.0.0.1], reject=550 5.7.1 <cah@hsiao.net>... not authenticated
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250 2.1.0 <cah@hsiao.net>... Sender ok
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: <-- RCPT To:<chang_an@yahoo.com>
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 250 2.1.5 <chang_an@yahoo.com>... Recipient ok
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: <-- DATA
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 354 Enter mail, end with "." on a line by itself
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: from=<cah@hsiao.net>, size=324, class=0, nrcpts=1, msgid=<201311100221.rAA2LH2M025789@hsiao.net>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Nov 9 21:21:17 cahtoh02 sendmail[25790]: [ID 801593 mail.info] rAA2LHJY025790: --- 050 <chang_an@yahoo.com>... Connecting to mta5.am0.yahoodns.net. port 55555 via esmtp...
Code: Select all
A=TCP $h 55555
So, I manually updated the entries
From:
Code: Select all
Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h 55555
Code: Select all
Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP relay.hsiao.net 55555
Still via esmtp, not relay.Manual modification in sendmail.cf and worked wrote: Nov 9 21:28:53 cahtoh02 sendmail[25937]: [ID 801593 mail.info] rAA2SrRY025937: from=cah, size=62, class=0, nrcpts=1, msgid=<201311100228.rAA2SrRY025937@hsiao.net>, relay=cah@localhost
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] NOQUEUE: connect from localhost [127.0.0.1]
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 702911 mail.info] AUTH: available mech=SCRAM-SHA-1 GSSAPI DIGEST-MD5 OTP CRAM-MD5 PLAIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: Milter: no active filter
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 220 hsiao.net ESMTP Sendmail 8.14.6/8.14.6; Sat, 9 Nov 2013 21:28:53 -0500 (EST)
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: <-- EHLO hsiao.net
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-hsiao.net Hello localhost [127.0.0.1], pleased to meet you
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-ENHANCEDSTATUSCODES
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-PIPELINING
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-8BITMIME
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-SIZE
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250-DELIVERBY
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250 HELP
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: <-- MAIL From:<cah@hsiao.net> SIZE=62 AUTH=cah@hsiao.net
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 702911 mail.notice] ruleset=trust_auth, arg1=cah@hsiao.net, relay=localhost [127.0.0.1], reject=550 5.7.1 <cah@hsiao.net>... not authenticated
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250 2.1.0 <cah@hsiao.net>... Sender ok
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: <-- RCPT To:<chang_an@yahoo.com>
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250 2.1.5 <chang_an@yahoo.com>... Recipient ok
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: <-- DATA
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 354 Enter mail, end with "." on a line by itself
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: from=<cah@hsiao.net>, size=324, class=0, nrcpts=1, msgid=<201311100228.rAA2SrRY025937@hsiao.net>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 050 <chang_an@yahoo.com>... Connecting to relay.hsiao.net. port 55555 via esmtp...
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: SMTP outgoing connect on localhost
Nov 9 21:28:53 cahtoh02 sendmail[25938]: [ID 702911 mail.info] AUTH=client, relay=relay.hsiao.net., mech=PLAIN, bits=0
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 050 <chang_an@yahoo.com>... Sent (Ok, envelope id 0MW10090D085TT40@vms173025.mailsrvcs.net)
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: to=<chang_an@yahoo.com>, ctladdr=<cah@hsiao.net> (1001/4), delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=30324, relay=relay.hsiao.net. [127.0.0.1], dsn=2.0.0, stat=Sent (Ok, envelope id 0MW10090D085TT40@vms173025.mailsrvcs.net)
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: done; delay=00:00:04, ntries=1
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkw025938: --- 250 2.0.0 rAA2Srkw025938 Message accepted for delivery
Nov 9 21:28:57 cahtoh02 sendmail[25937]: [ID 801593 mail.info] rAA2SrRY025937: to=chang_an@yahoo.com, ctladdr=cah (1001/4), delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rAA2Srkw025938 Message accepted for delivery)
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkx025938: <-- QUIT
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] rAA2Srkx025938: --- 221 2.0.0 hsiao.net closing connection
Nov 9 21:28:57 cahtoh02 sendmail[25938]: [ID 801593 mail.info] NOQUEUE: --- 050 Closing connection to relay.hsiao.net.
I then sent a few test email messages and they seemed to work as expected. Out of curiosity, I tried [] in SMART_HOST and recreated sendmail.cf for comparison. The only difference between the sendmail.cf files is:
Without [] wrote: DSrelay.hsiao.net
After this change, the email was working as well and it is using relay instead of esmtp!!With [] wrote: DS[relay.hsiao.net]
So, the bottom line is, the square brackets ([]) are a must!!With DS[relay.hsiao.net] in sendmail.cf wrote: Nov 10 02:05:10 cahtoh02 sendmail[27220]: [ID 801593 mail.info] rAA75ATW027220: from=cah, size=62, class=0, nrcpts=1, msgid=<201311100705.rAA75ATW027220@hsiao.net>, relay=cah@localhost
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] NOQUEUE: connect from localhost [127.0.0.1]
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 702911 mail.info] AUTH: available mech=SCRAM-SHA-1 GSSAPI DIGEST-MD5 OTP CRAM-MD5 PLAIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: Milter: no active filter
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 220 hsiao.net ESMTP Sendmail 8.14.6/8.14.6; Sun, 10 Nov 2013 02:05:10 -0500 (EST)
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: <-- EHLO hsiao.net
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-hsiao.net Hello localhost [127.0.0.1], pleased to meet you
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-ENHANCEDSTATUSCODES
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-PIPELINING
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-8BITMIME
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-SIZE
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250-DELIVERBY
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250 HELP
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: <-- MAIL From:<cah@hsiao.net> SIZE=62 AUTH=cah@hsiao.net
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 702911 mail.notice] ruleset=trust_auth, arg1=cah@hsiao.net, relay=localhost [127.0.0.1], reject=550 5.7.1 <cah@hsiao.net>... not authenticated
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250 2.1.0 <cah@hsiao.net>... Sender ok
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: <-- RCPT To:<chang_an@yahoo.com>
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250 2.1.5 <chang_an@yahoo.com>... Recipient ok
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: <-- DATA
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 354 Enter mail, end with "." on a line by itself
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: from=<cah@hsiao.net>, size=326, class=0, nrcpts=1, msgid=<201311100705.rAA75ATW027220@hsiao.net>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 050 <chang_an@yahoo.com>... Connecting to relay.hsiao.net. port 55555 via relay...
Nov 10 02:05:10 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: SMTP outgoing connect on localhost
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 702911 mail.info] AUTH=client, relay=relay.hsiao.net., mech=PLAIN, bits=0
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 050 <chang_an@yahoo.com>... Sent (Ok, envelope id 0MW1003XHD0NFF30@vms173025.mailsrvcs.net)
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: to=<chang_an@yahoo.com>, ctladdr=<cah@hsiao.net> (1001/4), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30326, relay=relay.hsiao.net. [127.0.0.1], dsn=2.0.0, stat=Sent (Ok, envelope id 0MW1003XHD0NFF30@vms173025.mailsrvcs.net)
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: done; delay=00:00:01, ntries=1
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjT027221: --- 250 2.0.0 rAA75AjT027221 Message accepted for delivery
Nov 10 02:05:11 cahtoh02 sendmail[27220]: [ID 801593 mail.info] rAA75ATW027220: to=chang_an@yahoo.com, ctladdr=cah (1001/4), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rAA75AjT027221 Message accepted for delivery)
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjU027221: <-- QUIT
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] rAA75AjU027221: --- 221 2.0.0 hsiao.net closing connection
Nov 10 02:05:11 cahtoh02 sendmail[27221]: [ID 801593 mail.info] NOQUEUE: --- 050 Closing connection to relay.hsiao.net.
After spending almost 2 days, the solution is just the square brackets ([]).
BTW, the client-info file can be as simple as following:
Code: Select all
# It turned out the relay host is NOT needed after AuthInfo:
# U: needs to have ISP's email account as well as I:
AuthInfo: "U:cahtohsm@verizon.net" "I:cahtohsm@verizon.net" "P:c4ht0hsm"