[SlugBug] Adding a new mailbox by SSH

James Wallbank james at lowtech.org
Wed Sep 6 18:01:57 BST 2006


Hello Bruno,

> it looks like the first one that matches is the authuserdb
> which is fairly straightforward.

Excellent! I was worrying that this userdb was a horrible custom-made 
system.

(That would tally with the matrix control panel which seems to be a 
Fasthosts custom invention of intermediate functionality. (Well, 
functionality that encourages you to "pay 5 quid to activate this 
service by pressing a button" when you can activate it yourself from the 
shell for nothing!)

> You can add lines by hand, the only thing you need to construct is the 
> password field which you generate with the 'userdbpw'.

I have to admit I've never heard of that command - but a little testing 
has satisfied me it generates passwords in exactly the same way as does...

openssl passwd -1 SECRETPASS

...which I do understand. Great! I get that! I'll do some tests to see 
how I can induce userdbpw to change a user password in place without 
cutting and pasting, which the manual implies it can do.

> 1. Create a Maildir with 'maildirmake'
> 2. add a line to the relevant userdb file (userdbpw)
> 3. regenerate the database with 'makeuserdb'

I assume it would be indicated to establish forwarders inside 
/etc/postfix/virtual if appropriate?

Just one question - does 'makeuserdb' require any arguments at all? It 
seems (from the manual page) to be a very, very standard tool. The only 
thing I worry about is if simply running makeuserdb without any 
preparation may break users.dat. Can you reassure me?

> Can you tell I've done this before?

I'd assumed that you're a manual page wizard with a photographic memory 
and a talent for instant improvising... ;-)

Best,

James


More information about the SlugBug mailing list