Re: [EXIM] why refused

Top Page
Delete this message
Reply to this message
Author: tcurdt
Date:  
To: exim-users
Subject: Re: [EXIM] why refused
On Wed, 3 Feb 1999, Philip Hazel wrote:
> On Tue, 2 Feb 1999, Torsten Curdt wrote:
>
> > 1999-02-02 09:44:04 refused relay (sender) to x@??? from
> > <alias@???> H=aloudtorelay.de [IP]
>
> [...]
>
> > sender_address_relay = "partial-lsearch;/etc/exim/relay"
>
> I presume mydomain.de or alias@??? is in /etc/exim/relay?


Yes!

> You can find out more detail as to why it is failing by running
>
> exim -bh IP
> mail from:<alias@???>
> rcpt to:<x@???>
>
> It should output details of which options it is testing.


:-) I am kinda embaressed to say, but... I'm still running
exim 1.73 ! (there is no command line option - isn't there?)

But I know now what the problem is...
I checked by the -bv option.
It looks like only the /etc/aliases file is check for verification
although I have an aliases file for each local domain.

local_domains = "mydomain.de:host.mydomain.de:\
                 lsearch;/etc/exim/localdomains"


The localpart of the relayed message is only valid with the
right aliases file! This is my virtual driver:

virtual:
  domains = "lsearch;/etc/exim/localdomains",
  driver = aliasfile,
  no_more;
  file = "${if exists{/etc/exim/${domain}/aliases}\
           {/etc/exim/${domain}/aliases}\
           {/etc/exim/\
           ${if match{$domain}{^[^\\\\.]+(.*)\\$}{$1}{default}}/aliases}}",
  search_type = lsearch


So what is wrong?

-
Torsten



--
*** Exim information can be found at http://www.exim.org/ ***