Debian Sarge Sendmail Build page 1 of 2
Baseline for Mail service
We use sendmail for customer mail server installs. Upon request this could be whatever
the customer would like, at which time the install should be followed per the packages
documentation, and any deviation from the documentation should be noted.
1. The sendmail packages should be selected out of dselect.
2. This will require certain other packages, sensible-mta, sasl2, sendmail.cf, and
other mail related utilities, which will fulfill the sendmail servers requirements.
Make sure that exim, and any mention of exim is marked for deletion and or
purge.
3. Select ipopd, uw-imap, and uw-mailutils. This is the pop3 and imap services.
4. Install the selected packages
5. When prompted, choose yes to the plaintext passwords, and yes to install c-client
without maildir support
6. Exit dselect.
7. create a file under /etc/mail/sasl and /usr/lib/sasl2 that is named Sendmail.conf
containing the following:
pwcheck_method: saslauthd
8. Edit the /etc/mail/sendmail.mc file and make sure it has the following directives:
FEATURE(`use_cw_file')
FEATURE(`use_ct_file')
FEATURE(`smrsh)
FEATURE(`access_db')
FEATURE(`virtusertable', `hash o /etc/mail/virusertable')
TRUST_AUTH_MECH(`LOGIN PLAIN')
define(`confAUTH_MECHANSMS', `LOGIN PLAIN')
MAILER(local)
MAILER(smtp)
9. With c-client, the imap server, the author of the software is not fond of plain-text
passwords, but since this is what the majority of all people use, and what all mail
clients support, we usually enable plain-text by default. On the customers
request, we will disable plain-text passwords, but note that squirrelmail and other
web mail packages probably will not work.
Edit the /etc/c-client.cf file and have the following:
I accept the risk
set disable-plaintext 0
10. cd to the /etc/mail directory, and type:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
this will create the sendmail.cf file. Also you can type make, but usually this is a
safer way to create the cf file, since you know which mc file it is using.
11. To update the virtusertable and the access db files to do this type:
makemap hash virtusertable