28.06.2014 Views

Postfix Overview - Introduction - SCN Research

Postfix Overview - Introduction - SCN Research

Postfix Overview - Introduction - SCN Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ACCESS(5)<br />

ACCESS(5)<br />

Page 1 of 3<br />

NAME<br />

access - format of <strong>Postfix</strong> access table<br />

SYNOPSIS<br />

postmap<br />

/etc/postfix/access<br />

DESCRIPTION<br />

The optional access table directs the <strong>Postfix</strong> SMTP server<br />

to selectively reject or accept mail from or to specific<br />

hosts, domains, networks, host addresses or mail<br />

addresses.<br />

Normally, the access 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/access in order to rebuild the<br />

indexed file after changing the access table.<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 />

TABLE<br />

FORMAT<br />

The format of the access table is as follows:<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 action<br />

When pattern matches a mail address, domain or host<br />

address, perform the corresponding action.<br />

PATTERNS<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<br />

Matches the specified mail address.<br />

domain.name<br />

Matches the domain.name itself and any subdomain<br />

thereof, either in hostnames or in mail addresses.<br />

Top-level domains will never be matched.<br />

user@ Matches all mail addresses with the specified user<br />

part.<br />

net.work.addr.ess<br />

http://www.porcupine.org/postfix-mirror/access.5.html<br />

6/26/01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!