on new centos 8 server suddenly mail transport not working....

Discussion in 'ISPConfig 3 Priority Support' started by craig baker, Oct 23, 2021.

  1. craig baker

    craig baker Member HowtoForge Supporter

    (see non threatening subject :)
    Wow thought all was good on a new server, but mail clearly is NOT working.
    whats the code tag for putting in big blocks? I'll post all relevant information!
    errors from maillog:
    Code:
    AAAAAAB>
    Oct 23 15:05:09 ns2 postfix/smtpd[1650664]: connect from unknown[212.192.241.186]
    Oct 23 15:05:11 ns2 postfix/smtpd[1650664]: warning: unknown[212.192.241.186]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Oct 23 15:05:11 ns2 postfix/smtpd[1650664]: disconnect from unknown[212.192.241.186] ehlo=1 auth=0/1 quit=1 commands=2/3
    Oct 23 15:06:02 ns2 postfix/anvil[1649202]: statistics: max connection rate 1/60s for (smtp:195.133.40.41) at Oct 23 14:56:20
    Oct 23 15:06:02 ns2 postfix/anvil[1649202]: statistics: max connection count 1 for (smtp:195.133.40.41) at Oct 23 14:56:20
    Oct 23 15:06:02 ns2 postfix/anvil[1649202]: statistics: max message rate 1/60s for (smtp:147.253.220.155) at Oct 23 14:59:43
    Oct 23 15:06:02 ns2 postfix/anvil[1649202]: statistics: max cache size 3 at Oct 23 15:00:32
    Oct 23 15:09:17 ns2 postfix/smtpd[1651066]: connect from unknown[31.210.20.48]
    Oct 23 15:09:19 ns2 postfix/smtpd[1651066]: warning: unknown[31.210.20.48]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Oct 23 15:09:19 ns2 postfix/smtpd[1651066]: disconnect from unknown[31.210.20.48] ehlo=1 auth=0/1 quit=1 commands=2/3
    Oct 23 15:09:44 ns2 clamd[1657]: SelfCheck: Database status OK.
    Oct 23 15:09:59 ns2 postfix/qmgr[1644624]: 736092023C2AF0: from=<[email protected]>, size=2262, nrcpt=1 (queue active)
    Oct 23 15:09:59 ns2 postfix/qmgr[1644624]: warning: private/smtp socket: malformed response
    Oct 23 15:09:59 ns2 postfix/qmgr[1644624]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
    Oct 23 15:09:59 ns2 postfix/master[1644622]: warning: process /usr/libexec/postfix/smtp pid 1651073 killed by signal 11
    Oct 23 15:09:59 ns2 postfix/master[1644622]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
    Oct 23 15:09:59 ns2 postfix/error[1651074]: 736092023C2AF0: to=<[email protected]>, relay=none, delay=7705, delays=7705/0.52/0/0.04, dsn=4.3.0, status=deferred (unknown mail transport error)
    the various warning transport errors - ???

    now postgrey was NOT listening on 10023 I modified /etc/sysconfig/postgrey:
    Code:
    # Postgrey offers 2 listening types, --inet and --unix. As default, Fedora
    # postgrey works under UNIX socket, but, changing to TCP socket on user's own
    # is also available, for instance, let it work at 10023 port of localhost:
    #   --inet=10023
    # To be more detailed, there is another way if you still run it at localhost:
    #   --inet=127.0.0.1:10023
    #POSTGREY_TYPE="--unix=/var/spool/postfix/postgrey/socket"
    POSTGREY_TYPE="--inet=10023"
    # If postgrey works under UNIX socket way, PID file can be specified to
    # custom location, note that no need to set this if postgrey is working
    # under TCP socket way.
    POSTGREY_PID="--pidfile=/var/run/postgrey.pid"
    
    # Name of group which postgrey belongs, default is postgrey
    POSTGREY_GROUP="--group=postgrey"
    
    # Name of user which postgrey belongs, default is postgrey
    POSTGREY_USER="--user=postgrey"
    
    # DELAY
    POSTGREY_DELAY="--delay=60"
    
    # For more options can be used, please read manpage or execute `postgrey -h`.
    # Custom options.
    POSTGREY_OPTS="--inet=127.0.0.1:10023"
    changed the _TYPE and _OPTS as below. then it was listening:

    /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       -       n       -       -       smtpd
    #smtp      inet  n       -       n       -       1       postscreen
    #smtpd     pass  -       -       n       -       -       smtpd
    #dnsblog   unix  -       -       n       -       0       dnsblog
    #tlsproxy  unix  -       -       n       -       0       tlsproxy
    submission inet n       -       n       -       -       smtpd
      -o syslog_name=postfix/submission
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_tls_auth_only=yes
    #  -o smtpd_reject_unlisted_recipient=no
       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -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       -       n       -       -       smtpd
      -o syslog_name=postfix/smtps
      -o smtpd_tls_wrappermode=yes
      -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_reject_unlisted_recipient=no
       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -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       -       n       -       -       qmqpd
    pickup    unix  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      unix  n       -       n       300     1       qmgr
    #qmgr     unix  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    when I do netstat:
    Code:
    [root@ns2 postfix]# netstat -tap | more
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name  
    tcp        0      0 0.0.0.0:pop3            0.0.0.0:*               LISTEN      2120/dovecot      
    tcp        0      0 0.0.0.0:imap            0.0.0.0:*               LISTEN      2120/dovecot      
    tcp        0      0 0.0.0.0:urd             0.0.0.0:*               LISTEN      1644622/master    
    tcp        0      0 ns2.olsheskygrou:domain 0.0.0.0:*               LISTEN      1611/named        
    tcp        0      0 localhost:domain        0.0.0.0:*               LISTEN      1611/named        
    tcp        0      0 0.0.0.0:ftp             0.0.0.0:*               LISTEN      1542/pure-ftpd    
    tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      1518/sshd          
    tcp        0      0 0.0.0.0:smtp            0.0.0.0:*               LISTEN      1644622/master    
    tcp        0      0 localhost:rndc          0.0.0.0:*               LISTEN      1611/named        
    tcp        0      0 0.0.0.0:microsoft-ds    0.0.0.0:*               LISTEN      2451863/smbd      
    tcp        0      0 0.0.0.0:imaps           0.0.0.0:*               LISTEN      2120/dovecot      
    tcp        0      0 0.0.0.0:pop3s           0.0.0.0:*               LISTEN      2120/dovecot      
    tcp        0      0 localhost:10023         0.0.0.0:*               LISTEN      1641932/postgrey --
    tcp        0      0 localhost:10024         0.0.0.0:*               LISTEN      1642512/amavisd (ma
    tcp        0      0 localhost:10025         0.0.0.0:*               LISTEN      1644622/master    
    tcp        0      0 0.0.0.0:rsync           0.0.0.0:*               LISTEN      1984/rsync        
    tcp        0      0 localhost:10026         0.0.0.0:*               LISTEN      1642512/amavisd (ma
    tcp        0      0 localhost:10027         0.0.0.0:*               LISTEN      1644622/master    
    tcp        0      0 0.0.0.0:submission      0.0.0.0:*               LISTEN      1644622/master    
    tcp        0      0 0.0.0.0:netbios-ssn     0.0.0.0:*               LISTEN      2451863/smbd      
    tcp        0      0 ns2.olsheskygroup.:smtp tvsection.impactf:61033 SYN_RECV    -                  
    tcp        0      0 ns2.olsheskygroup.:smtp tvsection.impactf:60994 SYN_RECV    -                  
    tcp        0      0 localhost:40610         localhost:mysql         ESTABLISHED 1642518/amavisd (ch
    tcp        0      0 localhost:40594         localhost:mysql         ESTABLISHED 1642517/amavisd (ch
    tcp        0      0 ns2.olsheskygroup.:smtp 37.0.10.7:63698         TIME_WAIT   -                  
    tcp        0     64 ns2.olsheskygroup.c:ssh ns10.cdbsystems.c:57633 ESTABLISHED 1651385/sshd: cdb [
    tcp        0      0 localhost:42250         localhost:10023         TIME_WAIT   -                  
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      2120/dovecot      
    tcp6       0      0 [::]:imap               [::]:*                  LISTEN      2120/dovecot      
    tcp6       0      0 [::]:webcache           [::]:*                  LISTEN      1981/httpd        
    tcp6       0      0 [::]:http               [::]:*                  LISTEN      1981/httpd        
    tcp6       0      0 [::]:urd                [::]:*                  LISTEN      1644622/master    
    tcp6       0      0 [::]:tproxy             [::]:*                  LISTEN      1981/httpd        
    tcp6       0      0 [::]:domain             [::]:*                  LISTEN      1611/named        
    tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      1542/pure-ftpd    
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1518/sshd          
    tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      1644622/master    
    tcp6       0      0 localhost:rndc          [::]:*                  LISTEN      1611/named        
    tcp6       0      0 [::]:https              [::]:*                  LISTEN      1981/httpd        
    tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN      2451863/smbd      
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      2120/dovecot      
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      2120/dovecot      
    tcp6       0      0 localhost:10024         [::]:*                  LISTEN      1642512/amavisd (ma
    tcp6       0      0 [::]:rsync              [::]:*                  LISTEN      1984/rsync        
    tcp6       0      0 localhost:10026         [::]:*                  LISTEN      1642512/amavisd (ma
    tcp6       0      0 [::]:mysql              [::]:*                  LISTEN      1606/mysqld        
    tcp6       0      0 [::]:submission         [::]:*                  LISTEN      1644622/master    
    tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN      2451863/smbd      
    tcp6       0      0 localhost:mysql         localhost:40610         ESTABLISHED 1606/mysqld        
    tcp6       0      0 localhost:mysql         localhost:40594         ESTABLISHED 1606/mysqld     
    so O great till why is my mail not working?? postgrey is now listening on 10023 (it was not before I edited postgrey)

    many humble thanks :)
     
    Last edited: Oct 23, 2021
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It's code. Or click on the insert Icon of the editor and choose Code.
     

Share This Page