TO configure sendmail, all u need is a file called "sendmail.mc" which is located in etc/mail/ directory. Go through the files, all the configurations that u want are there. After changing then configuration, make sure u do these commands:
1. cd /
2. make -C /etc/mail
this will recompile all the configuration that u have one and then restart the sendmail
3. service sendmail restart