Mailing List Archive

making one rule out of two
This is in an RCPT TO ACL.
Can I condense these two rules in one?

warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
condition = ${if exists {MAILMAN_HOME/lists/${sg{$local_part}{(.*)-bounces\+.*}{\$1}}}{yes}{no}}

accept condition = ${if exists {MAILMAN_HOME/lists/${sg{$local_part}{(.*)-bounces\+.*}{\$1}}}{yes}{no}}



How about those:

warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
local_parts = abuse

warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
local_parts = postmaster

I know I can put both in a file on disk and include that. Is there an other
way to say something like
local_parts = postmaster or abuse ?

Thanks
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
Re: making one rule out of two [ In reply to ]
On Mon, 10 Jun 2002, Marc MERLIN wrote:

> This is in an RCPT TO ACL.
> Can I condense these two rules in one?
>
> warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
> condition = ${if exists {MAILMAN_HOME/lists/${sg{$local_part}{(.*)-bounces\+.*}{\$1}}}{yes}{no}}
>
> accept condition = ${if exists {MAILMAN_HOME/lists/${sg{$local_part}{(.*)-bounces\+.*}{\$1}}}{yes}{no}}

Hrm.. Probably not. The warn inserts the header and passes, and I dont
The accepts ends the ACL.. The warn doesnt.


> How about those:
>
> warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
> local_parts = abuse
>
> warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
> local_parts = postmaster
>

Now this one you can make into:


warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
local_parts = postmaster : abuse




> I know I can put both in a file on disk and include that. Is there an other
> way to say something like
> local_parts = postmaster or abuse ?
>
> Thanks
> Marc
> --
> "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> Microsoft is to operating systems & security ....
> .... what McDonalds is to gourmet cooking
> Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>


--
Re: making one rule out of two [ In reply to ]
On Mon, Jun 10, 2002 at 05:23:01PM -0400, Dave C. wrote:
> Now this one you can make into:
>
>
> warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
> local_parts = postmaster : abuse

Duh, of course!

Thanks
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key