content filtering with MailScanner 4.44 + postfix 2.1.5 on FC3

ankush grover grover1711 at gmail.com
Sun Jun 11 07:48:53 IST 2006


> > a) Banning  receiving & sending attachments for some users for example
> >       "ankush at example.com" is not allowed to send or receive any
> > attachments.
>
> In MailScanner.conf,
>    Maximum Attachment Size = %rules-dir%/max.attach.size.rules
>
> In /etc/MailScanner/rules/max.attach.size.rules
>    FromOrTo: ankush at example.com   0
>    FromOtTo: default      -1
>
> > b) Banning receiving emails for some users from the all other domains
> > except from
> >    one domain  for example if there is any email for user
> > "tom at example.com" from
> >    any other domain that mail should be dropped but this user should
> > be able to
> >    receive mail from the example.com domain but not from anyother domain.
>
> In MailScanner.conf,
>    Is Definitely Spam = %rules-dir%/is.definitely.spam.rules
>    Definite Spam Is High Scoring = yes
>    High-Scoring Spam Actions = delete store
>
> In /etc/MailScanner/rules/is.definitely.spam.rules
>    To:   tom at example.com   and   From: *@example.com no
>    To:   tom at example.com   yes
>    FromOrTo: default no
>
> > c) People are still sending mails to the accounts of the ex employees
> > I want to
> >    totally ban mails to those accounts both within the organisation
> > and from
> >    outside  means if the mail is for the user   "john at example.com"
> > that mail
> >    should get dropped.
>
> Do this in your MTA. In sendmail, for example, add this to /etc/mail/access
> john at example.com   DISCARD
> then
>    cd /etc/mail
>    make

hey friends,

Thanks to everybody for their guidance specially Mr.Julian.


Thanks & Regards

Ankush Grover


More information about the MailScanner mailing list