Charles Marcus a écrit :
> On 3/17/2009, LuKreme ([email protected]) wrote:
>> On 17-Mar-2009, at 06:09, Erwan David wrote:
>>> I would fear it breaks recipient validation, accepting mail for eavery
>>> address with a _ as valid.
> 
>> That is a drawback.
> 
> Oh... well, if it does indeed do what Erwan said, it isn't just a
> drawback, it is unacceptable. Proper recipient validation is an absolute
> requirement.
> 
> So, is there no way to rewrite the recipient and *then* validate it?
> 

as already said, generating the map from the list of valid addresses is
the way to go.

alternatively, you can add an smtpd in the chain using proxy_filter:

- smtpd on port 25 does the rewrite. it then uses proxy_filter to pass
mail to an smtpd on port 10020.

- smtpd on port 10020 does recipient validation

note that proxy_filter is required, so that rejections happen during the
smtp transaction.

Now you can plug a filter between the two smtpd's if you want more
advanced rewrite (BATV for example). again, proxy_filter here, not
content_filter.

Reply via email to