Postfix Overview - Introduction - SCN Research
Postfix Overview - Introduction - SCN Research
Postfix Overview - Introduction - SCN Research
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
server accepts mail for known-user@virtual.domain and<br />
rejects mail for unknown-user@virtual.domain as undeliverable.<br />
Page 2 of 4<br />
SENDMAIL-STYLE VIRTUAL DOMAINS<br />
With a Sendmail-style virtual domain, every local (i.e.<br />
non-virtual) username is visible in the virtual domain. In<br />
particular, every local alias and mailing list is visible<br />
as localname@virtual.domain.<br />
Use a <strong>Postfix</strong>-style virtual domain (see above) if local<br />
usernames, aliases(5) or mailing lists should not be visible<br />
as localname@virtual.domain.<br />
Support for a Sendmail-style virtual domain looks like:<br />
/etc/postfix/main.cf:<br />
mydestination = $myhostname localhost.$mydomain $mydomain<br />
virtual.domain<br />
/etc/postfix/virtual:<br />
user1@virtual.domain address1<br />
user2@virtual.domain address2, address3<br />
The main.cf mydestination entry is required for a Sendmail-style<br />
virtual domain.<br />
Do not specify a virtual.domain whatever virtual map entry<br />
for a Sendmail-style virtual domain. Such an entry is<br />
required only with a <strong>Postfix</strong>-style virtual domain.<br />
With a Sendmail-style virtual domain, the <strong>Postfix</strong> local<br />
delivery agent delivers mail for an unknown user@virtual.domain<br />
to a local (i.e. non-virtual) user that has<br />
the same name; if no such recipient exists, the <strong>Postfix</strong><br />
local delivery agent bounces the mail to the sender.<br />
TABLE FORMAT<br />
The format of the virtual table is as follows, mappings<br />
being tried in the order as listed in this manual page:<br />
blanks and comments<br />
Blank lines are ignored, as are lines beginning<br />
with `#'.<br />
leading whitespace<br />
Lines that begin with whitespace continue the previous<br />
line.<br />
pattern result<br />
When pattern matches a mail address, replace it by<br />
the corresponding result.<br />
With lookups from indexed files such as DB or DBM, or from<br />
networked tables such as NIS, LDAP or SQL, patterns are<br />
tried in the order as listed below:<br />
user@domain address, address, ...<br />
Mail for user@domain is redirected to address.<br />
This form has the highest precedence.<br />
user address, address, ...<br />
Mail for user@site<br />
is redirected to address when<br />
http://www.porcupine.org/postfix-mirror/virtual.5.html<br />
6/26/01