Re: [exim] A catch all non existent adresses config

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: oleg
Dátum:  
Címzett: John Burnham
CC: exim-users
Tárgy: Re: [exim] A catch all non existent adresses config
Starring at exim -d -bt output for almost on hour i finally added to the
mysql_anyone a condition , to enter the router if the email does not exist
in the users database:
-------------------------------------
mysql_users_aliases:
  driver = redirect
  file_transport = address_file
  pipe_transport = address_pipe
  data = ${lookup mysql{ SELECT id FROM users \
          WHERE id='${quote_mysql:${local_part}@${domain}}' }} \n \
          ${lookup mysql{SELECT sendto FROM aliases \
          WHERE (username='$local_part' AND domainname='$domain') }}


mysql_anyone:
driver = redirect
file_transport = address_file
pipe_transport = address_pipe
data = ${lookup mysql{SELECT sendto FROM aliases \
WHERE (username='*' AND domainname='$domain')}}
condition = ${lookup mysql{SELECT id FROM users WHERE
id='${quote_mysql:${local_part}@${domain}}'}{no}{yes
}}

-------------------------------------
That solved the problem, thank you for the precious advice to use debug.

Brest regards,

Oleg R.




> On 12/05/06, oleg@??? <oleg@???> wrote:
>>
>>
>> Yes it is a typo..it stays on a separate line..I just tested again and
>> all
>> the emails even if the address exists goes to catch_all account..it
>> seems
>> like NO_MORE oprion is not working:
>> ./bin/exim -d -bt manager@??? (manager exists!)
>>
>> --------> mysql_users_aliases router <--------
>> mysql_users_aliases router skipped: previously routed manager@???
>> --------> mysql_anyone router <--------
>> local_part=manager domain=euro.md
>>
>> -----------------------------------------------------------------------------------------------------------------------------------------------
>> it is just a bit of the output, you see it runs 2 times through the
>> routers, second time it enters the mysql_anyone...What should i do???
>>
>>
> So, the mail goes through the routers once - it gets a new address to try
> and so starts again, this time potentially ignoring the router it used
> previously (spec 22.5 says:
> "a router is automatically skipped if any ancestor of the address that is
> being processed is the same as the current address and was processed by
> the
> current router") which would cause it to fall through to the mysql_anyone
> router. Does that explain what you're seeing and does it help you work out
> what you might need to do ?
> John
>