Re: plugin check_badmailfrom_pattern

[email protected] (Aleksandar Lazic)
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
Dear Glen,

On Die 26.07.2011 17:17, Glen Barber wrote:
>On 7/26/11 5:02 PM, Aleksandar Lazic wrote:
>> I have decided to dublicate the check_badrcptto_patterns to
>> check_badmailfrom_pattern.
>>
>> I want to share with you this solution, maybe somone have the same
>> problem but another solution ;-)
>>
>
>One problem I have is stuff like:
>
>*@server1.example.com
>*@server2.example.com
>...
>*@server22.example.com

I think for your problem the solution could be.

@server\d+\.example\.com DENY

Pay attention about the '.' and '*' in regex this can be very dangerous
;-)

You can use the commandline tool pcretest to test your regex.

>badmailfrom does not appear to handle regular expressions, and my
>Perl-fu is sub-par, so I have separate entries in my config.

That's the reason why I have copy&modified this module.

BR
Aleks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.