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!

Help with mail filtering

Discussion in 'E-mail Discussion' started by timvie, Aug 20, 2003.

  1. timvie

    timvie Member

    Joined:
    Aug 15, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    I am using 7.4.2-RELEASE 106. My host will give me shell access on a shared server. I am having problems with the mail filtering???? It seems all I have the ability to do is forward an email to another email address at least this is the only thing that I know is working... I have tried to pipe emails to a script will no luck also have tried to put a filter in the main account to delete the emails if they have "XXX" in the header and cannot get this to work either. I have went in and looked at the file /etc/valiases/mydomain.com and the filter rules are writing there and look ok. I did notice that I do not have a vfilters folder in my username/etc folder I have seen this mentioned in other threads. Could this be my problem? Any help would be really great. I am using around 100 megs of bandwith a day due to bounced emails I have to pull down off the server. Glad I not on a dial up.... I would have been out of disk space 2 days ago....

    cPanel.net Support Ticket Number:
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    166
    Dear timvie,

    The file for your domain is present in /etc/vfilters directory. It can be used to block mail from unwanted senders.

    An example is given below to block a sender from spam@spaming.com to a user in your domain.

    Then the contents of /etc/vfilters/yourdomain.com would be:

    # Exim filter
    if error_message then finish endif

    if
    $header_from: is \"spam@spaming.com\"
    then
    save /dev/null
    endif

    Regards,

    cPanel.net Support Ticket Number:
     
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