|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
VIRTUAL_README autoreply config doesn't work
From: Alain NAKACHE (alain
alinto.net)
Date: Wed Mar 24 2004 - 08:41:39 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
This is the second try because I received no response on my precedent post.
My problem :
I try to configure an autoreply fonction as explain in the VIRTUAL_README file.
My config is :
mail_version = 2.0.19
/etc/postfix/main.cf:
mydestination = $myhostname, localhost.$mydomain, autoreply.$mydomain
myhostname = smtp.p-mail.org
transport_maps = hash:/etc/postfix/transport.cf
virtual_alias_maps = hash:/etc/postfix/virtual.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-domain.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-mailbox.cf
virtual_transport = maildrop
/etc/postfix/virtual.cf:
test
p-mail.org test
p-mail.org, test
p-mail.org
autoreply.p-mail.org
/etc/postfix/transport.cf:
autoreply.p-mail.org autoreply:
/etc/postfix/master.cf:
[...]
autoreply
unix - n n - -
pipe
user=vmail:vmail argv=/usr/bin/autoreply $mailbox $sender
Then when I send a mail to test
p-mail.org here is the log :
Mar 22 23:03:03 traban postfix/pickup[18354]: C46FABB97B: uid=0
from=<alain
cal.fr>
Mar 22 23:03:03 traban postfix/cleanup[18413]: C46FABB97B:
message-id=<20040322220303.C46FABB97B
smtp.p-mail.org>
Mar 22 23:03:03 traban postfix/nqmgr[18355]: C46FABB97B:
from=<alain
cal.fr>, size=378, nrcpt=2 (queue active)
Mar 22 23:03:03 traban postfix/pipe[18417]: C46FABB97B:
to=<test
p-mail.org>, relay=maildrop, delay=0, status=sent (p-mail.org)
Mar 22 23:03:03 traban postfix/pipe[18416]: C46FABB97B:
to=<test
p-mail.org>, relay=maildrop, delay=0, status=sent (p-mail.org)
and the trivial-rewrite verbose log :
[...]
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: rewrite socket:
wanted attribute: request
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: input attribute
name: request
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: input attribute
value: resolve
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: rewrite socket:
wanted attribute: address
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: input attribute
name: address
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: input attribute
value: test
p-mail.org
autoreply.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: rewrite socket:
wanted attribute: (list terminator)
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: input attribute
name: (end)
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
autoreply.p-mail.org ~? smtp.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
autoreply.p-mail.org ~? localhost.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
autoreply.p-mail.org ~? autoreply.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
p-mail.org ~? smtp.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
p-mail.org ~? localhost.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
p-mail.org ~? autoreply.p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_list_match:
p-mail.org: no match
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
p-mail.org ~? hash:/etc/postfix/virtual.cf
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_list_match:
p-mail.org: no match
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: match_string:
p-mail.org ~? mysql:/etc/postfix/mysql-domain.cf
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: dict_mysql_lookup
using sql query: select domain_id from domain where domain_id = 'p-mail.org'
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: dict_mysql:
attempting to connect to host localhost
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: dict_mysql:
successful connection to host localhost
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: dict_mysql:
successful query from host localhost
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: dict_mysql_lookup:
retrieved 1 rows
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: maps_find:
transport: test
p-mail.org: not found
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: maps_find:
transport: p-mail.org: not found
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: maps_find:
transport: .org: not found
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]:
test
p-mail.org
autoreply.p-mail.org -> (`maildrop' `p-mail.org'
`test
p-mail.org' `1024')
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: send attr transport
= maildrop
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: send attr nexthop =
p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: send attr recipient
= test
p-mail.org
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: send attr flags = 1024
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: master_notify: status 1
Mar 22 23:07:19 traban postfix/trivial-rewrite[18481]: watchdog_start:
0x84ec810
[...]
Why the 'autoreply' transport is never selected ?
I think it is a bad rewriting because when I replace the first '
' with '+'
in forwarding address :
/etc/postfix/virtual.cf:
test
p-mail.org test
p-mail.org, test+p-mail.org
autoreply.p-mail.org
it works.
Where am I wrong ?
Thanks in advance.
Alain
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]