Sponsored Content
Operating Systems Linux Ubuntu Spam filtering with Postfix + Spamassasin + maildrop Post 302327447 by subchee on Sunday 21st of June 2009 03:43:38 PM
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
 

4 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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
dspam_stats(1)							       DSPAM							    dspam_stats(1)

NAME
dspam_stats - display spam statistics SYNOPSIS
dspam_stats [--profile=PROFILE][-HhrSst] [username] DESCRIPTION
dspam_stats displays the spam filtering statistics for one or all users on the system. Displays TP (True Positives (Spam)), TN (True Nega- tives (Innocent)), FP (False Positives), FN (False Negatives), SC (Spam Corpusfed) and NC (Nonspam Corpusfed). OPTIONS
--profile=PROFILE Specify a storage profile from dspam.conf. The storage profile selected will be used for all database connectivity. See dspam.conf for more information. -H Uses multi-line, human-readable output displaying the fully-qualified names for each class of totals, instead of their abbreviated terms. -h Displays help syntax -r Resets the current snapshot -s Displays stats since last snapshot (instead of since epoch) -S Displays accuracy percentages in addition to stats -t Displays a total of all statistics displayed [username] Specifies the username to query. If no username is provided, all users will be queried. EXIT VALUE
0 Operation was successful. other Operation resulted in an error. COPYRIGHT
Copyright (C) 2002-2011 DSPAM Project All rights reserved. For more information, see http://dspam.sourceforge.net. SEE ALSO
dspam(1), dspam_admin(1), dspam_clean(1), dspam_crc(1), dspam_dump(1), dspam_logrotate(1), dspam_merge(1), dspam_train(1) DSPAM
Apr 17, 2010 dspam_stats(1)
All times are GMT -4. The time now is 07:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy