I can receive emails with no problem, but I can’t send them because my host blocks port 25, but it does allow port 587. How can I force it on port 587?
I have already done this modifications:
smtp_sasl_auth_enable = yes
submission inet n - n - - smtpd
iptables -L -n
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 ctstate NEW
netstat -an | grep :587
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
But when I attempt to send a mail through Virtualmin mailbox I get in the log:
(connect to outlook-com.olc.protection.outlook.com[220.127.116.11]:25: Connection timed out)
Already made many modifications to master and main files, but none works.
Also, port 587 might be ok but Usermin keeps using the port 25, as the error message indicates.
Also, https://www.yougetsignal.com/tools/open-ports/ says that port 587 is opened on my server, I just need to make Usermin use port 587.
I’ve tried going to Webmin Configuration > Sending Email, checking “Enable SSL” and setting “Use port number” to 587, but when I click save, it automatically unchecks “Enable SSL” and automatically set “Use port number” to default port. It cant be changed!