[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 15:48:00
Message-ID: 104102417012.~INN-AGBa00150.comp-news () dl ! ac ! uk
[Download RAW message or body]
Andrzej Filip wrote:
> 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]
>
Have you added host.domain to $={VirtHost} class?
Is the domain reported by the command below?
echo '$={VirtHost}' | sendmail -bt
In your *.mc file add:
LOCAL_CONFIG
F{VirtHost}/etc/mail/virtual-domains
In /etc/mail/virtual-domains file write:
host.domain
--
Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
Excess is excrement. Excrement retained in the body is a poison.
-- Odo in "The Dispossessed" by Ursula Le Guin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic