postal icon indicating copy to clipboard operation
postal copied to clipboard

How to open port 587 on postal to connect with mailing application?

Open mishudm opened this issue 6 years ago • 11 comments

Hello. In posta i have port 25 open. But i need to open port 465 or 587. The reason is i need to connect smtp with sendbluster or ultramailer. Those application use local network port and local network close port 25. Thats why i cant connect postal smtp with those applicatio.
Do anyone know how can i fo that with full process?

mishudm avatar Sep 02 '20 02:09 mishudm

Connecting on other ports shouldn't be required but if you want it, you will have to use something like iptables to forward ports internally.

willpower232 avatar Sep 04 '20 08:09 willpower232

Connecting on other ports shouldn't be required but if you want it, you will have to use something like iptables to forward ports internally.

if i forward port 25 to 587 then will port 25 be stop? i want both port 25 and 587 open and also if i do that dont i need to configure anything in postal?

mishudm avatar Sep 04 '20 08:09 mishudm

Postal can only bind to one port. Using iptables to forward the other ports to 25 means that effectively they're all open. As its part of the network configuration of the server, you don't have to configure anything in Postal.

willpower232 avatar Sep 04 '20 08:09 willpower232

Postal can only bind to one port. Using iptables to forward the other ports to 25 means that effectively they're all open. As its part of the network configuration of the server, you don't have to configure anything in Postal.

i forwared it by iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 2525 sudo /sbin/iptables-save but still port 587 not connecting with send bluster

mishudm avatar Sep 04 '20 09:09 mishudm

If you ran that command, you'll see it ends with 2525 which is port 2525. If you want a different port, specify a different one.

willpower232 avatar Sep 04 '20 09:09 willpower232

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 587 sudo /sbin/iptables-save result is same. if you can hep i can give you my server info so you can check

mishudm avatar Sep 04 '20 09:09 mishudm

If you ran that command, you'll see it ends with 2525 which is port 2525. If you want a different port, specify a different one.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 587 sudo /sbin/iptables-save result is same. if you can hep i can give you my server info so you can check

mishudm avatar Sep 04 '20 09:09 mishudm

Hello,

What's the response you get when doing:

telnet domain 587

navinp avatar Sep 06 '20 13:09 navinp

Also did you restart the server afterwards?

postal restart

navinp avatar Sep 06 '20 13:09 navinp

Also did you restart the server afterwards?

postal restart

yes i did. also i did too many things now and reinstall postal for need experiment for this. but i dont thing i will get solution here. because no one replying and you are repling but not giving full things and replying in every 10 to 12 hour. i cant sit idle. so if you really want to help please give me like full coomand one by one or give your mail address. thanks

mishudm avatar Sep 06 '20 20:09 mishudm

See here

yomiit avatar Sep 21 '20 23:09 yomiit