Le 08/02/2011 00:44, Reindl Harald a écrit :
> Am 07.02.2011 22:56, schrieb [email protected]:
>
>> This is your source of recipient checking...
>> So it matters what you get from this by querying with "postmap -q
>> <recipient-address>
>> mysql:/etc/postfix/mysql-recipients.cf
>
> exactly this is the reason why i need a working domain-alias
>
> "mysql-recipients.cf" is querying dbmail for valid addresses
> dbmail do not have domain-aliases and so postfix should handle
> this by saying "thelounge.at is an alias for the lounge.net
> and if someone sends a mal at [email protected] i check
> if [email protected] exists"
>
adjust your sql statements to only return a result if the final address
exists in your table.
query = select alias from Alias, rcpttable where ...
AND alias = rcpttable.recipient
also, don't use canonical when virtual_alias_maps unless you need header
rewrite.
> the "recipient_canonical_maps" seems to use the @targetdomain
> and DO NOT use "mysql-recipients.cf" becasue "invalid@domain"
> does not exist and is received for the alias-domain and the
> reject happens later after rewrite the rctp by the lmtp
>