Mail Queue issues (no sending or receiving) - HELP!

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by scott »

That would indicate to me that it was removed as well.

You can install qmail-scanner with:

yum install qmail-scanner

as long as clamd & spamd are present and running when you do that, it will automatically set up and configure itself for the environment.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by coolemail »

Thanks Scott,
Parallels said that they had disabled the dr.Web handlers
For now, I have removed all drweb mail handlers to avoid loosing mail. They can be restored after Dr.Web is fully and properly installed with this command:
/usr/local/psa/admin/sbin/mchk --with-spam
If I run that command and all the drweb handlers come back, surely it will all fail again? After removing drweb before, we were getting handlers trying to look for drweb which was causing the failure:
May 18 09:02:51 plesk2 qmail: 1274169771.478822 new msg 14814279
May 18 09:02:51 plesk2 qmail: 1274169771.478881 info msg 14814279: bytes 5288 from <me@hosteddomain.com> qp 12744 uid 2020
May 18 09:02:51 plesk2 qmail: 1274169771.491974 starting delivery 147: msg 14814279 to remote testemail@hotmail.com
May 18 09:02:51 plesk2 qmail: 1274169771.492029 status: local 0/10 remote 1/20
May 18 09:02:51 plesk2 qmail-remote-handlers[12745]: Handlers Filter before-remote for qmail started ...
May 18 09:02:51 plesk2 qmail-remote-handlers[12745]: from=me@hosteddomain.com
May 18 09:02:51 plesk2 qmail-remote-handlers[12745]: to=testemail@hotmail.com
May 18 09:02:51 plesk2 qmail-remote-handlers[12745]: hook_dir = '/usr/local/psa/handlers/before-remote'
May 18 09:02:51 plesk2 qmail-remote-handlers[12745]: Unable to stat entry '/usr/local/psa/handlers/info/20-drweb-t1hSBa/executable' or it is not link: No such file or directory
May 18 09:02:51 plesk2 qmail-remote-handlers[12745]: call_handlers: stop call handlers from dir '/usr/local/psa/handlers/before-remote/sender/me@hosteddomain.com'
May 18 09:02:51 plesk2 qmail: 1274169771.512240 delivery 147: failure: handlers_permanentfail/
May 18 09:02:51 plesk2 qmail: 1274169771.512334 status: local 0/10 remote 0/20
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: Handlers Filter before-queue for qmail started ...
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: from=
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: to=me@hosteddomain.com
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: hook_dir = '/usr/local/psa/handlers/before-queue'
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: call_handlers: call executable = '/usr/local/psa/handlers/info/05-grey-SFxXqw/executable'
May 18 09:02:51 plesk2 greylisting filter[12747]: Starting greylisting filter...
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: handlers_stderr: SKIP
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: call_handlers: SKIP during call '/usr/local/psa/handlers/info/05-grey-SFxXqw/executable' handler
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: call_handlers: call executable = '/usr/local/psa/handlers/info/10-spf-NJsmMS/executable'
May 18 09:02:51 plesk2 spf filter[12748]: Starting spf filter...
May 18 09:02:51 plesk2 spf filter[12748]: Unable to read string from file: /etc/psa/spf/spfbehavior
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: handlers_stderr: Unable to open file /etc/psa/spf/spfbehavior: Permission denied System error 13: Permission denied
May 18 09:02:51 plesk2 spf filter[12748]: Unable to get spf checking mode
May 18 09:02:51 plesk2 spf filter[12748]: Unable to get options for spf filter
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: call_handlers: Error during call '/usr/local/psa/handlers/info/10-spf-NJsmMS/executable' handler
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: LOG Internal error in handler '10-spf-NJsmMS'. Skip handler.
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: recipient[3] = 'me@hosteddomain.com'
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/me@hosteddomain.com'
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: Unable to stat entry '/usr/local/psa/handlers/info/20-drweb-q3PvpO/executable' or it is not link: No such file or directory
May 18 09:02:51 plesk2 qmail-queue-handlers[12746]: call_handlers: stop call handlers from dir '/usr/local/psa/handlers/before-queue/recipient/me@hosteddomain.com'
May 18 09:02:51 plesk2 qmail: 1274169771.516998 warning: trouble injecting bounce message, will try later
so I need to know that the handlers will not make it all fail!

I have SpamAssassin running. Can I confirm one way or another that clamd and spamd are running?

The following are on teh server:
/usr/bin/spamd
/usr/bin/spamdyke
/usr/local/psa/admin/bin/spamd
/usr/local/psa/admin/sbin/spamd
/var/run/spamd
/var/run/spamd/spamd_full.pid

/etc/clamd.conf
/etc/rc.d/init.d/clamd
/etc/rc.d/rc0.d/K39clamd
/etc/rc.d/rc1.d/K39clamd
/etc/rc.d/rc2.d/S61clamd
/etc/rc.d/rc3.d/S61clamd
/etc/rc.d/rc4.d/S61clamd
/etc/rc.d/rc5.d/S61clamd
/etc/rc.d/rc6.d/K39clamd
/usr/bin/clamdscan
/usr/bin/clamdtop
/usr/sbin/clamd
/usr/share/doc/clamd-0.96
/usr/share/doc/clamav-0.96/clamdoc.pdf
/usr/share/doc/clamd-0.96/clamd.conf
/usr/share/man/man1/clamdscan.1.gz
/usr/share/man/man1/clamdtop.1.gz
/usr/share/man/man5/clamd.conf.5.gz
/usr/share/man/man8/clamd.8.gz
/var/asl/data/templates/template-clamd.conf
/var/lock/subsys/clamd
/var/log/clamav/clamd.log
/var/log/clamav/clamd.log.1
/var/log/clamav/clamd.log.2
/var/log/clamav/clamd.log.3
/var/log/clamav/clamd.log.4
/var/run/clamav/clamd.pid

The clamd.log file has lots in it including:
Mon May 17 18:19:32 2010 -> +++ Started at Mon May 17 18:19:32 2010
Mon May 17 18:19:32 2010 -> clamd daemon 0.96 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mon May 17 18:19:32 2010 -> Running as user root (UID 0, GID 0)
Mon May 17 18:19:32 2010 -> Log file size limit disabled.
Mon May 17 18:19:32 2010 -> Reading databases from /var/clamav
Mon May 17 18:19:32 2010 -> Not loading PUA signatures.
Mon May 17 18:19:48 2010 -> Loaded 2836656 signatures.
Mon May 17 18:19:48 2010 -> TCP: Bound to address 127.0.0.1 on port 3310
Mon May 17 18:19:48 2010 -> TCP: Setting connection queue length to 30
Mon May 17 18:19:48 2010 -> LOCAL: Removing stale socket file /tmp/clamd.socket
Mon May 17 18:19:48 2010 -> LOCAL: Unix socket file /tmp/clamd.socket
Mon May 17 18:19:48 2010 -> LOCAL: Setting connection queue length to 30
Mon May 17 18:19:48 2010 -> Limits: Global size limit set to 104857600 bytes.
Mon May 17 18:19:48 2010 -> Limits: File size limit set to 26214400 bytes.
Mon May 17 18:19:48 2010 -> Limits: Recursion level limit set to 16.
Mon May 17 18:19:48 2010 -> Limits: Files limit set to 10000.
Mon May 17 18:19:48 2010 -> Archive support enabled.
Mon May 17 18:19:48 2010 -> Algorithmic detection enabled.
Mon May 17 18:19:48 2010 -> Portable Executable support enabled.
Mon May 17 18:19:48 2010 -> ELF support enabled.
Mon May 17 18:19:48 2010 -> Detection of broken executables enabled.
Mon May 17 18:19:48 2010 -> Mail files support enabled.
Mon May 17 18:19:48 2010 -> OLE2 support enabled.
Mon May 17 18:19:48 2010 -> PDF support enabled.
Mon May 17 18:19:48 2010 -> HTML support enabled.
Mon May 17 18:19:48 2010 -> Self checking every 600 seconds.
Mon May 17 18:29:48 2010 -> No stats for Database check - forcing reload
Mon May 17 18:30:06 2010 -> Reading databases from /var/clamav
Mon May 17 18:30:22 2010 -> Database correctly reloaded (2836656 signatures)
Mon May 17 18:40:22 2010 -> SelfCheck: Database status OK.
...
Wed May 19 14:45:41 2010 -> SelfCheck: Database status OK.


so looks like that is probably running
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by webfeatus »

I recently upgarded to Plesk 9.5.2
I have Dr. Web installed - It is working.
Mail sending & receiving without a problem. (Qmail)
But it seems that Plesk SPF configuration is not working since the upgrade:
qmail-queue-handlers[22354]: handlers_stderr: Unable to open file /etc/psa-spf/spfbehavior: Permission denied System error 13: Permission denied

Any ideas about this point?
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by BruceLee »

check if disabling spf and enabling back again works.
try this:
http://forum.parallels.com/showthread.php?t=101087
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by webfeatus »

Hi Bruce,

I had already tried that - no success.
I have entered the forum discussion that you mention above.
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by webfeatus »

coolemail - did you decide to remove drweb and go with qmail scanner & clamav?

Regarding the minor issue of:
qmail-queue-handlers[5664]: handlers_stderr: Unable to open file /etc/psa-spf/spfbehavior: Permission denied System error 13: Permission denied
It seems that chmod +x /etc/psa will fix that particular issue.
But I still have annoying drweb issues on another server and am considering clamav.
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Mail Queue issues (no sending or receiving) - HELP!

Unread post by coolemail »

webfeatus wrote:coolemail - did you decide to remove drweb and go with qmail scanner & clamav?
Yes, following recommendations from the regular experts on this forum (breun, faris and others), we are now using qmail scanner & clamav.

It means we save the expense of Dr.Web annual licence on the virus scanning.

However, we have lost the web-based Spamassassin that Plesk offers with what we have done.
Post Reply