On Tuesday, June 09, 2009 at 09:02 CEST,
     Arnaud JAYET <aja...@free.fr> wrote:

> i'm trying to set up a Vacation Mail Responder using postfix and
> special transport + PERL script.
> 
> i want to let users choose between :
> case 1 : automatic vacation responding and not delivrering the
> original message (message is lost)
> case 2 : automatic vacation responding and delivrering original
> message in their mailbox

[...]

> in vir_vacation i can have
> 
> case 1 :
> u...@domain.tld     u...@autoreply.domain.tld
> 
> case 2:
> u...@domain.tld     u...@autoreply.domain.tld,u...@domain.tld
> 
> in case 1, all is fine, original sender receives the automatic mail
> 
> but in case 2, PERL script is called twice (but the message is well
> delivered in user's mailbox) and so there is 2 automatic mail sent to
> original sender
> 
> how can avoid this "recursive" lookup in the table and sending
> automatic vacation message twice ?

This is a FAQ. You have a content filter and must disable the address
rewriting either before or after the filter. This is described in
FILTER_README, keyword receive_override_options.

http://www.postfix.org/FILTER_README.html
http://www.postfix.org/postconf.5.html#receive_override_options

[...]

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to