amavis connection refused the mail is deferred

Discussion in 'Installation/Configuration' started by Oitsuki, Apr 4, 2020.

  1. Oitsuki

    Oitsuki Member

    Hello
    I am looking this feed because I have the same problem https://www.howtoforge.com/community/threads/amavis-10026-connection-refused.82202/#post-389727
    Could you help to resolve this.
    thank you
    Code:
    [email protected]:~# mailq
    -Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
    AB6431D40072      693 Sat Apr  4 15:57:12  [email protected]
                       (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
                                             [email protected]
    
    -- 0 Kbytes in 1 Request.
    [email protected]:~# netstat -tulpn | grep master
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      20043/master      
    tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      20043/master      
    tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      20043/master      
    tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      20043/master      
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      20043/master      
    tcp6       0      0 :::587                  :::*                    LISTEN      20043/master      
    tcp6       0      0 :::465                  :::*                    LISTEN      20043/master      
    tcp6       0      0 :::25                   :::*                    LISTEN      20043/master      
    [email protected]:~# netstat -tap | grep 100
    tcp        0      0 localhost:10027         0.0.0.0:*               LISTEN      20043/master      
    tcp        0      0 localhost:9100          0.0.0.0:*               LISTEN      711/noderig        
    tcp        0      0 localhost:10024         0.0.0.0:*               LISTEN      26832/amavisd-new (
    tcp        0      0 localhost:10025         0.0.0.0:*               LISTEN      20043/master      
    tcp        0      0 localhost:10026         0.0.0.0:*               LISTEN      26832/amavisd-new (
    tcp        0      0 localhost:9100          localhost:36478         ESTABLISHED 711/noderig        
    tcp        0      0 localhost:36478         localhost:9100          ESTABLISHED 533/beamium        
    tcp6       0      0 localhost:10024         [::]:*                  LISTEN      26832/amavisd-new (
    tcp6       0      0 localhost:10026         [::]:*                  LISTEN      26832/amavisd-new (
    
    and

    Code:
    ps aux | grep amavis
    amavis    1267  0.0  0.0  11736  7220 ?        S    févr.26   0:11 /usr/bin/perl -T /usr/sbin/amavis-mc -P /var/run/amavis/amavis-mc.pid
    amavis   26832  0.3  0.8 163472 139096 ?       Ss   16:02   0:01 /usr/sbin/amavisd-new (master)
    amavis   26850  0.0  0.8 165100 138340 ?       S    16:02   0:00 /usr/sbin/amavisd-new (ch1-avail)
    amavis   26851  0.0  0.8 164960 135336 ?       S    16:02   0:00 /usr/sbin/amavisd-new (virgin child)
    root     27475  0.0  0.0   6848   828 pts/0    S+   16:10   0:00 grep amavis
    
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you have the same problem, does the same fix work?
     
  3. Oitsuki

    Oitsuki Member

    because I do not know if it s exactly the same problem and I do not want to make a mistake.
     
  4. Oitsuki

    Oitsuki Member

    Seems work fine now

    content_filter in 10024 and 10026

    Code:
    ontent_filter = amavis:[127.0.0.1]:10024
    #content_filter = amavis:[127.0.0.1]:10026
    
    ###################################
    smtp_header_checks = regexp:/etc/postfix/smtp_header_checks
    #defer_transports = hold
    #default_transport = hold
    
    now
    Code:
    Restarting amavis (via systemctl): amavis.service.
    [email protected]:/etc/postfix# netstat -tulpn | grep master
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      20938/master       
    tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      20938/master       
    tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      20938/master       
    tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      20938/master       
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      20938/master       
    tcp6       0      0 :::587                  :::*                    LISTEN      20938/master       
    tcp6       0      0 :::465                  :::*                    LISTEN      20938/master       
    tcp6       0      0 :::25                   :::*                    LISTEN      20938/master   
     

Share This Page