Re: [exim] acl-content and outgoing mail

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ted Cooper
Date:  
À: Nils Sandmann
CC: exim-users
Sujet: Re: [exim] acl-content and outgoing mail
Nils Sandmann wrote:
> warn message = X-New-Subject: *UNKNOWN RECIPIENT* $h_subject:
>      condition = ${lookup mysql{SELECT user_id FROM users WHERE username
> = '$recipients'}{0}{1}}


Add a condition here to check for authentication.
    !authenticated = *
Should work.. I think. Maybe. It's how I avoid my SPF going off for 
authenticated users.


> I didn’t realize that this worked this way also. Well of course, the
> recipient address is not known for outgoing mail. I have to admit that
> I’m not an expert in exim and the smtp protocol, still learning  (I
> wondered if the entire code in acl-content is executed not only for
> incoming but also for outgoing mail, how is spam checking avoided for
> outgoing mail for example?)


You have to remember that Exim in an MTA. No email from any which domain
is "incoming" or "outgoing". Email comes in, is processed, and goes out.
It has multiple ins, multiple outs and how it behaves for each domain,
ice cream flavour, or time of day depends entirely on how it's been
configured.

> Has anyone a hint how to deal with this or am I totally stuck with my
> self-made solution?


You're always stuck with your own solutions ;P

Ted.