Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Procmail to sideline spam found in different mail folders
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aZZe
l33t
l33t


Joined: 20 Feb 2003
Posts: 965
Location: Dinslaken, Germany

PostPosted: Tue Jan 12, 2016 11:16 am    Post subject: Procmail to sideline spam found in different mail folders Reply with quote

Hi everyone!

I set up another Postfix/Dovecot Gentoo server. I use procmail to sideline spam which is stored in different mail folders. The strange thing is I don't know why it works on Server1 but not on Server2 which is set up in the same way. I used the HowTo from the Gentoo Wiki:

https://wiki.gentoo.org/wiki/Mailfiltering_Gateway#Autolearning_and_sidelining_emails

Here is my .procmailrc:

Code:

#Set some default variables
MAILDIR=$HOME/Maildir

SPAM_FOLDER=$MAILDIR/.spam-found/

LIKELY_SPAM_FOLDER=$MAILDIR/.likely-spam-found/

#Sort mails with a spamscore of 7+ to the spamfolder
:0:
* ^X-Spam-Status: Yes
* ^X-Spam-Level: \*\*\*\*\*\*\*
$SPAM_FOLDER
   
#Sort mail with a spamscore between 5-7 to the likely spam folder
:0:
* ^X-Spam-Status: Yes
$LIKELY_SPAM_FOLDER
   
#Sort all other mails to the inbox
:0
*
./


This is the output in /var/log/mail.log:

Code:

dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "DOMAIN")


But I don't see the email in my inbox. If I turn off using procmail in main.cf (mailbox_command = /usr/bin/procmail -a "DOMAIN") I get the email. If I turn it back on I don't receive anything.

Does any have an idea?
_________________
ASUS 4A785TD-V EVO with AMD Phenom(tm) II X4 965
4GB RAM DDR3-1333
ATI Radeon HD4870
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 931

PostPosted: Wed Jan 13, 2016 11:03 pm    Post subject: Reply with quote

You can set LOGFILE and VERBOSE in procmailrc to get extended diagnostics. See procmailrc(5).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum