Less of your spam thanks wrote:
> Greg Phillips wrote:
>
>> In your sendmail.mc file put a masquerade line in:
>>
>> MASQUERADE_AS(`ourcompany.com')dnl
>>
>> After that re-generate your sendmail.cf file, put it in /etc/mail and
>> restart sendmail (# /etc/rc.d/rc.sendmail restart). That will make
>> whoever@whatever.ourcompany.com be changed to whoever@ourcompany.com.
Okay, so I did this:
1. cd /usr/share/sendmail/cf/cf
2. cp sendmail-slackware.mc newsendmailconf.mc
3. [edited newsendmailconf.mc adding the MASQUERADE_AS line]
4. m4 newsendmailconf.mc > /etc/mail/sendmail.cf
5. [rebooted rather than restarting sendmail, just to be on the safe
side

]
Now my /etc/sendmail.cf has a new line in:
DMourcompany.com
However, I'm still having the same problem. Outbound mail is still
stamped '@hostname.ourcompany.com' rather than just '@ourcompany.com'.
Can anyone offer any advice on how to fix it?
Cheers