[SOLVED] Amavis port 10026 not available

Discussion in 'General' started by ccerrillo, Sep 17, 2021.

Tags:
  1. ccerrillo

    ccerrillo New Member

    I have a very strange problem with ispconfig 3.2.6 with debian 11, i can see in debug mode that the file /etc/amavis/conf.d/50-user is not loaded by amavis:

    Code:
    config files read: /usr/share/amavis/conf.d/10-debian_scripts, /usr/share/amavis/conf.d/20-package, /etc/amavis/conf.d/01-debian, /etc/amavis/conf.d/05-domain_id, /etc/amavis/conf.d/05-node_id, /etc/amavis/conf.d/15-av_scanners, /etc/amavis/conf.d/15-content_filter_mode, /etc/amavis/conf.d/20-debian_defaults, /etc/amavis/conf.d/25-amavis_helpers, /etc/amavis/conf.d/30-template_localization
    
    root@server:~# netstat -putan|grep ":1002"
    Code:
    tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      364/postgrey --pidf
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      15473/amavisd-new (
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      15464/master      
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      15464/master      
    tcp6       0      0 ::1:10023               :::*                    LISTEN      364/postgrey --pidf
    tcp6       0      0 ::1:10024               :::*                    LISTEN      15473/amavisd-new (
    
    if I cat 50-user to a new file amavis load the new file and the port is available
    root@server:~# cat /etc/amavis/conf.d/50-user > /etc/amavis/conf.d/51-user
    root@server:~# systemctl restart amavis
    root@server:~# netstat -putan|grep ":1002"
    Code:
    tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      364/postgrey --pidf
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      15768/amavisd-new (
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      15464/master      
    tcp        0      0 127.0.0.1:10026         0.0.0.0:*               LISTEN      15768/amavisd-new (
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      15464/master      
    tcp6       0      0 ::1:10023               :::*                    LISTEN      364/postgrey --pidf
    tcp6       0      0 ::1:10024               :::*                    LISTEN      15768/amavisd-new (
    tcp6       0      0 ::1:10026               :::*                    LISTEN      15768/amavisd-new (
    
    The 2 files are the same
    root@server:~# md5sum /etc/amavis/conf.d/50-user /etc/amavis/conf.d/51-user
    Code:
    b4f0d4791920c1f54503ff824cfb70de  /etc/amavis/conf.d/50-user
    b4f0d4791920c1f54503ff824cfb70de  /etc/amavis/conf.d/51-user
    
    If i move the new file to the the file generated by ispconfig, the port is still available

    root@server:~# mv /etc/amavis/conf.d/51-user /etc/amavis/conf.d/50-user
    root@server:~# systemctl restart amavis
    root@server:~# netstat -putan|grep ":1002"
    Code:
    tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      364/postgrey --pidf
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      16092/amavisd-new (
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      15464/master      
    tcp        0      0 127.0.0.1:10026         0.0.0.0:*               LISTEN      16092/amavisd-new (
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      15464/master      
    tcp6       0      0 ::1:10023               :::*                    LISTEN      364/postgrey --pidf
    tcp6       0      0 ::1:10024               :::*                    LISTEN      16092/amavisd-new (
    tcp6       0      0 ::1:10026               :::*                    LISTEN      16092/amavisd-new (
    
    Obviously if i remove the file the port become unavailable
    root@server:~# rm /etc/amavis/conf.d/50-user
    root@server:~# systemctl restart amavis
    root@server:~# netstat -putan|grep ":1002"
    Code:
    tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      364/postgrey --pidf
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      16111/amavisd-new (
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      15464/master      
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      15464/master      
    tcp6       0      0 ::1:10023               :::*                    LISTEN      364/postgrey --pidf
    tcp6       0      0 ::1:10024               :::*                    LISTEN      16111/amavisd-new (
    
    if I update the ispconfig install the port still unavailable
    root@server:~# ispconfig_update.sh --force

    root@server:~# md5sum /etc/amavis/conf.d/50-user
    Code:
    b4f0d4791920c1f54503ff824cfb70de  /etc/amavis/conf.d/50-user
    
    root@server:~# netstat -putan|grep ":1002"
    Code:
    tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      364/postgrey --pidf
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      17775/amavisd-new (
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      17766/master      
    tcp        0      0 127.0.0.1:10027         0.0.0.0:*               LISTEN      17766/master      
    tcp6       0      0 ::1:10023               :::*                    LISTEN      364/postgrey --pidf
    tcp6       0      0 ::1:10024               :::*                    LISTEN      17775/amavisd-new (
    
    Any clue?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What shows
    Code:
    ls -lh /etc/amavis/conf.d/
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. ccerrillo

    ccerrillo New Member

Share This Page