euglug.org

[Eug-lug] .muttrc hack…

작성자

카테고리:



T. Joseph CARTERWed Dec 21 18:08:36 PST 2005

On Wed, Dec 21, 2005 at 03:28:55PM -0800, LinuxRocks! wrote:
> Originally, I did this:
> set hostname="rocksolidnetworks.com"    # my DNS domain
> and it worked (but made the domainname UPPERcase, in email...) for some 
> reason, it didnt work the next day... a few days later (today), I found 
> this:
> set nouse_domain                # don't qualify local addresses with $domain
> (and I removed the #), now it works, I just found another thing that 
> might have helped...
> 
> #set reverse_name               # use my address as it appears in the message
>                                 # i am replying to
> 
> But whatever... as long as it works...

Yeah, but hostname isn't the best thing really--hostname exists for you to
choose which of your system's hostnames to use when sending mail, but it's
not quite the right way to to set a return address.  The way I did it
allows for multiple usernames as well.  My university address is
tcarter3 at uoregon, not knghtbrd at uoregon, for example.  Also, if you deliver
your own mail, some servers will reject mail claiming to be from a
hostname that it doesn't.  The use of my_hdr makes sure that the address
is properly set in the message, and use_from overrides what your local MTA
thinks your from address should be.

-- 
"We are what we repeatedly do.  Excellence, therefore, is not an act,
but a habit."
	-- Aristotle