28.06.2014 Views

Postfix Overview - Introduction - SCN Research

Postfix Overview - Introduction - SCN Research

Postfix Overview - Introduction - SCN Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

hostname.my.domain<br />

localhost.my.domain<br />

local:<br />

local:<br />

Page 2 of 3<br />

The interpretation of the nexthop field is transport<br />

dependent. In the case of SMTP, specify host:service for a<br />

non-default server port, and use [host] or [host]:port in<br />

order to disable MX (mail exchanger) DNS lookups. The []<br />

form can also be used with IP addresses instead of hostnames.<br />

EXAMPLES<br />

In order to send mail for foo.org and its subdomains via<br />

the uucp transport to the UUCP host named foo:<br />

foo.org<br />

.foo.org<br />

uucp:foo<br />

uucp:foo<br />

When no nexthop host name is specified, the destination<br />

domain name is used instead. For example, the following<br />

directs mail for user@foo.org via the slow transport to a<br />

mail exchanger for foo.org. The slow transport could be<br />

something that runs at most one delivery process at a<br />

time:<br />

foo.org<br />

slow:<br />

When no transport is specified, the default transport is<br />

used, as specified via the default_transport configuration<br />

parameter. The following sends all mail for foo.org and<br />

its subdomains to host gateway.foo.org:<br />

foo.org<br />

.foo.org<br />

:[gateway.foo.org]<br />

:[gateway.foo.org]<br />

In the above example, the [] are used to suppress MX<br />

lookups. The result would likely point to your local<br />

machine.<br />

In the case of delivery via SMTP, one may specify hostname:service<br />

instead of just a host:<br />

foo.org<br />

smtp:bar.org:2025<br />

This directs mail for user@foo.org to host bar.org port<br />

2025. Instead of a numerical port a symbolic name may be<br />

used. Specify [] around the hostname in order to disable<br />

MX lookups.<br />

The error mailer can be used to bounce mail:<br />

error:mail for *.foo.org is not deliv-<br />

.foo.org<br />

erable<br />

This causes all mail for user@anything.foo.org<br />

bounced.<br />

to be<br />

REGULAR EXPRESSION TABLES<br />

This section describes how the table lookups change when<br />

the table is given in the form of regular expressions. For<br />

a description of regular expression lookup table syntax,<br />

see regexp_table(5) or pcre_table(5).<br />

Each pattern is a regular expression that is applied to<br />

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

6/26/01

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

Saved successfully!

Ooh no, something went wrong!