4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] option -f of maildrop
FromSent OnAttachments
Thierry BDec 21, 2004 10:13 am 
Chris HollemanDec 22, 2004 1:34 am 
Thierry BDec 22, 2004 7:56 am 
Chris HollemanDec 22, 2004 8:03 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] option -f of maildropActions...
From:Thierry B (deb@bouhnik.biz)
Date:Dec 22, 2004 7:56:42 am
List:net.sourceforge.lists.courier-maildrop

Re, in my file var, I've that:

thierry:/home/thierry# cat /tmp/vars FROM=thie@bouhnik.biz LOGNAME=thie@linux.thierry.eu.org

So it's good, but when I look my mail log, I've that:

Dec 22 16:49:50 thierry postfix/postfix-script: stopping the Postfix mail system Dec 22 16:49:50 thierry postfix/master[5028]: terminating on signal 15 Dec 22 16:49:52 thierry postfix/postfix-script: starting the Postfix mail system Dec 22 16:49:52 thierry postfix/master[5623]: daemon started -- version 2.1.5 Dec 22 16:50:29 thierry postfix/smtpd[5646]: connect from serveur[192.168.0.3] Dec 22 16:50:29 thierry postfix/smtpd[5646]: 71AD992EA0: client=serveur[192.168.0.3] Dec 22 16:50:29 thierry postfix/cleanup[5652]: 71AD992EA0: message-id=<41C9@bouhnik.biz> Dec 22 16:50:29 thierry postfix/qmgr[5628]: 71AD992EA0: from=<thie@bouhnik.biz>, size=1197, nrcpt=1 (queue active) Dec 22 16:50:29 thierry postfix/smtpd[5646]: disconnect from serveur[192.168.0.3] Dec 22 16:50:30 thierry postfix/smtpd[5656]: connect from localhost[127.0.0.1] Dec 22 16:50:30 thierry postfix/smtpd[5656]: 2C45E92EA1: client=localhost[127.0.0.1] Dec 22 16:50:30 thierry postfix/cleanup[5652]: 2C45E92EA1: message-id=<41C9@bouhnik.biz> Dec 22 16:50:30 thierry postfix/smtpd[5656]: disconnect from localhost[127.0.0.1] Dec 22 16:50:30 thierry amavis[4743]: (04743-01) Passed, <thie@bouhnik.biz> -> <thie@linux.thierry.eu.org>, Message-ID: <41C9@bouhnik.biz>, Hits: - Dec 22 16:50:30 thierry postfix/qmgr[5628]: 2C45E92EA1: from=<thie@bouhnik.biz>, size=1649, nrcpt=1 (queue active) Dec 22 16:50:30 thierry postfix/lmtp[5653]: 71AD992EA0: to=<thie@linux.thierry.eu.org>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=04743-01, from MTA: 250 Ok: queued as 2C45E92EA1) Dec 22 16:50:30 thierry postfix/qmgr[5628]: 71AD992EA0: removed Dec 22 16:50:34 thierry postfix/pickup[5627]: 8E63592ECC: uid=1005 from=<vmail> Dec 22 16:50:34 thierry postfix/cleanup[5652]: 8E63592ECC: message-id=<41C9@bouhnik.biz> Dec 22 16:50:34 thierry postfix/qmgr[5628]: 8E63592ECC: from=<vmail@debian.debian>, size=1795, nrcpt=1 (queue active) Dec 22 16:50:34 thierry postfix/pipe[5658]: 2C45E92EA1: to=<thie@linux.thierry.eu.org>, relay=maildrop, delay=4, status=sent (linux.thierry.eu.org) Dec 22 16:50:34 thierry postfix/qmgr[5628]: 2C45E92EA1: removed Dec 22 16:50:34 thierry postfix/smtpd[5656]: connect from localhost[127.0.0.1] Dec 22 16:50:34 thierry postfix/smtpd[5656]: CA53692EA0: client=localhost[127.0.0.1] Dec 22 16:50:34 thierry postfix/cleanup[5652]: CA53692EA0: message-id=<41C9@bouhnik.biz> Dec 22 16:50:34 thierry postfix/qmgr[5628]: CA53692EA0: from=<vmail@debian.debian>, size=2227, nrcpt=1 (queue active) Dec 22 16:50:34 thierry postfix/smtpd[5656]: disconnect from localhost[127.0.0.1] Dec 22 16:50:34 thierry amavis[4743]: (04743-01-2) Passed, <vmail@debian.debian> -> <thbo@free.fr>, Message-ID: <41C9@bouhnik.biz>, Hits: - Dec 22 16:50:34 thierry postfix/lmtp[5653]: 8E63592ECC: to=<thbo@free.fr>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=04743-01-2, from MTA: 250 Ok: queued as CA53692EA0) Dec 22 16:50:34 thierry postfix/qmgr[5628]: 8E63592ECC: removed Dec 22 16:50:37 thierry imaplogin: Connection, ip=[::ffff:127.0.0.1] Dec 22 16:50:37 thierry imaplogin: LOGIN, user=thie@linux.thierry.eu.org, ip=[::ffff:127.0.0.1], protocol=IMAP Dec 22 16:50:58 thierry postfix/smtp[5666]: CA53692EA0: to=<thbo@free.fr>, relay=mx.free.fr[212.27.42.22], delay=24, status=bounced (host mx.free.fr[212.27.42.22] said: 553 sorry, your envelope sender domain must exist (#5.7.1) (in reply to MAIL FROM command)) Dec 22 16:50:58 thierry postfix/cleanup[5652]: E97A992EA1: message-id=<20041222155058.E97A992EA1@debian> Dec 22 16:50:58 thierry postfix/qmgr[5628]: E97A992EA1: from=<>, size=3984, nrcpt=1 (queue active) Dec 22 16:50:58 thierry postfix/qmgr[5628]: CA53692EA0: removed Dec 22 16:51:04 thierry postfix/smtp[5676]: E97A992EA1: to=<vmail@debian.debian>, relay=none, delay=6, status=bounced ([debian.debian]: Name or service not known) Dec 22 16:51:04 thierry postfix/qmgr[5628]: E97A992EA1: removed

We remark that he uses the from:vmail@debian.debian to send mail to thbo@free.fr

This is my /etc/maildroprc:

`echo FROM=$FROM > /tmp/vars` `echo LOGNAME=$LOGNAME >> /tmp/vars`

if ( $SIZE < 26144 ) { exception { xfilter "/usr/bin/spamassassin --prefspath=$HOME/$DEFAULT/.spamassassin/user_prefs" } }

if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam/" } } if (/^To: te@linux.thierry.eu.org/) { exception { to "$HOME/$DEFAULT/.Teil/" } } else { exception { cc "!thbo@free.fr" to "$HOME/$DEFAULT" } }

So i'd like that he uses the good from (which is in tha variable from), to make "cc !thbo@free.fr", and I don't understand why he's got the good variable from but it tries to send mail with a local domain of my postfix.

Thanks

Bye.

-----Original Message----- From: Chris Holleman <chr@isd-holland.nl> To: cour@lists.sourceforge.net Date: Wed, 22 Dec 2004 10:32:53 +0100 Subject: Re: [maildropl] option -f of maildrop

On Tue, Dec 21, 2004 at 07:11:41PM +0100, Thierry B wrote:

Hello, I see in the documentation of Maildrop, that I can put in master.cf of postfix, in the syntax of maildrop, -f address, with address is the address of sender.

But it doesn't works in my config.

i would be handy if you showed the config.....

And I read that the option -f could be desactivated, so I ask how can I verify that this optio is enable?

I compiled maildrop myself.

I don't know exactly what you mean but do you have something like

maildrop unix - n n - 500 pipe flags=Ru user=vmail argv=/usr/local/maildrop/bin/maildrop -d ${recipient} -f ${sender}

in your master.cf ?

if so try

`echo FROM=$FROM > /tmp/vars` `echo LOGNAME=$LOGNAME >> /tmp/vars`

in a mailfilter file and send an email, after that check /tmp/vars

Thanks. Bye