Author Topic: how to change postfix mail server port  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
how to change postfix mail server port
« on: May 12, 2020, 09:29:57 AM »
i want to change my postfix mail server port from 25 to other because my vps provider blocked port 25
i add in  /etc/postfix/master.cf   this config for

26       inet  n       -       n       -       -       smtpd
 but this can't work for me i restart my mail server but still work in port 25


May 12 09:19:40 cp postfix/smtp[13624]: connect to alt2.gmail-smtp-in.l.google.com[108.177.8.27]:25: Connection timed out
May 12 09:19:40 cp postfix/smtp[13625]: connect to alt2.gmail-smtp-in.l.google.com[108.177.8.27]:25: Connection timed out

please help  :( :(

Offline
*****
Re: how to change postfix mail server port
« Reply #1 on: May 13, 2020, 12:05:40 PM »
you can't change it and can't send email out of server until and unless port 25 is closed.