On Thu, Jun 21, 2012 at 05:59:32PM +0200, Juan Jos? S?nchez Mesa wrote:

> Primary domain has "real" mailboxes. Secondary domain has and alias
> for primary domain:

Instead of giving an anecdotal description of your configuration,
post the actual settings.

        1. postconf -n output
        2. Output of "postmap -q key table" commands that show
           the relevant table contents.
        3. Logs for the problem transaction (all log entries for
           its queue-id).

> @domain.net -> @domain.com

Generally a bad idea: if exposed to external senders, this breaks
recipient validation and generates substantial backscatter when
your domain is subjected to a dictionary attack.

> But, we setup an alias on primary domain, to forward mail to a gmail
> account:
> 
> m...@domain.com -> m...@gmail.com
> 
> This works pretty well if mail is sent to m...@domain.com. But, If
> we send an email to m...@domain.net, Postfix correctly rewrite the
> email to m...@domain.com, but then it don't forward to
> m...@gmail.com, it pass the mail to maildrop and is stored in disk
> instead of forwarded.
> 
> This cannot be accomplished ?
> 
> Domain forward and mail forward are in same table and used in
> virtual_alias_maps setting.

Hard to say without any concrete configuration information.  Virtual
expansion is recursive, so when "m...@example.net" expands to
"m...@example.com" this is in-turn subjected to further virtual
alias expansion, so the issue you describe is inconsistent with
the configuration you allude to.

-- 
        Viktor.

Reply via email to