Hi folks,

I finally got fed up with sendmail and spent yesterday configuring
qmail. I have a couple questions which I couldn't resolve via the FM.

setup: Linux, RH 6.0, latest version of qmail. I connect via modem, have
a dynamic IP, and have the ability to run named (be my own nameserver)
but haven't had the need to do so (perhaps I do now). I call my machine
localhost, but change my hostname to whatever dynamic IP I get every
time I dial up.

here are my control file contents:

==> defaulthost <==
mailbag.com

==> me <==
localhost

==> smtproutes <==
:mailbag.com

mailbag.com is my isp and I want all my outgoing mail to go through it
since I'm on a sporadic serial link.

Here are my problems:

1. In my /etc/resolv.conf file I have a search line which contains a
few domains. With sendmail, if I were to send an email to fred@frog, it
would expand fred@frog to, say, [EMAIL PROTECTED], searching through
the domains in the search line and using the 1st one that resolved. I
haven't found the way to get qmail to do this. Qmail will instead
try to send to [EMAIL PROTECTED] through mailbag.com, and I'll get
a bounce message from mailbag.com saying, of course, it can't find
frog.localhost.  Sendmail would always expand the To: field in the way I
wanted.

2. I use MH as my mail handler. If I do not include a From:
line in my outgoing message, MH (post) apparently inserts From:
[EMAIL PROTECTED], and that's what my recipient sees. I
would rather have it so that if I don't include a From: header, qmail
will insert From: [EMAIL PROTECTED] . I can't seem to get qmail to ignore
the From: entry that MH sticks in, and I don't think I can turn that
feature off in MH. Setting QMAILINJECT to f doesn't seem to do anything,
and it's not what I want since I usually put the From: header I want in
my messages anyway.

If I just do

echo blah | mail orf

qmail will put in the From: header that I prescribe with qmail
environment variables (From: "Leigh Orf" <[EMAIL PROTECTED]>). In this
case I assume Qmail got a message with no From: header and did what I
wanted.

With sendmail, the following entries in /etc/sendmail.cf gave me the
behavior I want:

DSmailbag.com
DMmailbag.com

i.e., From: [EMAIL PROTECTED] would magically appear in my message when I
didn't prescribe it when composing a message with comp (in MH).

Note that 99% of the time I prescribe my From: field when composing
messages. But sometimes I forget, and in those cases I'd like the
recipient of my message to be able to reply to my normal email address.

Thanks for helping a qmail newbie out!

Leigh Orf

Reply via email to