Hi everyone. I hope all of you are well. I have a server running Ubuntu 20.04 and I'm working on setting up iRedMail on it. Everything is good so far, but I'm having an issue getting Postfix to respond on port 465. I know that by default, this is not enabled in the master.cf file. I did a lot of research and tried different configurations for 465 and nothing works. Here are the configs I tried...
This is the config suggested by iRedMail... 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 This is the config suggested by the LinixBabe website... smtps inet n - y - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject -o content_filter=smtp-amavis:[127.0.0.1]:10026 I tried the above and different variations of those. I even tried removing all of the -o lines and just using the simple first line, but no good. Additional info... I watched the firewall when I tried to telnet to it on port 465 and: * telnet did not say that the packet was rejected * the firewall showed packets being accepted by the rule to accept packets from my location After making the changes to the master.cf I restarted Postfix 3 different ways because I heard that sometimes some of the commands don't reload the changes made to the master.cf. I reloaded using... postfix reload service postfix restart sudo /etc/init.d/postfix restart It seems like something is going wrong in Postfix or the device itself; and it's not completing the tcp handshake. When I go to 465 the packet isn't rejected-- but the connection never goes through -- so something is interfering with the handshake on that port... I think? Here is the log snip from a telnet I did from the machine itself (telnet 127.0.0.1 465) Jun 11 15:08:19 localhost postfix/smtps/smtpd[211305]: connect from localhost[127.0.0.1] Jun 11 15:08:26 localhost postfix/smtps/smtpd[211305]: SSL_accept error from localhost[127.0.0.1]: -1 Jun 11 15:08:26 localhost postfix/smtps/smtpd[211305]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:331: Jun 11 15:08:26 localhost postfix/smtps/smtpd[211305]: lost connection after CONNECT from localhost[127.0.0.1] Jun 11 15:08:26 localhost postfix/smtps/smtpd[211305]: disconnect from localhost[127.0.0.1] commands=0/0 Please pardon my ignorance, but is it the TLS library issue causing my problem? If yes, I will research how to resolve it. I just wanted to reach out here with hopes that one of you kind folks would point me in the right direction. Any help at all would be appreciated. Thank you in advance!
