On 5/27/2011 10:01 AM, Reindl Harald wrote:
Am 27.05.2011 16:54, schrieb Brian Evans - Postfix List:
On 5/27/2011 10:44 AM, Reindl Harald wrote:
hm - has anybody an idea why the following message is expanded to "myorigin"
instead using "alias_maps" and relay to the external address?
[root@srv-rhsoft:~]$ postconf -n alias_maps
alias_maps = proxy:mysql:/etc/postfix/mysql-aliases.cf

[root@srv-rhsoft:~]$ postalias -q "harry" 
proxy:mysql:/etc/postfix/mysql-aliases.cf
reindl.har...@gmail.com

May 27 16:37:16 srv-rhsoft postfix/lmtp[1510]: B40E3336: 
to=<ha...@srv-rhsoft.rhsoft.net>, orig_to=<harry>,
relay=127.0.0.1[127.0.0.1]:24, delay=1.1, delays=0.34/0.24/0.02/0.46, 
dsn=2.0.0, status=sent (215 Recipient
<ha...@srv-rhsoft.rhsoft.net>  OK)
From: man 5 postconf
alias_maps (default: see "postconf -d" output)

     The alias databases that are used for local(8) delivery. See
aliases(5) for syntax details.

The transport above is NOT local(8), you probably want a
virtual_alias_maps with fully qualified addresses on both sides.

i catch not why "amil username" in the terminal is NOT local


Because it's really username@$myorigin

http://www.postfix.org/ADDRESS_REWRITING_README.html#overview

Rewriting a bare address to standard address@$myorigin form
happens before any other rewrite.

Probably best to use virtual_alias_maps for this, using a fully qualified address.


  -- Noel Jones

Reply via email to