Enabling postfix to allow email forwarders
I've configured postfix for this and I know it's running via netstat:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9980/master
I've checked the firewall via iptables -L -v -n | grep :25
0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
but when I test it via telnet from my own machine I get:
telnet 220.127.116.11 25
telnet: connect to address 18.104.22.168: Operation timed out
I've also trying setting it up on port 587 but it just says Connection refused.
What am I doing wrong?
% telnet 22.214.171.124 25 Trying 126.96.36.199... telnet: Unable to connect to remote host: Connection refused
The timeout you're seeing is because of a firewall. Clearly I didn't hit that firewall when I just did my test. Where did you try to connect from? If a home machine then be aware that many ISPs block outgoing port 25 these days.
I'm now nervous about accidentally setting up an open relay. How do I set it up to make forwarder emails for a couple of domains e.g.
I'm particularly concerned about "mydestination"