Setting up sendmail-base (8.13.7-2) ... adduser: Warning: that home directory does not belong to the user you are currently creating adduser: Warning: that home directory does not belong to the user you are currently creating
--------- IMPORTANT INFORMATION FOR XINETD USERS ---------- The following line will be added to your /etc/inetd.conf file:
#<off># smtp\tstream\ttcp\tnowait\troot\t/usr/sbin/sendmail sendmail -Am -bs
If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. -----------------------------------------------------------
--------- IMPORTANT INFORMATION FOR XINETD USERS ---------- The following line will be added to your /etc/inetd.conf file:
#<off># submission\tstream\ttcp\tnowait\troot\t/usr/sbin/sendmail sendmail -Am -bs
If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. -----------------------------------------------------------
--------- IMPORTANT INFORMATION FOR XINETD USERS ---------- The following line will be added to your /etc/inetd.conf file:
#<off># smtps\tstream\ttcp\tnowait\troot\t/usr/sbin/sendmail sendmail -Am -bs
If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. -----------------------------------------------------------
Setting up sendmail-cf (8.13.7-2) ... Setting up sendmail-bin (8.13.7-2) ...
You are doing a new install, or have erased /etc/mail/sendmail.mc. If you've accidentaly erased /etc/mail/sendmail.mc, check /var/backups.
I am creating a safe, default sendmail.mc for you and you can run sendmailconfig later if you need to change the defaults.
Stopping Mail Transport Agent: sendmail. Updating sendmail environment ... Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Could not open /etc/mail/databases(No such file or directory), creating it. Could not open /etc/mail/sendmail.mc(No such file or directory) Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Turning off Host Status collection Could not open /etc/mail/databases(No such file or directory), creating it. Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases...
Checking filesystem, this may take some time - it will not hang! ... Done.
Checking for installed MDAs... Adding link for newly extant program (mail.local) Adding link for newly extant program (procmail)
sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"
Creating/Updating SSL(for TLS) information Creating /etc/mail/tls/starttls.m4... Creating SSL certificates for sendmail. Generating RSA private key, 2048 bit long modulus ......................................................................+++ ........................................+++ e is 65537 (0x10001)
*** *** *** WARNING *** WARNING *** WARNING *** WARNING *** *** ***
Everything you need to support STARTTLS (encrypted mail transmission and user authentication via certificates) is installed and configured but *IS* not being used.
To enable sendmail to use STARTTLS, you need to: 1) Add this line to /etc/mail/sendmail.mc and optionally to /etc/mail/submit.mc: include(`/etc/mail/tls/starttls.m4')dnl 2) Run sendmailconfig 3) Restart sendmail
Updating /etc/hosts.allow, adding "sendmail: all".
Please edit /etc/hosts.allow and check the rules location to make sure your security measures have not been overridden - it is common to move the sendmail:all line to the *end* of the file, so your more selective rules take precedence. Checking {sendmail,submit}.mc and related databases... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Disabling HOST statistics file(/var/lib/sendmail/host_status). Creating /etc/mail/sendmail.cf... *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
Creating /etc/mail/submit.cf... Informational: confCR_FILE file empty: /etc/mail/relay-domains Warning: confCT_FILE source file not found: /etc/mail/trusted-users it was created Informational: confCT_FILE file empty: /etc/mail/trusted-users Warning: confCW_FILE source file not found: /etc/mail/local-host-names it was created Warning: access_db source file not found: /etc/mail/access it was created Updating /etc/mail/access... Linking /etc/aliases to /etc/mail/aliases Updating /etc/mail/aliases... /etc/mail/aliases: 24 aliases, longest 10 bytes, 234 bytes total
Warning: 3 database(s) sources were not found, (but were created) please investigate.
Warning: These messages were issued while creating sendmail.cf make sure they are benign before starting sendmail!
Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
Starting Mail Transport Agent: sendmail.
Setting up rmail (8.13.7-2) ... Setting up sensible-mda (8.13.7-2) ... Setting up sendmail (8.13.7-2) ...
sed -i.org '/sendmail/{ s/^#<off># //; } ' /etc/inetd.conf
— might not be necessary any more
Then, make sure to move the mailer definitions in sendmail.mc after all FEATURE() definitions.
echo 'include(`/etc/mail/tls/starttls.m4'\'')dnl' | tee -a /etc/mail/sendmail.mc echo 'include(`/etc/mail/tls/starttls.m4'\'')dnl' | tee -a /etc/mail/submit.mc sendmailconfig
debfoster sasl2-bin
/usr/share/sendmail/update_auth sed -i.org '/START=/{ s/^.*$/START=yes/; } ' /etc/default/saslauthd
echo 'include(`/etc/mail/sasl/sasl.m4'\'')dnl' | tee -a /etc/mail/sendmail.mc echo 'include(`/etc/mail/sasl/sasl.m4'\'')dnl' | tee -a /etc/mail/submit.mc sendmailconfig
![]() | |
!! |
$ diff -wu1 /etc/inetd.conf.org /etc/inetd.conf --- /etc/inetd.conf.org 2006-07-17 11:28:41.000000000 +0200 +++ /etc/inetd.conf 2006-07-17 17:44:18.000000000 +0200 @@ -34,5 +34,5 @@ #:MAIL: Mail, news and uucp services. -#<off># smtp stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs -#<off># submission stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs -#<off># smtps stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs +smtp stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs +submission stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs +smtps stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs % sendmailconfig Configure sendmail with the existing /etc/mail/sendmail.conf? [Y] Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Configure sendmail with the existing /etc/mail/sendmail.mc? [Y] Updating sendmail environment ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Could not open /etc/mail/databases(No such file or directory), creating it. Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Checking filesystem, this may take some time - it will not hang! ... Done. Checking for installed MDAs... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating/Updating SSL(for TLS) information Creating /etc/mail/tls/starttls.m4... You already have sendmail certificates % /usr/share/sendmail/update_auth Creating /etc/mail/sasl/sasl.m4... Ah, you're setup with SASL2 ! Unfortunately, there is no automagic way to migrate to /etc/sasldb2 :( You'll want to make sure /etc/default/saslauthd is setup to start, and has at least MECHANISMS="pam" ! If you find out what more is needed, please let me know! To enable sendmail to use SASLS, you need to: 1) Add this line to /etc/mail/sendmail.mc and optionally to /etc/mail/submit.mc: include(`/etc/mail/sasl/sasl.m4')dnl 2) Run sendmailconfig 3) Restart sendmail SASL2 is now minimally setup, there are a few ways to handle users: *) Allow only shell users (default) You're all set, nothing else to do ! *) Allow users other than shell Add users via /usr/sbin/saslpasswd2 and make sure that the realm you used matches what your users specify in their netscape/outlook/mutt/etc profiles. If you need to authorize sendmail as a sender, also update /etc/mail/default-auth-info and rerun /usr/share/sendmail/update_auth. $ cat /etc/mail/default-auth-info sendmail sendmail sendmailpwd cxmr.dyndns.org % sendmailconfig Configure sendmail with the existing /etc/mail/sendmail.conf? [Y] Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Configure sendmail with the existing /etc/mail/sendmail.mc? [Y] Updating sendmail environment ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Could not open /etc/mail/databases(No such file or directory), creating it. Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Checking filesystem, this may take some time - it will not hang! ... Done. Checking for installed MDAs... Creating /etc/mail/sasl/sasl.m4... Ah, you're setup with SASL2 ! Unfortunately, there is no automagic way to migrate to /etc/sasldb2 :( You'll want to make sure /etc/default/saslauthd is setup to start, and has at least MECHANISMS="pam" ! If you find out what more is needed, please let me know! Creating/Updating SSL(for TLS) information Creating /etc/mail/tls/starttls.m4... You already have sendmail certificates Checking {sendmail,submit}.mc and related databases... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Writing configuration to /etc/mail/sendmail.conf. Writing /etc/cron.d/sendmail. Disabling HOST statistics file(/var/lib/sendmail/host_status). Creating /etc/mail/sendmail.cf... Creating /etc/mail/submit.cf... Informational: confCR_FILE file empty: /etc/mail/relay-domains Informational: confCT_FILE file empty: /etc/mail/trusted-users Updating /etc/mail/access... Updating /etc/mail/aliases... /etc/mail/aliases: 24 aliases, longest 10 bytes, 234 bytes total Reload the running sendmail now with the new configuration? [Y] Reloading sendmail ...
documented on: 2006.07.17