On 13 Nov 2013, at 3:34, naser sonbaty wrote:
Hi,
I need help with postfix regexp in header_checks.
Start by reading the documentation, including the man pages for
header_checks and regexp_table and Postfix's BUILTIN_FILTER_README.
Also: following the advice in the last ~50 lines of the DEBUG_README
would help.
I want discard all emails(any domain) from admin@
I trust that you believe this to be true, but I suspect that you would
eventually regret successfully implementing that goal. As has already
been demonstrated by an earlier respondent, you have no way of knowing
what or who might use the 'admin' address in all domains.
With that noted, I will assume that you actually know what you are doing
and that this is for some special-function mail system that will never
be offered unanticipated but desirable mail...
I use following:
/^(To|From|Cc|Reply-To): admin@(.*)/ DISCARD
but its not working
thx for help
To provide real help, we would need you to provide something more
substantial than "its not working." Repeating: following the advice in
the last ~50 lines of the DEBUG_README would help.
In this case, a sample of the mail you want your check to catch that it
is not catching would be a minimum requirement, along with the output of
'postconf -n header_checks' showing that you have the feature enabled.
Also useful: confirmation that the file your configuration specifies
exists, is readable, and has your pattern in it. If the whole file isn't
too long and holds no secrets it could even be useful to share it all,
since there are potential rule-ordering pitfalls.