[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sendmail
Subject:    Re: Masquerade for external mail but not internal mail
From:       "Andrzej Adam Filip" <anfi () priv ! onet ! pl> ( http://anfi ! homeunix ! net/ )
Date:       2004-10-24 12:18:00
Message-ID: 1041024133124.~INN-VFBa00150.comp-news () dl ! ac ! uk
[Download RAW message or body]

Ivan Carey wrote:
> How may I setup Masquerading of mail sent to an external address but not to
> an internal address.
> 
> If I use MASQUERADE_AS(`host.domain') then all mail ends up as
> user@host.domain.
> If my internal mail is usera@internal.domain.com then I need to be able to
> keep this address when sending to userb@internal.domain.com this helps when
> user b clicks the reply button otherwise user b will send to
> usera@host.domain.
> 
> In other words I only wish to MASQUERADE_AS(`host.domain') when mailing to
> an external address and not when mailing to an internal address.

Have you considered the following approach?

Masquerade every message but make the server deliver messages addressed to 
user@host.domain to usera@internal.domain.com
[ you can use virtusertable for non local email domains]

-- 
Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
Our sires' age was worse that our grandsires'.
We their sons are more worthless than they:
so in our turn we shall give the world a progeny yet more corrupt.
	-- Quintus Horatius Flaccus (Horace)



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic