Postfix takes 25 port instead of 587
Thrilokesh
35
Reputation points
i have configurted the postfix to use 587 submission port instead of 35 . but still it takes 25 while send a mail
i havementioned main and master configuration files for refreance
Mail log
connect to alt1.gmail-smtp-in.l.google.com[142.250.141.27]:25: Connection timed out
May 29 07:05:56 mail postfix/smtp[97337]: connect to alt1.gmail-smtp-in.l.google.com[142.250.141.27]:25: Connection timed out
May 29 07:05:56 mail postfix/smtp[97339]: connect to alt1.gmail-smtp-in.l.google.com[142.250.141.27]:25: Connection timed out
May 29 07:05:56 mail postfix/smtp[97339]: connect to alt1.gmail-smtp-in.l.google.com[2607:f8b0:4023:c0b::1b]:25: Network is unreachable
May 29 07:06:26 mail postfix/smtp[97337]: connect to alt2.gmail-smtp-in.l.google.com[142.250.115.26]:25: Connection timed out
May 29 07:06:26 mail postfix/smtp[97338]: connect to alt2.gmail-smtp-in.l.google.com[142.250.115.26]:25: Connection timed out
----------------------------------main.cf--------------------------------------------
smtpd_use_tls = yes
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_wrappermode = yes
smtpd_tls_auth_only = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_mailbox_domains = /etc/postfix/virtual_mailbox_domains
myhostname = mail.jespersoft.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, mail.jespersoft.com, localhost.jespersoft.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
masquerade_domains = jespersoft.com
----------------------------------main.cf--------------------------------------------
----------------------------- master.cf ----------------------------------------------------
# (yes) (yes) (no) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtp inet n - y - 1 postscreen
#smtpd pass - - y - - smtpd
#dnsblog unix - - y - 0 dnsblog
#tlsproxy unix - - y - 0 tlsproxy
submission inet n - y - - smtpd
-o syslog_name=postfix/submission
# -o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
# -o smtpd_tls_auth_only=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
-o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - y - - smtpd
----------------------------------master.cf--------------------------------------------