Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postfix master.cf ${recipient} question...

Status
Not open for further replies.

mvmvm

Programmer
Mar 22, 2008
1
Is anyone familiar with how ${recipient} gets expanded when passed by postfix master.cf file to a external mail filter, e.g:

filter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/procmail -Y -m /org/procmail/mainfilter.rc ${sender} ${recipient}

The man page for "pipe" says:
"A command-line argument that contains ${recipient} expands to as many command-line arguments as there are recipients.",

so I'd expect multiple recipients in the command line if there are multiple addresses in, say, the "To:" field.

Though I appear to actually get multiple invocations of the filter, with one recipient each time...any ideas on whether this is the expected behavior?

Cheers
mvmvm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top