OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: VIRTUAL_README autoreply config doesn't work

From: Alain NAKACHE (alainalinto.net)
Date: Wed Mar 24 2004 - 14:31:47 CST


At 21:07 24/03/04, WC -Sx- Jones wrote:
>Alain NAKACHE wrote:
>
>>/etc/postfix/master.cf:
>>[...]
>>autoreply unix - n n
>>- - pipe
>> user=vmail:vmail argv=/usr/bin/autoreply $mailbox $sender

First, many thanks for your response:-)

>The above isnt the same format as:
>
>/etc/postfix/master.cf:
> # =============================================================
> # service type private unpriv chroot wakeup maxproc command
> # (yes) (yes) (yes) (never) (100)
> # =============================================================
> autoreply unix - n n - - pipe
> flags= user=nobody argv=/path/to/autoreply $sender $mailbox
>
>
>"flags" seems missing... Maybe it's not mandatory.

I tried with 'flag=' and the problem is still present

Mar 24 21:30:38 traban postfix/cleanup[23065]: 24EBFBB97C:
message-id=<20040324203038.24EBFBB97Csmtp.p-mail.org>
Mar 24 21:30:38 traban postfix/nqmgr[23060]: 24EBFBB97C:
from=<alaincal.fr>, size=378, nrcpt=2 (queue active)
Mar 24 21:30:38 traban postfix/pipe[23068]: 24EBFBB97C:
to=<testp-mail.org>, relay=maildrop, delay=0, status=sent (p-mail.org)
Mar 24 21:30:38 traban postfix/pipe[23069]: 24EBFBB97C:
to=<testp-mail.org>, relay=maildrop, delay=0, status=sent (p-mail.org)

maildrop transport called twice instead od maildrop + autoreply

It seems that the address 'testp-mail.orgautoreply.p-mail.org' is
considered to be 'testp-mail.org'.
Rewriting stops when it encountered the second ''. Then if I replace the
first '' with say '+' it works !

Did I missed a main.cf parameter ? Which parameter ?

>What system are you using? Do you have autoreply?
>I use Solaris and I do not have autoreply...

It is mine. I wrote a perl script which call maildrop mailbot tool.