Problem with multilog

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-26-2005
Educorner.be
 
Posts: n/a
Default Problem with multilog


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.
Reply With Quote
  #2 (permalink)  
Old 12-27-2005
AK
 
Posts: n/a
Default Re: Problem with multilog

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0