[EXIM] new user question

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Adam M Donahue
Fecha:  
A: exim-users
Asunto: [EXIM] new user question
All,

I recently replaced sendmail with Exim, and I love its flexibility. I do
have a question about aliasing though.

I host a number of virtual domains. For example, metainc.com. Now, what
I'd like is for mail to selected recipients to metainc.com to be forwarded
to other addresses. bob@??? would go to bob@???, for
instance. wrongaddress@??? would be bounced (for now; perhaps in
the future the customer will want all mail). Here's what I've set up to
handle this:

virtual_specific:
driver = smartuser
new_director = system_aliases
domains = "lsearch;/etc/aliases.virtual"
new_address = ${lookup{$local_part@$domain}lsearch{/etc/aliases.virtual}
{$value} fail}

virtual_default:
driver = smartuser
new_director = system_aliases
domains = "lsearch;/etc/aliases.virtual"
new_address = ${lookup{$domain}lsearch{/etc/aliases.virtual} {$value}
fail}

The aliases.virtual file contains lines like:

metainc.com:        /dev/null
bob@???:    bob@???
adam@???:    adam@???


These are my first two directors. If I leave the metainc.com part out,
this doesn't work at all. Mail to adam goes to my LOCAL address and not
to the otherdomain.com address. I'm not sure why.

The question I have is, how do I specify the metainc.com alias so that
mail to someone other than those listed is bounced as not found instead of
simply banished to /dev/null?

Adam


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