Chapter 3. Administration of the Mail System
3.1 vpopmail
3.2 autorespond
3.3 ezmlm-idx
The administration of your mail server will now be explained. The creation
and administration of domains, users and also mailing lists are covered here.
If you are planning on using one of the web interfaces found either in this
document or elsewhere, you may skip this chapter.
3.1 vpopmail
A domain is created by:
/usr/local/vpopmail/bin/vadddomain
domain1.tld
If you want a second domain to have exactly the same users as the first one,
so that mail goes to user1@domain1.tld and user1@domain2.tld, you need to create
a so-called "alias domain."
/usr/local/vpopmail/bin/vadddomain
domain1.tld domain2.tld
Users are created with:
/usr/local/vpopmail/bin/vadduser
user1@domain1.tld
Users are removed with:
/usr/local/vpopmail/bin/vdeluser
user1@domain1.tld
To change the password of a user:
/usr/local/vpopmail/bin/vmoduser
-e cryptedpassword user1@domain1.tld
3.2 autorespond
In order to configure an "away" message, the incoming email needs
to be directed through an autoresponder. In order to configure this, you
will need to enter the following commands (we are assuming that the email account
of the user for whom you wish to configure the autoresponder is user1@domain1.tld).
cd /usr/local/vpopmail/domains/domain1.tld/user1
printf "%s%s%s\n%s" '| /usr/local/bin/autorespond 86400 3' \
'/usr/local/vpopmail/domains/domain1.tld/user1/vacation/message'
\
'/usr/local/vpopmail/domains/domain1.tld/user1/vacation'
\
'/usr/local/vpopmail/domains/domain1.tld/user1/Maildir/'
> .qmail
Now you must create the message that the sender shall receive.
The message does not have any text to it yet. The following is an example
of what you could use as a text in /usr/local/vpopmail/domains/domain1.tld/user1/vacation/message:
From:
user1@domain1.tld
Subject: Thanks for your email
I just received your email. I am currently
on vacation
and because of this will not be able to respond
to your
email. Please be patient. I will
be available again
on 2/19/2009.
Warm Regards,
User1
3.3 ezmlm-idx
A moderated list with the name "TEST" and whose moderator address
is "user1@domain1.tld" is likewise created thusly:
cd /usr/local/vpopmail/domains
ezmlm-make -rdug -5 user1@domain1.tld /usr/local/vpopmail/domains/domain1.tld/TEST
\
/usr/local/vpopmail/domains/domain1.tld/.qmail-TEST
TEST domain1.tld
ezmlm-sub /usr/local/vpopmail/domains/domain1.tld/TEST user1@domain1.tld
ezmlm-sub /usr/local/vpopmail/domains/domain1.tld/TEST/digest user1@domain1.tld
ezmlm-sub /usr/local/vpopmail/domains/domain1.tld/TEST/mod user1@domain1.tld
chown -h vpopmail.vchkpw ./domain1.tld/.qmail-TEST*
chown -R vpopmail.vchkpw ./domain1.tld/TEST

The entry for creating a second domain (alias) is not correct. The entry should be:
/usr/local/vpopmail/bin/vaddaliasdomain newdomain.tld olddomain.tld