Using qmail extension addresses with vpopmail
Extension addresses
Quite often, I’ll hand out a qmail extension address (i.e. roger-foo@domain.com
) so that I can more easily filter email received to this account. This is useful. According to the vpopmail
documentation, the --enable-qmail-ext
switch to configure
is supposed to turn this on. Unfortunately, it doesn’t appear to do anything. This is with vpopmail-5.4.0. I’m not entirely sure what it’s supposed to, but it doesn’t make extension addresses work.
The fix is relatively simple (although not particularly nice): Modify the vadduser
replacement script, given previously, so that it creates a .qmail-default
file for the user:
#!/bin/sh /home/vpopmail/bin/vadduser.real $1 $2 # Set up the IMAPdir stuff for BincIMAP... VDIR=`/home/vpopmail/bin/vuserinfo -d $1` mkdir -p $VDIR/IMAPdir chown vpopmail.vchkpw $VDIR/IMAPdir chmod 2700 $VDIR/IMAPdir ln -s ../Maildir $VDIR/IMAPdir/INBOX # Set up the .qmail-default file, so that extension addresses work correctly... VUSER=`/home/vpopmail/bin/vuserinfo -n $1` echo "./$VUSER/Maildir/" > $VDIR/../.qmail-$VUSER-default
There might be a better fix, but I’ve not found it yet.