[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d381c908] | 7 | <!-- editors: upstream postfix is ftp only, some of the mirrors offer
|
---|
| 8 | https - http://www.porcupine.org/mirmon/postfix-source.html lists the
|
---|
| 9 | mirror status, some of the mirrors shown as http are actually https -->
|
---|
| 10 | <!ENTITY postfix-download-http "https://ghostarchive.org/postfix/postfix-release/official/postfix-&postfix-version;.tar.gz">
|
---|
[0e5eac44] | 11 | <!ENTITY postfix-download-ftp "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-&postfix-version;.tar.gz">
|
---|
[f99b8f1] | 12 | <!ENTITY postfix-md5sum "3a617fa971c694081e737a921038a59c">
|
---|
[9fc3125] | 13 | <!ENTITY postfix-size "4.6 MB">
|
---|
[f99b8f1] | 14 | <!ENTITY postfix-buildsize "151 MB"> <!-- 151M build, 55M install_root -->
|
---|
[99f86349] | 15 | <!ENTITY postfix-time "0.2 SBU (Using parallelism=4)">
|
---|
[0931098] | 16 | ]>
|
---|
| 17 |
|
---|
[547df0bc] | 18 | <sect1 id="postfix" xreflabel="Postfix-&postfix-version;">
|
---|
[417f9e7] | 19 | <?dbhtml filename="postfix.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>Postfix-&postfix-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="postfix">
|
---|
| 28 | <primary sortas="a-Postfix">Postfix</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Postfix</title>
|
---|
| 33 |
|
---|
[2605bb1] | 34 | <para>
|
---|
| 35 | The <application>Postfix</application> package contains a Mail Transport
|
---|
| 36 | Agent (MTA). This is useful for sending email to other users of your host
|
---|
| 37 | machine. It can also be configured to be a central mail server for your
|
---|
| 38 | domain, a mail relay agent or simply a mail delivery agent to your local
|
---|
| 39 | Internet Service Provider.
|
---|
| 40 | </para>
|
---|
[417f9e7] | 41 |
|
---|
[c2f9a33] | 42 | &lfs111_checked;
|
---|
[438c11ab] | 43 |
|
---|
[417f9e7] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[2605bb1] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&postfix-download-http;"/>
|
---|
| 49 | </para>
|
---|
[417f9e7] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[2605bb1] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&postfix-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[417f9e7] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[2605bb1] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &postfix-md5sum;
|
---|
| 59 | </para>
|
---|
[417f9e7] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[2605bb1] | 62 | <para>
|
---|
| 63 | Download size: &postfix-size;
|
---|
| 64 | </para>
|
---|
[417f9e7] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[2605bb1] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &postfix-buildsize;
|
---|
| 69 | </para>
|
---|
[417f9e7] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[2605bb1] | 72 | <para>
|
---|
| 73 | Estimated build time: &postfix-time;
|
---|
| 74 | </para>
|
---|
[417f9e7] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
[348ca51] | 77 | <!--
|
---|
[ddbaa48] | 78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 79 | <itemizedlist spacing="compact">
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>
|
---|
| 82 | Required patch:
|
---|
| 83 | <ulink url="&patch-root;/postfix-&postfix-version;-glibc230_fix-1.patch"/>
|
---|
| 84 | </para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
[348ca51] | 87 | -->
|
---|
[417f9e7] | 88 | <bridgehead renderas="sect3">Postfix Dependencies</bridgehead>
|
---|
| 89 |
|
---|
[58f0b91] | 90 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 91 | <para role="recommended">
|
---|
[a6d67b9] | 92 | <xref linkend="db"/>,
|
---|
[94b42903] | 93 | <xref linkend="cyrus-sasl"/>, and
|
---|
| 94 | <xref linkend="libnsl"/>
|
---|
[58f0b91] | 95 | </para>
|
---|
| 96 |
|
---|
[417f9e7] | 97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[438c11ab] | 98 | <para role="optional">
|
---|
[d9321c0] | 99 | <xref linkend="icu"/> for Email Address Internationalization (SMTPUTF8) support,
|
---|
[5e0662d] | 100 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[58f0b91] | 101 | <xref linkend="openldap"/>,
|
---|
| 102 | <xref linkend="pcre"/>,
|
---|
| 103 | <xref linkend="postgresql"/>,
|
---|
[10405e6] | 104 | <xref linkend="sqlite"/>, and
|
---|
[58f0b91] | 105 | <ulink url="http://cr.yp.to/cdb.html">CDB</ulink> or
|
---|
[438c11ab] | 106 | <ulink url="http://www.corpit.ru/mjt/tinycdb.html">TinyCDB</ulink>
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
[2605bb1] | 109 | <para>
|
---|
[58f0b91] | 110 | Note that <application>SQLite</application>,
|
---|
| 111 | <application>MySQL</application>, <application>PostgreSQL</application>
|
---|
| 112 | and <application>CDB</application> are only useful if there is a known
|
---|
[2605bb1] | 113 | need for them.
|
---|
| 114 | </para>
|
---|
[3cb0c57] | 115 |
|
---|
[2605bb1] | 116 | <para condition="html" role="usernotes">
|
---|
| 117 | User Notes: <ulink url="&blfs-wiki;/postfix"/>
|
---|
| 118 | </para>
|
---|
[417f9e7] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="installation">
|
---|
| 122 | <title>Installation of Postfix</title>
|
---|
| 123 |
|
---|
[2605bb1] | 124 | <sect3>
|
---|
| 125 | <title>Adding Users and Groups</title>
|
---|
[58f0b91] | 126 |
|
---|
[2605bb1] | 127 | <para>
|
---|
| 128 | Before you compile the program, you need to create users and groups that
|
---|
| 129 | will be expected to be in place during the installation. Add the users
|
---|
| 130 | and groups with the following commands issued by the
|
---|
| 131 | <systemitem class="username">root</systemitem> user:
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <screen role="root"><userinput>groupadd -g 32 postfix &&
|
---|
| 135 | groupadd -g 33 postdrop &&
|
---|
[58f0b91] | 136 | useradd -c "Postfix Daemon User" -d /var/spool/postfix -g postfix \
|
---|
| 137 | -s /bin/false -u 32 postfix &&
|
---|
[2605bb1] | 138 | chown -v postfix:postfix /var/mail</userinput></screen>
|
---|
| 139 | </sect3>
|
---|
| 140 |
|
---|
[417f9e7] | 141 | <sect3>
|
---|
| 142 | <title>Configuring the Build</title>
|
---|
| 143 |
|
---|
[2605bb1] | 144 | <para>
|
---|
| 145 | The README files are formatted to be read with a pager like
|
---|
| 146 | <application>Less</application> or <application>More</application>.
|
---|
[b400d26] | 147 | If you want to use a text editor, make them legible with the
|
---|
| 148 | following sed:
|
---|
[2605bb1] | 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <screen><userinput>sed -i 's/.\x08//g' README_FILES/*</userinput></screen>
|
---|
[9fc3125] | 152 | <!--
|
---|
[ddbaa48] | 153 | <para>
|
---|
[179d426d] | 154 | Make an adjustment to allow <application>Postfix</application> to compile
|
---|
| 155 | on <application>Glibc-2.34</application> and later:
|
---|
[ddbaa48] | 156 | </para>
|
---|
| 157 |
|
---|
[179d426d] | 158 | <screen><userinput>sed -i '/<linux/i #define HAS_CLOSEFROM' src/util/sys_defs.h</userinput></screen>
|
---|
[9fc3125] | 159 | -->
|
---|
[2605bb1] | 160 | <para>
|
---|
| 161 | The <application>Postfix</application> source tree does not contain a
|
---|
| 162 | <filename>configure</filename> script, rather the makefile in the
|
---|
| 163 | top-level directory contains a <option>makefiles</option> target that
|
---|
| 164 | regenerates all the other makefiles in the build tree. If you wish to
|
---|
| 165 | use additional software such as a database back-end for virtual users,
|
---|
| 166 | or TLS/SSL authentication, you will need to regenerate the makefiles
|
---|
| 167 | using one or more of the appropriate <envar>CCARGS</envar> and
|
---|
| 168 | <envar>AUXLIBS</envar> settings listed below.
|
---|
| 169 | </para>
|
---|
| 170 |
|
---|
[d381c908] | 171 | <note>
|
---|
| 172 | <para>
|
---|
| 173 | For all variants of the CCARGS you should ensure that -DNO_NIS is
|
---|
| 174 | specified so that the build does not attempt to access an rpcsvc header
|
---|
| 175 | which does not exist in BLFS.
|
---|
| 176 | </para>
|
---|
| 177 | </note>
|
---|
| 178 |
|
---|
[2605bb1] | 179 | <para>
|
---|
| 180 | For more details read the readme files.
|
---|
| 181 | </para>
|
---|
[4b9c064] | 182 | <!-- We reverted to Berkeley DB-5.3.28 and that is handled
|
---|
[ffdbde9c] | 183 | <para>
|
---|
| 184 | The current version of <xref linkend="db"/> is not recognised by a
|
---|
| 185 | hard-coded test for known versions. To build with this version use the
|
---|
| 186 | following sed:
|
---|
| 187 | </para>
|
---|
| 188 |
|
---|
| 189 | <screen><userinput>sed -i 's/DB_VERSION_MAJOR == 6 .*||/DB_VERSION_MAJOR > 4 ||/' \
|
---|
| 190 | src/util/dict_db.c</userinput></screen>
|
---|
[4b9c064] | 191 | -->
|
---|
[417f9e7] | 192 | <sect4>
|
---|
| 193 | <title>Cyrus-SASL</title>
|
---|
[3bfd1d6] | 194 |
|
---|
[2605bb1] | 195 | <para>
|
---|
| 196 | To use <application>Cyrus-SASL</application> with
|
---|
| 197 | <application>Postfix</application>, use the following arguments:
|
---|
| 198 | </para>
|
---|
[3bfd1d6] | 199 |
|
---|
[d381c908] | 200 | <screen><literal>CCARGS='-DNO_NIS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl'
|
---|
[438c11ab] | 201 | AUXLIBS='-lsasl2'</literal></screen>
|
---|
[58f0b91] | 202 |
|
---|
[417f9e7] | 203 | </sect4>
|
---|
[3bfd1d6] | 204 |
|
---|
[417f9e7] | 205 | <sect4>
|
---|
| 206 | <title>OpenLDAP</title>
|
---|
[3bfd1d6] | 207 |
|
---|
[2605bb1] | 208 | <para>
|
---|
| 209 | To use <application>OpenLDAP</application> with
|
---|
| 210 | <application>Postfix</application>, use the following arguments:
|
---|
| 211 | </para>
|
---|
[3bfd1d6] | 212 |
|
---|
[d381c908] | 213 | <screen><literal>CCARGS='-DNO_NIS -DHAS_LDAP'
|
---|
[438c11ab] | 214 | AUXLIBS='-lldap -llber'</literal></screen>
|
---|
[58f0b91] | 215 |
|
---|
[2605bb1] | 216 | </sect4>
|
---|
| 217 |
|
---|
| 218 | <sect4>
|
---|
| 219 | <title>Sqlite</title>
|
---|
| 220 |
|
---|
| 221 | <para>
|
---|
| 222 | To use <application>Sqlite</application> with
|
---|
| 223 | <application>Postfix</application>, use the following arguments:
|
---|
| 224 | </para>
|
---|
[3bfd1d6] | 225 |
|
---|
[d381c908] | 226 | <screen><literal>CCARGS='-DNO_NIS -DHAS_SQLITE'
|
---|
[2605bb1] | 227 | AUXLIBS='-lsqlite3 -lpthread'</literal></screen>
|
---|
[58f0b91] | 228 |
|
---|
[417f9e7] | 229 | </sect4>
|
---|
[3bfd1d6] | 230 |
|
---|
[417f9e7] | 231 | <sect4>
|
---|
| 232 | <title>MySQL</title>
|
---|
[0931098] | 233 |
|
---|
[2605bb1] | 234 | <para>
|
---|
| 235 | To use <application>MySQL</application> with
|
---|
| 236 | <application>Postfix</application>, use the following arguments:
|
---|
| 237 | </para>
|
---|
[417f9e7] | 238 |
|
---|
[d381c908] | 239 | <screen><literal>CCARGS='-DNO_NIS -DHAS_MYSQL -I/usr/include/mysql'
|
---|
[438c11ab] | 240 | AUXLIBS='-lmysqlclient -lz -lm'</literal></screen>
|
---|
[58f0b91] | 241 |
|
---|
[417f9e7] | 242 | </sect4>
|
---|
| 243 |
|
---|
| 244 | <sect4>
|
---|
| 245 | <title>PostgreSQL</title>
|
---|
| 246 |
|
---|
[2605bb1] | 247 | <para>
|
---|
| 248 | To use <application>PostgreSQL</application> with
|
---|
| 249 | <application>Postfix</application>, use the following arguments:
|
---|
| 250 | </para>
|
---|
[417f9e7] | 251 |
|
---|
[d381c908] | 252 | <screen><literal>CCARGS='-DNO_NIS -DHAS_PGSQL -I/usr/include/postgresql'
|
---|
[438c11ab] | 253 | AUXLIBS='-lpq -lz -lm'</literal></screen>
|
---|
[58f0b91] | 254 |
|
---|
[417f9e7] | 255 | </sect4>
|
---|
| 256 |
|
---|
[daeea03] | 257 | <sect4>
|
---|
[45cd2f9] | 258 | <title>CDB/TinyCDB</title>
|
---|
[daeea03] | 259 |
|
---|
[2605bb1] | 260 | <para>
|
---|
| 261 | To use <application>CDB</application> or
|
---|
| 262 | <application>TinyCDB</application> with
|
---|
| 263 | <application>Postfix</application>, use the following arguments:
|
---|
| 264 | </para>
|
---|
[daeea03] | 265 |
|
---|
[d381c908] | 266 | <screen><literal>CCARGS='-DNO_NIS -DHAS_CDB'
|
---|
[410e228b] | 267 | AUXLIBS='<replaceable></path/to/CDB></replaceable>/libcdb.a'</literal></screen>
|
---|
[58f0b91] | 268 |
|
---|
[45cd2f9] | 269 | </sect4>
|
---|
| 270 |
|
---|
| 271 | <sect4>
|
---|
| 272 | <title>StartTLS Authentication</title>
|
---|
| 273 |
|
---|
[2605bb1] | 274 | <para>
|
---|
| 275 | To use <application>OpenSSL</application> with
|
---|
| 276 | <application>Postfix</application>, use the following arguments:
|
---|
| 277 | </para>
|
---|
[45cd2f9] | 278 |
|
---|
[d381c908] | 279 | <screen><literal>CCARGS='-DNO_NIS -DUSE_TLS -I/usr/include/openssl/'
|
---|
[438c11ab] | 280 | AUXLIBS='-lssl -lcrypto'</literal></screen>
|
---|
[daeea03] | 281 | </sect4>
|
---|
[58f0b91] | 282 |
|
---|
[417f9e7] | 283 | </sect3>
|
---|
| 284 |
|
---|
| 285 | <sect3>
|
---|
| 286 | <title>Installing Postfix</title>
|
---|
| 287 |
|
---|
[2605bb1] | 288 | <para>
|
---|
[9fc3125] | 289 | Adjust the following according to your needs. For example,
|
---|
[7a9a7b26] | 290 | if you have <application>Cyrus SASL</application>,
|
---|
| 291 | install <application>Postfix</application> by running the following
|
---|
[9fc3125] | 292 | commands:
|
---|
[2605bb1] | 293 | </para>
|
---|
[438c11ab] | 294 |
|
---|
[d381c908] | 295 | <screen><userinput>make CCARGS="-DNO_NIS -DUSE_TLS -I/usr/include/openssl/ \
|
---|
[58f0b91] | 296 | -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" \
|
---|
| 297 | AUXLIBS="-lssl -lcrypto -lsasl2" \
|
---|
[bab9d8e7] | 298 | makefiles &&
|
---|
[2605bb1] | 299 | make</userinput></screen>
|
---|
[0dfb754] | 300 |
|
---|
[cef276c] | 301 | <!-- There is a testsuite, but it fails a lot. It seems to need
|
---|
| 302 | the host to be specifically setup for the tests.
|
---|
| 303 | Run with `make tests' and `make root_tests' -->
|
---|
[2605bb1] | 304 | <para>
|
---|
| 305 | This package does not come with a useful test suite.
|
---|
| 306 | </para>
|
---|
[0dfb754] | 307 |
|
---|
[2605bb1] | 308 | <para>
|
---|
| 309 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 310 | </para>
|
---|
[417f9e7] | 311 |
|
---|
[c9652d2] | 312 | <!-- dev note: sh postfix-install -non-interactive install_root=<DESTDIR> ... -->
|
---|
[2e8afa9] | 313 |
|
---|
[2605bb1] | 314 | <screen role="root"><userinput>sh postfix-install -non-interactive \
|
---|
[58f0b91] | 315 | daemon_directory=/usr/lib/postfix \
|
---|
| 316 | manpage_directory=/usr/share/man \
|
---|
| 317 | html_directory=/usr/share/doc/postfix-&postfix-version;/html \
|
---|
| 318 | readme_directory=/usr/share/doc/postfix-&postfix-version;/readme</userinput></screen>
|
---|
| 319 |
|
---|
[417f9e7] | 320 | </sect3>
|
---|
[58f0b91] | 321 |
|
---|
[417f9e7] | 322 | </sect2>
|
---|
[0931098] | 323 |
|
---|
[417f9e7] | 324 | <sect2 role="commands">
|
---|
| 325 | <title>Command Explanations</title>
|
---|
[0931098] | 326 |
|
---|
[2605bb1] | 327 | <para>
|
---|
| 328 | <command>make makefiles</command>: This command rebuilds the makefiles
|
---|
| 329 | throughout the source tree to use the options contained in the
|
---|
| 330 | <envar>CCARGS</envar> and <envar>AUXLIBS</envar> variables.
|
---|
| 331 | </para>
|
---|
[8568fa6] | 332 |
|
---|
[2605bb1] | 333 | <para>
|
---|
| 334 | <command>sh postfix-install -non-interactive</command>: This keeps the
|
---|
| 335 | install script from asking any questions, thereby accepting default
|
---|
| 336 | destination directories in all but the few cases. If the
|
---|
| 337 | <option>html_directory</option> and <option>readme_directory</option>
|
---|
| 338 | options are not set then the documentation will not be installed.
|
---|
| 339 | </para>
|
---|
[58f0b91] | 340 |
|
---|
[d9321c0] | 341 | <para>
|
---|
| 342 | <option>CCARGS="-DNO_EAI ..."</option>: this will turn off SMTPUTF8
|
---|
| 343 | support, for example if the rest of your email address infrastructure
|
---|
| 344 | cannot handle UTF-8 email addresses and message header values.
|
---|
| 345 | </para>
|
---|
| 346 |
|
---|
[417f9e7] | 347 | </sect2>
|
---|
[0931098] | 348 |
|
---|
[417f9e7] | 349 | <sect2 role="configuration">
|
---|
| 350 | <title>Configuring Postfix</title>
|
---|
[0931098] | 351 |
|
---|
[417f9e7] | 352 | <sect3 id="postfix-config">
|
---|
| 353 | <title>Config Files</title>
|
---|
[0931098] | 354 |
|
---|
[2605bb1] | 355 | <para>
|
---|
| 356 | <filename>/etc/aliases</filename>,
|
---|
| 357 | <filename>/etc/postfix/main.cf</filename>, and
|
---|
| 358 | <filename>/etc/postfix/master.cf</filename>
|
---|
| 359 | </para>
|
---|
[6c703f15] | 360 |
|
---|
[417f9e7] | 361 | <indexterm zone="postfix postfix-config">
|
---|
| 362 | <primary sortas="e-etc-aliases">/etc/aliases</primary>
|
---|
| 363 | </indexterm>
|
---|
[0931098] | 364 |
|
---|
[417f9e7] | 365 | <indexterm zone="postfix postfix-config">
|
---|
| 366 | <primary sortas="e-etc-postfix-star">/etc/postfix/*</primary>
|
---|
| 367 | </indexterm>
|
---|
| 368 |
|
---|
| 369 | </sect3>
|
---|
| 370 |
|
---|
| 371 | <sect3>
|
---|
| 372 | <title>Configuration Information</title>
|
---|
| 373 |
|
---|
[2605bb1] | 374 | <para>
|
---|
| 375 | Create (or append to an existing) <filename>/etc/aliases</filename>
|
---|
| 376 | with the following command. Change
|
---|
[85506b2] | 377 | <replaceable><LOGIN></replaceable> to your non-root login
|
---|
[2605bb1] | 378 | identity so mail addressed to
|
---|
| 379 | <systemitem class="username">root</systemitem> can be forwarded to you.
|
---|
| 380 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 381 | </para>
|
---|
| 382 |
|
---|
[417f9e7] | 383 | <screen role="root"><userinput>cat >> /etc/aliases << "EOF"
|
---|
| 384 | <literal># Begin /etc/aliases
|
---|
[0931098] | 385 |
|
---|
| 386 | MAILER-DAEMON: postmaster
|
---|
| 387 | postmaster: root
|
---|
| 388 |
|
---|
[2605bb1] | 389 | root: <replaceable><LOGIN></replaceable>
|
---|
[417f9e7] | 390 | # End /etc/aliases</literal>
|
---|
| 391 | EOF</userinput></screen>
|
---|
| 392 |
|
---|
[2605bb1] | 393 | <para>
|
---|
| 394 | To protect an existing <filename>/etc/aliases</filename> file,
|
---|
[417f9e7] | 395 | the above command appends these aliases to it if it exists. This file
|
---|
[2605bb1] | 396 | should be checked and duplicate aliases removed, if present.
|
---|
| 397 | </para>
|
---|
| 398 |
|
---|
| 399 | <note>
|
---|
| 400 | <para>
|
---|
| 401 | The <filename>/etc/postfix/main.cf</filename> and
|
---|
| 402 | <filename>/etc/postfix/master.cf</filename> files must be personalized
|
---|
| 403 | for your system. The <filename>main.cf</filename> file needs your
|
---|
| 404 | fully qualified hostname. You will find that
|
---|
| 405 | <filename>main.cf</filename> is self documenting, so load it into your
|
---|
| 406 | editor to make the changes you need for your situation.
|
---|
| 407 | </para>
|
---|
[417f9e7] | 408 | </note>
|
---|
| 409 |
|
---|
[58f0b91] | 410 | <note>
|
---|
| 411 | <para>
|
---|
| 412 | <application>Postfix</application> can also be set up to
|
---|
[0d7900a] | 413 | run in a chroot jail. See the file in the source
|
---|
[58f0b91] | 414 | <filename>examples/chroot-setup/LINUX2</filename> for details.
|
---|
| 415 | </para>
|
---|
| 416 | </note>
|
---|
[3df190fb] | 417 |
|
---|
[2605bb1] | 418 | <para>
|
---|
| 419 | If you have an existing configuration, you can run the
|
---|
| 420 | <command>postfix</command> utility to add any necessary definitions to
|
---|
| 421 | your existing files. As the
|
---|
| 422 | <systemitem class="username">root</systemitem> user:
|
---|
| 423 | </para>
|
---|
[cef276c] | 424 |
|
---|
[3fd97c4c] | 425 | <screen role="nodump"><userinput>/usr/sbin/postfix upgrade-configuration</userinput></screen>
|
---|
[cef276c] | 426 |
|
---|
[2605bb1] | 427 | <para>
|
---|
| 428 | Before starting <application>Postfix</application>, you should check
|
---|
| 429 | that your configuration and file permissions will work properly. Run the
|
---|
| 430 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 431 | user to check and start your <application>Postfix</application> server:
|
---|
| 432 | </para>
|
---|
[cef276c] | 433 |
|
---|
[3fd97c4c] | 434 | <screen role="nodump"><userinput>/usr/sbin/postfix check &&
|
---|
[417f9e7] | 435 | /usr/sbin/postfix start</userinput></screen>
|
---|
[58f0b91] | 436 |
|
---|
[417f9e7] | 437 | </sect3>
|
---|
| 438 |
|
---|
| 439 | <sect3 id="postfix-init">
|
---|
[1258125] | 440 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 441 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[417f9e7] | 442 |
|
---|
[2605bb1] | 443 | <para>
|
---|
| 444 | To automate the running of Postfix at startup, install the
|
---|
[1258125] | 445 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/postfix</filename>
|
---|
| 446 | init script</phrase>
|
---|
| 447 | <phrase revision="systemd"><filename>postfix.service</filename>
|
---|
| 448 | unit</phrase> included in the
|
---|
| 449 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
[4472e923] | 450 | <xref linkend="systemd-units" revision="systemd"/> package:
|
---|
[2605bb1] | 451 | </para>
|
---|
[417f9e7] | 452 |
|
---|
| 453 | <indexterm zone="postfix postfix-init">
|
---|
| 454 | <primary sortas="f-postfix">postfix</primary>
|
---|
| 455 | </indexterm>
|
---|
| 456 |
|
---|
| 457 | <screen role="root"><userinput>make install-postfix</userinput></screen>
|
---|
[58f0b91] | 458 |
|
---|
[417f9e7] | 459 | </sect3>
|
---|
[58f0b91] | 460 |
|
---|
[417f9e7] | 461 | </sect2>
|
---|
| 462 |
|
---|
| 463 | <sect2 role="content">
|
---|
| 464 | <title>Contents</title>
|
---|
| 465 |
|
---|
| 466 | <segmentedlist>
|
---|
| 467 | <segtitle>Installed Programs</segtitle>
|
---|
[58f0b91] | 468 | <segtitle>Installed Libraries</segtitle>
|
---|
[417f9e7] | 469 | <segtitle>Installed Directories</segtitle>
|
---|
| 470 |
|
---|
| 471 | <seglistitem>
|
---|
[2605bb1] | 472 | <seg>
|
---|
[f13b771] | 473 | mailq (symlink), newaliases (symlink), postalias, postcat, postconf,
|
---|
| 474 | postdrop, postfix, postkick, postlock, postlog, postmap, postmulti,
|
---|
| 475 | postqueue, postsuper, and sendmail
|
---|
[58f0b91] | 476 | </seg>
|
---|
| 477 | <seg>
|
---|
| 478 | None
|
---|
[2605bb1] | 479 | </seg>
|
---|
| 480 | <seg>
|
---|
[0a76c13] | 481 | /{etc,usr/lib}/postfix,
|
---|
| 482 | /usr/share/doc/postfix-&postfix-version; and
|
---|
| 483 | /var/{lib,spool}/postfix
|
---|
[2605bb1] | 484 | </seg>
|
---|
[417f9e7] | 485 | </seglistitem>
|
---|
| 486 | </segmentedlist>
|
---|
| 487 |
|
---|
| 488 | <variablelist>
|
---|
| 489 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 490 | <?dbfo list-presentation="list"?>
|
---|
| 491 | <?dbhtml list-presentation="table"?>
|
---|
| 492 |
|
---|
| 493 | <varlistentry id="mailq">
|
---|
| 494 | <term><command>mailq</command></term>
|
---|
| 495 | <listitem>
|
---|
[2605bb1] | 496 | <para>
|
---|
[4c24eb0a] | 497 | A symlink to <filename>sendmail</filename>
|
---|
[2605bb1] | 498 | </para>
|
---|
[417f9e7] | 499 | <indexterm zone="postfix mailq">
|
---|
| 500 | <primary sortas="b-mailq">mailq</primary>
|
---|
| 501 | </indexterm>
|
---|
| 502 | </listitem>
|
---|
| 503 | </varlistentry>
|
---|
| 504 |
|
---|
| 505 | <varlistentry id="newaliases">
|
---|
| 506 | <term><command>newaliases</command></term>
|
---|
| 507 | <listitem>
|
---|
[2605bb1] | 508 | <para>
|
---|
[4c24eb0a] | 509 | A symlink to <filename>sendmail</filename>
|
---|
[2605bb1] | 510 | </para>
|
---|
[417f9e7] | 511 | <indexterm zone="postfix newaliases">
|
---|
| 512 | <primary sortas="b-newaliases">newaliases</primary>
|
---|
| 513 | </indexterm>
|
---|
| 514 | </listitem>
|
---|
| 515 | </varlistentry>
|
---|
| 516 |
|
---|
[2e8afa9] | 517 | <varlistentry id="postalias">
|
---|
| 518 | <term><command>postalias</command></term>
|
---|
[417f9e7] | 519 | <listitem>
|
---|
[2605bb1] | 520 | <para>
|
---|
| 521 | is a utility for <application>Postfix</application> alias database
|
---|
| 522 | maintenance
|
---|
| 523 | </para>
|
---|
[2e8afa9] | 524 | <indexterm zone="postfix postalias">
|
---|
| 525 | <primary sortas="b-postalias">postalias</primary>
|
---|
[417f9e7] | 526 | </indexterm>
|
---|
| 527 | </listitem>
|
---|
| 528 | </varlistentry>
|
---|
| 529 |
|
---|
| 530 | <varlistentry id="postcat">
|
---|
| 531 | <term><command>postcat</command></term>
|
---|
| 532 | <listitem>
|
---|
[2605bb1] | 533 | <para>
|
---|
| 534 | Prints the contents of files from the
|
---|
[4c24eb0a] | 535 | <application>Postfix</application> queue in human readable format
|
---|
[2605bb1] | 536 | </para>
|
---|
[417f9e7] | 537 | <indexterm zone="postfix postcat">
|
---|
| 538 | <primary sortas="b-postcat">postcat</primary>
|
---|
| 539 | </indexterm>
|
---|
| 540 | </listitem>
|
---|
| 541 | </varlistentry>
|
---|
| 542 |
|
---|
| 543 | <varlistentry id="postconf">
|
---|
| 544 | <term><command>postconf</command></term>
|
---|
| 545 | <listitem>
|
---|
[2605bb1] | 546 | <para>
|
---|
| 547 | Displays or changes the value of
|
---|
[4c24eb0a] | 548 | <application>Postfix</application> configuration parameters
|
---|
[2605bb1] | 549 | </para>
|
---|
[417f9e7] | 550 | <indexterm zone="postfix postconf">
|
---|
| 551 | <primary sortas="b-postconf">postconf</primary>
|
---|
| 552 | </indexterm>
|
---|
| 553 | </listitem>
|
---|
| 554 | </varlistentry>
|
---|
| 555 |
|
---|
| 556 | <varlistentry id="postdrop">
|
---|
| 557 | <term><command>postdrop</command></term>
|
---|
| 558 | <listitem>
|
---|
[2605bb1] | 559 | <para>
|
---|
| 560 | Creates a file in the maildrop directory and copies its standard
|
---|
[4c24eb0a] | 561 | input to the file
|
---|
[2605bb1] | 562 | </para>
|
---|
[417f9e7] | 563 | <indexterm zone="postfix postdrop">
|
---|
| 564 | <primary sortas="b-postdrop">postdrop</primary>
|
---|
| 565 | </indexterm>
|
---|
| 566 | </listitem>
|
---|
| 567 | </varlistentry>
|
---|
| 568 |
|
---|
| 569 | <varlistentry id="postfix-bin">
|
---|
| 570 | <term><command>postfix</command></term>
|
---|
| 571 | <listitem>
|
---|
[2605bb1] | 572 | <para>
|
---|
[4c24eb0a] | 573 | is the <application>Postfix</application> control program
|
---|
[2605bb1] | 574 | </para>
|
---|
[417f9e7] | 575 | <indexterm zone="postfix postfix-bin">
|
---|
| 576 | <primary sortas="b-postfix">postfix</primary>
|
---|
| 577 | </indexterm>
|
---|
| 578 | </listitem>
|
---|
| 579 | </varlistentry>
|
---|
| 580 |
|
---|
| 581 | <varlistentry id="postkick">
|
---|
| 582 | <term><command>postkick</command></term>
|
---|
| 583 | <listitem>
|
---|
[2605bb1] | 584 | <para>
|
---|
| 585 | Sends requests to the specified service over a local transport
|
---|
[4c24eb0a] | 586 | channel
|
---|
[2605bb1] | 587 | </para>
|
---|
[417f9e7] | 588 | <indexterm zone="postfix postkick">
|
---|
| 589 | <primary sortas="b-postkick">postkick</primary>
|
---|
| 590 | </indexterm>
|
---|
| 591 | </listitem>
|
---|
| 592 | </varlistentry>
|
---|
| 593 |
|
---|
| 594 | <varlistentry id="postlock">
|
---|
| 595 | <term><command>postlock</command></term>
|
---|
| 596 | <listitem>
|
---|
[2605bb1] | 597 | <para>
|
---|
| 598 | Locks a mail folder for exclusive use, and executes commands passed
|
---|
[4c24eb0a] | 599 | to it
|
---|
[2605bb1] | 600 | </para>
|
---|
[417f9e7] | 601 | <indexterm zone="postfix postlock">
|
---|
| 602 | <primary sortas="b-postlock">postlock</primary>
|
---|
| 603 | </indexterm>
|
---|
| 604 | </listitem>
|
---|
| 605 | </varlistentry>
|
---|
| 606 |
|
---|
| 607 | <varlistentry id="postlog">
|
---|
| 608 | <term><command>postlog</command></term>
|
---|
| 609 | <listitem>
|
---|
[2605bb1] | 610 | <para>
|
---|
| 611 | A <application>Postfix</application>-compatible logging interface
|
---|
[4c24eb0a] | 612 | for use in, for example, shell scripts
|
---|
[2605bb1] | 613 | </para>
|
---|
[417f9e7] | 614 | <indexterm zone="postfix postlog">
|
---|
| 615 | <primary sortas="b-postlog">postlog</primary>
|
---|
| 616 | </indexterm>
|
---|
| 617 | </listitem>
|
---|
| 618 | </varlistentry>
|
---|
| 619 |
|
---|
| 620 | <varlistentry id="postmap">
|
---|
| 621 | <term><command>postmap</command></term>
|
---|
| 622 | <listitem>
|
---|
[2605bb1] | 623 | <para>
|
---|
| 624 | Creates or queries one or more Postfix lookup tables, or updates an
|
---|
[4c24eb0a] | 625 | existing one
|
---|
[2605bb1] | 626 | </para>
|
---|
[417f9e7] | 627 | <indexterm zone="postfix postmap">
|
---|
| 628 | <primary sortas="b-postmap">postmap</primary>
|
---|
| 629 | </indexterm>
|
---|
| 630 | </listitem>
|
---|
| 631 | </varlistentry>
|
---|
| 632 |
|
---|
[2605bb1] | 633 | <varlistentry id="postmulti">
|
---|
| 634 | <term><command>postmulti</command></term>
|
---|
| 635 | <listitem>
|
---|
| 636 | <para>
|
---|
| 637 | is the <application>Postfix</application> multi-instance manager.
|
---|
| 638 | It allows a system administrator to manage multiple
|
---|
[4c24eb0a] | 639 | <application>Postfix</application> instances on a single host
|
---|
[2605bb1] | 640 | </para>
|
---|
| 641 | <indexterm zone="postfix postmulti">
|
---|
| 642 | <primary sortas="b-postmulti">postmulti</primary>
|
---|
| 643 | </indexterm>
|
---|
| 644 | </listitem>
|
---|
| 645 | </varlistentry>
|
---|
| 646 |
|
---|
[417f9e7] | 647 | <varlistentry id="postqueue">
|
---|
| 648 | <term><command>postqueue</command></term>
|
---|
| 649 | <listitem>
|
---|
[2605bb1] | 650 | <para>
|
---|
[58f0b91] | 651 | The <application>Postfix</application> user interface for
|
---|
[4c24eb0a] | 652 | queue management
|
---|
[58f0b91] | 653 | </para>
|
---|
[417f9e7] | 654 | <indexterm zone="postfix postqueue">
|
---|
| 655 | <primary sortas="b-postqueue">postqueue</primary>
|
---|
| 656 | </indexterm>
|
---|
| 657 | </listitem>
|
---|
| 658 | </varlistentry>
|
---|
| 659 |
|
---|
| 660 | <varlistentry id="postsuper">
|
---|
| 661 | <term><command>postsuper</command></term>
|
---|
| 662 | <listitem>
|
---|
[2605bb1] | 663 | <para>
|
---|
[58f0b91] | 664 | The <application>Postfix</application> user interface for
|
---|
[4c24eb0a] | 665 | superuser queue management
|
---|
[58f0b91] | 666 | </para>
|
---|
[417f9e7] | 667 | <indexterm zone="postfix postsuper">
|
---|
| 668 | <primary sortas="b-postsuper">postsuper</primary>
|
---|
| 669 | </indexterm>
|
---|
| 670 | </listitem>
|
---|
| 671 | </varlistentry>
|
---|
| 672 |
|
---|
| 673 | <varlistentry id="sendmail-postfix">
|
---|
| 674 | <term><command>sendmail</command></term>
|
---|
| 675 | <listitem>
|
---|
[2605bb1] | 676 | <para>
|
---|
| 677 | is the <application>Postfix</application> to
|
---|
[4c24eb0a] | 678 | <application>Sendmail</application> compatibility interface
|
---|
[2605bb1] | 679 | </para>
|
---|
[417f9e7] | 680 | <indexterm zone="postfix sendmail-postfix">
|
---|
| 681 | <primary sortas="b-sendmail">sendmail</primary>
|
---|
| 682 | </indexterm>
|
---|
| 683 | </listitem>
|
---|
| 684 | </varlistentry>
|
---|
[58f0b91] | 685 |
|
---|
[417f9e7] | 686 | </variablelist>
|
---|
[58f0b91] | 687 |
|
---|
[417f9e7] | 688 | </sect2>
|
---|
[58f0b91] | 689 |
|
---|
[f45b1953] | 690 | </sect1>
|
---|