SpamAssassin delivering to Maildir on bogus addresses!

bretesq

New member
Joined
Nov 5, 2008
Messages
3
Hi all,

My DA sever is delivering spam-tagged emails to those of bogus email addresses, therefore, user accounts with only 20 or so email accounts have over 15000 folders with SPAM inside of them. If I send an email to a bogus email account it will bounce as it should, only when SA determines it as spam does it deliver.

Thanks!
 
To help in debugging this please verify that you have catchall turned off.

Also, are the spam folders being created as users, or as user-spam directories?

Jeff
 
Jeff,

Yes, I've confirmed that catchall is turned off.

It is creating folders as if it were users, snip below:

Code:
drwx------      3 mail        mail     512 Dec 20 06:53 a.sims
drwx------      3 mail        mail     512 Dec 20 07:02 aaabbott
drwx------      3 mail        mail     512 Dec 20 07:02 aaallen
drwx------      3 mail        mail     512 Dec 20 07:02 aaanderson
drwx------      3 mail        mail     512 Dec 20 07:02 aaarnold
drwx------      3 mail        mail     512 Dec 20 07:02 aaaustin24
drwx------      3 mail        mail     512 Dec 20 07:03 aaayers
drwx------      3 mail        mail     512 Dec 20 07:02 aaayers76

and deeper:

Code:
websrv02# cd a.sims
websrv02# cd Maildir
websrv02# ls
.INBOX.spam
websrv02# cd .INBOX.spam/
websrv02# cd new
websrv02# ls
q1NMLIA-2097794 q1NMNWm-2097863 q1NMNc3-2097864 q1NMrM8-2097962 q1NN0Qw-2097928 q1NN0Ru-2097930 q1NN2HK-2099419 q1NNGmm-2096153 q1NNoIc-2097697 q1NNpxQ-2097719 q1NO5xa-2099602 q1NOHtG-2099667 q1NP2CZ-2100078 q1NPIBi-2100330

To help in debugging this please verify that you have catchall turned off.

Also, are the spam folders being created as users, or as user-spam directories?

Jeff
 
Thanks for the additional information; hopefully JBMC staff will be able to help us (JBMC is the publisher of DirectAdmin).

Jeff
 
Hello,

That means that the Catch-all is enabled and spam settings are set to go to the user spambox.

With that combination, to prevent what you've described you'd need to follow this guide:
http://help.directadmin.com/item.php?id=156

What it does is it prevents SpamAssassin from scanning mailboxes that don't exist.

John
 
That did the trick, is there a global option to turn off Catch-All? The domain in question did not have Catch-All on.

Thanks!
 
Hello,

It is a User/Reseller package option, so you can change it that way..
Or a quicker way (after changing the packages) would be to do a perl-regex to ensure it's off for everyone.
Code:
cd /usr/local/directadmin/data/users
perl -pi -e 's/catchall=ON/catchall=OFF/' */user.conf
perl -pi -e 's/catchall=ON/catchall=OFF/' */reseller.conf
perl -pi -e 's/\*: .*/\*: :fail:/' /etc/virtual/*/aliases
John
 
Back
Top