Discussion:
virtual vacation
(too old to reply)
Marco Aimar
2012-02-29 09:49:49 UTC
Permalink
Hi,
I have configured virtual vacation like this:

In master.cf:
------------------
vacation unix - n n - - pipe
flags=Rq user=vacation argv=/var/spool/postfix/vacation/vacation.pl -f ${sender} -- ${recipient}
------------------

In main.cf:
------------------
transport_maps = mysql:/etc/postfix/mysql_transport.cf
------------------

File mysql_transport.cf:
------------------
user = postfix
password = postfix
dbname = postfix
table = domain
select_field = transport
where_field = domain
additional_conditions = and active=1
------------------

In mysql table domain
------------------
domain=test.it
trasport=vacation:[autoreply.test.it]
active=1
------------------


config postfixadmin:
------------------
$CONF['vacation'] = 'YES';
$CONF['vacation_domain'] = 'autoreply.test.it';
------------------

When I add a vacation message (from postfixadmin for mailbox ***@test.it) it insert in alias table this record:
------------------
address=***@test.it
goto=a#***@autoreply.test.it
domain=test.it
------------------

and in table vacation this record
------------------
email=***@test.it
subject=reply test
body=reply test
domain=test.it
------------------



When I send one email from ***@sender to ***@test.it postfix report "loops back to myself" :
------------------
amavis[20123]: (20123-19) Passed CLEAN, [] <***@sender> -> <a#***@autoreply.test.it>, queued_as: ED259280D9C, 102 ms
postfix/smtp[27733]: C92D8280CF1: to=<a#***@autoreply.test.it>, orig_to=<***@test.it>, relay=127.0.0.1[127.0.0.1]:10024, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as ED259280D9C)
postfix/pipe[27738]: ED259280D9C: to=<a#***@mail.test.it>, relay=spamassassin,status=sent (delivered via spamassassin service)
postfix/smtp[28751]: 28378280EBB: to=<a#***@mail.test.it>, relay=none, status=bounced (mail for autoreply.test.it loops back to myself)
------------------


Anyone can help me?
a***@gmail.com
2015-04-11 17:14:43 UTC
Permalink
hi
did you find way to fix it ?
r***@gmail.com
2016-10-31 13:47:36 UTC
Permalink
Também estou com este mesmo problema.

Did you find way to fix it ?

Loading...