Postfix Overview - Introduction - SCN Research
Postfix Overview - Introduction - SCN Research
Postfix Overview - Introduction - SCN Research
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
VIRTUAL(5)<br />
VIRTUAL(5)<br />
Page 1 of 4<br />
NAME<br />
virtual - format of <strong>Postfix</strong> virtual table<br />
SYNOPSIS<br />
postmap /etc/postfix/virtual<br />
DESCRIPTION<br />
The optional virtual table specifies address redirections<br />
for local and non-local recipients or domains. The redirections<br />
are used by the cleanup(8) daemon. The redirections<br />
are recursive.<br />
The virtual redirection is applied only to recipient envelope<br />
addresses, and does not affect message headers.<br />
Think Sendmail rule set S0, if you like. Use canonical(5)<br />
mapping to rewrite header and envelope addresses in general.<br />
Normally, the virtual table is specified as a text file<br />
that serves as input to the postmap(1) command. The<br />
result, an indexed file in dbm or db format, is used for<br />
fast searching by the mail system. Execute the command<br />
postmap /etc/postfix/virtual in order to rebuild the<br />
indexed file after changing the text file.<br />
When the table is provided via other means such as NIS,<br />
LDAP or SQL, the same lookups are done as for ordinary<br />
indexed files.<br />
Alternatively, the table can be provided as a regularexpression<br />
map where patterns are given as regular expressions.<br />
In that case, the lookups are done in a slightly<br />
different way as described below.<br />
POSTFIX-STYLE VIRTUAL DOMAINS<br />
With a <strong>Postfix</strong>-style virtual domain, the virtual domain<br />
has its own user name space. Local (i.e. non-virtual)<br />
usernames are not visible in a <strong>Postfix</strong>-style virtual<br />
domain. In particular, local aliases(5) and mailing lists<br />
are not visible as localname@virtual.domain.<br />
Use a Sendmail-style virtual domain (see below) if local<br />
usernames, aliases(5) or mailing lists should be visible<br />
as localname@virtual.domain.<br />
Support for a <strong>Postfix</strong>-style virtual domain looks like:<br />
/etc/postfix/virtual:<br />
virtual.domain anything (right-hand content does not matter)<br />
postmaster@virtual.domain postmaster<br />
user1@virtual.domain address1<br />
user2@virtual.domain address2, address3<br />
The virtual.domain anything entry is required for a <strong>Postfix</strong>-style<br />
virtual domain.<br />
Do not list a <strong>Postfix</strong>-style virtual domain in the main.cf<br />
mydestination configuration parameter. Such an entry is<br />
required only for a Sendmail-style virtual domain.<br />
With a <strong>Postfix</strong>-style virtual domain, the <strong>Postfix</strong> SMTP<br />
http://www.porcupine.org/postfix-mirror/virtual.5.html<br />
6/26/01