This topic has been discussed all around the internet and no matter how much I try, I can't get a working answer/solution.
A particular ISP that I use blocks port 25.
Centos 6.9
I've set root email forwarding to an external email address (doesn't matter whether hotmail or a personal email server elsewhere).
Postfix master.cf has been changed to reflect a different port:
# smtp inet n - n - - smtpd
587 inet n - n - - smtpd
# 26 inet n - n - - smtpd
I've tried different combinations of the above.
I've messed about with Google-found iptables redirects such as:
iptables -t nat -A OUTPUT -p tcp --dport 25 -j REDIRECT --to-port 587
I still get the dreaded:
postfix/smtp[26787]: connect to mx1.hotmail.com[65.55.92.184]:25: Connection refused
Someone must have a definitive step-by-step, surely?
It's very irritating not to just get system messages from the likes of csf, let alone any client created ones, which I haven't got to yet.
At this stage, I am only interested in outbound email from this server.
In WHM, it's very simple to just add port 26 as an additional port and it just works. I'll give the convoluted and overly complicated/untidy Webmin/Virtualmin another try, at this rate.
(I've already donated to this cause, plus purchased a Pro licence, as I thought this panel looked so promising)