[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] different from address for different lists?
Okay, I'll answer all these bits separately...
<quote who="Dave Fitch">
> ok thanks, folder-hook is the one, but...
> I've had to stop postfix setting the From/Sender header (was set
> in the canonical file) but mutt doesn't seem to set those fields.
Indeed it does. :)
> My .muttrc has (ignoring the folder-hook bit for a minute):
> set firstname.lastname@example.org
> my_hdr From: email@example.com
> my_hdr Sender: firstname.lastname@example.org
> my_hdr Reply-To: email@example.com
Sender won't help much, but certainly don't set Reply-To... Leave it to
yourself to set manually when you want replies sent to a specific address.
Example: When we post to the firstname.lastname@example.org list, we usually set our
Reply-To to email@example.com, so conversation continues there, and we don't
have to moderate all the replies to firstname.lastname@example.org (from broken mail
> But trying to send email outside my system gives the error:
That's because your problem is more complicated than it seems. :)
> May 11 09:04:30 spiral postfix/qmgr: BF4791A093:
> from=<email@example.com>, size=550 (queue active)
Here is the problem; the envelope of your email is being set to
firstname.lastname@example.org. The envelope is very different to the From: header (which is
just human readable gumph).
> May 11 09:04:31 spiral postfix/smtp: BF4791A093:
> to=<email@example.com>, relay=mail2.optusnet.com.au[220.127.116.11],
> delay=1, status=bounced (host mail2.optusnet.com.au[18.104.22.168] said:
> 501 5.1.8 <firstname.lastname@example.org>... Domain of sender address email@example.com does
> not exist)
Because spiral is not a recognised host, OptusNet (smartly, for once) drop
your mail on the floor. You are not yet a real machine with a real name...
> Now is it referring to the Sender or From header? (note: "Reply-To:"
> and "From:" get set ok just not "From" (without the colon) and "Sender").
> cos in the example email they're both "firstname.lastname@example.org" and no matter
> what I set in my .muttrc I can't get them set to anything else.
Exactly. The "From (without the colon)" is your envelope address, and must
be set accordingly.
If you have a real world recognisable name, you can use it in the "myorigin"
setting in postfix (which defaults to $myhostname.$mydomain). If you don't,
you can set this to your isp's hostname (leaving your own myhostname and
"However, it's not that simple."
If you do that, all of your mail will be sent out with the envelope set to
your isp's hostname, and with postfix, it means that everything will be
rewritten thus. Think... email@example.com -> firstname.lastname@example.org. Not good.
So, you need to mangle the transport for at least a few addresses. root,
hostmaster, postmaster, etc. Plus any other local accounts. The
documentation at postfix.org is really good. Great, even. First thing to
read is the postfix anatomy, then get into the configuration stuff.
"People you know and trust can still have stupid mail clients." -
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug