>Hello.  I've setup vpopmail for the first time last night and so far
>it works pretty good.  I really don't like the fact that it logs to
>syslog and mail.log, however, and would prefer to use multilog with it
>under supervise which works for my qmail/qmail-smtp logging.  I
>currently have a /var/qmail/supervise/qmail-pop3d directory with the
>following in my run file:
>
>#!/bin/sh
>exec /usr/bin/tcpserver -H -R 0 pop3 \
>  /var/qmail/bin/qmail-popup $HOSTNAME \
>  /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1
>
>In the log/ subdirectory I have the same run file that exists in my
>supervise/qmail-{send,smtpd}/log directories to handle multilog
>logging for those two.
>
>How can I make vpopmail log in the same fashion?  I'd like everything
>to remain consistant if at all possible.
>
>Currently, absolutely nothing is written to my multilogs, and when I
>try to use -v or -p with tcpserver, it refuses connection to the pop3
>server and sits there (but still nothing is printed to the logs).
>
>Thanks.

On Mandrake 7.1 I am trying to build a vpopmail RPM.
I modifield the spec of qmail-1.03.mdk.rpm and the problem is this:

I noticed the qmail-pop3d (1) do not start with the init.d script:

10813 pts/1    S      0:00 svscan
10814 pts/1    S      0:00 supervise qmail-pop3d
10815 pts/1    S      0:00 supervise qmail-send
10816 pts/1    S      0:00 supervise log
10817 pts/1    S      0:00 supervise qmail-smtpd
10818 pts/1    S      0:00 supervise log
10819 pts/1    S      0:00 /usr/bin/tcpserver -H -R 0 pop3
/var/qmail/bin/qmail-popup ns2.clikka.com
10820 pts/1    S      0:00 /usr/bin/multilog t s100000 n20
/var/log/qmail/smtpd
10821 pts/1    S      0:00 /usr/bin/tcpserver -v -p -x
/etc/tcprules.d/qmail-smtp.cdb -u 401 -g 401 -v -c100 0
10822 pts/1    S      0:00 /usr/bin/multilog t s100000 n20 /var/log/qmail
10823 pts/1    S      0:00 qmail-send
10826 pts/1    S      0:00 qmail-lspawn ./Maildir/
10827 pts/1    S      0:00 qmail-rspawn
10828 pts/1    S      0:00 qmail-clean

and it start manually

10814 pts/1    S      0:00 supervise qmail-pop3d
10815 pts/1    S      0:00 supervise qmail-send
10816 pts/1    S      0:00 supervise log
10817 pts/1    S      0:00 supervise qmail-smtpd
10818 pts/1    S      0:00 supervise log
10819 pts/1    S      0:00 /usr/bin/tcpserver -H -R 0 pop3
/var/qmail/bin/qmail-popup ns2.clikka.com
10820 pts/1    S      0:00 /usr/bin/multilog t s100000 n20
/var/log/qmail/smtpd
10821 pts/1    S      0:00 /usr/bin/tcpserver -v -p -x
/etc/tcprules.d/qmail-smtp.cdb -u 401 -g 401 -v -c100 0
10822 pts/1    S      0:00 /usr/bin/multilog t s100000 n20 /var/log/qmail
10823 pts/1    S      0:00 qmail-send
10826 pts/1    S      0:00 qmail-lspawn ./Maildir/
10827 pts/1    S      0:00 qmail-rspawn
10828 pts/1    S      0:00 qmail-clean
10858 pts/1    T      0:00 /usr/bin/multilog t s100000 n20
/var/log/qmail-pop3d
10859 pts/1    S      0:00 supervise log

How can I modifiy the scripts to start it at the same time?

(1)  cat /var/qmail/supervise/qmail-pop3d/log/run
#!/bin/sh
exec /usr/bin/multilog t s100000 n20 /var/log/qmail-pop3d 2>&1


Second question: the script cant run under setuidgid qmaill (unable to
chenge directory) and cant log in /var/qmail/pop3d (cant lock directory)

Why?


Tnx

Miguel Beccari



Reply via email to