Author: Mark Edwards Date: To: Marc MERLIN CC: Philip Hazel, exim-users Subject: Re: [Exim] separate archiving for incoming and outgoing?
On Tuesday, June 18, 2002, at 01:59 PM, Marc MERLIN wrote:
> On Tue, Jun 18, 2002 at 09:53:29PM +0100, Philip Hazel wrote:
>> On Tue, 18 Jun 2002, Mark Edwards wrote:
>>
>>> Is it possible to distinguish between mail that is generated by a client
>>> connecting via SMTP (outgoing mail) and mail that is generated by another
>>> mail server communicating with exim (incoming mail)? Perhaps what I want
>>> to do isn't even possible.
>>
>>> From Exim's point of view, they are both incoming messages from other
>> hosts. How do *you* distinguish them? Presumably by the IP address of
>> the other host. That's how you'll have to do it in your filter file.
>> Test the value of $sender_host_address. (Note the existence of the
>> ${mask: operation.)
>
> Other ways are:
> - SMTP AUTH if you require it (foolproof)
> - Message-Id unset or set to your domain (prone to error)
> - Check if there is a Received line besides yours (prone to error)
I do require SMTP AUTH, so that is a very interesting suggestion to me. I
just started with exim, though, so I don't have the first clue how I'd
implement an SMTP AUTH check in my system filter. Can you point me in the
right direction, syntax-wise?