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.

Outgoing Spam Filter

Discussion in 'E-mail Discussions' started by Osama Tariq, Nov 3, 2015.

  1. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    187
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    I want to blocked outgoing emails and delivered that emails to specific email id, but it's not working. below are the details:

    Code:
    grep ^system_filter /etc/exim.conf
    system_filter_user = cpaneleximfilter
    system_filter_group = cpaneleximfilter
    system_filter = /usr/local/cpanel/etc/exim/sysfilter/options/cpanel_exim_system_filter

    Code:
    if ( $received_protocol is "local" or
    $received_protocol is "esmtpa" ) and
    ($header_from contains "@gmail.com" )
    then
    deliver "demo@domainname.com"
    seen finish
    endif
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you getting any error logs in /var/log/exim_mainlog file ? Please check this file though SSH if you have root ssh access.
     
  3. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    187
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    There's no error i have already checked, actually this filter is not working for me. Is there any kind of improvement ?
    i want to blocked all outgoing external emails that would be send to gmail,yahoo etc and if somebody send than it would be delivered to specific local email address.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,466
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might do better to ask this sort of question on the EXIM user support list:
    Documentation for Exim

    This isn't specifically an issue with your cPanel.
     
  5. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    187
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,466
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Good to hear, thanks for posting back.
     
Loading...

Share This Page