Re: exim vs. mutt: envelope/from/sender ???

2003-02-17 Thread Michael D. Schleif

Matthew Daubenspeck wrote:
> 
> On Mon, Feb 17, 2003 at 04:21:47PM -0600, Michael D. Schleif wrote:


> > I want to be able to change between email addresses from within mutt.
> > How do I do that?
> >
> > Initially, I'd configured exim for this:
> >   local_domains = localhost:Bragi.private.network
> >
> > Now, I have this:
> >   local_domains = localhost:private.network
> >
> > For rewrites, I've tried several things; but, this is current:
> >
> > *@private.network ${lookup{$1}lsearch{/etc/email-addresses}\
> > {$value}fail} frFs
> >
> > *@Bragi.private.network   ${lookup{$1}lsearch{/etc/email-addresses}\
> > {$value}fail} frFs
> >
> > In ~/.muttrc, I have these weird variables, _none_ of which make it into
> > received email:
> >
> >   set envelope_from=yes
> >   set from="Michael Zchleif <[EMAIL PROTECTED]>"
> >   set realname="Michael Zchleif <[EMAIL PROTECTED]>"

> I already do a similar thing, but I forget about Exim rewriting
> everything. I use the following in my .muttrc:
> 
> my_hdr Reply-To: [EMAIL PROTECTED]
> my_hdr From: Matthew Daubenspeck <[EMAIL PROTECTED]>
> set use_from

Yes, without changing my exim.conf, this did the trick.  In fact, I set
realname="Michael D. Schleif" then both From: and Reply-To: are simply
email addresses, and mutt puts the pieces together.  I think the missing
link for me was use_from . . .

Thank you, all of you, for your participation!

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: exim vs. mutt: envelope/from/sender ???

2003-02-17 Thread Derrick 'dman' Hudson
On Mon, Feb 17, 2003 at 04:21:47PM -0600, Michael D. Schleif wrote:

[mutt + exim and invalid envelope sender]

| Initially, I'd configured exim for this:
|   local_domains = localhost:Bragi.private.network
| 
| Now, I have this:
|   local_domains = localhost:private.network
| 
| For rewrites, I've tried several things; but, this is current:
| 
| *@private.network ${lookup{$1}lsearch{/etc/email-addresses}\
| {$value}fail} frFs
| 
| *@Bragi.private.network   ${lookup{$1}lsearch{/etc/email-addresses}\
| {$value}fail} frFs

What does
$ hostname --fqdn
output?  Most (all?) MTAs with a sendmail-style interface compute the
sender address by combining the username with the hostname.  The
hostname is determined by gethostbyaddr( "127.0.0.1" ).  Often the nss
libraries on the system look for the 127.0.0.1 entry in /etc/hosts and
returns the name given there.

For exim's rewrite to work, naturally the pattern must match the
address you want to rewrite.  Change the rewrite rule so that the
pattern matches.  (case matters too!)  Secondly, the localpart must be
a key in the lookup file.  Is your username, with proper case as well,
a key in /etc/email-addresses?

| In ~/.muttrc, I have these weird variables, _none_ of which make it into
| received email:
| 
|   set envelope_from=yes

This will only work if the MTA on the system accepts "-f" from users.
Usually the MTA doesn't trust local users to that extent,  computing
the return address on its own.  (think of a multi-user system where
the users may try to abuse the resources and hide their identity)

|   set from="Michael Zchleif <[EMAIL PROTECTED]>"
|   set realname="Michael Zchleif <[EMAIL PROTECTED]>"

This, if $use_from is set, sets the Header From:.


HTH,
-D

-- 
Commit to the Lord whatever you do,
and your plans will succeed.
Proverbs 16:3
 
http://dman.ddts.net/~dman/



msg31374/pgp0.pgp
Description: PGP signature


Re: exim vs. mutt: envelope/from/sender ???

2003-02-17 Thread Matthew Weier O'Phinney
-- Michael D. Schleif <[EMAIL PROTECTED]> wrote
(on Monday, 17 February 2003, 04:21 PM -0600):
> 
> As some of you know, I am transitioning from netscrape to mutt mua's.
> 
> I am having some mail sending issues.
> 
> The host on which the new mail system resides is bragi.private.network. 
> The default exim and mutt installations passed this name onto the
> internet, whereupon intelligent mail servers rejected my mail, because
> private.network. is an unusable domain.
> 
> I own the domain: helices.org , which is hosted elsewhere.  I also have
> several other email addresses, all valid and I can receive mail using
> any of them.  This particular network sits behind attbi.com cablemodem,
> and it is not practical to host a valid public domain here.
> 
> I want to be able to change between email addresses from within mutt. 
> How do I do that?
> 
> Initially, I'd configured exim for this:

I don't use exim -- so I can't help you here.

> In ~/.muttrc, I have these weird variables, _none_ of which make it into
> received email:
> 
>   set envelope_from=yes
>   set from="Michael Zchleif <[EMAIL PROTECTED]>"
>   set realname="Michael Zchleif <[EMAIL PROTECTED]>"

I have:
set use_from
set from=myaddress@mydomain
set realname="My Name Goes Here"
set alternates=(address1@domain1|address2@domain1|address3@domain2)
set envelope_from
set reverse_name

"from" should just be your address; realname should be the realname --
mutt makes it into "realname ". "use_from" (and "envelope_from",
IIRC) *MUST* be on for mutt to write the From header. "reverse_from"
will let mutt use the "To:" addressed in a mail be the "From:" address
when you reply; for this to work, you have to define a list of addresses
that you use in "alternates" (it's a regexp).

NONE of this will work if your MTA isn't set up to allow you to write
your own From header... so make sure that exim is set up correctly.

-- 
Matthew Weier O'Phinney
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: exim vs. mutt: envelope/from/sender ???

2003-02-17 Thread Matthew Daubenspeck
On Mon, Feb 17, 2003 at 04:21:47PM -0600, Michael D. Schleif wrote:
> 
> As some of you know, I am transitioning from netscrape to mutt mua's.
> 
> I am having some mail sending issues.
> 
> The host on which the new mail system resides is bragi.private.network. 
> The default exim and mutt installations passed this name onto the
> internet, whereupon intelligent mail servers rejected my mail, because
> private.network. is an unusable domain.
> 
> I own the domain: helices.org , which is hosted elsewhere.  I also have
> several other email addresses, all valid and I can receive mail using
> any of them.  This particular network sits behind attbi.com cablemodem,
> and it is not practical to host a valid public domain here.
> 
> I want to be able to change between email addresses from within mutt. 
> How do I do that?
> 
> Initially, I'd configured exim for this:
>   local_domains = localhost:Bragi.private.network
> 
> Now, I have this:
>   local_domains = localhost:private.network
> 
> For rewrites, I've tried several things; but, this is current:
> 
> *@private.network ${lookup{$1}lsearch{/etc/email-addresses}\
> {$value}fail} frFs
> 
> *@Bragi.private.network   ${lookup{$1}lsearch{/etc/email-addresses}\
> {$value}fail} frFs
> 
> In ~/.muttrc, I have these weird variables, _none_ of which make it into
> received email:
> 
>   set envelope_from=yes
>   set from="Michael Zchleif <[EMAIL PROTECTED]>"
>   set realname="Michael Zchleif <[EMAIL PROTECTED]>"
> 
> What do you think?

I already do a similar thing, but I forget about Exim rewriting
everything. I use the following in my .muttrc:

my_hdr Reply-To: [EMAIL PROTECTED]
my_hdr From: Matthew Daubenspeck <[EMAIL PROTECTED]>
set use_from

That should take care of it all.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




exim vs. mutt: envelope/from/sender ???

2003-02-17 Thread Michael D. Schleif

As some of you know, I am transitioning from netscrape to mutt mua's.

I am having some mail sending issues.

The host on which the new mail system resides is bragi.private.network. 
The default exim and mutt installations passed this name onto the
internet, whereupon intelligent mail servers rejected my mail, because
private.network. is an unusable domain.

I own the domain: helices.org , which is hosted elsewhere.  I also have
several other email addresses, all valid and I can receive mail using
any of them.  This particular network sits behind attbi.com cablemodem,
and it is not practical to host a valid public domain here.

I want to be able to change between email addresses from within mutt. 
How do I do that?

Initially, I'd configured exim for this:
local_domains = localhost:Bragi.private.network

Now, I have this:
local_domains = localhost:private.network

For rewrites, I've tried several things; but, this is current:

*@private.network   ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} frFs

*@Bragi.private.network ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} frFs

In ~/.muttrc, I have these weird variables, _none_ of which make it into
received email:

set envelope_from=yes
set from="Michael Zchleif <[EMAIL PROTECTED]>"
set realname="Michael Zchleif <[EMAIL PROTECTED]>"

What do you think?

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]