Topic: Enable smtps (port 465) issue
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I follow the doc https://docs.iredmail.org/enable.smtps.html to enable smtps
I copy and paste at the end of /etc/postfix/main.cf the lines starting from 465
#open port 465
465 inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o content_filter=smtp-amavis:[127.0.0.1]:10026
and I add also the line in iptables
# smtp, submission
-A INPUT -p tcp --dport 25 -j ACCEPT
-A INPUT -p tcp --dport 587 -j ACCEPT
-A INPUT -p tcp --dport 465 -j ACCEPT
I restart both services postfix and iptables but Iredmail is not listen on port 465 (Check in netstat) port is closed
What could I check to find where is my mistake ?
Thanks
More information :
In fact when I add the line find in the documentation and starting by 465 in main.cf I have the following issue :
Oct 11 16:54:57 mail postfix/postqueue[136396]: fatal: /etc/postfix/main.cf, line 341: missing '=' after attribute name: "465 inet n - n - -
smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o
content_filter=smtp-amavis:[127.0.0.1]:10026"
And all connection are refused…
Thank
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.