mailscanner and perdomain white and blacklists

Dave dmehler26 at woh.rr.com
Wed Feb 8 04:06:54 GMT 2006


Hi,
Thanks for the clarification. I think i got it. So the default file is for 
everyone, and then domain and user-specific stuff is for individual users 
and domains?
Thanks a lot.
Dave.

----- Original Message ----- 
From: "Dhawal Doshy" <dhawal at netmagicsolutions.com>
To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
Sent: Tuesday, February 07, 2006 12:49 PM
Subject: Re: mailscanner and perdomain white and blacklists


> Dave wrote:
>> Hi Julian,
>>    Sorry about the long delay in getting back to you. I checked out 
>> CustomConfig.pm and if i'm reading it right what i have to do is set the 
>> "Is Definitely Spam" and "Is Definitely Spam" to point to a directory
>
> Umm no.. the directory pointing is already done.
> egrep '^my \$BlacklistDir|^my \$WhitelistDir' CustomConfig.pm
>
> You need to point 'Is Definitely Not Spam' and 'Is Definitely Spam' to a 
> function.. '&ByDomainSpamWhitelist' and '&ByDomainSpamBlacklist' to be 
> precise..
>
> Now create the directories as defined in CustomConfig.pm.. typically
> /etc/MailScanner/spam.bydomain/whitelist
> /etc/MailScanner/spam.bydomain/blacklist
>
> A file named 'default' will be the global (server-wide) list, 'domain.tld' 
> will the domain specific list and 'user at domain.tld' will be the user 
> specific list.
>
> 'default', 'domain.tld' and 'user at domain.tld' can exist in both 
> directories as per your requirements.
>
> The content of 'default', 'domain.tld' and 'user at domain.tld' can be a mix 
> of domains, email-addresses and ip-addresses (one per line).
>
> Once you have it working, also look at the 'Definite Spam Is High Scoring' 
> option.
>
> Hope it is clear now :-)
>
> - dhawal
>
>> for white and blacklists. So say i want a whitelist for example1.com i 
>> would make a /etc/MailScanner/domains directory for all my domains and 
>> point ms to it. Then make a directory for example1.com and then a file 
>> spam.whitelists.conf adding in what i want. Put the blacklist in the same 
>> area. Before i let you know of my problem do i have this right so far? 
>> Checking the MS config on this box here's what is already in there for 
>> those values:
>>
>> Is Definitely Not Spam=%rules-dir%/spam.whitelist.rules.
>> Is Definitely Spam=%rules-dir%/spam.blacklist.rules
>>
>> and those files exist with content. If i'm reading this right these 
>> whitelists and blacklists are applied globally and not per-user and 
>> per-domain?
>> Thanks.
>> Dave.
>>
>> ----- Original Message ----- From: "Julian Field" 
>> <MailScanner at ecs.soton.ac.uk>
>> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>> Sent: Thursday, February 02, 2006 12:28 PM
>> Subject: Re: mailscanner and perdomain white and blacklists
>>
>>
>>> There is code to do this in CustomConfig.pm in 
>>> /usr/lib/MailScanner/MailScanner. There is documentation in there that 
>>> will tell you how to enable the code and how to set everything up for 
>>> it. Look for the Per-Domain whitelist and blacklist code and you'll find 
>>> it, there is code in the same file for other add-on features as well.
>>>
>>> If you have trouble setting it up or getting it basically working, then 
>>> give me a shout (possibly on IRC) and I'll try to help where I can.
>>>
>>> It's not hard, you don't have to write any code or anything to make it 
>>> all work
>>> :-)
>>>
>>> Dave wrote:
>>>> Hi Julian,
>>>>    Thanks for your reply. I haven't had a moment yet to check out that 
>>>> boxes mailscanner.conf except except just a quick overview of the 
>>>> mta-specific settings. Can the spam whitelists and blacklists be used 
>>>> on a perdomain basis? For example, i've got domain1.com and 
>>>> domain2.com. The user at domain1.com wants a user added to his spam 
>>>> whitelist while the user at domain2.com wants a spammer added to his 
>>>> spam blacklist. Ideally i believe these users at domain 1 and 2 .com 
>>>> want independent lists.
>>>> Thanks a lot.
>>>> Dave.
>>>>
>>>> ----- Original Message ----- From: "Julian Field" 
>>>> <MailScanner at ecs.soton.ac.uk>
>>>> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>>>> Sent: Thursday, February 02, 2006 4:09 AM
>>>> Subject: Re: mailscanner and perdomain white and blacklists
>>>>
>>>>
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>
>>>>> On 1 Feb 2006, at 23:32, Dave wrote:
>>>>>
>>>>>> Hello,
>>>>>>    I've got a mailscanner install with sendmail. It's working fine
>>>>>> and it's working for multiple users. Now i'm getting requests from
>>>>>> user a to add a username/domain to a blacklist file and user b to
>>>>>> add another username/domain to a whitelist file. These i'm thinking
>>>>>> should be separate as they are separate domains. This is on an fc4
>>>>>> box. Is this doable, any help appreciated.
>>>>>> Thanks.
>>>>>> Dave.
>>>>>
>>>>> Blacklist or whitelist in what sense? You basically just need a
>>>>> couple of rulesets, one for your blacklist and one for your
>>>>> whitelist. There is already a spam.whitelist.rules which you can use
>>>>> as a sample from which to create and use a spam.blacklist.rules file.
>>>>> Look in MailScanner.conf for spam.whitelist.rules and you will see
>>>>> how to refer a setting to a rules file.
>>>>> - -- Julian Field
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website! 



More information about the MailScanner mailing list