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