postfix-users March 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Virtual Alias Translation to User Mailbox Not Pas

Virtual Alias Translation to User Mailbox Not Passed to Dovecot LDA

From: Marc Veary <nwlcoc_at_nospam>
Date: Tue Mar 01 2011 - 13:29:41 GMT
To: postfix-users@postfix.org

Hi,

I have a problem with my installation of postfix and virtual aliases
(mysql). When an email is sent to a virtual alias, the smtp subsystem
translates the alias to the correct real mailbox. However, when the
dovecot/pipe subsystem is called, the recipient is the alias and NOT the
real mailbox. For instance, abuse@mydomain.tld is resolved to
myuser@mydomain.com, but the recipient that the dovecot LDA receives is
abuse@mydomain.com rather than myuser@mydomain.com, and since dovecot's SQL
does query users from the 'alias' table only the 'users' table, thus the
message is bounced.

I have tried all that I can think of to resolve this, but to no avail...

Any help gratefully received.

Kind regards,
-- Marc * Log Output:* Mar 1 08:47:39 ims1 postfix/smtpd[9561]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql_virtual_alias_maps.cf flags=lock|fold_fix key=abuse@mydomain.com -> status=0 result=marc@mydomain.com Mar 1 08:47:39 ims1 postfix/smtpd[9561]: maps_find: virtual_alias_maps: proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock| fold_fix): abuse@mydomain.com = marc@mydomain.com Mar 1 08:47:39 ims1 postfix/smtpd[9561]: mail_addr_find: abuse@mydomain.com-> marc@mydomain.com Mar 1 08:47:39 ims1 postfix/smtpd[9561]: smtpd_check_rewrite: trying: permit_inet_interfaces ... Mar 1 08:47:39 ims1 postfix/pipe[9566]: deliver_request_get: file active/1A0F639AF0 Mar 1 08:47:39 ims1 postfix/pipe[9566]: deliver_message: from < someone@somewhere.com> Mar 1 08:47:39 ims1 postfix/pipe[9566]: dict_eval: const 1000s Mar 1 08:47:39 ims1 postfix/pipe[9566]: get_service_params: time_limit 1000 Mar 1 08:47:39 ims1 postfix/pipe[9566]: get_service_attr: uid 5000, gid 5000, flags 196632, size 0 Mar 1 08:47:39 ims1 postfix/pipe[9566]: dict_eval: const /usr/lib/dovecot/deliver Mar 1 08:47:39 ims1 postfix/pipe[9566]: dict_eval: const -f Mar 1 08:47:39 ims1 postfix/pipe[9566]: dict_eval: expand ${sender} -> someone@somewhere.com Mar 1 08:47:39 ims1 postfix/pipe[9566]: dict_eval: const -d Mar 1 08:47:39 ims1 postfix/pipe[9566]: dict_eval: expand ${user}@${nexthop} -> abuse@mydomain.com Mar 1 08:47:39 ims1 postfix/pipe[9566]: connect to subsystem private/bounce