This is a discussion on Problem with multilog within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, now i'm using sctips like the one below to start smptd. As you can see splogger is used ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, now i'm using sctips like the one below to start smptd. As you can see splogger is used and all logs are in the syslog. There is no supervise directory. I want to use maillog because i mulst install an analog tool (qmailanalog) Can someone tell me in which way i can change the script so everything is logged to /var/log/qmail/smtpd I tried to change the last line to this: /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1 | /usr/local/bin/multilog t /var/log/qmail/qmail-smtpd qmail-smtpd & With this line qmail didn't start -> i saw errors on my screen. init.smtpd: ----------- #!/bin/sh PATH="/var/qmail/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH" export QMAILQUEUE='/var/qmail/bin/qmail-spamc' tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb \ -u `id -u vpopmail` -g `id -g vpopmail` -K /var/run/qL_smtpd.pid 0 25 \ /usr/local/bin/rblsmtpd -r bl.spamcop.net -r relays.ordb.org -r rbl-plus.mail-abuse.org -r list.dsbl.org -r sbl.spamhaus.org \ /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1 | /var/qmail/bin/splogger qmail-smtpd & thx J.R. |
|
|||
|
Educorner.be wrote:
> > Hi, > > now i'm using sctips like the one below to start smptd. As you can see > splogger is used and all logs are in the syslog. There is no supervise > directory. > > I want to use maillog because i mulst install an analog tool (qmailanalog) > > Can someone tell me in which way i can change the script so everything > is logged to /var/log/qmail/smtpd > > I tried to change the last line to this: > > /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1 | > /usr/local/bin/multilog t /var/log/qmail/qmail-smtpd qmail-smtpd & > > With this line qmail didn't start -> i saw errors on my screen. > > > > > init.smtpd: > ----------- > #!/bin/sh > PATH="/var/qmail/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH" > > export QMAILQUEUE='/var/qmail/bin/qmail-spamc' > tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb \ > -u `id -u vpopmail` -g `id -g vpopmail` -K /var/run/qL_smtpd.pid 0 25 \ > /usr/local/bin/rblsmtpd -r bl.spamcop.net -r relays.ordb.org -r > rbl-plus.mail-abuse.org -r list.dsbl.org -r sbl.spamhaus.org \ > /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1 | > /var/qmail/bin/splogger qmail-smtpd & > > > thx > > J.R. You should consult http://www.lifewithqmail.org. There you will find the required scripts. You would also have to make sure that you have the newer ucspi-tcp and daemontools. with the newer tools, there is such a process as svscan which monitors a directory of services )the default is /services/) In there you would create a directory for the service to be monitored such as qmail-smtpd. Within said directory you would need to create a run file and a log directory with a run file. When svscan detects that folder, it will execute the run file. It would then initiate a process for the run file in the log which is the logging portion of the service. Once you have both instances running you are all set. AK |