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)
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@??? for PGP key