Re: [exim] logging custom headers on send out

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] logging custom headers on send out
Dan Liles <dan.liles@???> (Do 08 Dez 2016 17:37:50 CET):
> We have some logic in acl_smtp_data to store custom headers we add to major
> mail outs. We are building a marketing automation platform and want to
> track customer reputations as we go.


> Our system actually has to rely on compression and moving files into the
> exim queue manually. ( Trying to open up enough SMTP connections doesn't
> physically work ).


The ACL (here acl_smtp_data) work for incoming messages. That is, they
have to "enter" the Exim spool via Exim (normally via networked SMTP, but
SMTP via STDIN/STDOUT is possible too, or via piping into
/usr/sbin/sendmail)

If you move the files to the spool directory by your own means,
the ACL are not consulted in any way.

> Our logic to store the headers seems to work on cpanel based exim servers
> but not on exim running as part of the centos default configuration.


How do you pass the Mails into Exim on Cpanel servers, and how do you do
it on CentOS?

> So my question is - why does the logging we add work on cpanel servers and
> not on centos servers running exim?


> #BEGIN ACL_OUTGOING_SMTP_CHECKALL_BLOCK
> # BEGIN INSERT custom_begin_outgoing_smtp_checkall
> # Here is custom_begin_outgoing_smtp_checkall
>
> warn log_message = X-CMS-IssueID $h_X-CMS-IssueID
>     condition = ${if def:h_X-CMS-IssueID: {yes}{no}}

>
> warn log_message = X-CMS-ContactID $h_X-CMS-ContactID
>     condition = ${if def:h_X-CMS-ContactID: {yes}{no}}

>
> warn log_message = X-CMS-SubscriberID $h_X-CMS-SubscriberID
>     condition = ${if def:h_X-CMS-SubscriberID: {yes}{no}}

>


I'm not sure, there is the comment about "outgoing" … ACL generally do
not work for outgoing, as I stated above. BUT, there is one exception:
the event interface. And I believe, you can call a custom ACL through
the event interface. Maybe the configured it in Cpanel. Or they did some
other addtion to Exim I'm not aware of.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -