|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Virtual hosting with cyrus (mailboxes called user
foo.domain)
From: Josef Karthauser (joe
tao.org.uk)
Date: Tue Jun 01 2004 - 20:30:45 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jun 01, 2004 at 10:13:06PM +0100, Josef Karthauser wrote:
> Can someone point me in the right direction to get cyrus to use the
> transport "cyrus" to deliver to mailboxes with
's in the name.
> How do I get postfix to use the 'cyrus' transport for mailboxes named in
> this way?
Ok, I've worked out most of it.
I added the following to my main.cf file:
virtual_transport = cyrusx
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailboxes
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
And defined this in master.cf:
cyrusx unix - n n - - pipe
flags=R user=cyrus argv=/usr/local/cyrus/bin/deliver -e -m ${extension} ${recipient}
Which is basically the same as the cyrus rule but with ${recipient}
instead of ${user} defined so that the whole email address gets sent to
cyrus's deliver command.
This works, but I'm confused about virtual_mailbox_maps.
virtual:
me
josef-k.net joe
tao.org.uk
you
josef-k.net test
josef-k.net
vmailboxes:
test
josef-k.net *
test2
josef-k.net *
This looks to me as if there are two mailboxes defined: test and test2
at josef-k.net, and that there are two aliases defined also.
Strangely if I attempt to deliver mail to test3
josef-k.net I get:
Jun 2 02:10:14 transwarp postfix/qmgr[65370]: 624B4EA52: from=<root
tao.org.uk>, size=304, nrcpt=1 (queue active)
Jun 2 02:10:14 transwarp postfix/pipe[65469]: 624B4EA52: to=<test3
josef-k.net>, relay=cyrusx, delay=0, status=bounced (data format error. Command output: test3
josef-k.net: Mailbox does not exist )
Why is cyrusx trying to deliver mail to test3
josef-k.net? It's not
mentioned in the vmailboxes file. Shouldn't something be saying
user-unknown before it attempts the delivery agent?
Joe
--
Josef Karthauser (joe
tao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iEYEARECAAYFAkC9LcUACgkQXVIcjOaxUBahRQCgywVsaT1TG1I+e863LVvdAxSo
PugAnjm4weL/fVAYaTrP96GYzSfnmYfd
=ASSV
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]