RE: qmail not listening

From: Troy Settle (troy_at_psknet.com)
Date: 06/25/03

  • Next message: Christoffer Pio: "kernel option for ounting root on cdrom"
    To: <guilherme@nortenet.pt>, <freebsd-isp@freebsd.org>
    Date: Wed, 25 Jun 2003 08:13:19 -0400
    
    

    > -----Original Message-----
    > From: Guilherme Oliveira
    > Sent: Tuesday, June 24, 2003 3:56 PM
    >
    > Thanks in advance for your help !
    >
    > >On Tue, Jun 24, 2003 at 06:47:10PM +0000, Guilherme Oliveira wrote:
    > >Did you install qmail via ports, or from the source tarball?
    > I've had
    > >problems with the ports, IIRC...
    >
    > I've installed it from ports.
    > I run '/var/qmail/configure/config-fast vianavirtual.com'
    > Then I've copied /var/qmail/boot/home to /var/qmail/rc to
    > /usr/local/etc/rc.d/qmail.sh
    > be funtional.

    That's a good start, though not always a desireable way to do it. I
    much prefer running qmail-send under daemontools.

    >
    > >> I read the docs and I've configured the virtual domains
    > but doing netstat
    > it
    > >Which docs? 'Life With Qmail'? The author's own docs?
    >
    > With the source, 2 faq's, qmail.org and from author site.

    If your heart is set on running Qmail, you really need to check out the
    LWQ, it's probably the most concise manual for running Qmail in
    existence.
      http://www.lifewithqmail.org

    Since you've already got the basic setup out of the way, start with
    section 2.8:
      http://www.lifewithqmail.org/lwq.html#start-qmail

    >
    > >Qmail-smtpd does use TCP. How are you invoking it? inetd?
    > tcpserver?
    > >We'd need to see config files, output of logs, etc.
    >
    > I've said how I configured it. Logs and configuration files
    > are in http://www.vianaonline.com/qmail.txt

    Good stuff, but where's the supervise process for qmail-smtpd?

    A basic supervise script (run file) under daemontools looks something
    like this (don't use this though, it has no error checking):

    #!/bin/sh
    QMAILDUID=`id -u qmaild`
    NOFILESGID=`id -g qmaild`
    MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
    LOCAL=`head -1 /var/qmail/control/me`
    exec /usr/local/bin/softlimit -m 2000000 \
      /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb \
      -c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
      /var/qmail/bin/qmail-smtpd 2>&1

    >
    >
    > This server runs (as djbdns) with ip 192.168.1.2 behind natd.
    > I've 3 domains wich dns redirects to natd. Then natd does
    > portforward to 192.168.1.2

    Yup, dnbdns is pretty much a braindead installation, it depends on
    daemontools to run. Qmail, on the other hand, can be run in a variety
    of ways, and DJB leaves that up to the user to figure out.

    >
    > It's running very well tith apache and djbdns except qmail.

    Hopefully by now, you'll have yourself an operational mail server.

    >
    > I need some hints please.

    Oh, some more hints... You'll need to set up additional supervise
    scripts for pop3 and imap services if you want them. Both are fairly
    trivial to set up under daemontools.

    Good luck,

    --
      Troy Settle
      Pulaski Networks
      http://www.psknet.com
      540.994.4254 ~ 866.477.5638
      Pulaski Chamber 2002 Small Business Of The Year
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Christoffer Pio: "kernel option for ounting root on cdrom"

    Relevant Pages

    • Re: [SLE] troubles installing imap server
      ... This is an older site, and to really understand qmail, you should install ... from the tarballs. ... I also contributed some lines of code, on the BINC site, to ...
      (SuSE)
    • Re: Uninstalling exim (when turning it off is not enough)
      ... Little did I know that it would install new pacakages on its ... what happened was that yum installed exim and mail stopped. ... > processed through qmail, spamassassin and clamav. ... MTA rpm package. ...
      (Fedora)
    • Re: [SLE] sendmail vs postfix
      ... On the subject of Qmail for SuSE, ... the docs, you can test the install of checkpassword, and it will test good, ... pointed me to this nice resourse for qmail, and looks like they will be ...
      (SuSE)
    • [SLE] Problem switching to qmail.
      ... that I have removed postfix. ... Qmail working perfectly, but whenever I ... run yast and try to install something, ... and cron is something that I really need so I can't ...
      (SuSE)
    • Re: [SLE] posftix - open relay?
      ... but I'm really trying to work with Postfix first. ... I really hesitate to install a large package like qmail. ... > Oh please put that in the faq, it really is such a useful answer ...
      (SuSE)