Quoting Rod Pike <[EMAIL PROTECTED]>, who wrote:
> > What part is not working? I thought you said originally that you
> > wanted to configure some machine (the workstation or gateway?) to
> > forward to one of a set of smtp servers, and to reconfigure which one
> > on the fly.
> 
> Mail is currently being sent OK but my mail gateway is configured to
> masquerade using my ISP's domain.  If mail servers typically don't
> reject mail that is sent through them from another domain then perhaps I
> don't have to use different servers for sending mail from me@oneplace
> and me@anotherplace.

I'm not sure what exactly you mean by masquerade.

> If that is the case then I still have the problem of how to configure
> mutt in conjunction with sendmail to allow for multiple from address.  I
> assume that is what the from_envelope setting is for but all the emails
> that I currently send that go
> > 
> > I'm kind of puzzled, I don't know what your network setup is, or what
> > you're trying to achieve, so I can't really make any suggestions.
> 
> Maybe I've made this more complicated than I should.  What I am trying
> to do is be able to send mail with different return addresses ie.
> [EMAIL PROTECTED] and [EMAIL PROTECTED]  Whatever I do, my email always has a
> return address of [EMAIL PROTECTED]

I think you're confusing the envelope address and the from field.

If you'r at work, and you want to send mail to people so the from field
says "[EMAIL PROTECTED]", just write the address you want to be from in
the from field while you're editing the message. Write whatever you
want in there. When people get your mail it will look as if it's from
that address, and their replies will go there. One problem solved?
I do this all the time when I send somebody mail, but I want their
replies to go to my home address.

--

If this doesn't work, there's something to be fixed in the way
the mail is getting delivered from you machine, through the gateway,
into the world.

Usually an ISP relays any mail it's asked to if the machine asking
it is inside that ISPs domain (as determined by IP address). If a
machine outside it's domain connects to it, then it only accepts
mail, it doesn't relay any. At least, it shouldn't. So, your ISP
should relay mail no matter what you type into the from field.

However, if at the far end there's a delivery problem, the error
message has to get back to you. This is NOT done with the from field,
it's done with the envelope from, an address not stored in the
message but associated with it. That envelope from address
is associated with the message by your workstations MTA. When your gateway
is masquerading, what it probably should do is when it gets mail with
an envelope from of "[EMAIL PROTECTED]", with an envelope
to of "[EMAIL PROTECTED]", it should relay that message to your
ISPs server, after rewriting the envelope from address to "[EMAIL PROTECTED]".

Your ISP may refuse to relay mail if the envelope from points somewhere
far away from the machine that is actually transferring mail. This
shouldn't be a problem, sine you don't need it to.

That envelope address is where you'll get a bounce if, for example,
the user you sent mail to doesn't actually exist. This should be fine,
the user at the far end will never see this address, only the one in
the from field. Of course, if it bounces, the bounce will come
back to where you wrote it from, not the address you wrote into the
"from" field of the message.

I'm not convinced this will make things any clearer, but I tried.

Sam

-- 
Sam Roberts <[EMAIL PROTECTED]>

Reply via email to