How to filter the outbound mails

Zoki zoki.news
Mon May 17 12:02:11 PDT 2004


Le 01/04/2004 23:36, ??James McDonald?? <james at jamesmcdonald.id.au> a
?crit?:

> Swapana Ghosh wrote:
> 
>> Hi 
>> 
>>    we have few domains which we have migrated from Cobalt server to
>> redhat 9.0 server. We are using the 'sendmail' as MTA.
>> 
>>    From the users under domain, when we are sending the mail, it is
>> reaching to the destination mailbox as <user>@www.domain..
>> 
>>    The inbound mails , i had taken care of through /etc/procmailrc , and
>> converting the 'www at domain' to '@domain'...
>> 
>>    I want, when the users will send the mail the receiver will get the
>> mails from the users as 'user at domain', not as 'user at www.domain'..
>> 
>>    How i will convert the outbound mails for the above result? Can it
>> be possible through 'senmail.cf' file?  Help is really appreciated..
>>  
>> 
> 
> Swapana you might want to look at using the m4 system instead of editing
> sendmail.cf directly. It has all the options you are looking for and an


*** That's also what I would advice. In order to help you on your way, you
should add the following to your mc file :

MASQUERADE_AS(domain)dnl
MASQUERADE_DOMAIN(`your_domain')dnl

-- 
Cheers,
Zoran.

If C lets you shoot yourself in the foot, C++ lets you blow your whole leg
off.
  -- Bjarne Stroustrup




More information about the Linux-users mailing list