Is there any way to seperate NDR with other mails?

2015-07-02 Thread King Cao
Dears, I want to redirect all NDR to seperate postfix mta while delivering non-NDR to another postfix mta. The first idea is to update the "bounce" process to redirect all "bounce" traffic to shell via pipe, and such shell will deliver those NDR to those seperate postfix mta. However, is there an

TCP maps behvaiour when listener is down

2015-07-02 Thread Atnakus Arzah
I am trying to setup key lookup with the behaviour that even if the TCP server is down the hash table lookup will proceed. However, from the postfix logs I see that when the TCP server is down, there are multiple retries to the TCP server and then the attempt is aborted. Is there a way to set thi

Re: Is there any way to seperate NDR with other mails?

2015-07-02 Thread Wietse Venema
King Cao: > Dears, > > I want to redirect all NDR to seperate postfix mta while delivering non-NDR > to another postfix mta. The first idea is to update the "bounce" process to > redirect all "bounce" traffic to shell via pipe, and such shell will > deliver those NDR to those seperate postfix mta.

Re: TCP maps behvaiour when listener is down

2015-07-02 Thread Wietse Venema
Atnakus Arzah: > I am trying to setup key lookup with the behaviour that even if the TCP > server is down the hash table lookup will proceed. However, from the > postfix logs I see that when the TCP server is down, there are multiple > retries to the TCP server and > then the attempt is aborted. I

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: Any elegant way to count all the incoming messages?

2015-07-02 Thread Viktor Dukhovni
On Thu, Jul 02, 2015 at 03:42:46PM +, Kirill Peskov wrote: > 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 corres

Question about DSN

2015-07-02 Thread Michael Peter
Hi, for postfix log file /var/log/maillog, we notice that following line 1198B1E111: to=, relay=mail.example.com[XXX.XXX.XXX.XXX]:25, delay=20, delays=4.3/0.01/1.8/14, dsn=2.6.0, status=sent (250 2.6.0 Queued mail for delivery) The DSN is 2.6.0 INSTEAD of 2.0.0, is DSN is 2.6.0 is considered su

Re: Question about DSN

2015-07-02 Thread Sebastian Nielsen
As the subcodes say that "transformation was required for delivery", it sounds like the mail was converted across formats, or content was omitted. This can happen if a server decides to strip all attachments or the mail did contain something unparseable that the server decided to pass along with

Re: Question about DSN

2015-07-02 Thread Viktor Dukhovni
On Thu, Jul 02, 2015 at 07:36:38PM +0300, Michael Peter wrote: > for postfix log file /var/log/maillog, we notice that following line > > 1198B1E111: to=, > relay=mail.example.com[XXX.XXX.XXX.XXX]:25, delay=20, > delays=4.3/0.01/1.8/14, dsn=2.6.0, status=sent (250 2.6.0 Queued mail for > delivery

policy server determine proxy filter?

2015-07-02 Thread Rod K
Using "FILTER {destination}" one can use a policy server to set/override an after queue filter, but is there anyway to set/override a before queue proxy filter from a policy server?

Re: policy server determine proxy filter?

2015-07-02 Thread Viktor Dukhovni
On Thu, Jul 02, 2015 at 01:44:45PM -0400, Rod K wrote: > Using "FILTER {destination}" one can use a policy server to set/override an > after queue filter, but is there anyway to set/override a before queue proxy > filter from a policy server? No, and you can't even specify "FILTER" directives to

Re: policy server determine proxy filter?

2015-07-02 Thread Rod K
On 7/2/2015 1:52 PM, Viktor Dukhovni wrote: On Thu, Jul 02, 2015 at 01:44:45PM -0400, Rod K wrote: Using "FILTER {destination}" one can use a policy server to set/override an after queue filter, but is there anyway to set/override a before queue proxy filter from a policy server? No, and you c

Re: policy server determine proxy filter?

2015-07-02 Thread Rod K
On 7/2/2015 1:52 PM, Viktor Dukhovni wrote: On Thu, Jul 02, 2015 at 01:44:45PM -0400, Rod K wrote: Using "FILTER {destination}" one can use a policy server to set/override an after queue filter, but is there anyway to set/override a before queue proxy filter from a policy server? No, and you c

Re: policy server determine proxy filter?

2015-07-02 Thread Viktor Dukhovni
On Thu, Jul 02, 2015 at 02:11:58PM -0400, Rod K wrote: > >> ... is there any way to set/override a before queue proxy > >> filter from a policy server? > > > >No, and you can't even specify "FILTER" directives to an SMTP server > >that uses a before queue proxy. Any FILTER directives must happen

RE: Any elegant way to count all the incoming messages?

2015-07-02 Thread Marius Gologan
If that server has also a NS role, the "extravaganza" task is questionable. -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Kirill Peskov Sent: Thursday, July 2, 2015 6:43 PM To: postfix-users@postfix.org Subject: Any elegant

Re: Any elegant way to count all the incoming messages?

2015-07-02 Thread Paul C
I'm not sure if postfix has any add ons that do this, but in my opinion, you can probably bypass the mta completely and just read the mail directories, every email is simply a file inside a directory, with full headers and the message encoded in mime, so you could read the files, parse the headers

Re: Is there any way to seperate NDR with other mails?

2015-07-02 Thread King Cao
Hi Wietse, Actually it's our relay mta and can not know if it's deliverable or not until bounced by downsteam... Regards, King 2015-07-02 20:35 GMT+08:00 Wietse Venema : > King Cao: > > Dears, > > > > I want to redirect all NDR to seperate postfix mta while delivering > non-NDR > > to another p