[SlugBug] Adding a new mailbox by SSH
James Wallbank
james at lowtech.org
Wed Sep 6 15:38:00 BST 2006
Hello Bruno,
Thanks for the "maildirmake" tip - simple and effective!
Real mailboxes on the system seem to be listed in the "virtual" file,
set to redirect to themselves... does that make sense? Typical lines
might read:
user at domain.com user at domain.com
trash at domain.com trash at domain.com
@domain.com trash at domain.com
elsewhere at domain.com webmailbox at gmail.com
I take this to mean that there are two "real" pop3 mailboxes, "user" and
"trash", and that anything directed to
anystring-other-than-user at domain.com ends up in the trash mailbox.
Meanwhile, a mail to user at domain.com ends up in the mail box "user" and
a mail to "elsewhere at domain.com" ends up in a gmail account. Is that
roughly right? I'm unclear what 'vmailbox' is.
The server has no /etc/authlib, but /usr/lib/courier-imap/etc/ looks
promising. Can I find out the authentication method from these contents?
authdaemonrc imapd.dist pop3d.cnf quotawarnmsg.example
authdaemonrc.dist imapd-ssl pop3d.dist shared
imapd imapd-ssl.dist pop3d-ssl shared.tmp
imapd.cnf pop3d pop3d-ssl.dist
Thanks again,
James
=====
Bruno Postle wrote:
> On Wed 06-Sep-2006 at 12:27 +0100, James Wallbank wrote:
>
>>
>> I have to confess some considerable ignorance here! How do I add a new
>> mailbox to a virtual host on a server running postfix?
>
>
>> * I can run 'postmap virtual' to make the new virtual.db which postfix
>> uses.
>
>
> 'virtual' is used for virtual_alias_maps, ie. redirecting mail. You
> need to use 'vmailbox' virtual_mailbox_maps to deliver to virtual
> mailboxes.
>
>> * I can make appropriate diredctories in
>> /home/virtualdomain.com/system/mail/users/
>
>
> Use 'maildirmake' for this.
>
>> Also, at no point yet have I set a password for the new mailbox - so
>> clearly it won't work if I actually want to read the mail I've just
>> started accumulating!
>
>
> It depends entirely on how courier authentication is setup for these
> virtual mailboxes. Are the user details in a mysql or ldap database?
> On my small-ish system I use a text database (called userdb).
>
> Courier uses an authentication service called 'authdaemon' to manage all
> this stuff, you need to look to see how it is configured, usually in
> /etc/authlib
>
More information about the SlugBug
mailing list