Mail relaying fun
For the second time, my damned ISP has blocked port 25. No real reason, I have secure Linux boxes as the only things sending email; I would get 5-6 server reports a day. That's all. But they blocked me again, and I am sick of arguing with the scripted Indian morons.
Main machine
Anyway, on the main Linux box, ragnarokjr
(named so because it is a VM box), I was able to finally get qmail
to send all mail thru TLS:
- Unpacked
netqmail
- Applied the full netqmail TLS patch to get
base64.h
andbase64.c
- Erased it all and re-unzipped
- Copied in the
base64.h
andbase64.c
- Applied the remote auth patch only
- "
make qmail-remote
" - Copied
qmail-remote
over/var/qmail/bin/qmail-remote
- Edited
/var/qmail/control/smtproutes
to include name and password::smtp.isp.net:587 username password
- Made
smtproutes
owned by "qmailr
" andchmod og-r
so it's kinda secured
So now qmail-remote
will use TLS on port 587 as needed to get around the stupid block…
Other machines
One of my other machines runs CentOS which uses exim
instead of qmail
and it took me a while to find this FAQ.
/etc/exim/exim.conf, in the "routers" section: send_to_gateway: driver = manualroute transport = remote_smtp route_list = * ragnarokjr.revragnarok.com no_more
And of course, /etc/init.d/exim restart
Hopefully, this can help somebody else. I was searching all kinds of terms like "exim upstream" (lots of Debian stuff saying what changed from standard) and it took a bit…
Comments
No comments.