Email Troubleshooting - Not receiving or sending

Discussion in 'ISPConfig 3 Priority Support' started by mychael, May 15, 2019.

  1. mychael

    mychael Member HowtoForge Supporter

    I'm trying to get email working on Debian 9.9 Stretch, but am not able to send or receive any email using roundcube to an external address. I can't not send internally from and to the same address. I've tried googling, I'm at a loss at what to do next.

    This is the output of /var/log/mail.log:
    Code:
    May 14 22:15:01 commoncollective postfix/postqueue[430]: warning: Mail system is down -- accessing queue directly
    
    May 14 22:15:01 commoncollective dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<yhZCO+aICucAAAAAAAAAAAAAAAAAAAAB>
    
    May 14 22:15:01 commoncollective dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<hC1CO+aIcNMAAAAAAAAAAAAAAAAAAAAB>
    
    May 14 22:16:10 commoncollective postfix/postfix-script[5015]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20190209223009.bak
    
    May 14 22:16:10 commoncollective postfix/postfix-script[5018]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    
    May 14 22:16:10 commoncollective postfix/postfix-script[5021]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    
    May 14 22:16:10 commoncollective postfix/postfix-script[5070]: starting the Postfix mail system
    
    May 14 22:16:10 commoncollective postfix/master[5072]: fatal: bind 127.0.0.1 port 10025: Address already in use
    
    May 14 22:16:11 commoncollective postfix/master[5071]: fatal: daemon initialization failure
    
    May 14 22:16:12 commoncollective postfix/postfix-script[5104]: fatal: mail system startup failed
    
    May 14 22:16:14 commoncollective postfix/postfix-script[5330]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20190209223009.bak
    
    May 14 22:16:14 commoncollective postfix/postfix-script[5333]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    
    May 14 22:16:14 commoncollective postfix/postfix-script[5336]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    
    May 14 22:16:14 commoncollective postfix/postfix-script[5385]: starting the Postfix mail system
    
    May 14 22:16:14 commoncollective postfix/master[5387]: fatal: bind 127.0.0.1 port 10025: Address already in use
    
    May 14 22:16:15 commoncollective postfix/master[5386]: fatal: daemon initialization failure
    
    May 14 22:16:16 commoncollective postfix/postfix-script[5390]: fatal: mail system startup failed
    
    May 14 22:18:48 commoncollective dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=7913, secured, session=<kZPJSOaIducAAAAAAAAAAAAAAAAAAAAB>
    
    May 14 22:18:48 commoncollective dovecot: imap([email protected]): Logged out in=29 out=502
    
     
    Last edited: May 15, 2019
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. mychael

    mychael Member HowtoForge Supporter

    Hi Till, thanks for looking into this :)
    /etc/postfix/master.cf
    Code:
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master" or
    # on-line: http://www.postfix.org/master.5.html).
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (no)    (never) (100)
    # ==========================================================================
    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       -       -       -       -       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_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       -       -       -       -       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
    #  -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
    #628       inet  n       -       y       -       -       qmqpd
    pickup    unix  n       -       y       60      1       pickup
    cleanup   unix  n       -       y       -       0       cleanup
    qmgr      unix  n       -       n       300     1       qmgr
    #qmgr     unix  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       y       1000?   1       tlsmgr
    rewrite   unix  -       -       y       -       -       trivial-rewrite
    bounce    unix  -       -       y       -       0       bounce
    defer     unix  -       -       y       -       0       bounce
    trace     unix  -       -       y       -       0       bounce
    verify    unix  -       -       y       -       1       verify
    flush     unix  n       -       y       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       y       -       -       smtp
    relay     unix  -       -       y       -       -       smtp
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       y       -       -       showq
    error     unix  -       -       y       -       -       error
    retry     unix  -       -       y       -       -       error
    discard   unix  -       -       y       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       y       -       -       lmtp
    anvil     unix  -       -       y       -       1       anvil
    scache    unix  -       -       y       -       1       scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # ====================================================================
    # Old example of delivery via Cyrus.
    #
    #old-cyrus unix  -       n       n       -       -       pipe
    #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    #
    # ====================================================================
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix    -    n    n    -    2    pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    amavis unix - - - - 2 smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
            -o smtp_bind_address=
    127.0.0.1:10025 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtp_send_xforward_command=yes
            -o disable_dns_lookups=yes
    127.0.0.1:10027 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtp_send_xforward_command=yes
            -o milter_default_action=accept
            -o milter_macro_daemon_name=ORIGINATING
            -o disable_dns_lookups=yes
    
     
  4. mychael

    mychael Member HowtoForge Supporter

    Test script:
    Code:
    ##### SCRIPT FINISHED #####
    Results can be found in htf_report.txt
    To view results use your favourite text editor or type 'cat htf_report.txt | more' on the server console.
    If you want to see the non-anonymized output start the script with --debug as parameter (php -q htf-common-issues.php --debug).
    root@commoncollective:/home/mychael# cat htf_report.txt
    ##### 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.1dev
    ##### VERSION CHECK #####
    [INFO] php (cli) version is 7.0.33-0+deb9u3
    ##### PORT CHECK #####
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    ##### MAIL SERVER CHECK #####
    ##### RUNNING SERVER PROCESSES #####
    [INFO] I found the following web server(s):
    	Apache 2 (PID 8638)
    [WARN] I could not determine which mail server is running.
    [INFO] I found the following pop3 server(s):
    	Dovecot (PID 10989)
    [INFO] I found the following imap server(s):
    	Dovecot (PID 10989)
    [INFO] I found the following ftp server(s):
    	PureFTP (PID 12082)
    ##### LISTENING PORTS #####
    (only		()
    Local		(Address)
    [localhost]:10023		(13751/postgrey)
    [localhost]:10024		(5509/amavisd-new)
    [localhost]:10025		(1088/perl)
    [localhost]:10026		(5509/amavisd-new)
    [localhost]:11211		(867/memcached)
    [anywhere]:110		(10989/dovecot)
    [anywhere]:143		(10989/dovecot)
    [anywhere]:21		(12082/pure-ftpd)
    ***.***.***.***:53		(31512/named)
    ***.***.***.***:53		(31512/named)
    ***.***.***.***:53		(31512/named)
    [localhost]:53		(31512/named)
    [anywhere]:22		(7959/sshd)
    [localhost]:953		(31512/named)
    [anywhere]:993		(10989/dovecot)
    [anywhere]:995		(10989/dovecot)
    *:*:*:*::*:10023		(13751/postgrey)
    *:*:*:*::*:10024		(5509/amavisd-new)
    *:*:*:*::*:3306		(7316/mysqld)
    *:*:*:*::*:10026		(5509/amavisd-new)
    [localhost]10		(10989/dovecot)
    [localhost]43		(10989/dovecot)
    *:*:*:*::*:80		(8638/apache2)
    *:*:*:*::*:8080		(8638/apache2)
    *:*:*:*::*:8081		(8638/apache2)
    *:*:*:*::*:21		(12082/pure-ftpd)
    *:*:*:*::*:53		(31512/named)
    *:*:*:*::*:22		(7959/sshd)
    *:*:*:*::*:953		(31512/named)
    *:*:*:*::*:443		(8638/apache2)
    *:*:*:*::*:993		(10989/dovecot)
    *:*:*:*::*:995		(10989/dovecot)
    
     
  5. mychael

    mychael Member HowtoForge Supporter

    test script continued:

    Code:
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target     prot opt source               destination         
    f2b-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21
    f2b-postfix-sasl  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 25
    f2b-sshd   tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    ufw-before-logging-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-input  all  --  [anywhere]/0            [anywhere]/0           
    Chain FORWARD (policy DROP)
    target     prot opt source               destination         
    ufw-before-logging-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-forward  all  --  [anywhere]/0            [anywhere]/0           
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    ufw-before-logging-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-output  all  --  [anywhere]/0            [anywhere]/0           
    Chain f2b-postfix-sasl (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    Chain f2b-pureftpd (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    Chain f2b-sshd (1 references)
    target     prot opt source               destination         
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***          [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***         [anywhere]/0            reject-with icmp-port-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-after-forward (1 references)
    target     prot opt source               destination         
    Chain ufw-after-input (1 references)
    target     prot opt source               destination         
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:137
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:138
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:139
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:445
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:67
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:68
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    Chain ufw-after-logging-forward (1 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    Chain ufw-after-logging-input (1 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    Chain ufw-after-logging-output (1 references)
    target     prot opt source               destination         
    Chain ufw-after-output (1 references)
    target     prot opt source               destination         
    Chain ufw-before-forward (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 4
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ufw-user-forward  all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-before-input (1 references)
    
     
  6. mychael

    mychael Member HowtoForge Supporter

    testscript 3/3:

    Code:
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    DROP       all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 4
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp spt:67 dpt:68
    ufw-not-local  all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***          udp dpt:5353
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***      udp dpt:1900
    ufw-user-input  all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-before-logging-forward (1 references)
    target     prot opt source               destination         
    Chain ufw-before-logging-input (1 references)
    target     prot opt source               destination         
    Chain ufw-before-logging-output (1 references)
    target     prot opt source               destination         
    Chain ufw-before-output (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-user-output  all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-logging-allow (0 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "
    Chain ufw-logging-deny (2 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID limit: avg 3/min burst 10
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    Chain ufw-not-local (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type LOCAL
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type MULTICAST
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-reject-forward (1 references)
    target     prot opt source               destination         
    Chain ufw-reject-input (1 references)
    target     prot opt source               destination         
    Chain ufw-reject-output (1 references)
    target     prot opt source               destination         
    Chain ufw-skip-to-policy-forward (0 references)
    target     prot opt source               destination         
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-skip-to-policy-input (7 references)
    target     prot opt source               destination         
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-skip-to-policy-output (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-track-forward (1 references)
    target     prot opt source               destination         
    Chain ufw-track-input (1 references)
    target     prot opt source               destination         
    Chain ufw-track-output (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    Chain ufw-user-forward (1 references)
    target     prot opt source               destination         
    Chain ufw-user-input (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:20
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:21
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:22
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:80
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:110
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:143
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:443
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:3306
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8080
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:10000
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 40110:40210
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:53
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:3306
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:587
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:993
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:995
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8081
    Chain ufw-user-limit (0 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    REJECT     all  --  [anywhere]/0            [anywhere]/0            reject-with icmp-port-unreachable
    Chain ufw-user-limit-accept (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    Chain ufw-user-logging-forward (0 references)
    target     prot opt source               destination         
    Chain ufw-user-logging-input (0 references)
    target     prot opt source               destination         
    Chain ufw-user-logging-output (0 references)
    target     prot opt source               destination         
    Chain ufw-user-output (1 references)
    target     prot opt source               destination  
    
     
  7. mychael

    mychael Member HowtoForge Supporter

    - Do you use dovecot or courier as imap and pop3 server?

    I believe dovecot, but I'm not sure.

    - Are you able to send and receive emails with webmail? A easy test if the local mailsystem works is to login to webmail with a account hosted on the server and send a email to the same address that you used to login to webmail. The email shall arrive within a minute back to your account when the local mailsystem works. If the email does not arrive, then check the mail.log as described below.

    No. I do not receive the email. Here is the error log from that event:
    Code:
    May 14 23:52:09 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12463, secured, session=<Zr+mlueIEOkAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:09 comcol dovecot: imap(info@r**k.com): Logged out in=272 out=1390
    May 14 23:52:14 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12465, secured, session=<CI3olueIEukAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:14 comcol dovecot: imap(info@r**k.com): Logged out in=32 out=485
    May 14 23:52:14 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12467, secured, session=<kVHplueIFOkAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:14 comcol dovecot: imap(info@r**k.com): Logged out in=44 out=592
    May 14 23:52:30 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12473, secured, session=<EyDdl+eIFukAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:30 comcol dovecot: imap(info@r**k.com): Logged out in=455 out=640
    May 14 23:52:30 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12475, secured, session=<nGXnl+eIGOkAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:30 comcol dovecot: imap(info@r**k.com): Logged out in=70 out=633
    May 14 23:52:31 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12477, secured, session=<cC/ql+eIGukAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:31 comcol dovecot: imap(info@r**k.com): Logged out in=76 out=546
    May 14 23:52:31 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12479, secured, session=<3njql+eIHOkAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:31 comcol dovecot: imap(info@r**k.com): Logged out in=120 out=766
    May 14 23:52:36 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=12481, secured, session=</ro3mOeIHukAAAAAAAAAAAAAAAAAAAAB>
    May 14 23:52:36 comcol dovecot: imap(info@r**k.com): Logged out in=272 out=1390
    
    
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Is that logfile /var/log/mail.log? Strange that it has only dovecot lines.
    But the test script shows you do not have a mail server running, so that explains that.
    What shows
    Code:
    systemctl status postfix
    systemctl --state=failed
    
     
  9. mychael

    mychael Member HowtoForge Supporter

    Hi Taleman, here is what comes up with those commands:

    systemctl status postfix
    Code:
    ● postfix.service - Postfix Mail Transport Agent
    
       Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
    
       Active: active (exited) since Wed 2019-05-15 00:40:55 PDT; 50s ago
    
      Process: 31074 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
    
     Main PID: 31074 (code=exited, status=0/SUCCESS)
    
    
    May 15 00:40:55 comcol systemd[1]: Starting Postfix Mail Transport Agent...
    
    May 15 00:40:55 comcol systemd[1]: Started Postfix Mail Transport Agent.
    
    systemctl --state=failed
    Code:
      UNIT              LOAD   ACTIVE SUB    DESCRIPTION                            
    
    ● [email protected] loaded failed failed Postfix Mail Transport Agent (instance -)
    
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    
    SUB    = The low-level unit activation state, values depend on unit type.
    
    
    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    
    To show all installed unit files use 'systemctl list-unit-files'.
    
    
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Try
    Code:
    systemctl restart postix
    and read what the command outputs and check what appears in files /var/log/mail.log and /var/log/syslog.
     
  11. mychael

    mychael Member HowtoForge Supporter

    I ran systemctl restart postfix and this is the /var/log/mail.log event log:
    Code:
    May 15 09:44:27 commoncollective postfix/postfix-script[28846]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20190209223009.bak
    
    May 15 09:44:27 commoncollective postfix/postfix-script[28849]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    
    May 15 09:44:27 commoncollective postfix/postfix-script[28852]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    
    May 15 09:44:27 commoncollective postfix/postfix-script[28901]: starting the Postfix mail system
    
    May 15 09:44:27 commoncollective postfix/master[28903]: fatal: bind 127.0.0.1 port 10025: Address already in use
    
    May 15 09:44:28 commoncollective postfix/master[28902]: fatal: daemon initialization failure
    
    May 15 09:44:29 commoncollective postfix/postfix-script[28904]: fatal: mail system startup failed
    
    /var/log/syslog:
    Code:
    May 15 09:44:09 comcol systemd[1]: Started Session 308278 of user meadmin.
    May 15 09:44:26 comcol systemd[1]: Stopped Postfix Mail Transport Agent.
    May 15 09:44:26 comcol systemd[1]: Stopping Postfix Mail Transport Agent...
    May 15 09:44:26 comcol systemd[1]: Starting Postfix Mail Transport Agent (instance -)...
    May 15 09:44:27 comcol postfix/postfix-script[28846]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20190209223009.bak
    May 15 09:44:27 comcol postfix/postfix-script[28849]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    May 15 09:44:27 comcol postfix/postfix-script[28852]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    May 15 09:44:27 comcol postfix/postfix-script[28901]: starting the Postfix mail system
    May 15 09:44:27 comcol postfix/master[28903]: fatal: bind 127.0.0.1 port 10025: Address already in use
    May 15 09:44:28 comcol postfix/master[28902]: fatal: daemon initialization failure
    May 15 09:44:29 comcol postfix/postfix-script[28904]: fatal: mail system startup failed
    May 15 09:44:30 comcol systemd[1]: [email protected]: Control process exited, code=exited status=1
    May 15 09:44:30 comcol systemd[1]: Failed to start Postfix Mail Transport Agent (instance -).
    May 15 09:44:30 comcol systemd[1]: [email protected]: Unit entered failed state.
    May 15 09:44:30 comcol systemd[1]: [email protected]: Failed with result 'exit-code'.
    May 15 09:44:30 comcol systemd[1]: Starting Postfix Mail Transport Agent...
    May 15 09:44:30 comcol systemd[1]: Started Postfix Mail Transport Agent.
    May 15 09:45:01 comcol CRON[28923]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    May 15 09:45:01 comcol CRON[28924]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    May 15 09:45:01 comcol CRON[28925]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    May 15 09:45:01 comcol postfix/postqueue[28976]: warning: Mail system is down -- accessing queue directly
    May 15 09:45:01 comcol pure-ftpd: (?@::1) [INFO] New connection from ::1
    May 15 09:45:01 comcol pure-ftpd: (?@::1) [ERROR] Can't open /etc/pure-ftpd/welcome.msg
    May 15 09:45:01 comcol pure-ftpd: (?@::1) [DEBUG] Command [quit] []
    May 15 09:45:01 comcol pure-ftpd: (?@::1) [INFO] Logout.
    May 15 09:45:01 comcol dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<0+Pk3u+I0oIAAAAAAAAAAAAAAAAAAAAB>
    May 15 09:45:01 comcol dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<rfTk3u+IgN0AAAAAAAAAAAAAAAAAAAAB>
    May 15 09:45:04 comcol dhclient[701]: DHCPREQUEST of 192.168.1.229 on enp2s0 to 192.168.1.1 port 67
    May 15 09:45:04 comcol dhclient[701]: DHCPACK of 192.168.1.229 from 192.168.1.1
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8734] dhcp4 (enp2s0):   address 192.168.1.229
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8735] dhcp4 (enp2s0):   plen 24 (255.255.255.0)
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8735] dhcp4 (enp2s0):   gateway 192.168.1.1
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8735] dhcp4 (enp2s0):   server identifier 192.168.1.1
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8736] dhcp4 (enp2s0):   lease time 86400
    May 15 09:45:04 comcol dbus[609]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8736] dhcp4 (enp2s0):   hostname 'comcol'
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8736] dhcp4 (enp2s0):   nameserver '192.168.1.1'
    May 15 09:45:04 comcol NetworkManager[622]: <info>  [1557938704.8736] dhcp4 (enp2s0): state changed bound -> bound
    May 15 09:45:04 comcol systemd[1]: Starting Network Manager Script Dispatcher Service...
    May 15 09:45:04 comcol dhclient[701]: bound to 192.168.1.229 -- renewal in 39205 seconds.
    May 15 09:45:04 comcol dbus[609]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    May 15 09:45:04 comcol systemd[1]: Started Network Manager Script Dispatcher Service.
    May 15 09:45:04 comcol nm-dispatcher: req:1 'dhcp4-change' [enp2s0]: new request (2 scripts)
    May 15 09:45:04 comcol nm-dispatcher: req:1 'dhcp4-change' [enp2s0]: start running ordered scripts...
    May 15 09:46:01 comcol CRON[29034]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    May 15 09:46:01 comcol CRON[29035]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    
     
  12. mychael

    mychael Member HowtoForge Supporter

    Thank you Taleman for your help on this. I feel like these two lines are probably my main problem... more googling now.
    Code:
    May 15 09:44:27 comcol postfix/master[28903]: fatal: bind 127.0.0.1 port 10025: Address already in use
    May 15 09:44:28 comcol postfix/master[28902]: fatal: daemon initialization failure
    May 15 09:44:29 comcol postfix/postfix-script[28904]: fatal: mail system startup failed
    
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    On your server is a software running which seems to be written in perl that uses port 10025. Do you know which software is using that port on your server? The port is used by postfix on ispconfig setups.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    And which tutorial did you use to install the server and was the server really empty when you started with that tutorial?
     
  15. mychael

    mychael Member HowtoForge Supporter

    I think it might be SpamPD https://github.com/mpaperno/spampd, but I'm not 100% sure...


    Ok. I know it was SpamPD now. Awhile ago I tried installing via two different methods The Perfect Debian 9 Stretch server: https://www.howtoforge.com/tutorial...-9-stretch-apache-bind-dovecot-ispconfig-3-1/ and then again with the automated install: https://www.howtoforge.com/tutorial/ispconfig-automated-install-script/ ... I only need a quick webserver at the time (a few months ago) and didn't have any need for the mail server, so I overlooked the end where you need to remove SpamPD and postfix appears to be working.

    I'm able to send and receive emails inside the server. However, I'm not 100% out of the woods yet, I cannot send nor receive email outside of the server.

    Here /var/log/mail.log from the last event:
    Code:
    May 15 22:13:52 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6421, secured, session=<giIAVfqIlI8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:13:52 comcol dovecot: imap(info@r**k.com): Logged out in=119 out=1065
    May 15 22:13:58 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6423, secured, session=<35RcVfqIlo8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:13:58 comcol dovecot: imap(info@r**k.com): Logged out in=341 out=1991
    May 15 22:14:00 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6425, secured, session=<1ol6VfqImI8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:00 comcol dovecot: imap(info@r**k.com): Logged out in=32 out=485
    May 15 22:14:00 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6427, secured, session=<mfR7VfqImo8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:00 comcol dovecot: imap(info@r**k.com): Logged out in=44 out=592
    May 15 22:14:07 comcol postfix/qmgr[5666]: 430C6E0264: from=<info@r**k.com>, size=1090, nrcpt=1 (queue active)
    May 15 22:14:07 comcol postfix/qmgr[5666]: 556D3E0026: from=<info@r**k.com>, size=1087, nrcpt=1 (queue active)
    May 15 22:14:07 comcol postfix/qmgr[5666]: E78C2E0A03: from=<info@r**k.com>, size=1099, nrcpt=1 (queue active)
    May 15 22:14:07 comcol postfix/qmgr[5666]: AA319E212F: from=<info@r**k.com>, size=1084, nrcpt=1 (queue active)
    May 15 22:14:07 comcol postfix/qmgr[5666]: 7AA28E0117: from=<info@r**k.com>, size=1087, nrcpt=1 (queue active)
    May 15 22:14:16 comcol postfix/pickup[5665]: 79F17E12D0: uid=33 from=<info@r**k.com>
    May 15 22:14:16 comcol postfix/cleanup[6468]: 79F17E12D0: message-id=<df2d08b9b82db01508a11458a20fe0ae@r**k.com>
    May 15 22:14:16 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6470, secured, session=<V1ppVvqIrI8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:16 comcol postfix/qmgr[5666]: 79F17E12D0: from=<info@r**k.com>, size=537, nrcpt=1 (queue active)
    May 15 22:14:16 comcol dovecot: imap(info@r**k.com): Logged out in=453 out=641
    May 15 22:14:17 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6475, secured, session=<3OtzVvqIto8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:17 comcol dovecot: imap(info@r**k.com): Logged out in=70 out=633
    May 15 22:14:17 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6478, secured, session=<+ht3VvqIuI8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:17 comcol dovecot: imap(info@r**k.com): Logged out in=318 out=2872
    May 15 22:14:17 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6480, secured, session=<G4J3VvqIuo8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:17 comcol dovecot: imap(info@r**k.com): Logged out in=120 out=766
    May 15 22:14:17 comcol postfix/smtpd[6483]: connect from localhost[127.0.0.1]
    May 15 22:14:17 comcol postfix/smtpd[6483]: C52D3E0CD6: client=localhost[127.0.0.1]
    May 15 22:14:17 comcol postfix/cleanup[6468]: C52D3E0CD6: message-id=<df2d08b9b82db01508a11458a20fe0ae@r**k.com>
    May 15 22:14:17 comcol postfix/smtpd[6483]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    May 15 22:14:17 comcol postfix/qmgr[5666]: C52D3E0CD6: from=<info@r**k.com>, size=1057, nrcpt=1 (queue active)
    May 15 22:14:17 comcol amavis[5843]: (05843-02) Passed CLEAN {RelayedOutbound}, LOCAL [127.0.0.1] <info@r**k.com> -> <[email protected]>, Message-ID: <df2d08b9b82db01508a11458a20fe0ae@r**k.com>, mail_id: D2F8c-JekR7a, Hits: 2.038, size: 537, queued_as: C52D3E0CD6, 1307 ms
    May 15 22:14:17 comcol postfix/smtp[6471]: 79F17E12D0: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.01/0.01/0/1.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as C52D3E0CD6)
    May 15 22:14:17 comcol postfix/qmgr[5666]: 79F17E12D0: removed
    May 15 22:14:17 comcol postfix/smtp[6484]: connect to mx2.comcast.net[2001:558:fe21:2a::6]:25: Network is unreachable
    May 15 22:14:20 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6486, secured, session=</Q6iVvqIyI8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:20 comcol dovecot: imap(info@r**k.com): Logged out in=640 out=5178
    May 15 22:14:20 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6488, secured, session=<D+mlVvqIyo8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:20 comcol dovecot: imap(info@r**k.com): Logged out in=54 out=819
    May 15 22:14:20 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6490, secured, session=<ZUGmVvqIzI8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:20 comcol dovecot: imap(info@r**k.com): Logged out in=120 out=766
    May 15 22:14:37 comcol postfix/smtp[6461]: connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out
    May 15 22:14:37 comcol postfix/smtp[6462]: connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out
    May 15 22:14:37 comcol postfix/smtp[6459]: connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out
    May 15 22:14:37 comcol postfix/smtp[6463]: connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out
    May 15 22:14:37 comcol postfix/smtp[6460]: connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out
    May 15 22:14:37 comcol postfix/smtp[6463]: 7AA28E0117: to=<[email protected]>, relay=none, delay=599, delays=569/0.04/30/0, dsn=4.4.1, status=deferred (connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out)
    May 15 22:14:37 comcol postfix/smtp[6462]: AA319E212F: to=<[email protected]>, relay=none, delay=613, delays=583/0.04/30/0, dsn=4.4.1, status=deferred (connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out)
    May 15 22:14:37 comcol postfix/smtp[6461]: E78C2E0A03: to=<[email protected]>, relay=none, delay=575, delays=545/0.03/30/0, dsn=4.4.1, status=deferred (connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out)
    May 15 22:14:37 comcol postfix/smtp[6459]: 430C6E0264: to=<[email protected]>, relay=none, delay=584, delays=554/0.02/30/0, dsn=4.4.1, status=deferred (connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out)
    May 15 22:14:37 comcol postfix/smtp[6460]: 556D3E0026: to=<[email protected]>, relay=none, delay=614, delays=584/0.03/30/0, dsn=4.4.1, status=deferred (connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out)
    May 15 22:14:39 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6501, secured, session=<U5/DV/qI2o8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:39 comcol dovecot: imap(info@r**k.com): Logged out in=70 out=633
    May 15 22:14:39 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6505, secured, session=<9GLHV/qI3I8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:39 comcol dovecot: imap-login: Login: user=<info@r**k.com>, method=PLAIN, rip=::1, lip=::1, mpid=6506, secured, session=<F3XHV/qI3o8AAAAAAAAAAAAAAAAAAAAB>
    May 15 22:14:39 comcol dovecot: imap(info@r**k.com): Logged out in=120 out=766
    May 15 22:14:39 comcol dovecot: imap(info@r**k.com): Logged out in=318 out=2877
    May 15 22:14:47 comcol postfix/smtp[6484]: connect to mx2.comcast.net[68.87.20.5]:25: Connection timed out
    
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if connections to port 25 outgoing are blocked. Where do you host that server, it might be that the ISP where you host it blocks port 25 outgoing, e.g. amazon cloud is doing that if I remember correctly, or you host the server at home or in office and the internet ISP that proviodes the internet connection blocks port 25.
     
    mychael likes this.
  17. mychael

    mychael Member HowtoForge Supporter

    You're awesome my friend! If I may ask, how did you figure that out? I thought for sure my ISP wasn't blocking port 25, I've read that everywhere. Contact ISP and asked them, and sure enough... Unblocked port 25 and voila! Thanks so much for your help. I greatly appreciate all the support you and Taleman give around here.
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    The relevant line from log was this:

    Code:
    May 15 22:14:37 comcol postfix/smtp[6463]: 7AA28E0117: to=<[email protected]>, relay=none, delay=599, delays=569/0.04/30/0, dsn=4.4.1, status=deferred (connect to mail.comcol.COM[1**.1*.1*.1*]:25: Connection timed out)
    Your server tried to connect to the other server on port 25 and the connection timed out. Such an error is caused in most cases by a blocked network port.
     
    mychael likes this.
  19. mychael

    mychael Member HowtoForge Supporter

    Ok. That makes sense. Thank you!

    Final question, for now... Should I look into trying to use mail on a different port than 25? From my understanding, everyone disables it because it's not secure(?).
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Port 25 is the port that mail systems use to communicate with each other, so this port must be open when a server is used as mail server. What you refer to is the connection from mail client to mail server, this is done on port 587 today (the submission port) which is SSL encrypted and already configured. So for your mail client, you use port 587. But port 25 must stay open as that's the port that other servers will use to connect to your server to deliver mail.
     
    mychael likes this.

Share This Page