The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can Exim autodelete attachments per domain

Discussion in 'General Discussion' started by rs-freddo, Aug 21, 2003.

  1. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I used to use Sanitizer with procmail on Ensim. Basically sanitizer uses procmail rules to delete all .exe, .scr etc attachments on emails. It also removes webbugs, a function i sorely miss.

    Does anyone know how to setp Exim rules, to delete types of attachments (ie .exe and .scr, .pif etc) on a per domain basis?

    cPanel.net Support Ticket Number:
     
  2. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Hi freddo,

    You can do this via the /etc/antivirus.exim file. This post shows code that will remove the email completely. I'm using it now and can confirm it works. If you want a message to go back to the sender letting them know their message was rejected, you can add a "fail text" entry.

    http://forums.cpanel.net/showthread.php?s=&threadid=13699&postid=64732#post64732

    If you need other attachments removed, maybe you can modify this code to suit your needs.

    cPanel.net Support Ticket Number:
     
  3. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Excellent!

    Thank you very much.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page