SMTP on port 26

9 posts / 0 new
Last post
#1 Fri, 09/13/2013 - 05:13
axinos

SMTP on port 26

Hello,

How can I enable port 26 for SMTP (postfix)?

Thanks

Fri, 09/13/2013 - 06:55
Locutus

It should suffice to replace "smtp" with "26" in /etc/postfix/master.cf.

Be aware though that you won't be able to generally receive email from the internet if you change port 25 to 26. All regular email servers will always try to deliver mail for you on port 25.

Fri, 09/13/2013 - 07:12 (Reply to #2)
axinos

Perhaps I didn't make my self clear.

I want SMTP on both 25 and 26. Some ISPs block 25 and I need users to have the opportunity to use the alternate/secondary 26 port (not 465 and 587).

Thanks.

Fri, 09/13/2013 - 08:25
andreychek

You could always just make a copy of the "smtp" line in the master.cf file Locutus mentioned, and in that copy, change "smtp" to "26". Then restart Postfix.

-Eric

Fri, 09/13/2013 - 10:47
Locutus

Yup, like Eric said! Though, why not use the Submission port? That's specifically for that purpose, ie receive mails by local users.

Tue, 09/17/2013 - 09:17
axinos

Hello,

Sorry for the late response.

I have a: smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes

and a: smtp unix - - n - - smtp

line in the file. Which one I edit?

Tue, 09/17/2013 - 10:02
Locutus

You'd duplicate the first one with inet as type.

Wed, 09/18/2013 - 04:50 (Reply to #7)
axinos

It works great, thank you guys :)

Wed, 09/18/2013 - 05:36
Locutus

Great to hear, and you're welcome! :)

Topic locked