Re: [Exim] Mail for domain address

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Vadim Vygonets
Fecha:  
A: Exim users list
Asunto: Re: [Exim] Mail for domain address
Quoth Przemyslaw Kowalczyk on Tue, Sep 04, 2001:
> local_users:
>         driver          = aliasfile
>         include_domain  = no
>         search_type     = pgsql
>         query           = "SELECT mailbox FROM mail_user WHERE
> id_user='${local_part}' AND domain='${domain}'"
>         transport       = local_store

>
> Host is beeing prepared to handle more then one domain. Unfortunately all
> mail that should get to domain.com.pl have its domain set do
> host.domain.com.pl (with hostname attached).


Do you mean that the SQL query should get domain as
"host.domain.com.pl" for mail addressed to *.domain.com.pl? If
this is the case, you can hace a special director for this
domain:

domain_local_users:
driver = aliasfile
transport = local_store
domains = domain.com.pl : *.domain.com.pl
include_domain = no
search_type = pgsql
query = "SELECT mailbox FROM mail_user WHERE id_user='${local_part}' AND domain='domain.com.pl'"

Of course, same can be done by partial domain lookup in a file
containing all local domains, e.g.:

domains = partial-lsearch;/path/to/domains
query = "BLAH blah AND domain='${domain_data}'"

with file /path/to/domains containing entries like:

domain.com.pl:        host.domain.com.pl
*.domain.com.pl:    host.domain.com.pl
another.domain.net.au:    oz.domain


I have a similar rule to find out what file defines the data
relevant for the domain.

If this all is not what you meant, please explain your question
more precisely.

Vadik.

--
Avoid reality at all costs.