On 26 Feb 1997 Arisg@matrix.kapatel.gr wrote:
> have some probs! First of all , I have a 486/66 with 24MB ram connecting
> to Inet via a dial-up ppp connection ... In my netconfig script I use
> only loopback ... When i try to install qmail i get this answer:
> /var/qmail# ./qmail-makectl
> Your hostname is wizard.
> hard error
> Sorry, I couldn't find your host's canonical name in DNS.
> You will have to set up control/me yourself.
Your system is probably similar to mine. I have a dynamic IP address
assigned when I dial in via PPP. Thus, I don't have a hostname.
Anything I put in control/me is wrong.
If you don't have a real hostname, then you won't need an SMTP daemon;
you get your mail via a POP or IMAP server, right? If so, then you
only need to worry about the configuration of qmail as far as outgoing
messages are concerned.
Here's what I have:
=== /var/qmail/control/me ===
phoenix.local
(There are no other files in /var/qmail/control. As far as I know,
there must be a dot in this "hostname". Beyond that, I don't think it
matters much what "domain" you use. Be sure not to use something that
could be a real domain, though, or you may eventually have a problem.)
=== /etc/hosts ===
208.193.178.184 phoenix.local phoenix
(Note that this is just a made-up address. The actual value does not
matter, since it's never used.)
=== /etc/HOSTNAME ===
phoenix
My MUA (pine) is configured to add the header "From: wooledge@kellnet.com"
on all outgoing messages. This is important for certain mailing lists
that verify your "From:" header before accepting messages. Pine must
be recompiled in order for this to work. (Elm would not need to be
recompiled, as far as I know.) In addition to this, I told pine that
my local "user-domain" is phoenix.local. Thus, mail to local accounts
is addressed as, for example, "greg@phoenix.local"; qmail recognizes
this as a local address because of the contents of control/me. Also,
newer versions of pine have to be told what "sendmail" flags to use;
this is in the FAQ.
That took care of all but one specific case -- the envelope sender
address on outgoing messages was "greg@phoenix.local", which is not
correct when the messages go to the Internet. Certain *other* mailing
lists verify your envelope sender address in order to let you subscribe;
also, this is the address used when bouncing undeliverable messages back
to you. Thus, I set the following environment variables:
QMAILSUSER=wooledge
QMAILSHOST=kellnet.com
This causes qmail to set the envelope sender address to
"wooledge@kellnet.com". This isn't perfect (since local bounce messages
will go to my ISP, to be picked up by fetchmail, rather than coming
directly back to me), but at least everything eventually ends up in the
right place.
I configured fetchmail to deliver mail directly using the -m option;
I suspect that delivering to SMTP would also work, but at the time I
configured fetchmail I was not yet running qmail, and I didn't have
sendmail running as a daemon, so I just never tried it....
Hope this helps.
------------ Greg Wooledge -------------
------- <wooledge@kellnet.com> -------
--- <
http://kellnet.com/wooledge/main.html> ---