amavisd not starting on boot

Discussion in 'Installation/Configuration' started by Stokesy, Dec 10, 2016.

  1. Stokesy

    Stokesy Member

    Hi
    I had a "X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection refused" error occurring when email was sent from my ubuntu 14.04 server (setup with ispconfig using the howto guide).
    I identified from these forums that this was because the amavisd service was not running.
    When I tried to start it using 'service start amavis' I got an 'unrecognized service' error, but was able to start it using '/etc/init.d/amavis start'.
    I am concerned that the amavisd service does not seem to be running on boot. Can anyone help me ensure it does?
    This is what I see after rebooting:
    #ps -aef |grep amavis
    amavis 15826 1 0 17:25 ? 00:00:00 [/usr/sbin/amavi] <defunct>
    amavis 23224 1 0 17:51 ? 00:00:00 [/usr/sbin/amavi] <defunct>
    amavis 23288 1 0 17:51 ? 00:00:00 [/usr/sbin/amavi] <defunct>
    &
    #netstat -tap|grep 10024
    ...returns nothing
    After starting amavisd manually (as above) I get this...
    # ps -aef |grep amavis
    amavis 15826 1 0 17:25 ? 00:00:00 [/usr/sbin/amavi] <defunct>
    amavis 23224 1 0 17:51 ? 00:00:00 [/usr/sbin/amavi] <defunct>
    amavis 23288 1 0 17:51 ? 00:00:00 [/usr/sbin/amavi] <defunct>
    amavis 25057 1 12 17:55 ? 00:00:00 /usr/sbin/amavisd-new (master)
    amavis 25114 25057 0 17:55 ? 00:00:00 /usr/sbin/amavisd-new (virgin child)
    amavis 25115 25057 0 17:55 ? 00:00:00 /usr/sbin/amavisd-new (virgin child)

    Any ideas?
     
  2. Stokesy

    Stokesy Member

    wierdly, after another reboot it is now working...
    # ps -aef|grep amavis
    amavis 1335 1 0 18:20 ? 00:00:00 /usr/sbin/amavisd-new (master)
    amavis 2244 1335 0 18:20 ? 00:00:01 /usr/sbin/amavisd-new (ch4-avail)
    amavis 2257 1335 0 18:20 ? 00:00:00 /usr/sbin/amavisd-new (ch2-avail)
    # netstat -tap|grep 10024
    tcp 0 0 localhost:10024 *:* LISTEN 1335/amavisd-new (m
    ...and the service start also works... guess I'll just have to keep an eye on it and see if it happens again....
     

Share This Page