storing messages

Glenn Steen glenn.steen at gmail.com
Thu May 23 09:40:18 IST 2013


Hello Sandro,

On 22 May 2013 11:40, Alessandro Dentella <sandro at e-den.it> wrote:
>
>
> Hi,
>
> I have several servers where storing messagges just works.
> Now i'm fighting to get spam and nonspanm messages stored in a new server
> that was not preared by me but seems correct, nevertheless I cant get
> messages stored.
>
> Relevant configuration directives are:
>
>   Spam Actions = store
>   High Scoring Spam Actions = store
>   Spam Actions = store deliver header "
>   Non Spam Actions = store deliver header "X-Spam-Status: No"

You do reaklize that you have quoted two different "Spam Actions", and
that the secon one is faulty? It should read something like:
Spam Actions = store deliver header "X-Spam-Status: Yes"

... If you do a "MailScanner --lint", that should point you in the
right direction.
>
> Quarantine dir is /var/spool/MailScanner/quarantine/ and permissions are
> postfix.www-data
>
>   root at smtp:/etc/MailScanner# find /var/spool/MailScanner/quarantine/ -ls
>   262148    4 drwxrwxr-x   3 postfix  www-data     4096 May 22 06:25 /var/spool/MailScanner/quarantine/
>   262166    4 drwxrwx---   4 postfix  www-data     4096 May 22 06:53 /var/spool/MailScanner/quarantine/20130522
>   262167    4 drwxrwx---   2 postfix  www-data     4096 May 22 11:37 /var/spool/MailScanner/quarantine/20130522/nonspam
>   262168    4 drwxrwx---   2 postfix  www-data     4096 May 22 11:38 /var/spool/MailScanner/quarantine/20130522/spam
>
The above permissions look OK, provided that the corresponding
settings in MailScanner.conf are OK... For me (my web server user is
apache, not www-data) it looks like:
Quarantine User = postfix
Quarantine Group = apache
Quarantine Permissions = 0660

>
> What should I check to understand why mailscanner is not storing them?
Start by running as the postfix user, and try access the quarantine
directory. Do something like:
su - postfix -s /bin/bash
cd /var/spool/MailScanner/quarantine
....
If that works, fine... But my money is on there being a "permission
problem higher up the filesystem hierarchy", or a misconfig in
MailScanner.conf.

>
> The systems is debian squeeze:
>
> ii  mailscanner        4.84.5-4~squeeze
> ii  postfix            2.7.1-1+squeeze1
>
>
> Thanks in advanced
> sandro
> *:-)

Cheers!
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list