OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Postfix-Users] Junk & Draft Directory

From: Num ber (number_85_hotmail.com)
Date: Mon Mar 20 2006 - 05:24:46 CST


>The "standard" way is to use maildrop or procmail.

I try to use MailDrop and i have do this:

in /etc/postfix/main.cf :

maildrop_destination_recipient_limit=1
mailbox_command = maildrop
virtual_transport = maildrop

in /etc/postfix/master.cf
maildrop unix - n n - - pipe
  flags=Ru user=vmail argv=/usr/local/bin/maildrop -d vmail ${user}

i have create a maildroprc file with this :

__________________________________________________________
maildirmake=/usr/local/bin/maildirmake
MAILDIR=$DEFAULT
JUNK_FOLDER=.Junk

_JUNK_DEST=$MAILDIR/$JUNK_FOLDER/

#automatically create the Junk folder
`test -d $_JUNK_DEST`
if ($RETURNCODE != 0 )
{
        `$maildirmake $_JUNK_DEST`
        # auto subscribe. the following works for courier-imap
        #`echo INBOX.Junk >> $MAILDIR/courierimapsubscribed`
}
...
if (/^X-Spam-Flag:\s*YES/)
{
    exception {
         to "$_JUNK_DEST";
    }
}

if (/^X-Sender: testsoez.be/)
{
    exception {
         to "$MAILDIR/.Trash";
    }
}
__________________________________________________________

But i don't see anything on /var/log/maillog (About Maildrop) :
__________________________________________________________
Mar 20 12:15:41 numberfixe postfix/master[10642]: reload configuration
/etc/postfix
Mar 20 12:15:59 numberfixe postfix/smtpd[10672]: connect from
bay109-f2.bay109.hotmail.com[64.4.19.12]
Mar 20 12:16:00 numberfixe postfix/smtpd[10672]: A04C849DCD7:
client=bay109-f2.bay109.hotmail.com[64.4.19.12]
Mar 20 12:16:01 numberfixe postfix/cleanup[10680]: A04C849DCD7:
message-id=<BAY109-F295D4DA40025F1C7E73AAC1DB0phx.gbl>
Mar 20 12:16:01 numberfixe postfix/qmgr[10652]: A04C849DCD7:
from=<number_85_hotmail.com>, size=1078, nrcpt=1 (queue active)
Mar 20 12:16:01 numberfixe postfix/smtpd[10672]: disconnect from
bay109-f2.bay109.hotmail.com[64.4.19.12]
Mar 20 12:16:03 numberfixe postfix/cleanup[10680]: 61E2749DD00:
message-id=<BAY109-F295D4DA40025F1C7E73AAC1DB0phx.gbl>
Mar 20 12:16:03 numberfixe postfix/qmgr[10652]: 61E2749DD00:
from=<number_85_hotmail.com>, size=1706, nrcpt=1 (queue active)
Mar 20 12:16:03 numberfixe amavis[27607]: (27607-10) Passed CLEAN,
[64.4.19.12] [64.4.19.200] <number_85_hotmail.com> -> <numbersoez.be>,
Message-ID: <BAY109-F295D4DA40025F1C7E73AAC1DB0phx.gbl>, mail_id:
6Kh1pogM+gb5, Hits: 1.691, 2365 ms
Mar 20 12:16:03 numberfixe postfix/smtpd[10693]: disconnect from
numberfixe[127.0.0.1]
Mar 20 12:16:03 numberfixe postfix/smtp[10682]: A04C849DCD7:
to=<numbersoez.be>, relay=127.0.0.1[127.0.0.1], delay=3, status=sent (250
2.6.0 Ok, id=27607-10, from MTA([127.0.0.1]:10025): 250 Ok: queued as
61E2749DD00)
Mar 20 12:16:03 numberfixe postfix/qmgr[10652]: A04C849DCD7: removed
Mar 20 12:16:03 numberfixe postfix/virtual[10694]: 61E2749DD00:
to=<numbersoez.be>, relay=virtual, delay=0, status=sent (delivered to
maildir)
Mar 20 12:16:03 numberfixe postfix/qmgr[10652]: 61E2749DD00: removed
__________________________________________________________

I'm have Amavisd with postfix..
The mail was receive by Postfix, send to amavisd, and return to postfix..
Could you say-me why postfix don't use Maildrop ?

Thanks

_________________________________________________________________
MSN Messenger: appels gratuits de PC à PC !
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-fr