autoupdate
[postfix-master.git] / postfix-master / LINUX_README.html
blob507cc7c3b3f4bd99ab3549cbf538fa71dbc0f680
1 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
6 <head>
8 <title>Postfix and Linux</title>
10 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
12 </head>
14 <body>
16 <h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix and Linux</h1>
18 <hr>
20 <h2>Berkeley DB issues</h2>
22 <p> If you can't compile Postfix because the file "db.h"
23 isn't found, then you MUST install the Berkeley DB development
24 package (name: db???-devel-???) that matches your system library.
25 You can find out what is installed with the rpm command. For example:
26 </p>
28 <blockquote>
29 <pre>
30 $ <b>rpm -qf /usr/lib/libdb.so</b>
31 db4-4.3.29-2
32 </pre>
33 </blockquote>
35 <p> This means that you need to install db4-devel-4.3.29-2 (on
36 some systems, specify "<b>rpm -qf /lib/libdb.so</b>" instead). </p>
38 <p> DO NOT download some Berkeley DB version from the network.
39 Every Postfix program will dump core when it is built with a different
40 Berkeley DB version than the version that is used by the system
41 library routines. See the <a href="DB_README.html">DB_README</a> file for further information.
42 </p>
44 <h2>Procmail issues</h2>
46 <p> On RedHat Linux 7.1 and later <b>procmail</b> no longer has
47 permission
48 to write the mail spool directory. Workaround: </p>
50 <blockquote>
51 <pre>
52 # chmod 1777 /var/spool/mail
53 </pre>
54 </blockquote>
56 <h2>Syslogd performance</h2>
58 <p> LINUX <b>syslogd</b> uses synchronous writes by default. Because
59 of this, <b>syslogd</b> can actually use more system resources than
60 Postfix. To avoid such badness, disable synchronous mail logfile
61 writes by editing /etc/syslog.conf and by prepending a - to the
62 logfile name: </p>
64 <blockquote>
65 <pre>
66 /etc/syslog.conf:
67 mail.* -/var/log/mail.log
68 </pre>
69 </blockquote>
71 <p> Send a "<b>kill -HUP</b>" to the <b>syslogd</b> to make the
72 change effective. </p>
74 </body>
76 </html>