On 02/17/2017 07:41 PM, Noel Jones wrote:
> On 2/17/2017 12:04 PM, Marek Kozlowski wrote:
>> I'm searching for a possibbility of rewriting (senders') addresses only
>> for all mail originating from my system - no matter if it is local or
>> remote delivery. I mean: rewriting sender's address for mail from SASL
>> authenticated users and leaving as is for all other mail. May I ask for
>> some tips?
>
> From your short description, it sounds as if canonical_maps is what
> you need.  If that doesn't seem to fit, please describe your needs
> in more detail.
I perform maps in form of some LDAP queries. In my case it is possible
that my server receives mail from some remote hosts while LDAP queries
return positive results. In such case any replacements should NOT be
applied. For mail from SASL authenticated users I'd like to rewrite
senders' addresses according to LDAP queries results no matter if it is
local or remote delivery.

When smithj authenticates via SASL to my server and sends e-mail from
`smi...@something.com' locally or remotely I'd like to replace it to
`j.sm...@sth.com'. But if mail form `smi...@something.com' is received
from remote SMTP hosts any address changes should NOT be applied.

Best ragerds,
Marek


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to