Glad to know it helped.Originally Posted by mbrando
Glad to know it helped.Originally Posted by mbrando
:: 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
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
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:
this prevents the duplicate delivery to outgoing@domain.com since the original sent message should not contain any spamassassin headers.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
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.
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
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?
i add lines to file and restart exim but it doesnt work can anybody help me ?
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
Okay so local domain filter don't work but if you place the in cpanel_exim_system_filters all works fine
Hi,Okay so local domain filter don't work but if you place the in cpanel_exim_system_filters all works fine
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.
I tried to enter the below code at the end of "/cpanel_exim_system_filter", But did not work.
Can any one here let me know where exactly these lines have to be put ?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
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
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
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.