can not receive or send emails

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, May 26, 2019.

  1. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi guys,

    i have a fresh installed ISPConfig on 2 servers running, but on both servers i cannot receive or send email.
    Can anyone give me some help how to fix that?

    thanks in advance for your great help.
    here is the ispconfig check output:
    Code:
    ------------------
    root@server3:~# cat htf_report.txt | more
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.1.13p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.2.17-0ubuntu***.***.***.***
    
    ##### PORT CHECK #####
    
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you ha
    ve to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections y
    ou have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 3077)
    [INFO] I found the following mail server(s):
        Postfix (PID 1756)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 1577)
    [INFO] I found the following imap server(s):
        Dovecot (PID 1577)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 572)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [localhost]:10024        (1767/amavisd-new)
    [localhost]:10025        (1756/master)
    [localhost]:10026        (1767/amavisd-new)
    [localhost]:3306        (516/mysqld)
    [localhost]:10027        (1756/master)
    [localhost]:11211        (438/memcached)
    [anywhere]:110        (1577/dovecot)
    [anywhere]:143        (1577/dovecot)
    [anywhere]:8080        (3077/apache2)
    [anywhere]:80        (3077/apache2)
    [anywhere]:8081        (3077/apache2)
    [anywhere]:21        (572/pure-ftpd)
    ***.***.***.***:53        (437/named)
    [localhost]:53        (437/named)
    ***.***.***.***:53        (391/systemd-resolve)
    [anywhere]:22        (490/sshd)
    [anywhere]:25        (1756/master)
    [localhost]:953        (437/named)
    [anywhere]:443        (3077/apache2)
    [anywhere]:993        (1577/dovecot)
    [anywhere]:995        (1577/dovecot)
    [localhost]10        (1577/dovecot)
    [localhost]43        (1577/dovecot)
    *:*:*:*::*:21        (572/pure-ftpd)
    *:*:*:*::*:53        (437/named)
    *:*:*:*::*:22        (490/sshd)
    *:*:*:*::*:25        (1756/master)
    *:*:*:*::*:993        (1577/dovecot)
    *:*:*:*::*:995        (1577/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    
    
    root@server3:~#
    
    -------------
     
    Last edited: May 26, 2019
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check /etc/postfix/master.cf if you really removed the # in front of the lines that start with 'smtps' and with 'submission' as shown in perfect server guide.
     
  3. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi,
    thanks for your answer.
    i changed the master.cf as follows:
    Code:
    smtp      inet  n       -       y       -       -       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_client_restrictions=permit_sasl_authenticated,reject
    #  -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
      -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 smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    
    
    when i want to send an email in the log this happens:

    Code:
    May 26 20:52:43 server3 postfix/smtps/smtpd[29395]: connect from 106.red-83-47-19.dynamicip.rima-tde.net[83.47.19.106]
    May 26 20:54:13 server3 postfix/smtps/smtpd[29395]: SSL_accept error from 106.red-83-47-19.dynamicip.rima-tde.net[83.47.19.106]: lost connection
    May 26 20:54:13 server3 postfix/smtps/smtpd[29395]: lost connection after CONNECT from 106.red-83-47-19.dynamicip.rima-tde.net[83.47.19.106]
    May 26 20:54:13 server3 postfix/smtps/smtpd[29395]: disconnect from 106.red-83-47-19.dynamicip.rima-tde.net[83.47.19.106] commands=0/0
    May 26 20:55:01 server3 postfix/smtps/smtpd[29395]: connect from localhost[127.0.0.1]
    May 26 20:55:01 server3 postfix/smtps/smtpd[29395]: SSL_accept error from localhost[127.0.0.1]: lost connection
    May 26 20:55:01 server3 postfix/smtps/smtpd[29395]: lost connection after CONNECT from localhost[127.0.0.1]
    May 26 20:55:01 server3 postfix/smtps/smtpd[29395]: disconnect from localhost[127.0.0.1] commands=0/0
    May 26 20:55:01 server3 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<qi0U+M6J7I1/AAAB>
    May 26 20:55:01 server3 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<IzsU+M6J+OJ/AAAB>
    
    
    it would be great if you could help me with this matter...
    thanks a lot in advance.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You missed removing the # in front of the smtps and submission line. Please remove them and restart postfix.
     
  5. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi Till,

    thanks a lot for your kind help.
    Its now working.
    thank you so much ..
     
    till likes this.

Share This Page