postfix-users October 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Question regarding example for smtpd_command_filt

Question regarding example for smtpd_command_filter

From: Patrick Ben Koetter <p_at_nospam>
Date: Wed Oct 05 2011 - 11:40:23 GMT
To: Postfix Users <postfix-users@postfix.org>

I have a question regarding the "Bounce-never mail sink" regexp:

postconf(5) gives this example:

           /^(RCPT\s+TO:.*?)\bNOTIFY=\S+\b(.*)/ $1 NOTIFY=NEVER $2

Isn't there a '>' missing before the '?'. As I understand it the '?' makes the
preceeding character optional e.g. example.com and example.co would match.
Shouldn't the '>' be optional instead and it is missing in the examples above.

My example here demonstrates the regexp as I would expect it:

           /^(RCPT\s+TO:.*>?)\bNOTIFY=\S+\b(.*)/ $1 NOTIFY=NEVER $2

p@rick

-- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>