[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">
|
---|
[22c6402] | 9 | <!ENTITY postfix-md5sum "4718b498fa4285cf275f506c169f4746">
|
---|
[85506b2] | 10 | <!ENTITY postfix-size "4.5 MB">
|
---|
[22c6402] | 11 | <!ENTITY postfix-buildsize "149 MB">
|
---|
[99f86349] | 12 | <!ENTITY postfix-time "0.2 SBU (Using parallelism=4)">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[547df0bc] | 15 | <sect1 id="postfix" xreflabel="Postfix-&postfix-version;">
|
---|
[417f9e7] | 16 | <?dbhtml filename="postfix.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 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 |
|
---|
[88fdf09] | 39 | &lfs110a_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,
|
---|
[5e0662d] | 97 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[58f0b91] | 98 | <xref linkend="openldap"/>,
|
---|
| 99 | <xref linkend="pcre"/>,
|
---|
| 100 | <xref linkend="postgresql"/>,
|
---|
[10405e6] | 101 | <xref linkend="sqlite"/>, and
|
---|
[58f0b91] | 102 | <ulink url="http://cr.yp.to/cdb.html">CDB</ulink> or
|
---|
[438c11ab] | 103 | <ulink url="http://www.corpit.ru/mjt/tinycdb.html">TinyCDB</ulink>
|
---|
| 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">
|
---|
| 114 | User Notes: <ulink url="&blfs-wiki;/postfix"/>
|
---|
| 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
|
---|
| 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>
|
---|
[179d426d] | 149 |
|
---|
[ddbaa48] | 150 | <para>
|
---|
[179d426d] | 151 | Make an adjustment to allow <application>Postfix</application> to compile
|
---|
| 152 | on <application>Glibc-2.34</application> and later:
|
---|
[ddbaa48] | 153 | </para>
|
---|
| 154 |
|
---|
[179d426d] | 155 | <screen><userinput>sed -i '/<linux/i #define HAS_CLOSEFROM' src/util/sys_defs.h</userinput></screen>
|
---|
| 156 |
|
---|
[2605bb1] | 157 | <para>
|
---|
| 158 | The <application>Postfix</application> source tree does not contain a
|
---|
| 159 | <filename>configure</filename> script, rather the makefile in the
|
---|
| 160 | top-level directory contains a <option>makefiles</option> target that
|
---|
| 161 | regenerates all the other makefiles in the build tree. If you wish to
|
---|
| 162 | use additional software such as a database back-end for virtual users,
|
---|
| 163 | or TLS/SSL authentication, you will need to regenerate the makefiles
|
---|
| 164 | using one or more of the appropriate <envar>CCARGS</envar> and
|
---|
| 165 | <envar>AUXLIBS</envar> settings listed below.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
| 169 | For more details read the readme files.
|
---|
| 170 | </para>
|
---|
[4b9c064] | 171 | <!-- We reverted to Berkeley DB-5.3.28 and that is handled
|
---|
[ffdbde9c] | 172 | <para>
|
---|
| 173 | The current version of <xref linkend="db"/> is not recognised by a
|
---|
| 174 | hard-coded test for known versions. To build with this version use the
|
---|
| 175 | following sed:
|
---|
| 176 | </para>
|
---|
| 177 |
|
---|
| 178 | <screen><userinput>sed -i 's/DB_VERSION_MAJOR == 6 .*||/DB_VERSION_MAJOR > 4 ||/' \
|
---|
| 179 | src/util/dict_db.c</userinput></screen>
|
---|
[4b9c064] | 180 | -->
|
---|
[417f9e7] | 181 | <sect4>
|
---|
| 182 | <title>Cyrus-SASL</title>
|
---|
[3bfd1d6] | 183 |
|
---|
[2605bb1] | 184 | <para>
|
---|
| 185 | To use <application>Cyrus-SASL</application> with
|
---|
| 186 | <application>Postfix</application>, use the following arguments:
|
---|
| 187 | </para>
|
---|
[3bfd1d6] | 188 |
|
---|
[07abc5b] | 189 | <screen><literal>CCARGS='-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl'
|
---|
[438c11ab] | 190 | AUXLIBS='-lsasl2'</literal></screen>
|
---|
[58f0b91] | 191 |
|
---|
[417f9e7] | 192 | </sect4>
|
---|
[3bfd1d6] | 193 |
|
---|
[417f9e7] | 194 | <sect4>
|
---|
| 195 | <title>OpenLDAP</title>
|
---|
[3bfd1d6] | 196 |
|
---|
[2605bb1] | 197 | <para>
|
---|
| 198 | To use <application>OpenLDAP</application> with
|
---|
| 199 | <application>Postfix</application>, use the following arguments:
|
---|
| 200 | </para>
|
---|
[3bfd1d6] | 201 |
|
---|
[438c11ab] | 202 | <screen><literal>CCARGS='-DHAS_LDAP'
|
---|
| 203 | AUXLIBS='-lldap -llber'</literal></screen>
|
---|
[58f0b91] | 204 |
|
---|
[2605bb1] | 205 | </sect4>
|
---|
| 206 |
|
---|
| 207 | <sect4>
|
---|
| 208 | <title>Sqlite</title>
|
---|
| 209 |
|
---|
| 210 | <para>
|
---|
| 211 | To use <application>Sqlite</application> with
|
---|
| 212 | <application>Postfix</application>, use the following arguments:
|
---|
| 213 | </para>
|
---|
[3bfd1d6] | 214 |
|
---|
[2605bb1] | 215 | <screen><literal>CCARGS='-DHAS_SQLITE'
|
---|
| 216 | AUXLIBS='-lsqlite3 -lpthread'</literal></screen>
|
---|
[58f0b91] | 217 |
|
---|
[417f9e7] | 218 | </sect4>
|
---|
[3bfd1d6] | 219 |
|
---|
[417f9e7] | 220 | <sect4>
|
---|
| 221 | <title>MySQL</title>
|
---|
[0931098] | 222 |
|
---|
[2605bb1] | 223 | <para>
|
---|
| 224 | To use <application>MySQL</application> with
|
---|
| 225 | <application>Postfix</application>, use the following arguments:
|
---|
| 226 | </para>
|
---|
[417f9e7] | 227 |
|
---|
[5690030] | 228 | <screen><literal>CCARGS='-DHAS_MYSQL -I/usr/include/mysql'
|
---|
[438c11ab] | 229 | AUXLIBS='-lmysqlclient -lz -lm'</literal></screen>
|
---|
[58f0b91] | 230 |
|
---|
[417f9e7] | 231 | </sect4>
|
---|
| 232 |
|
---|
| 233 | <sect4>
|
---|
| 234 | <title>PostgreSQL</title>
|
---|
| 235 |
|
---|
[2605bb1] | 236 | <para>
|
---|
| 237 | To use <application>PostgreSQL</application> with
|
---|
| 238 | <application>Postfix</application>, use the following arguments:
|
---|
| 239 | </para>
|
---|
[417f9e7] | 240 |
|
---|
[5690030] | 241 | <screen><literal>CCARGS='-DHAS_PGSQL -I/usr/include/postgresql'
|
---|
[438c11ab] | 242 | AUXLIBS='-lpq -lz -lm'</literal></screen>
|
---|
[58f0b91] | 243 |
|
---|
[417f9e7] | 244 | </sect4>
|
---|
| 245 |
|
---|
[daeea03] | 246 | <sect4>
|
---|
[45cd2f9] | 247 | <title>CDB/TinyCDB</title>
|
---|
[daeea03] | 248 |
|
---|
[2605bb1] | 249 | <para>
|
---|
| 250 | To use <application>CDB</application> or
|
---|
| 251 | <application>TinyCDB</application> with
|
---|
| 252 | <application>Postfix</application>, use the following arguments:
|
---|
| 253 | </para>
|
---|
[daeea03] | 254 |
|
---|
[bccbdaea] | 255 | <screen><literal>CCARGS='-DHAS_CDB'
|
---|
[410e228b] | 256 | AUXLIBS='<replaceable></path/to/CDB></replaceable>/libcdb.a'</literal></screen>
|
---|
[58f0b91] | 257 |
|
---|
[45cd2f9] | 258 | </sect4>
|
---|
| 259 |
|
---|
| 260 | <sect4>
|
---|
| 261 | <title>StartTLS Authentication</title>
|
---|
| 262 |
|
---|
[2605bb1] | 263 | <para>
|
---|
| 264 | To use <application>OpenSSL</application> with
|
---|
| 265 | <application>Postfix</application>, use the following arguments:
|
---|
| 266 | </para>
|
---|
[45cd2f9] | 267 |
|
---|
| 268 | <screen><literal>CCARGS='-DUSE_TLS -I/usr/include/openssl/'
|
---|
[438c11ab] | 269 | AUXLIBS='-lssl -lcrypto'</literal></screen>
|
---|
[daeea03] | 270 | </sect4>
|
---|
[58f0b91] | 271 |
|
---|
[417f9e7] | 272 | </sect3>
|
---|
| 273 |
|
---|
| 274 | <sect3>
|
---|
| 275 | <title>Installing Postfix</title>
|
---|
| 276 |
|
---|
[2605bb1] | 277 | <para>
|
---|
[58f0b91] | 278 | If you have <application>Cyrus SASL</application> and
|
---|
| 279 | <application>OpenSSL</application> installed, install
|
---|
[2605bb1] | 280 | <application>Postfix</application> by running the following commands:
|
---|
| 281 | </para>
|
---|
[438c11ab] | 282 |
|
---|
[df9fb20] | 283 | <screen><userinput>make CCARGS="-DUSE_TLS -I/usr/include/openssl/ \
|
---|
[58f0b91] | 284 | -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" \
|
---|
| 285 | AUXLIBS="-lssl -lcrypto -lsasl2" \
|
---|
[bab9d8e7] | 286 | makefiles &&
|
---|
[2605bb1] | 287 | make</userinput></screen>
|
---|
[0dfb754] | 288 |
|
---|
[cef276c] | 289 | <!-- There is a testsuite, but it fails a lot. It seems to need
|
---|
| 290 | the host to be specifically setup for the tests.
|
---|
| 291 | Run with `make tests' and `make root_tests' -->
|
---|
[2605bb1] | 292 | <para>
|
---|
| 293 | This package does not come with a useful test suite.
|
---|
| 294 | </para>
|
---|
[0dfb754] | 295 |
|
---|
[2605bb1] | 296 | <para>
|
---|
| 297 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 298 | </para>
|
---|
[417f9e7] | 299 |
|
---|
[c9652d2] | 300 | <!-- dev note: sh postfix-install -non-interactive install_root=<DESTDIR> ... -->
|
---|
[2e8afa9] | 301 |
|
---|
[2605bb1] | 302 | <screen role="root"><userinput>sh postfix-install -non-interactive \
|
---|
[58f0b91] | 303 | daemon_directory=/usr/lib/postfix \
|
---|
| 304 | manpage_directory=/usr/share/man \
|
---|
| 305 | html_directory=/usr/share/doc/postfix-&postfix-version;/html \
|
---|
| 306 | readme_directory=/usr/share/doc/postfix-&postfix-version;/readme</userinput></screen>
|
---|
| 307 |
|
---|
[417f9e7] | 308 | </sect3>
|
---|
[58f0b91] | 309 |
|
---|
[417f9e7] | 310 | </sect2>
|
---|
[0931098] | 311 |
|
---|
[417f9e7] | 312 | <sect2 role="commands">
|
---|
| 313 | <title>Command Explanations</title>
|
---|
[0931098] | 314 |
|
---|
[2605bb1] | 315 | <para>
|
---|
| 316 | <command>make makefiles</command>: This command rebuilds the makefiles
|
---|
| 317 | throughout the source tree to use the options contained in the
|
---|
| 318 | <envar>CCARGS</envar> and <envar>AUXLIBS</envar> variables.
|
---|
| 319 | </para>
|
---|
[8568fa6] | 320 |
|
---|
[2605bb1] | 321 | <para>
|
---|
| 322 | <command>sh postfix-install -non-interactive</command>: This keeps the
|
---|
| 323 | install script from asking any questions, thereby accepting default
|
---|
| 324 | destination directories in all but the few cases. If the
|
---|
| 325 | <option>html_directory</option> and <option>readme_directory</option>
|
---|
| 326 | options are not set then the documentation will not be installed.
|
---|
| 327 | </para>
|
---|
[58f0b91] | 328 |
|
---|
[d9321c0] | 329 | <para>
|
---|
| 330 | <option>CCARGS="-DNO_EAI ..."</option>: this will turn off SMTPUTF8
|
---|
| 331 | support, for example if the rest of your email address infrastructure
|
---|
| 332 | cannot handle UTF-8 email addresses and message header values.
|
---|
| 333 | </para>
|
---|
| 334 |
|
---|
[417f9e7] | 335 | </sect2>
|
---|
[0931098] | 336 |
|
---|
[417f9e7] | 337 | <sect2 role="configuration">
|
---|
| 338 | <title>Configuring Postfix</title>
|
---|
[0931098] | 339 |
|
---|
[417f9e7] | 340 | <sect3 id="postfix-config">
|
---|
| 341 | <title>Config Files</title>
|
---|
[0931098] | 342 |
|
---|
[2605bb1] | 343 | <para>
|
---|
| 344 | <filename>/etc/aliases</filename>,
|
---|
| 345 | <filename>/etc/postfix/main.cf</filename>, and
|
---|
| 346 | <filename>/etc/postfix/master.cf</filename>
|
---|
| 347 | </para>
|
---|
[6c703f15] | 348 |
|
---|
[417f9e7] | 349 | <indexterm zone="postfix postfix-config">
|
---|
| 350 | <primary sortas="e-etc-aliases">/etc/aliases</primary>
|
---|
| 351 | </indexterm>
|
---|
[0931098] | 352 |
|
---|
[417f9e7] | 353 | <indexterm zone="postfix postfix-config">
|
---|
| 354 | <primary sortas="e-etc-postfix-star">/etc/postfix/*</primary>
|
---|
| 355 | </indexterm>
|
---|
| 356 |
|
---|
| 357 | </sect3>
|
---|
| 358 |
|
---|
| 359 | <sect3>
|
---|
| 360 | <title>Configuration Information</title>
|
---|
| 361 |
|
---|
[2605bb1] | 362 | <para>
|
---|
| 363 | Create (or append to an existing) <filename>/etc/aliases</filename>
|
---|
| 364 | with the following command. Change
|
---|
[85506b2] | 365 | <replaceable><LOGIN></replaceable> to your non-root login
|
---|
[2605bb1] | 366 | identity so mail addressed to
|
---|
| 367 | <systemitem class="username">root</systemitem> can be forwarded to you.
|
---|
| 368 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 369 | </para>
|
---|
| 370 |
|
---|
[417f9e7] | 371 | <screen role="root"><userinput>cat >> /etc/aliases << "EOF"
|
---|
| 372 | <literal># Begin /etc/aliases
|
---|
[0931098] | 373 |
|
---|
| 374 | MAILER-DAEMON: postmaster
|
---|
| 375 | postmaster: root
|
---|
| 376 |
|
---|
[2605bb1] | 377 | root: <replaceable><LOGIN></replaceable>
|
---|
[417f9e7] | 378 | # End /etc/aliases</literal>
|
---|
| 379 | EOF</userinput></screen>
|
---|
| 380 |
|
---|
[2605bb1] | 381 | <para>
|
---|
| 382 | To protect an existing <filename>/etc/aliases</filename> file,
|
---|
[417f9e7] | 383 | the above command appends these aliases to it if it exists. This file
|
---|
[2605bb1] | 384 | should be checked and duplicate aliases removed, if present.
|
---|
| 385 | </para>
|
---|
| 386 |
|
---|
| 387 | <note>
|
---|
| 388 | <para>
|
---|
| 389 | The <filename>/etc/postfix/main.cf</filename> and
|
---|
| 390 | <filename>/etc/postfix/master.cf</filename> files must be personalized
|
---|
| 391 | for your system. The <filename>main.cf</filename> file needs your
|
---|
| 392 | fully qualified hostname. You will find that
|
---|
| 393 | <filename>main.cf</filename> is self documenting, so load it into your
|
---|
| 394 | editor to make the changes you need for your situation.
|
---|
| 395 | </para>
|
---|
[417f9e7] | 396 | </note>
|
---|
| 397 |
|
---|
[58f0b91] | 398 | <note>
|
---|
| 399 | <para>
|
---|
| 400 | <application>Postfix</application> can also be set up to
|
---|
[0d7900a] | 401 | run in a chroot jail. See the file in the source
|
---|
[58f0b91] | 402 | <filename>examples/chroot-setup/LINUX2</filename> for details.
|
---|
| 403 | </para>
|
---|
| 404 | </note>
|
---|
[3df190fb] | 405 |
|
---|
[2605bb1] | 406 | <para>
|
---|
| 407 | If you have an existing configuration, you can run the
|
---|
| 408 | <command>postfix</command> utility to add any necessary definitions to
|
---|
| 409 | your existing files. As the
|
---|
| 410 | <systemitem class="username">root</systemitem> user:
|
---|
| 411 | </para>
|
---|
[cef276c] | 412 |
|
---|
| 413 | <screen role="root"><userinput>/usr/sbin/postfix upgrade-configuration</userinput></screen>
|
---|
| 414 |
|
---|
[2605bb1] | 415 | <para>
|
---|
| 416 | Before starting <application>Postfix</application>, you should check
|
---|
| 417 | that your configuration and file permissions will work properly. Run the
|
---|
| 418 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 419 | user to check and start your <application>Postfix</application> server:
|
---|
| 420 | </para>
|
---|
[cef276c] | 421 |
|
---|
| 422 | <screen role="root"><userinput>/usr/sbin/postfix check &&
|
---|
[417f9e7] | 423 | /usr/sbin/postfix start</userinput></screen>
|
---|
[58f0b91] | 424 |
|
---|
[417f9e7] | 425 | </sect3>
|
---|
| 426 |
|
---|
| 427 | <sect3 id="postfix-init">
|
---|
[1258125] | 428 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 429 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[417f9e7] | 430 |
|
---|
[2605bb1] | 431 | <para>
|
---|
| 432 | To automate the running of Postfix at startup, install the
|
---|
[1258125] | 433 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/postfix</filename>
|
---|
| 434 | init script</phrase>
|
---|
| 435 | <phrase revision="systemd"><filename>postfix.service</filename>
|
---|
| 436 | unit</phrase> included in the
|
---|
| 437 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
[4472e923] | 438 | <xref linkend="systemd-units" revision="systemd"/> package:
|
---|
[2605bb1] | 439 | </para>
|
---|
[417f9e7] | 440 |
|
---|
| 441 | <indexterm zone="postfix postfix-init">
|
---|
| 442 | <primary sortas="f-postfix">postfix</primary>
|
---|
| 443 | </indexterm>
|
---|
| 444 |
|
---|
| 445 | <screen role="root"><userinput>make install-postfix</userinput></screen>
|
---|
[58f0b91] | 446 |
|
---|
[417f9e7] | 447 | </sect3>
|
---|
[58f0b91] | 448 |
|
---|
[417f9e7] | 449 | </sect2>
|
---|
| 450 |
|
---|
| 451 | <sect2 role="content">
|
---|
| 452 | <title>Contents</title>
|
---|
| 453 |
|
---|
| 454 | <segmentedlist>
|
---|
| 455 | <segtitle>Installed Programs</segtitle>
|
---|
[58f0b91] | 456 | <segtitle>Installed Libraries</segtitle>
|
---|
[417f9e7] | 457 | <segtitle>Installed Directories</segtitle>
|
---|
| 458 |
|
---|
| 459 | <seglistitem>
|
---|
[2605bb1] | 460 | <seg>
|
---|
[f13b771] | 461 | mailq (symlink), newaliases (symlink), postalias, postcat, postconf,
|
---|
| 462 | postdrop, postfix, postkick, postlock, postlog, postmap, postmulti,
|
---|
| 463 | postqueue, postsuper, and sendmail
|
---|
[58f0b91] | 464 | </seg>
|
---|
| 465 | <seg>
|
---|
| 466 | None
|
---|
[2605bb1] | 467 | </seg>
|
---|
| 468 | <seg>
|
---|
[0a76c13] | 469 | /{etc,usr/lib}/postfix,
|
---|
| 470 | /usr/share/doc/postfix-&postfix-version; and
|
---|
| 471 | /var/{lib,spool}/postfix
|
---|
[2605bb1] | 472 | </seg>
|
---|
[417f9e7] | 473 | </seglistitem>
|
---|
| 474 | </segmentedlist>
|
---|
| 475 |
|
---|
| 476 | <variablelist>
|
---|
| 477 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 478 | <?dbfo list-presentation="list"?>
|
---|
| 479 | <?dbhtml list-presentation="table"?>
|
---|
| 480 |
|
---|
| 481 | <varlistentry id="mailq">
|
---|
| 482 | <term><command>mailq</command></term>
|
---|
| 483 | <listitem>
|
---|
[2605bb1] | 484 | <para>
|
---|
[4c24eb0a] | 485 | A symlink to <filename>sendmail</filename>
|
---|
[2605bb1] | 486 | </para>
|
---|
[417f9e7] | 487 | <indexterm zone="postfix mailq">
|
---|
| 488 | <primary sortas="b-mailq">mailq</primary>
|
---|
| 489 | </indexterm>
|
---|
| 490 | </listitem>
|
---|
| 491 | </varlistentry>
|
---|
| 492 |
|
---|
| 493 | <varlistentry id="newaliases">
|
---|
| 494 | <term><command>newaliases</command></term>
|
---|
| 495 | <listitem>
|
---|
[2605bb1] | 496 | <para>
|
---|
[4c24eb0a] | 497 | A symlink to <filename>sendmail</filename>
|
---|
[2605bb1] | 498 | </para>
|
---|
[417f9e7] | 499 | <indexterm zone="postfix newaliases">
|
---|
| 500 | <primary sortas="b-newaliases">newaliases</primary>
|
---|
| 501 | </indexterm>
|
---|
| 502 | </listitem>
|
---|
| 503 | </varlistentry>
|
---|
| 504 |
|
---|
[2e8afa9] | 505 | <varlistentry id="postalias">
|
---|
| 506 | <term><command>postalias</command></term>
|
---|
[417f9e7] | 507 | <listitem>
|
---|
[2605bb1] | 508 | <para>
|
---|
| 509 | is a utility for <application>Postfix</application> alias database
|
---|
| 510 | maintenance
|
---|
| 511 | </para>
|
---|
[2e8afa9] | 512 | <indexterm zone="postfix postalias">
|
---|
| 513 | <primary sortas="b-postalias">postalias</primary>
|
---|
[417f9e7] | 514 | </indexterm>
|
---|
| 515 | </listitem>
|
---|
| 516 | </varlistentry>
|
---|
| 517 |
|
---|
| 518 | <varlistentry id="postcat">
|
---|
| 519 | <term><command>postcat</command></term>
|
---|
| 520 | <listitem>
|
---|
[2605bb1] | 521 | <para>
|
---|
| 522 | Prints the contents of files from the
|
---|
[4c24eb0a] | 523 | <application>Postfix</application> queue in human readable format
|
---|
[2605bb1] | 524 | </para>
|
---|
[417f9e7] | 525 | <indexterm zone="postfix postcat">
|
---|
| 526 | <primary sortas="b-postcat">postcat</primary>
|
---|
| 527 | </indexterm>
|
---|
| 528 | </listitem>
|
---|
| 529 | </varlistentry>
|
---|
| 530 |
|
---|
| 531 | <varlistentry id="postconf">
|
---|
| 532 | <term><command>postconf</command></term>
|
---|
| 533 | <listitem>
|
---|
[2605bb1] | 534 | <para>
|
---|
| 535 | Displays or changes the value of
|
---|
[4c24eb0a] | 536 | <application>Postfix</application> configuration parameters
|
---|
[2605bb1] | 537 | </para>
|
---|
[417f9e7] | 538 | <indexterm zone="postfix postconf">
|
---|
| 539 | <primary sortas="b-postconf">postconf</primary>
|
---|
| 540 | </indexterm>
|
---|
| 541 | </listitem>
|
---|
| 542 | </varlistentry>
|
---|
| 543 |
|
---|
| 544 | <varlistentry id="postdrop">
|
---|
| 545 | <term><command>postdrop</command></term>
|
---|
| 546 | <listitem>
|
---|
[2605bb1] | 547 | <para>
|
---|
| 548 | Creates a file in the maildrop directory and copies its standard
|
---|
[4c24eb0a] | 549 | input to the file
|
---|
[2605bb1] | 550 | </para>
|
---|
[417f9e7] | 551 | <indexterm zone="postfix postdrop">
|
---|
| 552 | <primary sortas="b-postdrop">postdrop</primary>
|
---|
| 553 | </indexterm>
|
---|
| 554 | </listitem>
|
---|
| 555 | </varlistentry>
|
---|
| 556 |
|
---|
| 557 | <varlistentry id="postfix-bin">
|
---|
| 558 | <term><command>postfix</command></term>
|
---|
| 559 | <listitem>
|
---|
[2605bb1] | 560 | <para>
|
---|
[4c24eb0a] | 561 | is the <application>Postfix</application> control program
|
---|
[2605bb1] | 562 | </para>
|
---|
[417f9e7] | 563 | <indexterm zone="postfix postfix-bin">
|
---|
| 564 | <primary sortas="b-postfix">postfix</primary>
|
---|
| 565 | </indexterm>
|
---|
| 566 | </listitem>
|
---|
| 567 | </varlistentry>
|
---|
| 568 |
|
---|
| 569 | <varlistentry id="postkick">
|
---|
| 570 | <term><command>postkick</command></term>
|
---|
| 571 | <listitem>
|
---|
[2605bb1] | 572 | <para>
|
---|
| 573 | Sends requests to the specified service over a local transport
|
---|
[4c24eb0a] | 574 | channel
|
---|
[2605bb1] | 575 | </para>
|
---|
[417f9e7] | 576 | <indexterm zone="postfix postkick">
|
---|
| 577 | <primary sortas="b-postkick">postkick</primary>
|
---|
| 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
| 581 |
|
---|
| 582 | <varlistentry id="postlock">
|
---|
| 583 | <term><command>postlock</command></term>
|
---|
| 584 | <listitem>
|
---|
[2605bb1] | 585 | <para>
|
---|
| 586 | Locks a mail folder for exclusive use, and executes commands passed
|
---|
[4c24eb0a] | 587 | to it
|
---|
[2605bb1] | 588 | </para>
|
---|
[417f9e7] | 589 | <indexterm zone="postfix postlock">
|
---|
| 590 | <primary sortas="b-postlock">postlock</primary>
|
---|
| 591 | </indexterm>
|
---|
| 592 | </listitem>
|
---|
| 593 | </varlistentry>
|
---|
| 594 |
|
---|
| 595 | <varlistentry id="postlog">
|
---|
| 596 | <term><command>postlog</command></term>
|
---|
| 597 | <listitem>
|
---|
[2605bb1] | 598 | <para>
|
---|
| 599 | A <application>Postfix</application>-compatible logging interface
|
---|
[4c24eb0a] | 600 | for use in, for example, shell scripts
|
---|
[2605bb1] | 601 | </para>
|
---|
[417f9e7] | 602 | <indexterm zone="postfix postlog">
|
---|
| 603 | <primary sortas="b-postlog">postlog</primary>
|
---|
| 604 | </indexterm>
|
---|
| 605 | </listitem>
|
---|
| 606 | </varlistentry>
|
---|
| 607 |
|
---|
| 608 | <varlistentry id="postmap">
|
---|
| 609 | <term><command>postmap</command></term>
|
---|
| 610 | <listitem>
|
---|
[2605bb1] | 611 | <para>
|
---|
| 612 | Creates or queries one or more Postfix lookup tables, or updates an
|
---|
[4c24eb0a] | 613 | existing one
|
---|
[2605bb1] | 614 | </para>
|
---|
[417f9e7] | 615 | <indexterm zone="postfix postmap">
|
---|
| 616 | <primary sortas="b-postmap">postmap</primary>
|
---|
| 617 | </indexterm>
|
---|
| 618 | </listitem>
|
---|
| 619 | </varlistentry>
|
---|
| 620 |
|
---|
[2605bb1] | 621 | <varlistentry id="postmulti">
|
---|
| 622 | <term><command>postmulti</command></term>
|
---|
| 623 | <listitem>
|
---|
| 624 | <para>
|
---|
| 625 | is the <application>Postfix</application> multi-instance manager.
|
---|
| 626 | It allows a system administrator to manage multiple
|
---|
[4c24eb0a] | 627 | <application>Postfix</application> instances on a single host
|
---|
[2605bb1] | 628 | </para>
|
---|
| 629 | <indexterm zone="postfix postmulti">
|
---|
| 630 | <primary sortas="b-postmulti">postmulti</primary>
|
---|
| 631 | </indexterm>
|
---|
| 632 | </listitem>
|
---|
| 633 | </varlistentry>
|
---|
| 634 |
|
---|
[417f9e7] | 635 | <varlistentry id="postqueue">
|
---|
| 636 | <term><command>postqueue</command></term>
|
---|
| 637 | <listitem>
|
---|
[2605bb1] | 638 | <para>
|
---|
[58f0b91] | 639 | The <application>Postfix</application> user interface for
|
---|
[4c24eb0a] | 640 | queue management
|
---|
[58f0b91] | 641 | </para>
|
---|
[417f9e7] | 642 | <indexterm zone="postfix postqueue">
|
---|
| 643 | <primary sortas="b-postqueue">postqueue</primary>
|
---|
| 644 | </indexterm>
|
---|
| 645 | </listitem>
|
---|
| 646 | </varlistentry>
|
---|
| 647 |
|
---|
| 648 | <varlistentry id="postsuper">
|
---|
| 649 | <term><command>postsuper</command></term>
|
---|
| 650 | <listitem>
|
---|
[2605bb1] | 651 | <para>
|
---|
[58f0b91] | 652 | The <application>Postfix</application> user interface for
|
---|
[4c24eb0a] | 653 | superuser queue management
|
---|
[58f0b91] | 654 | </para>
|
---|
[417f9e7] | 655 | <indexterm zone="postfix postsuper">
|
---|
| 656 | <primary sortas="b-postsuper">postsuper</primary>
|
---|
| 657 | </indexterm>
|
---|
| 658 | </listitem>
|
---|
| 659 | </varlistentry>
|
---|
| 660 |
|
---|
| 661 | <varlistentry id="sendmail-postfix">
|
---|
| 662 | <term><command>sendmail</command></term>
|
---|
| 663 | <listitem>
|
---|
[2605bb1] | 664 | <para>
|
---|
| 665 | is the <application>Postfix</application> to
|
---|
[4c24eb0a] | 666 | <application>Sendmail</application> compatibility interface
|
---|
[2605bb1] | 667 | </para>
|
---|
[417f9e7] | 668 | <indexterm zone="postfix sendmail-postfix">
|
---|
| 669 | <primary sortas="b-sendmail">sendmail</primary>
|
---|
| 670 | </indexterm>
|
---|
| 671 | </listitem>
|
---|
| 672 | </varlistentry>
|
---|
[58f0b91] | 673 |
|
---|
[417f9e7] | 674 | </variablelist>
|
---|
[58f0b91] | 675 |
|
---|
[417f9e7] | 676 | </sect2>
|
---|
[58f0b91] | 677 |
|
---|
[f45b1953] | 678 | </sect1>
|
---|