On Thu, Nov 16, 2000 at 12:08:43AM +0530, Suresh Ramasubramanian wrote:
> [EMAIL PROTECTED] proclaimed on mutt-users that: 
> 
> > I need a work around for mutt or regular unix mail on the following
> > problem.  When I sent to some addresses they want to verify my domain or
> > they will not accept the message.  My domain is not valid.  How can I send
> > a message and have control of the internet address in the FROM information
> > on an AIX Unix box?
> 
> You can set the envelope sender in older mutts with
> set sendmail="/usr/sbin/sendmail -oi -oem -f [EMAIL PROTECTED]"
> 
> On newer (1.2.x) mutts it is just 'set envelope_from'

Although this kind of solution will do it, you probably want to look
to sendmail to do this for you instead.  It will masquerade both from
headers *and* envelope header, if configured properly: 

    MASQUERADE_AS(`zvolve.com')
    FEATURE(`masquerade_entire_domain')
    FEATURE(`masquerade_envelope')

(The last statement does what you want.)  

The reason you may want to configure sendmail to do "The Right Thing"
instead of Suresh's solution is that Suresh's suggestion will cause an
X-Authentication-Warning header to be included with your message: 

    $ /usr/lib/sendmail -f [EMAIL PROTECTED] [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
    To: [EMAIL PROTECTED]
    Subject: Warnings in Headers

    Look at the headers generated by sendmail
    due to the -f option.
    .
    $ 

Results in this message being delivered: 

    From [EMAIL PROTECTED]  Wed Nov 15 15:09:26 2000
    ...
    Date: Wed, 15 Nov 2000 15:07:23 -0500 (EST)
    Message-Id: <[EMAIL PROTECTED]>
    X-Authentication-Warning: ifr.inside.zvolve.net: garry set sender to 
[EMAIL PROTECTED] using -f
    From: [EMAIL PROTECTED]
    To: [EMAIL PROTECTED]
    Subject: Warnings in Headers

    Look at the headers generated by sendmail
    due to the -f option.

Of course, if you cannot configure your site's mail servers and relays
or you cannot masquerade as a specific domain, then you are forced to
use the -f option (set envelope_from).  

-- 
Garry Williams, Zvolve Systems, Inc., +1 770 551-4504

Reply via email to