Jorge Godoy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to mutt (actually, I'm only reading my mail on it because of that
> little problem...) and I'm enjoying it a lot.
>
> We have an intranet here and there are a few specific machines that are
> the MTAs for the "external" world. I was reading mutt documentation and
> FAQs but I couldn't (yet) find where to configure mutt to use one of these
> machines. Something like "set smtp-host=smtp.domain" would be perfect...
> ;-)
>
> Can anybody tell me what's the secret command for setting this? :-)
I'm behind a firewall, and it took me a while to figure out how to set things
up. I'm not aware of any mutt setting to use an external smtp host -- that'd
be nice, but it's not strictly needed.
I've been using sendmail (as I said, I'm behind a firewall...) on
the local machine (fakename.mydomain.com), but with masquerading
and envelope masquerading (as mydomain.com) turned on, and using
realsmtp.mydomain.com as the MAIL_HUB, LOCAL_RELAY, and SMART_HOST.
This forwards all outgoing mail through realsmtp.mydomain.com, and makes
sure external machines don't try to contact fakename.mydomain.com.
Relevant sendmail.mc excerpts:
define(`MAIL_HUB', `realsmtp.mydomain.com')
define(`LOCAL_RELAY', `realsmtp.mydomain.com')
define(`SMART_HOST', `realsmtp.mydomain.com')
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
MASQUERADE_AS(mydomain.com)
MASQUERADE_DOMAIN(fakename.mydomain.com)
MASQUERADE_DOMAIN(10.0.0.23)
EXPOSED_USER(root)
You _definitely_ want to read the sendmail docs on this, especially the
EXPOSED_USER and masquerade_entire_domain parts. And don't forget to
turn on masquerade_envelope. I forgot. Mail to some sites vanishes
into the ether.
I imagine that other mailers have similar features.
Sumner
--
rage, rage against the dying of the light