it seems the basic POSIX do not support matching groups: 
https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions
so your REGEX From:^(user1|user2|user3)@domain.tld$ will never work

Von / From:     Daniel Colquitt Via Clamav-Users 
<mailto:[email protected]>
An / To:        Newcomer01 <mailto:[email protected]>
CC / CC:        Daniel Colquitt <mailto:[email protected]>
Gesendet / Sent:        Sonntag, Dezember 21, 2025 um 20:13 (at 08:13 PM) +0100
Betreff / Subject:      Re: [clamav-users] clamav-milter whitelist

  From the man page for clamav-milter.conf
<https://linux.die.net/man/5/clamav-milter.conf>

Whitelist STRING
This option specifies a file which contains a list of basic POSIX regular expressions. Addresses (sent to or 
from - see below) matching these regexes will not be scanned. Optionally each line can start with the string 
"From:" or "To:" (note: no whitespace after the colon) indicating if it is, respectively, 
the sender or recipient that is to be whitelisted. If the field is missing, "To:" is assumed. Lines 
starting with #, : or ! are ignored.
However, with the whitelist set as defined in my original message,
emails [email protected] are still scanned and, indeed, flagged as
infected. I would like messages from emails that match the whitelist to
be excluded from the scan.

Dan

On 21/12/2025 18:31, Newcomer01 via clamav-users wrote:
okay and what is your problem now? Didn't also understand what you want
to do with your whitelist and what should happen then?

Von / From:     Newcomer01 Via Clamav-Users<mailto:clamav- 
[email protected]>
An / To:        Newcomer01<mailto:[email protected]>
CC / CC:        Newcomer01<mailto:[email protected]>
Gesendet / Sent:        Sonntag, Dezember 21, 2025 um 18:19 (at 06:19 PM) +0100
Betreff / Subject:      Re: [clamav-users] clamav-milter whitelist

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to