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