I've followed the guide in how to modify to use google as smarthost, but I need to use my own mail provider instead, so I modified the sendmail.mc and the client-info to reflect the correct host.
In the sendmail.mc I modified the smarthost line to
I can also see in sendmail.cf:
But when I try to send a mail I see this in the logfile:
I checked that the send.one.com could resolve on the host. I also checked that could telnet to port 25 from the host to the smarthost.
I also tested that I could connect with starttls using openssl.
Code:
AuthInfo:send.one.com "U:smmsp" "I:voicemail.domain.dk" "P:5k" "M:PLAIN"
AuthInfo:send.one.com:587 "U:smmsp" "I:[email protected]" "P:5k" "M:PLAIN"
AuthInfo:send.one.com:465 "U:smmsp" "I:[email protected]" "P:5k" "M:PLAIN"
In the sendmail.mc I modified the smarthost line to
Code:
define(`SMART_HOST', `send.one.com')dnl
I can also see in sendmail.cf:
Code:
# "Smart" relay host (may be null)
DSsend.one.com
But when I try to send a mail I see this in the logfile:
Code:
Oct 2 17:52:22 noreply sendmail[18234]: 092FqM9w018234: from=root, size=219, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Oct 2 17:52:22 noreply sendmail[18235]: 092FqMHA018235: from=<[email protected]>, size=490, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=pbx [127.0.0.1]
Oct 2 17:52:22 noreply sendmail[18234]: 092FqM9w018234: [email protected], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30219, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (092FqMHA018235 Message accepted for delivery)
Oct 2 17:52:22 noreply sendmail[18237]: STARTTLS=client, relay=send.one.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
Oct 2 17:52:22 noreply sendmail[18237]: 092FqMHA018235: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120490, relay=send.one.com. [46.30.211.141], dsn=5.0.0, stat=Service unavailable
Oct 2 17:52:22 noreply sendmail[18237]: 092FqMHA018235: 092FqMHA018237: DSN: Service unavailable
I checked that the send.one.com could resolve on the host. I also checked that could telnet to port 25 from the host to the smarthost.
I also tested that I could connect with starttls using openssl.