1

Topic: bug: postfix on Port 465 is depreciated

==== Provide basic information to help troubleshoot ====
- iRedMail version: 0.7.3
- Linux/BSD distribution name and version: debian 6.0.3
- Any related log? Log is helpful for troubleshooting.
====

disable postfix on Port 465 as this port is depreciated - so postfix will be only listening on 25 and 587

see also http://en.wikipedia.org/wiki/SMTPS

Originally, in early 1997, the Internet Assigned Numbers Authority registered 465 for SMTPS. By the end of 1998, this was revoked when STARTTLS has been specified. With STARTTLS, the same port can be used with or without TLS. SMTP was seen as particularly important, because clients of this protocol are often other mail servers, which can not know whether a server they wish to communicate with will have a separate port for TLS. The port 465 is now registered for Source-Specific Multicast audio and video.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: bug: postfix on Port 465 is depreciated

here is the patch for iRedMail-0.7.3 removing the 465-config

patch -N iRedMail-0.7.3/functions/postfix.sh  << "ENDOF"
@@ -60,6 +60,2 @@ EOF
 
-        # Append two lines in /etc/services to avoid below error:
-        # '0.0.0.0:smtps: Servname not supported for ai_socktype'
-        echo 'smtps            465/udp    # smtp over ssl' >> /etc/services
-        echo 'smtps            465/tcp    # smtp over ssl' >> /etc/services
 
@@ -770,7 +777,2 @@ submission inet n       -       n       
 
-smtps     inet  n       -       n       -       -       smtpd
-  -o smtpd_tls_wrappermode=yes
-  -o smtpd_sasl_auth_enable=yes
-  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
-#  -o content_filter=smtp-amavis:[${AMAVISD_SERVER}]:10026
 EOF
ENDOF

Greetings
Mike

3

Re: bug: postfix on Port 465 is depreciated

Hi Mike,

Thanks very much for your sharing and patch.

Below two lines are used in openSUSE, did you have any chance to test it without them?

-        # Append two lines in /etc/services to avoid below error:
-        # '0.0.0.0:smtps: Servname not supported for ai_socktype'
-        echo 'smtps            465/udp    # smtp over ssl' >> /etc/services
-        echo 'smtps            465/tcp    # smtp over ssl' >> /etc/services

4

Re: bug: postfix on Port 465 is depreciated

not using opensuse - but disabling "smtps" on lines @@ -770,7 +777,2 @@ in postfix should fix this dependency so the first lines are the code-cleanup wink

5

Re: bug: postfix on Port 465 is depreciated

Great. Fixed moment ago:
https://bitbucket.org/zhb/iredmail/chan … 4c114d369f