Z
zero@
Guest
I have several clients that refuse to use their own ISP's outgoing server because they travel and they don't want to or can't use their ISP's outgoing server. So I did some reading about using port 587 as well as port 25 for outgoing mail. Many ISP's block port 25, but allow port 587.
I thought I could simply redirect requests from port 587 to 25, like so:
That seemed to work fine and allowed me to use both. However, a day or two later it stopped working. I didn't reboot (but someone else might have) or restart any services manually. Is there any wway to make this change permanent?
Also, is there a danger to doing it this way? I'm not 100% fluent with iptables, and I don't want to open myself up to attack.
Running Debian Stable.
Thanks in advance for the help.
I thought I could simply redirect requests from port 587 to 25, like so:
Code:
iptables -t nat -A PREROUTING -p tcp --dport 587 -i eth0 -j REDIRECT --to-ports 25
That seemed to work fine and allowed me to use both. However, a day or two later it stopped working. I didn't reboot (but someone else might have) or restart any services manually. Is there any wway to make this change permanent?
Also, is there a danger to doing it this way? I'm not 100% fluent with iptables, and I don't want to open myself up to attack.
Running Debian Stable.
Thanks in advance for the help.