What I have is:
Windows server generating emails with own app and sending them to relay server (2) - this works fine
Relay server that sends emails received from (1) - CentOS - working fine
What I need is to additionally configure CentOS postfix to send bounce messages to Windows server (to work on them using own app on specified port). I tried to add in /etc/postfix/transport line:
test.pl bounced:[12.34.56.78]:29990
and run
postmap /etc/postfix/transport
but I have no idea what I should do more to make it work.
In maillog I have:
Mar 6 12:00:22 ubuntu postfix/qmgr[1633]: 9CBB260899: from=<root@ubuntu>, size=197, nrcpt=1 (queue active)
Mar 6 12:00:22 ubuntu postfix/qmgr[1633]: warning: connect to transport private/bounced: No such file or directory
Mar 6 12:00:22 ubuntu postfix/error[1744]: 9CBB260899: to=<a@test.pl>, relay=none, delay=1890, delays=1890/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)