rules and whitelist

Julian Field mailscanner at ecs.soton.ac.uk
Thu Aug 19 22:25:57 IST 2004


<x-flowed>
At 22:03 19/08/2004, you wrote:
>I have a two part question so please bear with me:
>
>I have an issue with a client who tells me that mail from a specific
>domain show always be allowed to reach them. I.E. should not be deleted.
>OK, so I created a rule that says the following:
>
>From:             *@arcas.com                               deliver
>
>amongst other rules as well.

Don't you mean "To:" and not "From:" ?

>  They still say that the mail is not coming thru. They also say that
> before I put this rule into place, mail from this domain used to be
> accepted but only if it was in reply to an email sent from the domain
> protected by MailScanner. I have also added the following to the
> spam.whitelist.rules file:
>
>From:           *@arcas.com                     yes
>Does all this look correct in order to never mark as spam mail from the
>arcas.com domain?

Correct. "From" the arcas.com domain, which is not what you said above.

>  Does it matter if in the rule files, the elements are separated by
> spaces or tabs?

The only files where spaces/tabs matter are filename.rules.conf and
filetype.rules.conf. So "no".

>  The second part of my question involves setting up rule files specific
> to domains. I host a small number of domains but would like to have rules
> applicable to each domain only. Is it possible to somehow have a rule
> call another rule? For example, in my main rules file I could have:
>
>             To:      <mailto:*@somedomain.com>*@somedomain.com
>         /etc/MailScanner/rules/somedomain.com.rules
>
>I am led to believe by a very reputable source that you cannot call one
>rule file with another. Is there any way to achieve this functionality?

You cannot call one rules file from another. However, you can use an "and"
condition in a rules file to say
To: *@somedomain.com and From: arcas.com yes
and things like that.

There is also per-domain and per-user whitelist and blacklist support in
CustomConfig.pm which you may find useful.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
</x-flowed>



More information about the MailScanner mailing list