OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: mailbox_rewrite
From: Cristian Deacu (dmcplanet.it)
Date: Tue Jun 27 2000 - 11:46:57 CDT


 Hi everybody!

I use a snapshot-20000531 and I want to have the mailboxes in a form
like /var/mail/domain/x where "domain" is the domain of the email
and x is the first letter of the user.

I compiled Postfix with pcre support and I patched it with mailbox
location patch from http://www.uninet.ee/~ragnar/postfix/. In me configuration
file I have:

-----------------------------------------------

mail_spool_directory = /var/mail/$domain

mailbox_rewrite = pcre:/etc/postfix/mailbox.rw

-----------------------------------------------

and in mailbox.rw I have the line:

/^\/var\/mail\/([^\/]+)\/(.)(.*)$/ /var/mail/${1}/${2}/${2}${3}

and I also created the /var/mail/domain directory and x directory
(where x is the first letter of my user). But when I receive a mail
for xxxdomain, I found the mailbox in /var/mail/xxx . I'm wondering
what I'm missing.

Please help,
Thanks

Cristian