Any elegant way to count all the incoming messages?

2015-07-02 Thread Kirill Peskov
Dear postfix gurus, Could you, please, suggest the method to setup a message counter on SMTP, so every incoming message regardless exact content of To: Cc: or Bcc: fields (e.g. one SMTP transaction) would increase the counter by one or call corresponding bash script able to do that? I've got devel

Re: Domain-dependent milter?

2015-02-22 Thread Kirill Peskov
different >> IP address, one with milter and one without. Then point each >> domain's MX records to the appropriate IP address. > Kirill Peskov: >> Ouch! Sounds not really as 'elegant' solution... Thank you for the quick >> response, anyway. > There is nothi

Re: Domain-dependent milter?

2015-02-22 Thread Kirill Peskov
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.

Re: Domain-dependent milter?

2015-02-22 Thread Kirill Peskov
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.

Domain-dependent milter?

2015-02-22 Thread Kirill Peskov
Hi All! I've got a problem which seems to be not trivial for me despite almost 10-years experience with Postfix... I've got my own SMTP server running postfix (what else?) and it controls several domains. If the mail arrives from 'outside', it should go to the milter before going to the destinatio