I really can't seem to get Qmail to run with tcpserver as far as the pop
service goes.

I've followed all the directions on LWQ, with the exception of Paul Gregg's
checkpasswd.  Inetd will probably work for me, but I need to setup
pop-before SMTP, and I can't seem to get the IP address of the calling
client when I run Qmail through inetd.

I'm wondering if my startup scripts are wrong, or in the wrong order, etc.
I've included all the relevant file contents below, including the inetd
lines that work.  I'm looking to get tcpserver to work, or finding a way to
pass the IP address of the calling client to pass through checkpassword
using inetd.  I'm on a Sun Sparc 2.6.

Thanks in advance for any ideas!

So, here's a list of the files and their contents:

/etc/inet/inetd.conf
----------------------------------
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd -a -u022
telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd
pop3d stream tcp nowait root /var/qmail/bin/qmail-popup qmail-popup
newmediaone.net /usr/local/sbin/checkpoppasswd /var/qmail/bin/qmail-pop3d
Maildir/
----------------------------------

/etc/rc3.d/S105qmail
-----------------------------------
#!/bin/sh

tcpserver -v -R 0 pop3d /var/qmail/bin/qmail-popup qmail-popup
newmediaone.net /usr/local/sbin/checkpassword /var/qmail/bin/qmail-pop3d
Maildir 2>&1 | /var/qmail/bin/splogger pop3d &
------------------------------------



/etc/rc3.d/S130SERVISES
-----------------------------------
env - PATH=/usr/local/bin:/usr/sbin:/usr/bin:/bin csh -cf 'svscan /service
&'
------------------------------------



/etc/rc3.d/S140qmailControl
-----------------------------------
#!/bin/sh



PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin

export PATH



case "$1" in

  start)

    echo -n "Starting qmail: svscan"

    cd /var/qmail/supervise

    env - PATH="$PATH" svscan &

    echo $! > /var/run/svscan.pid

    echo "."

    ;;

  stop)

    echo -n "Stopping qmail: svscan"

    kill `cat /var/run/svscan.pid`

    echo -n " qmail"

    svc -dx /var/qmail/supervise/*

    echo -n " logging"

    svc -dx /var/qmail/supervise/*/log

    echo "."

    ;;

  stat)

    cd /var/qmail/supervise

    svstat * */log

    ;;

  doqueue|alrm)

    echo "Sending ALRM signal to qmail-send."

    svc -a /var/qmail/supervise/qmail-send

    ;;

  queue)

    qmail-qstat

    qmail-qread

    ;;

  reload|hup)

    echo "Sending HUP signal to qmail-send."

    svc -h /var/qmail/supervise/qmail-send

    ;;

  pause)

    echo "Pausing qmail-send"

    svc -p /var/qmail/supervise/qmail-send

    echo "Pausing qmail-smtpd"

    svc -p /var/qmail/supervise/qmail-smtpd

    ;;

  cont)

    echo "Continuing qmail-send"

    svc -c /var/qmail/supervise/qmail-send

    echo "Continuing qmail-smtpd"

    svc -c /var/qmail/supervise/qmail-smtpd

    ;;

  restart)

    echo "Restarting qmail:"

    echo "* Stopping qmail-smtpd."

    svc -d /var/qmail/supervise/qmail-smtpd

    echo "* Sending qmail-send SIGTERM and restarting."

    svc -t /var/qmail/supervise/qmail-send

    echo "* Restarting qmail-smtpd."

    svc -u /var/qmail/supervise/qmail-smtpd

    ;;

  cdb)

    tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

    chmod 644 /etc/tcp.smtp*

    echo "Reloaded /etc/tcp.smtp."

    ;;

  help)

    cat <<HELP

   stop -- stops mail service (smtp connections refused, nothing goes out)

  start -- starts mail service (smtp connection accepted, mail can go out)

  pause -- temporarily stops mail service (connections accepted, nothing
leaves)

   cont -- continues paused mail service

   stat -- displays status of mail service

    cdb -- rebuild the tcpserver cdb file for smtp

restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it

doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery

 reload -- sends qmail-send HUP, rereading locals and virtualdomains

  queue -- shows status of queue

   alrm -- same as doqueue

    hup -- same as reload

HELP

    ;;

  *)

    echo "Usage: $0
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue|help}"

    exit 1

    ;;

esac



exit 0
-------------------------------------------------

Thanks again!

Peter Janett

Director of Interactive Media
http://www.healthwell.com
[EMAIL PROTECTED]



Reply via email to