On 2/23/15 12:27 AM, Wietse Venema wrote:
> Kirill Peskov:
>> My task is to forward only 'local' mails to the milter for processing,
>> leaving 'foreign' outgoing mails untouched.
> Milters must see the entire SMTP session, not just the RCPT TO command.
>
> If you want different Milters for different domains, configure
> different smtpd services in master.cf, each listening on a different
> IP address, one with milter and one without. Then point each domain's
> MX records to the appropriate IP address.
>
>       Wietse
Ouch! Sounds not really as 'elegant' solution... Thank you for the quick
response, anyway. Looks like I have to rethink the whole concept and,
perhaps, replace the milter with something else. Is there any way to
pass the message through content filter (which can potentially amend the
content of the message or even bounce it if the message does not fit
certain criteria) JUST before passing it to the lmtp (dovecot in my
case) for the final delivery to the recipient's mailbox?

Thanx in advance!
Kirill

Reply via email to