On Wed, May 19, 2010 at 16:00, Noel Jones <njo...@megan.vbhcs.org> wrote:

> On 5/19/2010 2:49 PM, Phil Howard wrote:
>
>> On Wed, May 19, 2010 at 15:14, Noel Jones <njo...@megan.vbhcs.org
>> <mailto:njo...@megan.vbhcs.org>> wrote:
>>
>>    If smtp_generic_maps suit your needs, they will not affect recipient
>>    validation, and may be easier to implement.
>>
>>
>> Isn't that a client mapping that would apply to sender addresses on
>> outgoing?
>>
>>
> smtp_generic_maps rewrites addresses on the fly during delivery.  It's
> commonly used eg. rewrite @foo.example.com to @example.com during delivery
> to hide internal addresses.
> http://www.postfix.org/postconf.5.html#smtp_generic_maps
>
> http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
>

OK, so both sender and recipient?

But it sounds like what I need is something to rewrite envelope recipient
address at SMTPD RCPT TO time.  Like maybe (this does not exist)
smtpd_recipient_map and (also does not exist) smtpd_recipient_domain_map ??
What I would envision this doing is applying this rewrite before checking to
see if the user really exists, then using that rewritten address in all
further checks that get done during the SMTPD session, all while the remote
SMTP client waits for a response (it's already waiting for all those
restriction checks).

Reply via email to