Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Custom Mailscanner Rules

Discussion in 'cPanel Developers' started by verdon, Apr 21, 2006.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    862
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    I've done a little searching here and at http://www.sng.ecs.soton.ac.uk/mailscanner/ but haven't quite been able to figure out what I need to do. I have found good basic examples at Mailscanner's site, but not quite what I need.

    What I'm looking to do is over-ride the default attachment scanning from two particular senders, for a particular domain only. Using this type of line in /usr/mailscanner/etc/rules/filename.rules.rules and /usr/mailscanner/etc/rules/filetype.rules.rules seems to work, but I'm not sure how to make this apply to a particular To: *@domain3.com condition only and not all domains on my server.

    From: *@domain1.com and From: *@domain2.com /usr/mailscanner/etc/filename.no.rules.conf

    Any thoughts?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    862
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Doh! Of course.

    Thanks Chirpy
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice