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