Re: [Exim] Converting virtual domains from Qmail

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Radcliffe
Data:  
A: exim-users
Assumpte: Re: [Exim] Converting virtual domains from Qmail
"I. Forbes" <iforbes@???> probably said:
> 1) A list of virtual domains, mapped onto real local users:
>
>     virtual1.com:    local1 
>     virtual2.com:    local2 


You can use this data with a lookup, probably in a smartuser director.

> 2)  A rewriting mechanism that redirects incoming mail addressed to
>     virtual domains as follows: 

>
>     target@??? is delivered to local1-target@???


smartuser director

> 3) A local delivery mechansim which directs mail as follows:
>
>     local1[-optionalsuffix]@virtual1.com to the user local1


smartuser director with suffixes.

if you're doing both of these things, why not do them in one step ?

> 4) A .forward filter that can further redirect mail as follows:
>
>     local1-target: otheruser@??? 

>
>     The default behaviour of this filter is to deliver 

>
>     local1 and 
>     local1-*

>
>     to the local mailbox.

>
>     This filter file is stored in the local1's home directory with
>     permissions for him to edit etc. 


you could do this as is with another lookup in the file (but that
isn't valid syntax for a real .forward file), or you could look
up .forward-local1-target and have that forward file be the correct
syntax.

I do many similar things in the examples I've previously sent to the
list for virtual domains and passing suffixes through virtual domain
alias files.

> Qmail also has the facility to recover the original envelope
> information from the headers of the final delivery. This however is
> not a requirement for us, in fact I would quite happily turn this feature
> off.


Delivered-to: is added on normal local deliveries and can be turned off.

> -   The "virtual domain alias" file needs to be in the ~user/
>     directory not $domain directory. 


Doesn't have to be.

> -   I am not sure if there needs to be an address rewriting process
>     as implemented in qmail. 


Rewriting is a misnomer.
You don't need to rewrite to forward mail to a different user.
smartuser diretor new_address =

> -   We need local1[-optionalsuffix] to be delivered to local1.  This
>     is required for standard (non virtual domain) addresses as well
>     as virtual domains. 


look at the suffix options to directors and examples previously sent
to the list.

> I would be happy to hear comments from anybody who has tried
> this before.


This isn't rocket science, is all possible in some form. Read the
examples, read the specification ...

P.

-- 
pir                  pir@???                    pir@???