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. N _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus
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.
syslog-ng should be a dropin replacement for postfix, provided it is correctly configured. you might also need to note that postfix chroots itself under /var/spool/postfix so you might need to add a source to syslog-ng for postfix to log correctly. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
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
participants (3)
-
Balazs Scheidler
-
Nate Campi
-
netsec novice