Re: [exim] Auth'd Mail to bucket-1, localsent to the world

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jean-Luc Cooke
Date:  
À: Daniel Tiefnig
CC: exim-users
Sujet: Re: [exim] Auth'd Mail to bucket-1, localsent to the world
Excellent, thank you.

Since I'd like this exim4 instance as my "normal" incoming mailserver as
well, is there a condition to grab auth-tls incoming mail as well?

Reminded requirements/desires:
- if incoming mail is authenticated, then pipe to this script
- if someone locally is trying to send mail, then just send it out to the world
as normal
- if incoming mail is not authenticated and not local, then process as
normal (aliases, graylisting, procmail, etc)

Reading around the docs, I can see exim was written to be able to do
anything.

JLC

On Wed, Aug 22, 2007 at 08:21:03PM +0200, Daniel Tiefnig wrote:
> Jean-Luc Cooke wrote:
> > How do I create the rule:
> > - if incoming mail is authenticated, then pipe to this script.
> > - if someone locally is trying to send mail using "/usr/sbin/sendmail
> >    -t", then just send it out to the world as normal.

>
> There's an expansion variable called $sender_host_address that is emtpy
> for locally submitted messages. So, implementing something like the
> following two routers should do the trick:
>
> remote_smtp:
>    driver = dnslookup
>    domains = ! +local_domains
>    condition = ${if eq{$sender_host_address}{}}
>    transport = remote_smtp

>
> pipe_to_script:
>    driver = accept
>    domains = ! +local_domains
>    transport = your_pipe_transport
>    no_more

>
>
> lg,
> daniel
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/