From: Tim Legant <[EMAIL PROTECTED]>
"Chris Berry" <[EMAIL PROTECTED]> writes:
> Ok I went back and implemented it as root
>
> /usr/local/src/tmda-0.81/bin/tmda-ofmipd -S
> /usr/local/src/vmailmgr-vdir.sh -u root

Just a note... you don't need the -u flag at all, if you run it as
root.

When I tried that I got an error saying that it expected the tofmipd user or something of that sort, and the docs said that it tries to default to that. I can try to recreate the message if you want to take a look at it.


>  Now I'm working on getting
> it running under daemontools.

I have /services/tofmipd linked to /var/services/tofmipd.  The 'run'
file in /var/services/tofmipd looks like this:

#!/bin/sh
exec > /dev/null 2> /dev/null
exec tmda-ofmipd -f -C 10 -p mail.catseye.net:1025 \
        -R pop3://mail.catseye.net

I'm discarding any output because I initially tested it with the -d
and -f flags in a virtual terminal for a week or so, to make sure my
roaming users could send.  Once I was satisfied it was working, I just
removed the -d and put it under supervise.

Here is what I did:


mkdir /var/log/qmail/tmda-ofmipd
mkdir -p /var/qmail/supervise/tmda-ofmipd/log
chmod +t /var/qmail/supervise/tmda-ofmipd

tmda-ofmipd run script
#!/bin/sh
exec /usr/local/src/tmda-0.81/bin/tmda-ofmipd -f -S /usr/local/src/vmailmgr-vdir.sh -u root


tmda-ofmipd log run script
#!/bin/sh
exec /usr/local/bin/multilog t /var/log/qmail/tmda-ofmipd

then I chmod 755 both scripts and switched to the /service directory

ln -s /var/qmail/supervise/tmda-ofmipd tmda-ofmipd


Out of curiousity, why did you decide to /dev/null the errors rather than log them?


Chris Berry
[EMAIL PROTECTED]
Systems Administrator
JM Associates

"We are successful when our bosses wonder what it is we do all day." -- Tim Mullen

_________________________________________________________________
Cheer a special someone with a fun Halloween eCard from American Greetings! Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134


_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to