Re: [exim] logging custom headers on send out

Pàgina inicial
Delete this message
Reply to this message
Autor: Dan Liles
Data:  
A: 'Heiko Schlittermann', exim-users
Assumpte: Re: [exim] logging custom headers on send out
Hello Heiko,

Thank you so much for your reply. It's very helpful.

I think your idea about event_action has some merit.

I'm thinking I can link this to the msg:delivery event. The main thing I'm having trouble with is finding examples.

What I'm trying to figure out is how to call the custom acl OR how to look at the headers in perl perhaps so I can identify our headers and log appropriately. Any help you can provide would be great.

To answer you on a few other items.

1) Our technology inserts the items in the /var/spool/input directory ( sub directory ). It's the same process on both the cpanel server and the centos server. The cpanel server does seem to log stuff properly though.

2) The acl_smtp_data does seem to be called on cpanel servers. I don't see any mention of event_action in the config file. They have a release of their custom exim - I was thinking of running some tests and seeing what it would do. The rpm is http://httpupdate.cpanel.net/RPM/11.62/src/exim-4.87-3.cp1162.src.rpm

I've got both the books on exim and any other references to good docs would be great.

Dan Liles
CEO
CleverPear Inc
8414 Carrie Ln
Rowlett, TX 75089
Office: (214) 227-7506
Cell: (214) 636-6038

This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.


-----Original Message-----
From: Exim-users [mailto:exim-users-bounces+dan.liles=cleverpear.com@exim.org] On Behalf Of Heiko Schlittermann
Sent: Sunday, December 11, 2016 11:39 AM
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 ------------ -