

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
1 message in net.sourceforge.lists.courier-maildrop[maildropl] maildrop filter does not ...| From | Sent On | Attachments |
|---|---|---|
| shamshu shaikh | Dec 12, 2005 4:55 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [maildropl] maildrop filter does not work with qmail-vpopmail | Actions... |
|---|---|---|
| From: | shamshu shaikh (sham...@hotmail.com) | |
| Date: | Dec 12, 2005 4:55:39 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Dear all,
I have installed qmail-vpopmail and it works fine so far. I want to use maildrop filters to make my mail server filter out unwanted mails. I have following maildrop files on my server but they do work when i send a test mail from yahoo/hotmail accounts, the mails with test as subject directly come to the users inbox rather then going to Trash. Please help me solve the problem.Is there any file where i have to mention that qmail should use maildrop to do filtering of mails and delivering mails to its respective users mailbox.
[root@mailserv ~]# cat /etc/redhat-release PCQLinux 2005 (WhiteHope)
[root@mailserv ~]# uname -r 2.6.10-1.741_FC3
[root@mailserv ~]# vi /etc/maildroprc
# Global maildrop filter file #DEFAULT="$HOME/.maildir/"
# # Define variables # SHELL="/bin/bash" DEFAULT = "$HOME/Maildir" MAILDIR = "$HOME/Maildir"
#DEFAULT = "$HOME/.maildir" #MAILDIR = "$HOME/.maildir" # # Logfile destination # After your satisifed that this is working properly, comment out all # the lines that start with "log" # logfile "$HOME/.getmail/.maildrop.log" # # Markers for the log file # log "Markers: ---------------------------------------------" log " (**) from config file, (II) informational, (WW) warning" log "--------------------------------------------------------" log ""
###################################################################### # # Adding missing headers for PGP/MIME #
BPM="-----BEGIN PGP MESSAGE-----" EPM="-----END PGP MESSAGE-----" BPS="-----BEGIN PGP SIGNATURE-----" EPS="-----END PGP SIGNATURE-----"
if (!/^Content-Type: message/ && !/^Content-Type: multipart/ \ && !/^Content-Type: application\/pgp/) { if (/^$BPM/:b && /^$EPM/:b) xfilter "reformail -A 'Content-Type: application/pgp; format=text; \ x-action=encrypt'" if (/^$BPS/:b && /^$EPS/:b) xfilter "reformail -A 'Content-Type: application/pgp; format=text; \ x-action=sign'" }
##################################################################### # # Correcting wrong signature dashes # it doesn't work, need to fix
if ( /^--$/:b) { xfilter "sed -e 's/^--$/-- /'" log "(II) Sig Dashes corrected" }
# Include any rules set up for the user - this gives the # administrator a way to override the domain's mailfilter file # # this is also the "suggested" way to set individual values # for maildrop such as quota. (why do you need quota on your own PC?) # #`test -r $HOME/.mailfilter` `test -r $HOME/.mailfilter` if( $RETURNCODE == 0 ) { log "(==) Including $HOME/.mailfilter" exception { include $HOME/.mailfilter } }
[root@mailserv ~]# vi /home/vpopmail/domains/xyz.com/sam/.mailfilter
# Long Subject spam words # ------------------------------------------- # IT SHOULD BE JUST ONE LONG LINE (breaks are for wiki purpuses)
if (/^Subject:.*(SPAM|\[Vv\]iagra|offer|free|wanted|penis|chip|inch|please|pill|ydrocodone|remember| prescription|1-800|inch|remove|XXX|sex|adults|business opportunity|unsuscribe|LANGUAGE CENTER|visit today| penis|longer|size|GUARANTEE|\[Ll\] \[Aa\] \[Nn\] \[Gg\] \[Uu\] \[Aa\] \[Gg\] \[Ee\] ) / ) { exception { to $DEFAULT/.Trash/ } }
#'------------------------------------ # Trashing test messages #'------------------------------------
if (/^Subject:test$/) { exception { to $DEFAULT/.Trash/ } }
[root@mailserv ~]# vi /home/vpopmail/domains/xyz.com/.qmail-default
#| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox |maildrop mailfilter
[root@mailserv ~]# which maildrop /usr/local/bin/maildrop
_________________________________________________________________ Formula One fan? Start racing. Have fun! http://server1.msn.co.in/sp05/tataracing/onlinegame.asp







