postfix disable bounce for transport -


i have postfix different transport. 1 of these transports want disable message bounce.

master.cf

            smtp      inet  n       -       n       -       -       smtpd             pickup    fifo  n       -       n       60      1       pickup             cleanup   unix  n       -       n       -       0       cleanup             qmgr      fifo  n       -       n       300     1       qmgr             tlsmgr    unix  -       -       n       1000?   1       tlsmgr             rewrite   unix  -       -       n       -       -       trivial-rewrite             bounce    unix  -       -       n       -       0       bounce             defer     unix  -       -       n       -       0       bounce             trace     unix  -       -       n       -       0       bounce             verify    unix  -       -       n       -       1       verify             flush     unix  n       -       n       1000?   0       flush             proxymap  unix  -       -       n       -       -       proxymap             proxywrite unix -       -       n       -       1       proxymap             smtp      unix  -       -       n       -       -       smtp             relay     unix  -       -       n       -       -       smtp                 -o smtp_fallback_relay=             showq     unix  n       -       n       -       -       showq             error     unix  -       -       n       -       -       error             retry     unix  -       -       n       -       -       error             discard   unix  -       -       n       -       -       discard             local     unix  -       n       n       -       -       local             virtual   unix  -       n       n       -       -       virtual             lmtp      unix  -       -       n       -       -       lmtp anvil     unix  -       -       n       -       1       anvil scache    unix  -       -       n       -       1       scache dovecot    unix    -    n    n    -    -    pipe             flags=drhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d $(recipient) emailtransport   unix  -       n       n       -       -       pipe         flags=x user=transpostfix argv=/media/raid1m/mailparse/emailtransport.php                  #****** other options ************ other2emailtransport   unix  -       n       n       -       -       pipe         flags=x user=other2transpostfix argv=/media/raid1m/mailparse/other2emailtransport.php 

log output:

mar 26 15:35:14 machin1 postfix/smtpd[12110]: connect client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:14 machin1 postfix/smtpd[12125]: connect client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:14 machin1 postfix/pipe[3893]: 0738c180997: to=<transpostfix@localhost.localhost>, orig_to=<zauri.t@ass.exemple.com.domain>, relay=emailtransport, delay=0.5, delays=0.07/0/0/0.42, dsn=2.0.0, status=sent (delivered via emailtransport service) mar 26 15:35:14 machin1 postfix/qmgr[12106]: 0738c180997: removed mar 26 15:35:14 machin1 postfix/smtpd[12110]: setting tls connection client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:14 machin1 postfix/smtpd[12125]: cc0ff180996: client=client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:14 machin1 postfix/smtpd[21657]: disconnect client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:14 machin1 postfix/smtpd[12110]: anonymous tls connection established client=68.ip-11-11-10.eu[11.12.13.14]: tlsv1 cipher dhe-rsa-aes128-sha (128/128 bits) mar 26 15:35:15 machin1 postfix/smtpd[12224]: 1662e180997: client=client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:15 machin1 postfix/cleanup[20853]: cc0ff180996: message-id=<a779c13adb0ff35fc576b6a9a3a779c7@async.clubggff.com> mar 26 15:35:15 machin1 postfix/qmgr[12106]: cc0ff180996: from=<notification+kjdkjivh3i_d@example-mail.com>, size=16051, nrcpt=1 (queue active) mar 26 15:35:15 machin1 postfix/smtpd[12110]: 6873f180998: client=client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:15 machin1 postfix/cleanup[21196]: 1662e180997: message-id=<cb01d448de2987547cd69fcab1e92f92@async.clubggff.com> mar 26 15:35:15 machin1 postfix/pipe[6928]: cc0ff180996: to=<transpostfix@localhost.localhost>, orig_to=<s01064154705@add3000.exemple.com.domain>, relay=emailtransport, delay=0.97, delays=0.55/0/0/0.42, dsn=2.0.0, status=sent (delivered via emailtransport service) mar 26 15:35:15 machin1 postfix/qmgr[12106]: cc0ff180996: removed mar 26 15:35:15 machin1 postfix/cleanup[21201]: 6873f180998: message-id=<1729890133889801-1540059429539540@groups.clubggff.com> mar 26 15:35:15 machin1 postfix/qmgr[12106]: 1662e180997: from=<notification+kjdkj5wd1k3_@example-mail.com>, size=18421, nrcpt=1 (queue active) mar 26 15:35:15 machin1 postfix/qmgr[12106]: 6873f180998: from=<notification+kjdkpj3hdv5d@example-mail.com>, size=24947, nrcpt=1 (queue active) mar 26 15:35:16 machin1 postfix/pipe[6941]: 1662e180997: to=<transpostfix@localhost.localhost>, orig_to=<margaretgarza@add3000.exemple.com.domain>, relay=emailtransport, delay=1.4, delays=0.95/0/0/0.41, dsn=2.0.0, status=sent (delivered via emailtransport service) mar 26 15:35:16 machin1 postfix/qmgr[12106]: 1662e180997: removed mar 26 15:35:16 machin1 postfix/smtpd[12154]: noqueue: reject: rcpt client=68.ip-11-11-10.eu[11.12.13.14]: 504 5.5.2 <164.132.109.68>: helo command rejected: need fully-qualified hostname; from=<mbeuwen@sfilc.com> to=<t120304677@yahoo.com.tw> proto=smtp helo=<164.132.109.68> mar 26 15:35:16 machin1 postfix/smtpd[12130]: disconnect client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:16 machin1 postfix/smtpd[12157]: connect client=68.ip-11-11-10.eu[11.12.13.14] mar 26 15:35:16 machin1 postfix/pipe[6938]: 6873f180998: to=<transpostfix@localhost.localhost>, orig_to=<fgbdfscxw@my-dom.exemple.com.domain>, relay=emailtransport, delay=1, delays=0.58/0/0/0.47, dsn=5.3.0, status=bounced (command died status 255: "/media/raid1m/mailparse/emailtransport.php") mar 26 15:35:16 machin1 postfix/cleanup[22236]: 4ffe918099a: message-id=<20160326133516.4ffe918099a@1.444.exemple.com.domain> mar 26 15:35:16 machin1 postfix/bounce[10936]: 6873f180998: sender non-delivery notification: 4ffe918099a mar 26 15:35:16 machin1 postfix/qmgr[12106]: 4ffe918099a: from=<>, size=27004, nrcpt=1 (queue active) mar 26 15:35:16 machin1 postfix/qmgr[12106]: 6873f180998: removed mar 26 15:35:16 machin1 postfix/error[10938]: 4ffe918099a: to=<notification+kjdkpj3hdv5d@example-mail.com>, relay=none, delay=0.03, delays=0.01/0.01/0/0.01, dsn=4.3.5, status=deferred (delivery temporarily suspended: host or domain name not found. name service error name=delete-lev.exemple.com.domain type=a: host not found) 

i need disable bounce emailtransport. time emailtransport.php give mistake, it's job want.

how turn off bounce message emailtransport , did not affect work or other transports such other2emailtransport

i don't need this:

mar 26 15:35:16 machin1 postfix/pipe[6938]: 6873f180998: to=<transpostfix@localhost.localhost>, orig_to=<fgbdfscxw@my-dom.exemple.com.domain>, relay=emailtransport, delay=1, delays=0.58/0/0/0.47, dsn=5.3.0, status=bounced (command died status 255: "/media/raid1m/mailparse/emailtransport.php") mar 26 15:35:16 machin1 postfix/cleanup[22236]: 4ffe918099a: message-id=<20160326133516.4ffe918099a@1.444.exemple.com.domain> mar 26 15:35:16 machin1 postfix/bounce[10936]: 6873f180998: sender non-delivery notification: 4ffe918099a 

after command died status 255 need delete message 6873f180998. , don't send bound message 4ffe918099a.

i solved problem not quite answer question.

in documentation written: http://www.postfix.org/pipe.8.html

diagnostics        command exit status  codes   expected   follow   conventions        defined in <sysexits.h>.  exit status 0 means normal successful comple-        tion.         in case of non-zero exit status, limited amount of command out-        put   logged,  , reported in delivery status notification.  when        output begins 4.x.x or 5.x.x enhanced status code,  sta-        tus  code  takes precedence on non-zero exit status (postfix ver-        sion 2.3 , later). 

this means need have php script gave out exit(0); turned on reporting of errors ini_set('error_reporting', -1); , found problem in script. when repaired script error disappeared , issue resolved.


other theoretical options think how solve problem (but i'm unsure if possible):

  1. disable special postfix transport use bounce
  2. always rewrite error status php script 0
  3. edit in sysexits.h

Comments