On 13.03.2013 16:22, Wietse Venema wrote:
> Gerald Vogt:
>> On 13.03.2013 15:54, Wietse Venema wrote:
>>>> 2. This still won't help to accept e-mails for users regardless of what
>>>> comes after the @ and reject it if the user does not exist.
>>>
>>> To reject non-existent recipients, list the existing ones in
>>> relay_recipient_maps.  If you can't populate that table, use
>>
>> And how do I create a list to accept e-mails for u...@example.com and
>> user@*.example.com for a known set of user names?
> 
> In that case one should normalize the address (u...@whatever.example.com
> -> u...@example.com) before consulting a table with all u...@example.com.

I thought that's what masquerading is for.

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

But unfortunately that's not done before the recipient address check.

> Unfortunately, Postfix has (up to now) no way to feed the result
> from one table into another table, but there is a workaround
> which requires Postfix 2.7 or later:

Too bad. I have a Centos 6 with postfix 2.6.6

> This is admittely a bit gross but so is the problem.

What's so gross about the problem? It's basic masquerading. It just
should be done before check the recipient address and not after...

-Gerald

Reply via email to