Re: [Exim] e-mail adresses from the local domain to the smtp…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Phil Pennock
Ημερομηνία:  
Προς: Guido Krein
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] e-mail adresses from the local domain to the smtp server
On 2002-04-12 at 17:43 +0200, Guido Krein wrote:
> I'am quite new to MTA's and especially exim. I use Debian Linux 2.2 r6
> with exim version 3.12
> After a few days of searching a solution for my problem I hope that
> somebody can help me.
> The problem: I want to match all local domains in the form
> local_domains = brabla.com
> but want "exceptions", for instance I dont want harry@??? or
> larry@??? to be treated as local, what is the best way to do
> this?
> For better maintenance I want to have a file where I can put in those
> e-mail addresses that are not delivered local to /var/spool/mail/harry
> or larry
> these mails should be delivered to the standard remote smtp server
> "smtp.iwantmails.com".
> See my exim.conf attached.


If that's your exim.conf then you have problems. It doesn't have the
"end" directives in, which separate the sections.


If the harry and larry addresses simply don't exist locally, then this
is FAQ 0403.

If harry and larry do exist, then it's still FAQ 0403, but you want a
"condition" on your "userforward" and "localuser" Directors. Something
like (untested):

condition = ${if ${lookup{$local_part} lsearch {/path/to/exclusions} {no} {yes}}}

--
Science without religion is lame; religion without science is blind.
-- Albert Einstein, Reader's Digest, Nov. 1973