The pointer is at http://www.dawoodfall.net/index.php/relaying-sendm ail-a-ssl
which shows where Virgin Media pulled the same stunt as
Verizon. It doesn't quite work as mentioned, you need to put the relay
domain in square brackets to avoid MX resolution, however apart from
that it's sweet. I didn't set up relay-domain as mentioned.
Briefly, to enable using sendmail to deliver mail on FiOS:
1) install stunnel
2) Create /etc/stunnel/smtp.verizon.net.conf with:
sslVersion = SSLv3
[ req ]
client = yes
accept = 2525
connect = smtp.verizon.net:465
3) /etc/init.d/stunnel restart
4) Add sendmail.mc:
define(`SMART_HOST', `[localhost]')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 2525')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 2525')dnl
5) Add to authinfo:
AuthInfo:fqdn.of.your.localhost "U:name" "P:password" "M:PLAIN"
AuthInfo:fqdn.of.your.localhost:2525 "U:name" "P:password" "M:PLAIN"
6) cd /etc/mail && make && /etc/init.d/sendmail reload
7) Add to /etc/monit/conf.d/njh:
check process stunnel_verizon with pidfile "/var/run/stunnel4/smtp.verizon.pid"
start program = "/usr/sbin/service stunnel4 start"
stop program = "/usr/sbin/service stunnel4 stop"
if failed host 127.0.0.1 port 2525 type TCP protocol SMTP then restart
group stunnel4
Briefly, to enable using sendmail to deliver mail on FiOS:
1) install stunnel
2) Create /etc/stunnel/smtp.verizon.net.conf with:
sslVersion = SSLv3
[ req ]
client = yes
accept = 2525
connect = smtp.verizon.net:465
3) /etc/init.d/stunnel restart
4) Add sendmail.mc:
define(`SMART_HOST', `[localhost]')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 2525')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 2525')dnl
5) Add to authinfo:
AuthInfo:fqdn.of.your.localhost "U:name" "P:password" "M:PLAIN"
AuthInfo:fqdn.of.your.localhost:2525 "U:name" "P:password" "M:PLAIN"
6) cd /etc/mail && make && /etc/init.d/sendmail reload
7) Add to /etc/monit/conf.d/njh:
check process stunnel_verizon with pidfile "/var/run/stunnel4/smtp.verizon.pid"
start program = "/usr/sbin/service stunnel4 start"
stop program = "/usr/sbin/service stunnel4 stop"
if failed host 127.0.0.1 port 2525 type TCP protocol SMTP then restart
group stunnel4

No comments:
Post a Comment