HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   MailScanner - stuck queue in hold folder (http://www.howtoforge.com/forums/showthread.php?t=54398)

muflix 2nd October 2011 19:49

MailScanner - stuck queue in hold folder
 
Hello im new in building mail server but my Postfix/Dovecot solution was working well until i add an MailScanner/Spamassassin/ClamAV programs and i got stuck exactly my mails got stuck.
Here i will try sketch my configuration

MailScanner version - 4.79.11
Postfix version - 2.7.1
ClamAV version - 0.97
OS - Debian 6.0.2 (squeeze)

Installation step was
i add server to /etc/apt/sources.list because i didnt have MailScanner in my repository
deb http://http.us.debian.org/debian stable main contrib

aptitude update
aptitude install mailscanner spamassassin clamav



/etc/MailScanner/MailScanner.conf (edited values)
Code:

%org-name% = orgname
%org-long-name% = longname
%web-site% = www.site.tld
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
Incoming Work User = postfix
Incoming Work Group = clamav
Incoming Work Permissions = 0640
MTA = postfix
Virus Scanners = clamd
Clamd Socket = /var/run/clamav/clamd.ctl
Use SpamAssassin = yes
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
#include /etc/MailScanner/conf.d/*


cd /etc/var/spool/MailScanner
mkdir spamassassin
chown postfix:clamav incoming quarantine spamassassin
chmod 0755 -R incoming quarantine spamassassin


in /etc/default/mailscanner
i uncommented
Code:

run_mailscanner=1
in /etc/MailScanner/spam.assassin.prefs.conf
i commented
Code:

#use_auto_whitelist 0
in /etc/postfix/main.cf
i add
Code:

header_checks=regexp:/etc/postfix/header_checks
in /etc/postfix/header_checks
i add
Code:

/^Received:/ HOLD
output from commands
spamassassin -D
spamassassin --lint -p /etc/MailScanner/spam.assassin.prefs.conf
MailScanner -lint


seems to be OK

i was unable to get working ClamAV in MailScanner/incoming directory
so i changed 'User root' in clamd.conf and its seems to be ok now but in future
i will change clamav group to postfix maybe

PROBLEM STARTED:
if i had installed only postfix and dovecot it was working properly
when i installed mailscanner,clamav,spamassassin problems started

LOGS:
/var/log/mail.err is empty
/var/log/mail.log contains repeatly
Code:

Sep 29 02:55:46 mailsrv MailScanner[1080]: Connected to Processing Attempts Database
Sep 29 02:55:46 mailsrv MailScanner[1080]: Found 0 messages in the Processing Attempts Database
Sep 29 02:55:46 mailsrv MailScanner[1080]: Using locktype = flock
Sep 29 02:55:48 mailsrv MailScanner[1081]: MailScanner E-Mail Virus Scanner version 4.79.11 starting...
Sep 29 02:55:48 mailsrv MailScanner[1081]: Reading configuration file /etc/MailScanner/MailScanner.conf
Sep 29 02:55:48 mailsrv MailScanner[1081]: Read 858 hostnames from the phishing whitelist
Sep 29 02:55:48 mailsrv MailScanner[1081]: Read 5497 hostnames from the phishing blacklists
Sep 29 02:55:49 mailsrv MailScanner[1081]: Using SpamAssassin results cache
Sep 29 02:55:49 mailsrv MailScanner[1081]: Connected to SpamAssassin cache database
Sep 29 02:55:49 mailsrv MailScanner[1081]: Enabling SpamAssassin auto-whitelist functionality...

PROBLEM DESCRIPTION:
my mails are stuck in /var/spool/postfix/hold


where is the mistake ? please help. thank you


All times are GMT +2. The time now is 00:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.