Spam filtering with Postfix + Spamassasin + maildrop


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Spam filtering with Postfix + Spamassasin + maildrop
# 1  
Old 06-21-2009
Spam filtering with Postfix + Spamassasin + maildrop

Hello all,

I would like to ask for your help. I'm trying to configure my Ubuntu Server 8.10 x64 to act as a mail server. I'd like to make it able to filtering spam emails.

So, I've followed this tutorial to set up the needed configs and packages.

After that, I changed my config files, like this wiki page says.

Now, I've got a working mailing system with a webmail interface (atmail open). If somebody send me a spam, the system adds to the mail subject the ****SPAM**** string and the original text of the mail is in an attached plain-text file, the mail contains only a warning message.

I just want only one last thing to get work: messages with ****SPAM**** string in the subject should go to the following directory: /home/vmail/$d/$u/Maildir/.Spam (where $d=domain, $u=user, these variables come from Postfix virtual user's config)

I tried to use the maildrop for this. I added this to my /etc/postfix/master.cf:

Code:
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

and it's my /etc/maildroprc (it's so simple because I just want see if it works):

Code:
to "/home/vmail/tesztgep.hu/subchee/Maildir/.Spam"

But this is not working. All the incoming massages go to the Inbox instead os Spam... I checked the /var/log/mail.log file and there isn't anything related maildrop. The maildrop is installed:

Code:
root@tesztgep:/# dpkg -l | grep maildrop
ii  maildrop                                   2.0.4-3                            mail delivery agent with filtering abilities

Here is my full master.cf file. Could anybody help me, please? I can't find out what is the problem.

Thanks in advance
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Postfix: Active Directory and postfix alias

I have a mailserver with postfix i want to alias all mail for administrator@domain.fqdn to root@domain.fqdn I have the aliases configured,and i did newliases but doesn't work. How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

2. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

3. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies

4. UNIX for Advanced & Expert Users

Problem with sendmail procmail spamassasin & relay

I have been working on setting up a mail relay. I have just about everything working except for the procmail part. The configuration is as follows: Internet -> mailrelay -> mail server | spamassassin server I have spamassassin running on a seperate... (3 Replies)
Discussion started by: hardesty
3 Replies
Login or Register to Ask a Question