Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20031016071530.GA30133@mould.vormig.net>
Date: Thu, 16 Oct 2003 09:15:30 +0200
From: Tim van Erven <tve@...mig.net>
To: popa3d-users@...ts.openwall.com
Subject: Re: Virtual Domains

On Thu, 16/10/2003 08:51 +0200, Philipp Jacob wrote:
>> On Wed, 15/10/2003 14:56 +0200, Philipp Jacob wrote:
>>> Hi list,
>>> 
>>> probably this is a more exim-related question, but
>>> I hope someone can help me anyway, due to the
>>> fact someone experienced the same difficulties.
>>> 
>>> Referring to the pop3-ssl Howto written by Tim van
>>> Erven I set up the system and the popa3d-part works
>>> well.
>>> Now my problem is to get exim to deliver into the
>>> right 'virtual' mailboxes, like popa3d manages this
>>> coordination through the /etc/valiases file. The name
>>> of the mbox file is not related to the local_part of the
>>> mail addresses, so that I can't use the ${local_part}
>>> variable in the exim config.
>>> 
>>> The preferred way would be, that exim uses the same
>>> file like popa3d, the /etc/valiases.
>> 
>> /etc/valiases is a file I introduced in that HOWTO that is *only* used
>> by exim.  Popa3d never looks at it.  You can use the valiases file to
>> redirect mail to a different address.
>> 
>> If this doesn't help to clear things up, please provide an example of
>> what you're trying to accomplish.

> The redirection via the valiases file is not the solution
> for my needs. I want to host a couple of mail addresses
> and domains on the machine, so that some 'local_parts'
> appear more than one time. (e.g. info@... or mail@...)
> 
> So I want the mail to mail@xyz to be placed in an mbox
> file called mail-xyz and mail to mail@abc acordingly.
> And this should be controlled by a file similar to the
> /etc/valiases.

I see. You could put the following in the valiases file:

mail@xyz: mail-xyz@xyz
mail@abc: mail-abc@abc

But that wouldn't be very pretty. IIRC you can use ${domain} to get the
domain part of the address, so you could use a line like:

file = VIRTUAL_HOME_PATH/127.0.0.1/mail/${local_part}-${domain}

instead of the line

file = VIRTUAL_HOME_PATH/127.0.0.1/mail/${local_part}

in the HOWTO.

Hope this helps,

-- 
Tim van Erven <tve@...mig.net>          Fingerprint: F6C9 61EE 242C C012
OpenPGP Key ID: 712CB811                   36D5 BBF8 6310 D557 712C B811

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.