Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 8186  / 2 Years ago, mon, june 20, 2022, 3:49:40

My ISP blocks outgoing connections to port 25 (well, with one exception for their SMTP server).



The remote host for one particular email address is also configured to listen on port 26. Is there any way of configuring Postfix to connect to port 26 on the remote host?


More From » server

 Answers
6

You can handle this with a transport map. First tell postfix to use a map, with the following in main.cf:



transport_maps = hash:/etc/postfix/transport


Then in /etc/postfix/transport add the custom route:



example.net smtp:example.net:26


Then build the map database:



sudo postmap /etc/postfix/transport

[#41826] Wednesday, June 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heaco

Total Points: 479
Total Questions: 124
Total Answers: 114

Location: Lesotho
Member since Sat, Oct 1, 2022
2 Years ago
;