Sendmail Configuration

Configuration of sendmail including sendmail.cf, sendmail.cw (aka local-host-names), and relay-domains, virtusertable, access
Configuring sendmail.cf
  1. Open sendmail.cf
  2. Search for procmail and make sure the path to procmail is correct
  3. Save the sendmail.cf file
Configuring sendmail.cw
  1. Open sendmail.cf
  2. Search for sendmail.cw, if thats not found search for local-host-names to determine the correct file name
  3. Uncomment (remove #) from this line if its commented out
  4. *Note* if you can't find either then sendmail.cf was most likely not configured to support this feature
  5. Open sendmail.cw (or local-host-names) (usually found in /etc/mail)
  6. Place the ip or domain name of each machine that this mail server will be recieving mail for in this file
  7. Save sendmail.cw
Configuring relay-domains
  1. Open sendmail.cf
  2. Search for relay-domains
  3. *Note* if you can't find this line then sendmail.cf was most likely not configured to support this feature
  4. Open relay-domains (usually found in /etc/mail)
  5. Enter the ip address for each ip that will be allowed to use this mail server to relay outgoing mail
  6. Save relay-domains
Sendmail is a "sending/recieving" email server, sendmail is not the program or problem if you cannot log onto the machine and check your email via imap or pop3
This will be contained in the Sendmail FAQ Configure virtusertable
  1. Open sendmail.cf
  2. Search for virtusertable
  3. *Note* if you can't find this line then sendmail.cf was most likely not configured to support this feature
  4. open virtusertable (usually found in /etc/mail)
  5. add the email address (ie carl@red-dragon.com) then tab (the key not the word) then the username of the person recieving the emails (ie bigman)
  6. repeat the previous step for each email account you want mapped to a specific user
  7. Save virtusertable
  8. run makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
Configure access
  1. Open sendmail.cf
  2. Search for access
  3. *Note* if you can't find this line then sendmail.cf was most likely not configured to support this feature
  4. Enter the email address or domain of mail you do not wish to recieve (ie carl@red-dragon.com) then tab (the key not the word) then Error "550 spam email not accepted"
  5. Repeat the previous step for each email address or domain you do not wish to recieve email from
  6. Save access
When your done configuring sendmail start it or restart it.


Created by Red Dragon for Red Dragon Enterprises™.
Red Dragon Enterprises™ © Dec 2001. All rights reserved.