« Formatting, formatting and... some more formatting. | Main | qmail HOWTO - Chapter 4 - Web Administration Tools »

qmail HOWTO - Chapter 3 - Administration of the Mail System

!!!WARNING!!!

This HOWTO (which should be named "misleading install guide that is too old to be taken seriously) no longer matches Oli's at pofo.de. Please direct your attention to lifewithqmail.org for better help and more details. (I'm only leaving this up until I can figure out how to gracefully remove it.)
SF - 2005-11-30

Chapter 3. Administration of the Mail System
Contents
3.1 vpopmail
3.2 autorespond
3.3 ezmlm-idx

This section will describe the command-line method of administering domains, users and mailing lists. If you plan on only using web administration services, then you may skip this chapter and go to Chapter 4. Web Tools.

3.1 vpopmail

A domain is added by:

/usr/local/vpopmail/bin/vadddomain domain.tld

If you want a second domain with the same users - i.e. email to user1@domain.tld will go to user1@aliasdomain.tld, then you may add an alias domain as such:

/usr/local/vpopmail/bin/vaddaliasdomain alias.tld domain.tld

You add users thusly:

/usr/local/vpopmail/bin/vadduser user1@domain.tld

Deleting users is done by:

/usr/local/vpopmail/bin/vdeluser user1@domain.tld

To change the password of a user:

/usr/local/vpopmail/bin/vmoduser -e cryptedpassword user1@domain.tld

[My notes:]
If you are not sure of the specific switches that can be used with any of the commands located in /usr/local/vpopmail/bin, then simply type in the command as such:

/usr/local/vpopmail/bin/vmoduser

and you will get a response like or at least similar to:

yourserver# ./vmoduser
vmoduser: usage: [options] email_addr or domain ( for the entire domain )
options: -v ( display the vpopmail version number )
    -n ( don't rebuild the vpasswd.cdb file )
    -q quota ( set quota )
    -c comment (set the comment/gecos field )
    -e encrypted_passwd (set the password field )
    -C clear_text_passwd (set the password field )
the following options are bit flags in the gid int field
    -u ( set no dialup flag )
    -d ( set no password changing flag )
    -p ( set no pop access flag )
    -s ( set no smtp access flag )
    -w ( set no web mail access flag )
    -i ( set no imap access flag )
    -b ( set bounce mail flag )
    -r ( set no external relay flag )
    -a ( grant qmailadmin administrator privileges)
    -0 ( set V_USER0 flag )
    -1 ( set V_USER1 flag )
    -2 ( set V_USER2 flag )
    -3 ( set V_USER3 flag )
    -x ( clear all flags )
3.2 autorespond

In order to configure a auto-vacation response, each oncoming email must be sent through the autoresponder. In order to achieve this, the following commands should be used: (we are assuming that the email address is user1@domain1.tld, as an example)

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 the text of the auto-vacation response should be drafted. The text that already exists does not contain any actual message. The following is an example of what one might want to use for /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

Comments (4)

How to set domain quota for a particular domain. If we set a quota for a domain will it be apply for all users.

Yap:

The qmail vacation only response to outcoming mail users, how about internal domain user mail ??? It not works at all for same domain user's mail.
Please advise.

Didi Bulancea:

Hi!

I would have gladly known whether would be possible all outgoing emails with a universal signature to provide.

Greeting,
Didi

Nick:

I would also recommend the QMR (QmailRocks.org) guide located here:
http://www.qmailrocks.org

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)



About

This page contains a single entry from the blog posted on March 28, 2003 11:43 AM.

The previous post in this blog was Formatting, formatting and... some more formatting..

The next post in this blog is qmail HOWTO - Chapter 4 - Web Administration Tools.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.33