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