All mail stays in ACTIVE queue

Discussion in 'Server Operation' started by jariasca, Apr 8, 2010.

  1. jariasca

    jariasca Member

    Hi all,
    since I make an update yesterday to the server all email goes to the active queue and takes about 10 min or never guest to the mailbox (in or out)
    and I'm havinf the error msg (!)ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd.socket: No such file or directory, retrying (2)

    can someone help me


    Apr 8 15:00:18 mail postfix/qmgr[26650]: 509B818D01DD: removed
    Apr 8 15:00:18 mail couriertcpd: Connection, ip=[::ffff:]
    Apr 8 15:00:18 mail couriertcpd: LOGIN,, ip=[::ffff:], port=[40602]
    Apr 8 15:00:19 mail amavis[26582]: (26582-04-10) (!)ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd.socket: No such file or directory, retrying (2)
    Apr 8 15:00:19 mail postfix/smtpd[26789]: connect from[]
    Apr 8 15:00:20 mail postfix/smtpd[26789]: NOQUEUE: reject: RCPT from[]: 550 5.1.1 <>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<> proto=ESMTP helo=<>
    Apr 8 15:00:21 mail postfix/smtpd[26789]: disconnect from[]
    Apr 8 21:00:21 mail postfix/smtpd[26769]: 3B93718D01BD: client=unknown[]
    Apr 8 15:00:21 mail postfix/cleanup[26776]: 3B93718D01BD: message-id=<>
    Apr 8 15:00:21 mail postfix/qmgr[26650]: 3B93718D01BD: from=<>, size=3248, nrcpt=1 (queue active)
    Apr 8 15:00:21 mail amavis[26583]: (26583-03-9) Passed SPAM, [] [] <> -> <>, quarantine: spam-LSuS2aO6sOj1.gz, Message-ID: <>, mail_id: LSuS2aO6sOj1, Hits: 16.727, size: 2767, queued_as: 3B93718D01BD, 26559 ms
    Apr 8 21:00:21 mail postfix/smtp[26748]: 6593E18D01BE: to=<>, relay=[]:10024, conn_use=9, delay=294, delays=1.3/266/0/27, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=26583-03-9, from MTA([]:10025): 250 2.0.0 Ok: queued as 3B93718D01BD)
    Apr 8 15:00:21 mail postfix/qmgr[26650]: 6593E18D01BE: removed
    Apr 8 15:00:21 mail postfix/pipe[26829]: 3B93718D01BD: to=<>, relay=maildrop, delay=0.04, delays=0.02/0/0/0.02, dsn=2.0.0, status=sent (delivered via maildrop service)
    Apr 8 15:00:21 mail postfix/qmgr[26650]: 3B93718D01BD: removed
  2. Mark_NL

    Mark_NL New Member

    1. Which distro are you running?
    2. Check where clamav is creating the socket file with:
    grep LocalSocket /etc/clamav/clamd.conf
    3. Check where amavis is expecting the socket file to be:
    in the amavis config tree (/etc/amavis) there should be a file "15-av_scanners" open it, and check the part of ClamAv, it should look something like this:
       \&ask_daemon, ["CONTSCAN {}\n", "[B]/var/run/clamav/clamd.ctl[/B]"],
       qr/\bOK$/, qr/\bFOUND$/,
       qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
    the bold part has to be the same in both config files.
  3. jariasca

    jariasca Member

    Thanks for the response

    I'm using centos 5.4

    [root@mail etc]# grep LocalSocket /etc/clamd.conf
    #LocalSocket /tmp/clamd.socket
    #LocalSocketGroup virusgroup
    #LocalSocketMode 660

    [root@mail clamav]# cd /var/run/clamav
    [root@mail clamav]# ls

    I don't have a 15-av_scanners

    root@mail etc]# find / -name 15-av_scanners
    [root@mail etc]#

    please advise
  4. Mark_NL

    Mark_NL New Member

    uncomment the localsocket lines in /etc/clamd.conf ..

    i think you should then be fine.

Share This Page