On 2004-06-14, Less of your spam thanks <nospam@pipex.com> 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.
> I've done a 'slocate -u' to update my file list, and 'slocate
> sendmail.mc' but I don't appear to have this file, so I'm not sure how
> to rebuild my sendmail.conf. Is hunting down a copy of sendmail.mc my
> best bet then trying what you've suggested, or is it possible just to
> modify my sendmail.conf directly?
If your running slackware 9 and also the default sendmail config out of it
then use:
/usr/share/sendmail/cf/cf/sendmail-slackware.mc
This is the default sendmail configuration for slackware. You can change
to that directory and edit the file directly and then use make to generate
your cf file.
# cd /usr/share/sendmail/cf/cf
# vim sendmail-slackware.mc
# make sendmail-slackware.cf
# cp sendmail-slackware.cf /etc/mail/sendmail.cf
You can replace vim with your favorite editor. Since it seems your new to
sendmail configuration I would like to point out the quoting above in the
mc directive. That is a back-quote followed by a normal quote `'. It will
make a difference
Again, hope this helps.
--
Sincerely
Greg Phillips
greg at desynched dot net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----