Richard Lightman richard at
Wed Jan 10 12:19:42 PST 2001

Misquoted from tristan on 2001/01/ 9 at 21:47 +0000:
> Hi,
> I've been trying to set up a mail server on my LFS installation. qmail
> stalwartly refuses to work and gives errors saying 
> deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/
> i've been looking at postfix but I can't find documentation on how to
> install it from scratch without already having sendmail installed
> (although knowing me its probably there right under my nose)
> Thanks,
> Tristan
Qmail could not contact the machine that accepts mail for the address
you have given. Are you using a temperary internet connection?

You could write and send e-mail only when you are on-line. You could
set up undelivered mail to be sent to the alias user, then have
something kick the messages out when you dial up. I was too lazy for
that. I am not connected right now, so my last mail caused:

Jan 10 19:28:50 urusai qmail: 979154930.280189 starting delivery 95: msg 15966 to remote lfs-discuss at
Jan 10 19:28:50 urusai qmail: 979154930.280307 status: local 0/10 remote 1/20
Jan 10 19:28:50 urusai qmail: 979154930.283794 delivery 95: deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/
Jan 10 19:28:50 urusai qmail: 979154930.283892 status: local 0/10 remote 0/20

So will this one. Next time I connect, pppd will run /etc/ppp/ip-up:
# $1=interface-name   $2=tty-device        $3=speed
# $4=local-IP-address $5=remote-IP-address $6=ipparam

kill -ALRM $(pidof -s /var/qmail/bin/qmail-send)

For this to work, you must have run something like:
env - PATH="/var/qmail/bin:$PATH" qmail-start ./Maildir/ splogger qmail &

Put it in your init scripts. I am also running qmail-smptd from inetd. One
day I will set up something better. Here is the inetd.conf line:
smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd

You need lots of files in /var/qmail/control/
echo "32767" >/var/qmail/control/databytes 
# Bounce e-mails bigger then 32767

touch /var/qmail/control/badmailfrom
# If you want, put an e-mail address or domain name on each
# line of this to bounce their mail back

echo "default.dom" >/var/qmail/control/defaultdomain
# Domain of your local network, if you have one, or use your
# real domain name. qmail will receive for this domain

echo "host.default.dom" >/var/qmail/control/defaulthost
# Where e-mails come from unless they already know

echo "" /var/qmail/control/idhost
# The real domain name you will be using

echo host.default.dom  >/var/qmail/control/locals
echo default.dom      >>/var/qmail/control/locals
echo dom              >>/var/qmail/control/locals
echo >>/var/qmail/control/locals
# All the places qmail should accept mail for

cat host.default.dom  >/var/qmail/control/me
# The name of the machine runnig qmail

echo "host.default.dom"  >/var/qmail/control/rcpthosts
echo "" >>/var/qmail/control/rcpthosts
# Reject things to do not have one of these as envelope recipient

echo "" >/var/qmail/control/smtpgreeting

That should be enouge for /var/qmail/control, but you
can have more. See man qmail-control

Now in you home directory, logged in as you, not root:
maildirmake Maildir

In /etc/login.defs, uncomment
QMAIL_DIR       Maildir

Now try sending you test message:
echo "test message" | qmail-inject -fme at here user at host.default.dom

There wasn't that simple? One day when I think I understand all
this, I will write it up as a hint.

The first challenge though is getting reverse name resolution
to work on a private network.
( in /etc/hosts ;-)

If at first you don't succeed, redefine success.

Unsubscribe: send email to lfs-apps-request at
and put unsubscribe in the subject header of the message

More information about the blfs-support mailing list