Sendmail Configuration |
Configuration of sendmail including sendmail.cf, sendmail.cw (aka local-host-names), and relay-domains, virtusertable, access |
Configuring sendmail.cf
- Open sendmail.cf
- Search for procmail and make sure the path to procmail is correct
- Save the sendmail.cf file
Configuring sendmail.cw
- Open sendmail.cf
- Search for sendmail.cw, if thats not found search for local-host-names to determine the correct file name
- Uncomment (remove #) from this line if its commented out
- *Note* if you can't find either then sendmail.cf was most likely not configured to support this feature
- Open sendmail.cw (or local-host-names) (usually found in /etc/mail)
- Place the ip or domain name of each machine that this mail server will be recieving mail for in this file
- Save sendmail.cw
Configuring relay-domains
- Open sendmail.cf
- Search for relay-domains
- *Note* if you can't find this line then sendmail.cf was most likely not configured to support this feature
- Open relay-domains (usually found in /etc/mail)
- Enter the ip address for each ip that will be allowed to use this mail server to relay outgoing mail
- 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
- Open sendmail.cf
- Search for virtusertable
- *Note* if you can't find this line then sendmail.cf was most likely not configured to support this feature
- open virtusertable (usually found in /etc/mail)
- 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)
- repeat the previous step for each email account you want mapped to a specific user
- Save virtusertable
- run makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
Configure access
- Open sendmail.cf
- Search for access
- *Note* if you can't find this line then sendmail.cf was most likely not configured to support this feature
- 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"
- Repeat the previous step for each email address or domain you do not wish to recieve email from
- Save access
When your done configuring sendmail start it or restart it.
|
|