Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
View Poll Results: what you recommend ?
MailScanner 0 0%
Amavisd-new 0 0%
Multiple Choice Poll. Voters: 0. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1  
Old 2nd October 2011, 19:49
muflix muflix is offline
Junior Member
 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[The Perfect Spamsnake Ubuntu 10.10] - No mail relay, just errors. itsnedkeren HOWTO-Related Questions 2 20th February 2011 10:45
Unable to Receve Email walner8080 Installation/Configuration 8 30th September 2010 05:58
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
Is my postfix is hacked? bzzik Server Operation 21 15th July 2009 14:13
ISPConfig with postfix problem Chrisssssss General 30 20th January 2007 23:34


All times are GMT +2. The time now is 21:01.


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