Re: [Exim] problem with main domain (virtual hosts) -- need …

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Attila
Data:  
Para: exim-users
CC: Nico Erfurth
Asunto: Re: [Exim] problem with main domain (virtual hosts) -- need help
Hello,

> Show us your other directors please, and do a
> debugrun with exim -d9 -bt contact@???
> ciao


I did run the debug test you told me and I think I got the problem. I
do not attach the whole thing but it appeares to me that it does this:
1. it searches for contact@??? and finds its file correctly
2. it finds the recipient user (i.e. "attila") correctly BUT then it
does like this:

address attila@???
local_part=attila domain=domain1.com
domain is local

So when delivering to the local user it appends the "main" domain (i.e.
domain1.com) to the user name (attila@???). It does this even
though the file of domain2.com contains only
*: attila
so just a local user name. And then when it keeps running, finds the
file of domain1.com, finds the line
*: other_user
and this way other_user gets the mail, not attila. Poor me :(

This is the "virtual" director. I guess that other directors are just
the defaults. It looks like this:
---------------------------------
real_local:
prefix = real-
driver = localuser
transport = local_delivery

virtual:
driver = aliasfile
optional
domains = dbm;/etc/mail/local_domains.db
file = /etc/mail/$domain
search_type = lsearch*

system_aliases:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
file = /etc/aliases
search_type = lsearch

procmail: .........
userforward: ........

localuser:
driver = localuser
transport = local_delivery
---------------------------------

I did save the debug output, I can attach if it helps, it's about 15k.

Any idea about this??

Attila
:)