0

I have a postfix server setup with alias using /etc/aliases in which we have:

postmaster:     root
bounces: root

also config in main.cf are:

transport_maps = hash:/etc/postfix/transport

transport file contains:

bounces@example.com   bulkbounce:

master.cf:

bulkbounce   unix  -       n       n       -       -       pipe
  user=nobody argv=/etc/postfix/bounce_hold.php ${recipient}

Everything is working fine if I set return path to bounces@example.com

This is the log :

Mar  6 15:00:11 smtp160218 syslog/smtp[404]: 8BF363D6: to=<test@testing.com>, relay=mail.fabulous.com[104.171.24.195]:25, delay=1.4, delays=0.57/0.02/0.68/0.16, dsn=5.1.1, status=bounced (host mail.fabulous.com[104.171.24.195] said: 550 5.1.1 <test@testing.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Mar  6 15:00:11 smtp160218 postfix/cleanup[403]: F38473E0: message-id=<20180306150011.F38473E0@smtp160218.smtpmailgob.com>
Mar  6 15:00:11 smtp160218 postfix/qmgr[384]: F38473E0: from=<>, size=5856, nrcpt=1 (queue active)
Mar  6 15:00:12 smtp160218 postfix/bounce[405]: 8BF363D6: sender non-delivery notification: F38473E0
Mar  6 15:00:12 smtp160218 postfix/qmgr[384]: 8BF363D6: removed
Mar  6 15:00:12 smtp160218 postfix/pipe[406]: F38473E0: to=<bounces@example.com>, relay=bulkbounce, delay=0.05, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via bulkbounce service)

The problem starts with bounce+@example.com:

syslog/smtp[3048]: 947433D6: to=<test@testing.com>, relay=mail.fabulous.com[104.171.24.195]:25, delay=1.8, delays=0.65/0.01/0.98/0.16, dsn=5.1.1, status=bounced (host mail.fabulous.com[104.171.24.195] said: 550 5.1.1 <test@testing.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Mar  6 17:22:26 smtp160218 postfix/cleanup[3047]: 5E0113E0: message-id=<20180306172226.5E0113E0@smtp160218.example.com>
Mar  6 17:22:26 smtp160218 postfix/bounce[3050]: 947433D6: sender non-delivery notification: 5E0113E0
Mar  6 17:22:26 smtp160218 postfix/qmgr[3032]: 5E0113E0: from=<>, size=5913, nrcpt=1 (queue active)
Mar  6 17:22:26 smtp160218 postfix/randomizer[3046]: Using: smtp2: Transport Service
Mar  6 17:22:26 smtp160218 postfix/qmgr[3032]: 947433D6: removed
Mar  6 17:22:26 smtp160218 syslog/smtp[3051]: 5E0113E0: to=<bounces+sadasdasdasdasdasd@example.com>, relay=none, delay=0.09, delays=0/0.01/0.07/0, dsn=5.4.6, status=bounced (mail for example.com loops back to myself)
Mar  6 17:22:26 smtp160218 postfix/qmgr[3032]: 5E0113E0: removed

I even have recipient_delimiter = +

How can I have that bounces+ some id move to the pipe script?

  • Do you use "Postfix 2.0 or later"? – AnFi Mar 7 '18 at 17:03
  • Is bounces@example in transport table correct? Should not it be bounces@example.com? – AnFi Mar 7 '18 at 17:06
  • postfix version 2.0 @AnFi – jision Mar 7 '18 at 17:11
  • bounces@example is a typo its bounces@example.com the problem is that bounces+<id>@example.com is not being piped but according to documents postfix bydefault works on this extension and send the call back to bounces@example.com but this is not happening for my case. – jision Mar 7 '18 at 17:16

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.