[syslog-ng]postfix requiring syslog?

Nate Campi nate@campin.net
Thu, 9 Jan 2003 09:58:11 -0800


On Thu, Jan 09, 2003 at 05:34:13PM +0000, netsec novice wrote:
> I am using SuSE 8.1 to build a cental syslog server and have installed 
> syslog-ng.  I need to run postfix in order to send alerts.  Now that I have 
> disabled syslog and enabled/installed syslog-ng, postfix no longer starts 
> on its own at boot.  When I attempt to start it manually, it responds that 
> syslog is required to be running to start postfix.. do I want to start 
> syslog?  If I say yes then postfix starts fine but I don't really want to 
> be running syslog AND syslog-ng do I?  Linux is new to me so I apologize 
> for my ignorance.  Is there a simple work-around to tell postfix to use 
> syslog-ng rather than syslog?  I guess I don't understand where this 
> dependency comes from.  Any help is appreciated.

It's all about having /dev/log inside postfix's chroot directory
structure. Either edit /etc/postfix/master.cf and change all the "y"
entries to "n" to make it stop running chroot'd (not what I recommend)
or add a line like this to syslog-ng.conf and restart (what I *do*
recommend):

source postfix { 
	unix-stream("/var/spool/postfix/dev/log" keep-alive(yes)); 
};

...you may have to modify the path if your postfix chroot dir is
elsewhere.

This is covered in the FAQ by the way:

 http://www.campin.net/syslog-ng/faq.html#postfix

-- 
Nate Campi   http://www.campin.net 

"Go not to Usenet for counsel, for it will say both no, and yes, and no,
and yes...." - Unknown