SSBN: You might want to look into your /etc/mail directory
There's a file called sendmail.mc in there. Configuring this file is really not as hard at it seems
After you have configured this file, just run
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
Now, also in this /etc/mail dir are some other files.
edit access and add your network in there (So you can mail from your own network). Its easy: a part of your IP network is sufficient: for example if your network is 192.168.1.X just type 192.168.1
Then add the permission after it: RELAY and all clients with that in the IP will be able to use that mailserver.
If you are done,just type: makemap hash access < access
Then edit the generics-domains, add your MX domain name there.
Next the local-host-names. Type ALL MX domains you will serve locally.
The next is relay_domains, again, add all the domains you will relay for.. (IP-addresses are also allowed).
Last one is virtusertable. You can add some virtual users here, for example:
the_sendmail_guru@yourdomain.com and of course, you will mean yourself, having a local mailbox with your username: yourname
Just add:
the_network_guru@yourdomain.com yourname
It also lets you put in external addresses:
myfriend@yourdomain.com myfriends_emailaddress@hisprovider.com
When done, do the makemap trick again with this file. Now restart sendmail: /etc/rc.d/init.d/sendmail restart
If you want domain-name masquerading (i.e. your servername is myserver.myinternalname.com) and you want this to be replaced by your external domainname (inb this example: yourdomain.com), just edit the /etc/mail/sendmail.mc and add the following rules (place them right after the sentence: FEATURE(`blacklist_recipients')dnl
(This is at the end of the FEATURES section)
FEATURE(`masquerade_envelope')
MASQUERADE_DOMAIN('myserver.myinternalname.com')
MASQUERADE_AS(mydomain.com)
remember to run the m4 command again, and restart sendmail.
A lot can be found at :
http://www.sendmail.org/m4/readme.html
m4 made sendmail more easy.. Also, IMHO webmin is not the tool for configuring sendmail: it didn't do the trick for me.... it messed my entire config...
Good Luck!