Aliases

 < Free Open Study > 



qmail's standard aliasing mechanism is a natural outgrowth of qmail's local delivery mechanism. qmail-local attempts to deliver a message addressed to localpart@host to a local user named localpart. If no matching user is found, the message is delivered to the alias user, a pseudo-user on all qmail systems whose home directory is usually /var/qmail/alias.

For example, say you want to create an info@example.com alias that forwards messages to user zack. On example.com as user root, do this:

 # echo zack > /var/qmail/alias/.qmail-info # chmod 644 /var/qmail/alias/.qmail-info # 

Chapter 4, "Using qmail," describes how to create the .qmail files that specify which aliases exist and what to do with messages sent to them.

Note that because of the way aliases are implemented in qmail, an alias can never override a valid user's deliveries. For example, if rachel is a normal user, then ~alias/.qmail-rachel will not be used. An exception to this rule is the qmail-users mechanism discussed in the next section.

The fastforward package provides an alternative aliasing mechanism that puts multiple aliases in a single file compatible with Sendmail's alias database.

The next section describes another mechanism you can use to implement aliases.



 < Free Open Study > 



The Qmail Handbook
The qmail Handbook
ISBN: 1893115402
EAN: 2147483647
Year: 2001
Pages: 186
Authors: Dave Sill

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net