Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 31 to 45 of 52
  1. #31
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by mbrando
    Hi anand,

    These worked out well for me. Thanks for the samples.



    Mike
    Glad to know it helped.
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  2. #32
    Member Roy@ENHOST's Avatar
    Join Date
    Mar 2002
    Location
    Los Angeles California
    Posts
    495

    Default

    In regards to those who are getting dulplicate copies of emails.

    It might be because you are forwarding to the same domain.
    Exim processes the original outgoing email and them the forwarded email as well.

    Setting the forwarding email to a different domain or one that isn't gonna be catched by the EXIM rule that you've put in place will help you avoid the duplicate.

    Hope that helps.
    = = = = = = = = = = = = = = = = = =
    Cpanel XP Evolution (Add DOZENS of functions to your Cpanel NOW!!!) - 21 Languages, User Friendly Interface, Feature Enabled, Highly Customizable, Create Popup Once window, Language Aware, Flash Tutorials, Theme Changer,Integration with Modernbill,WHM AutoPilot,ClientExec,LPanel&WHOISCart

  3. #33
    Member
    Join Date
    Mar 2004
    Posts
    35

    Default

    regarding duplicates of outgoing e-mails, the problem only happens when the reciever domain is on the same server, in which case the filter kicks in twice, once when the message is being sent and the second time when its being delivered to reciever domain on the same sever.

    a simple way to prevent this is to change the filters as follows:

    Code:
    if first_delivery
       and ("$h_to:, $h_cc:" contains "@domain.com")
    then
       unseen deliver "incoming@domain.com"
    endif
    
    if first_delivery
       and ("$h_from:" contains "@domain.com")
       and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
    then    
       unseen deliver "outgoing@domain.com"
    endif
    this prevents the duplicate delivery to outgoing@domain.com since the original sent message should not contain any spamassassin headers.

  4. #34
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    When SpamAssassin is enabled, we are getting duplicates of copied e-mails to the monitor box, the code in the above post doesn't work either.

  5. #35
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    Anyone have any ideas?

  6. #36
    Member Man0warr's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    54

    Default

    figured it out, added the bold part

    if first_delivery
    and ("$h_to:, $h_cc:" contains "@domain.com")
    and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
    then
    unseen deliver "monitor@domain.com"
    endif

    if first_delivery
    and ("$h_from:" contains "@domain.com")
    and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
    then
    unseen deliver "monitor@domain.com"
    endif

  7. #37
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    442

    Default

    I'm also looking to copy incoming/outgoing emails for a specific domain.

    In cPanel v11, there is no "antivirus.exim", i believe the system_filter is now /etc/cpanel_exim_system_filter.

    Is that the correct place to put the suggested lines?

  8. #38
    Member
    Join Date
    Nov 2006
    Posts
    5

    Default

    i add lines to file and restart exim but it doesnt work can anybody help me ?

  9. #39
    Member
    Join Date
    Oct 2007
    Posts
    7

    Default

    Hi All,

    I have been trying all night to get this working. Using the filters was my first thought as everyone has suggested. I have implemented many different versions of the filters, your and mine and I can only get the filters to apply to incoming message!! Any one got any ideas.

    For referance to the above comment, I have dug around in my exim.conf and I am discovered that the routers are now using local filters in /etc/vfilters

  10. #40
    Member
    Join Date
    Oct 2007
    Posts
    7

    Default

    Okay so local domain filter don't work but if you place the in cpanel_exim_system_filters all works fine

  11. #41
    Member
    Join Date
    Jul 2002
    Posts
    336

    Exclamation

    Okay so local domain filter don't work but if you place the in cpanel_exim_system_filters all works fine
    Hi,

    I need to get this working on Cpanel 11, Can you please tell me where in cpanel_exim_system_filters do we need to insert the codes and what codes have you
    entered to get this working ?

    Any help would be really helpful.

    Thanks once again.

  12. #42
    Member
    Join Date
    Jul 2002
    Posts
    336

    Lightbulb

    I tried to enter the below code at the end of "/cpanel_exim_system_filter", But did not work.


    if first_delivery
    and ("$h_to:, $h_cc:" contains "@domain.com")
    or ("$h_from:" contains "@domain.com")
    then
    unseen deliver "all-catcher@domain.com"
    endif
    Can any one here let me know where exactly these lines have to be put ?

  13. #43
    Member
    Join Date
    Jan 2005
    Posts
    6

    Default

    This does work in cpanel_exim_system_filter

    but the file seems to have a tendency to get rewritten to std by cpanel

    where is a good place to put the code that it doesn't get overwritten

    Steven

  14. #44
    Member
    Join Date
    Jan 2005
    Posts
    6

    Default

    cpanel_exim_system_filter got replaced again on me last night on a std auto cpanel update

    Does anyone know how to add this code, or where to add it, into a file or included file that isn't replaced by updates??

    Steven

  15. #45
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    Default

    We added '/etc/cpanel_exim_system_filter_custom' as the System Filter File in WHM under Exim Configuration Editor, which adds

    system_filter=/etc/cpanel_exim_system_filter_custom

    to our exim.conf, and then put our custom filters there. That file does not get overwritten.

Similar Threads & Tags
Similar threads

  1. Is SpamAssassin scanning outgoing mails?
    By Kent Brockman in forum E-mail Discussions
    Replies: 0
    Last Post: 07-11-2008, 07:32 PM
  2. copy of outgoing mails ???
    By furquan in forum E-mail Discussions
    Replies: 2
    Last Post: 03-15-2008, 08:13 AM
  3. extend the outgoing mails
    By Vinu007 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-02-2008, 09:04 AM
  4. Filter to copy outgoing e-mails.
    By Pringle9984 in forum E-mail Discussions
    Replies: 0
    Last Post: 06-26-2007, 11:13 AM
  5. Redirect outgoing mails ???
    By furquan in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-28-2007, 07:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube