Hi max,
If your sendmail configuration is pretty standard you will probably have little trouble doing this.
Take a copy of /etc/sendmail.cf and put it somewhere safe. Don't skip this step.
Edit sendmail.cf and look for the entry to specify the mail forwarding host. This is the mail host on your network that understands how to get to the internet. If you have a pop3 server then that is probably the host name you want to specify here.
Go careful -- the sendmail.cf file has made stronger men than you or I sob their hearts out.
You'll notice that I've been deliberately vague. I haven't said 'look for the line contain "kjshdj" and change it to "oisdu"'; that's because sendmail.cf files can be very different and UNIX vendors have varying ideas of what a standard .cf file should look like.
Read the comments in the .cf file, they are sometimes very helpful.
Recompile the .cf file, run 'man sendmail | pg' for instructions on how to do that on your machine.
Restart the sendmail service or reboot the machine.
Test your configuration:
First with local mail.
[tt]mailx -s'Local Test' root <<!
Just a test of root mail.
!
[/tt]
Then with remote mail.
[tt]mailx -s'Remote Test' michael.j.lacey@ntlworld.com <<!
Just a test of remote mail.
!
[/tt]
If it all goes wrong -- remember that you can restore the saved copy of the .cf file (remember I said not to skip that bit?), recompile the .cf file and restart mail.
Regards,
Mike
Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.