Postfix- transport map unable to retreive message/queue ID
Issue
- We need to trigger the script: mail_recipient.sh when messages arrives for a particular user
- With the script a number of arguments need to be passed
- 1: Customer name (constant: CUSTOMER)
- 2: Transmit code (constant: TCODE)
- 3: Unique message ID of the Email generated by the MTA.
- 4: Sender address
- 5: Recipient Address
- The problem we have is the ${queueu_id} macro I wanted to use is NOT available in the version of postfix on RHEL v6.6
- Contents of master.cf:
myscript unix - n n - - pipe flags= user=test argv=/pkgs/test/util/scripts/mail_recipient.sh CUSTOMER CODE ${queue_id} ${sender} ${recipient}
Environment
- Red Hat Enterprise Linux 6
- Postfix
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.