Re: [exim] nwildlsearch syntax

2017-08-10 Thread John Schmerold via Exim-users

On 8/10/2017 10:47 AM, Jeremy Harris wrote:

On 10/08/17 16:26, John Schmerold via Exim-users wrote:

 require recipients = nwildlsearch;/etc/exim/recipients.txt
I thought I could add this line to /etc/exim/recipients.txt:
abuse@*
If I use *@whyme.com in recipients.txt, everything works fine, so I'm
not sure why abuse@* wouldn't work.

http://exim.org/exim-html-current/doc/html/spec_html/ch-file_and_database_lookups.html

The wildcarding done natively for (n)wildsearch only supports
a leading asterisk.  You can use full-RE instead, but those
are marked with a leading caret.

Mind, as chapter 10 says, there's no advantage in specifying
nwildsearch for this address-list over just using the filename
as (the sole) list element.


I went with leading caret - problem solved. Thank you

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] nwildlsearch syntax

2017-08-10 Thread Andreas Metzler
John Schmerold via Exim-users  wrote:
> I am using Exim as a spam filter for a dozen domains, I store recipients 
> in a recipients.txt using this directive
> require recipients = nwildlsearch;/etc/exim/recipients.txt

> I want to get abuse reports for all domains sent to me using this directive:
>abuse@* ab...@sample.com Tt

> I thought I could add this line to /etc/exim/recipients.txt:
>abuse@*
[...]
> If I use *@whyme.com in recipients.txt, everything works fine, so I'm 
> not sure why abuse@* wouldn't work.

Hello,

that is how nwildlsearch works, see

You can either match exactly, or "the string may begin with an
asterisk to mean “ends with", or use a regex or use a nested lookup.
"Begins with" is not listed.

^abuse@

would probably work as pattern.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Re: [exim] nwildlsearch syntax

2017-08-10 Thread Jeremy Harris
On 10/08/17 16:26, John Schmerold via Exim-users wrote:
> require recipients = nwildlsearch;/etc/exim/recipients.txt

> I thought I could add this line to /etc/exim/recipients.txt:
>abuse@*

> If I use *@whyme.com in recipients.txt, everything works fine, so I'm
> not sure why abuse@* wouldn't work.

http://exim.org/exim-html-current/doc/html/spec_html/ch-file_and_database_lookups.html

The wildcarding done natively for (n)wildsearch only supports
a leading asterisk.  You can use full-RE instead, but those
are marked with a leading caret.

Mind, as chapter 10 says, there's no advantage in specifying
nwildsearch for this address-list over just using the filename
as (the sole) list element.
-- 
Cheers,
  Jeremy

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/