[courier-users] .mailfilter problem maildrop mechanism issue

This is a discussion on [courier-users] .mailfilter problem maildrop mechanism issue within the Courier-Imap forums, part of the Mail Servers and Related category; I configured postfix with maildrop and .mailfilter mechanism but unfortunately the message is not rejected as I expected I wrote ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-03-2005
Aurelien Barrere
 
Posts: n/a
Default [courier-users] .mailfilter problem maildrop mechanism issue

I configured postfix with maildrop and .mailfilter mechanism but
unfortunately the message is not rejected as I expected
I wrote a mail to X@domain.com with in subject "out of office", I want
this mail to be rejected when matching this pattern

Here is some details : in my $HOME/X i have a .mailfilter a Maildir
structure and .forward

When i wrote a mail with "out of office" as subject it should be
rejected by my .mailfilter but it is not
Nov 3 18:22:02 bounc postfix/local[1958]: 84107AC67C:
to=<X@domain.com>, relay=local, delay=1, status=sent (delivered to
command: /usr/local/bin/maildrop -d ${USER})
it forward the mail out of office instead of rejected

sample of my .mailfilter:

FROM='X@domain.com'
import SENDER
if ($SENDER eq "")
{
SENDER=$FROM
}

filter_out=0
if ((/.*[Oo]ffice/:hb))
{
filter_out=1
}
if ( $filter_out==1 )
{
exit
}
else
{
to "./Maildir/."
}


a sample of my main.cf:

mailbox_command_maps = hash:/etc/postfix/mailbox_commands
#mailbox_command = /usr/local/bin/maildrop -d ${USER}
maildrop_destination_recipient_limit = 1
home_mailbox = Maildir/
#header_checks = regexp:/etc/postfix/header_checks

when line "header_checks = regexp:/etc/postfix/header_checks" is
uncommented so message is correctly rejected but i want .mailfilter do
the job not header_checks:

Nov 3 18:10:39 bounce2 postfix/cleanup[1787]: D2A57AC3FC: reject:
header Subject: out of office from
congas.percussion.jmsp.net[212.23.187.45];
from=<abarrere@emailvision.com> to=<X@domain.com> proto=ESMTP
helo=<congas.percussion.jmsp.net>: Message content rejected

sample of my master.cf:

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


Summary:want to set up .mailfilter in order to reject some mail
according specific pattern
but I don't want to use header_checks =
regexp:/etc/postfix/header_checks that is not usefull for customize
differents clients filters

Please does someone could help me resolving this issue?

Aurelien
--


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0