[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Reply-To headers this time.
>
> Chris,
>
> I'd be interested to see how you've got qmail set up, and also your
> MUA.
> I'm also a bit puzzled how you are madhouse.force9.co.uk and
> infinitum.madhouse...
>
Qmail is set up vaguely as follows...
[483%][infinitum][suck] >cat /var/qmail/control/me
infinitum.madhouse
[484%][infinitum][suck] >cat /var/qmail/control/defaultdomain
madhouse
[485%][infinitum][suck] >cat /var/qmail/control/plusdomain
infinitum.madhouse
[486%][infinitum][suck] >
I use MH (via exmh) as the MUA, and that's needed a slight hack to get
working ... in /usr/lib/mh/mtstailor, I've added a couple of lines:
sendmail: /usr/sbin/sendmail.wrap
localname: nccnet.co.uk
and where sendmail.wrap is a script that looks like:
#!/bin/sh
case `whoami` in
chris) QMAILUSER=sixie
QMAILHOST=nccnet.co.uk
QMAILNAME='Chris J/#6'
QMAILINJECT=f
cat - | /usr/sbin/sendmail ${1+"$@"}
;;
*) exit 1
esac
which forces MH to send the mail through sendmail (well, qmail's sendmail
wrapper, which understands the QMAIL* environment), and then the mail headers
get re-written accordingly by qmail. Also in my static environment I have
QMAIL* setup so that if sending a mail with mailx, elm, or similar, the same
rewriting gets done (these call /usr/sbin/sendmail directly - which being the
qmail-replacement sendmail means the QMAIL* env gets looked at). Essentially
all the header-rewriting is on the MTA side...I've not config'd anything in
MH/exmh bar that one line in mtstailor. I can't remember the exact problem as
it was about 3 or 4 years ago I created this config... :)
In usenet, posts that have me as chris [at] infinitum.madhouse stay with a To:
header like that - there's an environment variable (which I think various
MUAs and News readers look at) called "REPLYTO" and that just contains my
email address.
infinitum.madhouse is just my local internet-invalid machine name; the
madhouse.force9.co.uk you mention doesn't exist :) It's
infinitum.force9.co.uk (my static IP name) and infinitum.f9.co.uk (which is
the MX entry for my machine), but all of that is secondary as all my incoming
mail, bar a few odds and sods, goes to sixie [at] nccnet.co.uk which is forwarded
to my f9 mailbox - and this is also the address I masquarade outgoing mail
as...which is handy if I move ISP as I don't have to tell people my new
address and resubscribe to mailing lists :)
> FYI:
> My Qmail setup follows the install guide, plus I've just added user
> masquarading as per the FAQ on http://cr.yp.to:
>
> MAILUSER=TheEnglishman
> MAILHOST=ecosse.net
> QMAILINJECT=f
> MAILNAME='Barrie Bremner'
Or "man qmail-inject" :)
>
> Qmail uses mail.ecosse.net as a gateway.
>
I'm assuming that's an entry in smtproutes - otherwise qmail would do a DNS
to grab the MX of the recipient's domain, and send direct there (which is how
I have it set up, bar a couple of awkward domains which I force through f9's
mail hosts) as I like to have the log for the recipient machine - makes
tracing email better (plus you can mail a postmaster saying "oi!" and give
him a log dump).
Chris...
--
Chris Johnson \ "If not for me then, do it for yourself. If not
sixie@nccnet.co.uk \ for then do it for the world." -- Stevie Nicks
www.nccnet.co.uk/~sixie/ ~---------------------------------------+
Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \______
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.