Friday
31
Dec 2004

2004 in review

(5:19 pm) Tags: [Life]

Here it is, 2004 in a nutshell (ordered):

There were many other great times, and I can only think that 2005 will be just as good.
Things I want to get out of 2005 (not ordered):

Am I missing anything?

Popularity: 15%

Comments: (1)

Create a new virtual user (IMAP and POP3 only)

(1:08 pm) Tags: [Sysadmin]

To set up a virtual user (email) in the domain that was created (needs to be done as root)

mkdir /home/courier/domains/$DOMAIN/$USER
maildirmake /home/courier/domains/$DOMAIN/$USER/Maildir
chown -R courier:mail /home/courier/domains/$DOMAIN/$USER
userdb -f /etc/userdb/$DOMAIN $USER@$DOMAIN set uid=528 gid=528 home=/home/courier/domains/$DOMAIN/$USER mail=/home/courier/domains/$DOMAIN/$USER/Maildir
userdb -f /etc/userdb/$DOMAIN $ALIAS-$USER set uid=528 gid=528 home=/home/courier/domains/$DOMAIN/$USER mail=/home/courier/domains/$DOMAIN/$USER/Maildir
userdbpw -md5 | userdb -f /etc/userdb/$DOMAIN $ALIAS-$USER set imappw
userdbpw -md5 | userdb -f /etc/userdb/$DOMAIN $ALIAS-$USER set systempw
userdbpw -md5 | userdb -f /etc/userdb/$DOMAIN $ALIAS-$USER set poppw
userdbpw -md5 | userdb -f /etc/userdb/$DOMAIN $USER@$DOMAIN set imappw
userdbpw -md5 | userdb -f /etc/userdb/$DOMAIN $USER@$DOMAIN set systempw
userdbpw -md5 | userdb -f /etc/userdb/$DOMAIN $USER@$DOMAIN set poppw
ln -s /var/qmail/alias/.qmail-maildrop-virtual /var/qmail/alias/.qmail-$ALIAS-$USER
chmod 600 /var/qmail/alias/.qmail-$ALIAS-$USER
chown alias:nofiles /var/qmail/alias/.qmail-$ALIAS-$USER
makeuserdb
/etc/rc.d/init.d/courier-pop3 restart
/etc/rc.d/init.d/courier-imap restart
qmailctl restart
To test it all, send email to that user@domain, then login to webmail as $USER@$DOMAIN with the password, and you should be good to go.

A couple of notes for variable names:
$DOMAIN = full domain name (dotnot.org)
$ALIAS = lop of the TLD (dotnot)
$USER = username of the person (scott)

Popularity: 10%

Comments: (3)

Create a new domain

(1:05 pm) Tags: [Sysadmin]

Please note that this blog is my second memory, and this is intended for long-term storage. To set up a new domain for virtual mail accounts (domain must be new to the box, and please note that all of these commands need to be run as root):

echo $DOMAIN >> /var/qmail/control/rcpthosts
echo $DOMAIN:alias-$ALIAS >> /var/qmail/control/virtualdomains
ln -s /var/qmail/alias/.qmail-maildrop-virtual /var/qmail/alias/.qmail-$ALIAS-default
chmod 600 /var/qmail/alias/.qmail-$ALIAS-default
chown alias:nofiles /var/qmail/alias/.qmail-$ALIAS-default
mkdir /home/courier/domains/$DOMAIN
chown courier:mail /home/courier/domains/$DOMAIN
chmod 770 /home/courier/domains/$DOMAIN
qmailctl restart

A couple of notes for variable names:
$DOMAIN = full domain name (dotnot.org)
$ALIAS = lop of the TLD (dotnot)

Popularity: 11%

Comments: Comments Off