Loading ...
Sorry, an error occurred while loading the content.
 

Virtual Alias Translation To Mailbox User Not Passed To Dovecot LDA

Expand Messages
  • Marc Veary
    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
    Message 1 of 1 , Mar 1, 2011
      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@... is resolved to myuser@..., but the recipient that the dovecot LDA receives is abuse@... rather than myuser@..., 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@... -> status=0 result=marc@...
      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@... = marc@...
      Mar  1 08:47:39 ims1 postfix/smtpd[9561]: mail_addr_find: abuse@... -> marc@...
      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@...>
      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@...
      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@...
      Mar  1 08:47:39 ims1 postfix/pipe[9566]: connect to subsystem private/bounce

    Your message has been successfully submitted and would be delivered to recipients shortly.