ACL not removing headers
Hi,
i have this ACL under custom_begin_outgoing_smtp_checkall
warn
set acl_m_ref_len = ${strlen:$h_references:}
condition = ${if > {$acl_m_ref_len}{998}}
logwrite = References header has length=$acl_m_ref_len, removed
remove_header = references
when it triggers i get a that massage in my log but it will not remove the header.
Is it possible that its not working because im using amazon SES as my mail gatway, i have this in Section: PREROUTERS
send_via_ses:
driver = manualroute
domains = ! +local_domains
condition = ${if match_domain{$original_domain}{! +local_domains}}
senders = *@mydomain.net
.ifdef SRSENABLED
# if outbound, and forwarding has been done, use an alternate transport
transport = ${if eq {$local_part@$domain} \
{$original_local_part@$original_domain} \
{ses_smtp} {ses_forwarded_smtp}}
.else
transport = ses_smtp
.endif
route_list = * email-smtp.eu-central-1.amazonaws.com;
Im not realy familiar with exim and WHM so thank you for any info you can share
-
Hey there! I have a couple thoughts on this. The first thought - did you make your adjustments/add this code using the WHM >> Exim Configuration Editor interface? If not, it will not be properly applied to Exim and will get overwritten by a cPanel update. Details on that process can be found here: 0 -
Hey thanks for the fast answer, Im using the advanced editor in WHM >> Exim Configuration Editor to put my custom code in. So, if im reading this correct, you think i should write a custom filter rule in /usr/local/cpanel/etc/exim/sysfilter/options/ I tried it also but i got stuck when in most tutorials they mention to enable the filter in Exim Configuration Manager --> Basic Editor --> Filter -->Custom Filter: filterName When i add the file i don't get this option. Im running AlmaLinux v8.8.0 STANDARD kvm with cPanel Version 114.0.8 Is this option somewhere else or am I missing something. I can understand that you don't have the time to write custom filters and i want to learn to know it myself. I'm just asking for general directions. In most cases I'm finding modification to Exim from people who are not running whm/cpanel, and I want to do it in a way that it want brake the modifications on update or restart. Thanks 0 -
Your screen should look similar to this: When you click that third radial button, you can start typing the full path to your custom file as it won't be shown there automatically. Is that where the confusion is? 0 -
that could be the problem. I had the impression that this filed is only for custom filter file like /etc/cpanel_exim_sytem_filter2 and that i have to create a custom filter tule in /usr/local/cpanel/etc/exim/sysfilter/options/ and include it somwhere in whm 0
Please sign in to leave a comment.
Comments
4 comments