Alias rule help

Martin Hepworth maxsec at gmail.com
Mon Dec 15 17:45:23 GMT 2008


2008/12/15 Nasser Al-Zawawi <nassera at alz-inc.com>:
> Hi,
>
> I have a RedHat ES 4 server running sendmail (8.13.1) and I am using the
> latest MailScanner version (4.73.4-2), ClamAV 0.94.2 and SpamAssassin
> 3.2.5.  I need help with a rule that should block all outside users from
> sending emails to our aliases and only allow them to come from people from
> our domain.  For example we have an alias called _all_users_ and it is
> literally all users on the system.  Somehow spammers are able to see these
> aliases on the system (I hope there is a way to disallow them from seeing
> the aliases) and then they are sending SPAMs to these aliases so when they
> send a spam to _all_users_ at domain.com everybody gets that spam.  Could
> somebody write this rule and show what directive to put in the
> MailScanner.conf if any.  I have tried a few but none worked.
>
>
>
>
>
> Best regards,
>
> Nasser
>
>
>
> --
> 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!
>
>


Nasser

I'd do this at the MTA level. Put in a check for 'valid' users, You'll
more than likely also need to split the emails into single recipients
so emails to fred at domain & all_users at domain don't go through due the
to envelope recipient being fred at domain.

-- 
Martin Hepworth
Oxford, UK


More information about the MailScanner mailing list