InterviewSolution
| 1. |
You Have Been Asked To Create A Sendmail Configuration That Sends All Local Mail To A Mail Hub, While Directly Delivering Mail Addressed To External Systems. |
|
Answer» Create a sendmail configuration CONTAINING the MAIL_HUB define to identify the mail relay host for LOCAL mail. Use the LOCAL_USER command to exempt the root user's mail from relaying. dnl Define a relay SERVER for local mail define(`MAIL_HUB', `smtp.test.com') dnl USERS whose mail is not passed to the mail hub LOCAL_USER(root) Rebuild and reinstall sendmail.cf, and then restart sendmail. Create a sendmail configuration containing the MAIL_HUB define to identify the mail relay host for local mail. Use the LOCAL_USER command to exempt the root user's mail from relaying. dnl Define a relay server for local mail define(`MAIL_HUB', `smtp.test.com') dnl Users whose mail is not passed to the mail hub LOCAL_USER(root) Rebuild and reinstall sendmail.cf, and then restart sendmail. |
|