Dear All,

I am first config postfix va hava a problem, when I send mail from google
mail t...@gmail.com to u...@mydomain.com it show below

The following recipient(s) cannot be reached:

      u...@mydomain.com on 2/29/2012 5:05 PM
            Server error: '554 5.7.1 < u...@mydomain.com >: Relay access
denied'

Where is my error ?

-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Marco Aimar
Sent: Wednesday, February 29, 2012 4:50 PM
To: postfix-users@postfix.org
Subject: virtual vacation

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 a...@test.it) it
insert in alias table this record:
------------------
address=a...@test.it
goto=a#test...@autoreply.test.it
domain=test.it
------------------

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



When I send one email from send@sender to a...@test.it postfix report "loops
back to myself" :
------------------
amavis[20123]: (20123-19) Passed CLEAN, [] <send@sender> ->
<a#test...@autoreply.test.it>, queued_as: ED259280D9C, 102 ms
postfix/smtp[27733]: C92D8280CF1: to=<a#test...@autoreply.test.it>,
orig_to=<a...@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#test...@mail.test.it>,
relay=spamassassin,status=sent (delivered via spamassassin service)
postfix/smtp[28751]: 28378280EBB: to=<a#test...@mail.test.it>, relay=none,
status=bounced (mail for autoreply.test.it loops back to myself)
------------------


Anyone can help me?


Reply via email to