All pastes #510165 Raw Edit

etronik

public text v1 · immutable
·published 2007-05-25 19:46 UTC
rendered paste body
#
#       * You can also run the queue runner from cron:
#         - listener and queue runner..DAEMON_MODE="....."..QUEUE_MODE="cron"
#         - queue runner only..........DAEMON_MODE="none"...QUEUE_MODE="cron"
#
#       * _PARMS entries herein are shown in precedence order, any later _PARMS
#         field will, if applicable, override any previous _PARMS fields.
#
#       * Values *MUST* be surrounded with double quotes ("), single quotes
#         will *NOT* work !
#
#------------------------------------------------------------------------------
#                               SMTP Listener Configuration
#
# DAEMON_NETMODE="Static";  Keyword  SMTP network mode
#       static:  Do not monitor any network interfaces for changes
#       dynamic: Monitor one or more interfaces for changes
#
DAEMON_NETMODE="Static";
#
# DAEMON_NETIF="lo";  string SMTP interface(s)
#       This parameter defines the network interface(s) that the daemon
#       will monitor for status changes (via ppp, dhcp, ifup/down hooks).
#
# NOTES:
#       1) Only list more than one interfaces if they only used for fallback,
#          otherwise the daemon will wind up ping-ponging between interfaces.
#       2) Do not use 'lo' unless your daemon only listens on the localhost.
#
DAEMON_NETIF="lo";
#
# DAEMON_MODE="Daemon";  Keyword        SMTP listener
#       daemon:  Run as standalone daemon
#       inetd:   Run from inet supervisor (forks for each mail)
#       none:    No listener (ie, nullclient/smarthost)
#
# NOTE: If you choose "none", mail will build up in the MSP queues
#       and you will not receive any mail from external sites.
#
DAEMON_MODE="Daemon";
#
# DAEMON_PARMS="";  String  Listener parms
#       Any parameters here will be ignored when run from cron.
#       Note that {QUEUE,MISC,CRON}_PARMS, if applicable, will override
#       anything declared herein.
#
DAEMON_PARMS="";
#
# DAEMON_HOSTSTATS="No";  Boolean       Listener stats
#       This parameter determines whether or not host stats are collected
#       and available for the `hoststat` command to display.    There will
#       be a (minor) performance hit, as files will be created/updated for each
#       sendmail delivery attempt.      The files are fixed in size, and small,
#       but there can be many of them.
#
DAEMON_HOSTSTATS="No";
#
# DAEMON_MAILSTATS="No";  Boolean       Listener stats
#       This parameter determines whether or not mailer stats are collected
#       and available for the `mailstats` command to display.  There will
#       be a (minor) performance hit, as this file will be updated for each
#       item coming into, or out of, sendmail.  The file is fixed in size,
#       and small, so there's no need to rotate it.
#
DAEMON_MAILSTATS="No";
#
#------------------------------------------------------------------------------
#                               SMTP MTA Queue Runner Configuration
#
# QUEUE_MODE="${DAEMON_MODE}";  Keyword  SMTP queue runner
#       daemon:  Run as standalone daemon
#       cron:    Run from crontab
#       none:    No queue runner (ie, nullclient/smarthost)
#
QUEUE_MODE="${DAEMON_MODE}";
#
# QUEUE_INTERVAL="10m";  Timespec (digits+w|d|h|m|s)
#       Interval at which to run the MTA queues.  What interval should you use?
#       The amount of time that is acceptable before retrying delivery on
#       mail that couldn't be delivered in one run, or how long an item can
#       set in the queue before having the first delivery attempt done.
#
# NOTE: If you leave this field blank, You get *NO* queue runners !!!
#
QUEUE_INTERVAL="10m";
#
# QUEUE_PARMS="";  String  queue parameters
#       Any parameters here are also used when run from cron.
#       Note that MISC_PARMS and CRON_PARMS, if applicable, will override
#       anything declared herein.
#
QUEUE_PARMS="";
#
#------------------------------------------------------------------------------
#                               SMTP - MSP Queue Runner Configuration
#
# MSP_MODE="Cron";  Keyword  MSP queue runner mode
#       daemon:  Run as standalone daemon
#       cron:    Run from crontab
#       none:    No queue runner (ie, nullclient/smarthost)
#
# NOTE:  If QUEUE_MODE="cron" & MSP_MODE="none", the MSP queue will
#                be run as part of the MTA queue running process.
#
MSP_MODE="Cron";
#
# MSP_INTERVAL="20m";  Timespec (digits+w|d|h|m|s)
#       Interval at which to run the MSP queues.  What interval should you use?
#       The amount of time that is acceptable before retrying delivery on
#       mail that couldn't be accepted by the MTA, and was therefore left
#       in the message submission queue.  The MTA shouldn't be down that often
#       so this can be larger than QUEUE_INTERVAL.
#
# NOTE: If you leave this field blank, The MSP queue will *NOT* be run !!!
#
MSP_INTERVAL="20m";
#
# MSP_PARMS="";  String  queue parameters
#       Any parameters here are also used when run from cron.
#       Note that MISC_PARMS and CRON_PARMS, if applicable, will override
#       anything declared herein.
#
MSP_PARMS="";
#
# MSP_MAILSTATS="${DAEMON_MAILSTATS}";  Boolean Listener stats
#       This parameter determines whether or not mailer stats are collected
#       and available for the `mailstats` command to display.  There will
#       be a (minor) performance hit, as this file will be updated for each
#       item coming into, or out of, sendmail.  The file is fixed in size,
#       and small, so there's no need to rotate it.
#
MSP_MAILSTATS="${DAEMON_MAILSTATS}";
#
#------------------------------------------------------------------------------
#                               Miscellaneous Confguration
#
# MISC_PARMS="";  String  miscellaneous parameters
#       Miscellaneous parameters - applied to any sendmail invocation.
#       Any parameters here are also used when run from cron.
#       Applied after {DAEMON,QUEUE}_PARMS, and can therefore override them
#       if need be (in which case why did use them?)
#       Note that CRON_PARMS, if applicable, will override anything
#       declared herein.
#
#       Here is where'd you setup and debugging or special parms that you
#       want shared betwixt the possibly separate listener/queue-runner
#       processes.
#
MISC_PARMS="";
#
#------------------------------------------------------------------------------
#                               Cron Job Configuration
#
# CRON_MAILTO="root";  String  cronjob output
#       Recipient of *rare* cronjob output.  Some cronjobs will be running
#       under user `mail`, so any problems encountered would probably be missed
#       so define a user who actually (hopefully) checks email now and again.
#
CRON_MAILTO="root";
#
# CRON_PARMS="";  String  cron specific parmeters
#       Cron parameters - applied *only* when sendmail queue running is done
#       via a cronjob. Applied after QUEUE_PARMS and MISC_PARMS, and can
#       therefore override them if need be.
#
CRON_PARMS="";
#
#------------------------------------------------------------------------------
#                               Other stuff
# LOG_CMDS="No"; Binary command logging flag
#       Will cause syslog entries for many of the sendmail related commands
#       like runq, mailq, etc - you'll also see cron jobs (if enabled).
#
LOG_CMDS="No";
#
# HANDS_OFF="No"; Binary  Do *NOT* touch the configuration
#       Set this *ONLY* if you are going to be fully responsible for the entire
#       setup of sendmail - the directories, permissions, databases, etc.  With
#       this variable set to "Yes", nothing will be done for you during updates.
#
#       In other words, "The blood be upon your hands" if you set this...
#       My ability to help with problems will be greatly reduced !
#
#       "Well, a pet peeve of mine is people who directly edit the
#       .cf file instead of using the m4 configuration files.
#       Don't do it! [laughs] I treat the .cf file as a binary
#       file - you should too."
#               --  Eric Allman 1999/10/18
#
HANDS_OFF="No";
#
#------------------------------------------------------------------------------
#                               Queue Aging Configuration
#
#       Why would you want to age your queues?  On every queue-run interval,
#       sendmail will try *every* file in the queue...  If a site is down
#       for a while, considerable time can be wasted each interval in retrying
#       it.  The scheme supported allows aging by time, and can move the older
#       files to another (less frequently run queue), thereby reducing overal
#       system impact - and providing better mail throughput.
#
#       Note that this support is completely separate from QUEUE_MODE=cron,
#       you can age queues even if you're running QUEUE_MODE=daemon.
#
#       There are four parts to the queue aging support, and these parts
#       may be repeated, to operate on multiple queues.
#
#       1. Interval at which to age the queues (in minutes).
#          What interval should you use?  Roughly twice the normal queue
#          interval, so that messages are tried twice in each successively
#          slower queue.
#
#       2. Criteria (optional and defaults to interval).  This is the
#          specification of which files to move.  It defaults moving
#          files whose age in the queues exceeds the interval.
#          This field, if specified can be very complex - supporting
#          aging by just about anything! see qtool(8) for details.
#
#       3. To queue.  This is the queue to which files will be moved.
#          It may be fully qualified, or relative to /var/spool/mqueue.
#
#       4. From queue.  This is the queue from which files will be moved.
#          It may be fully qualified, or relative to /var/spool/mqueue.
#
#       Samples:
#       AGE_DATA="[['25m', '', 'hourly', 'main']]";
#               Every 25 minutes, move any file older than 25 minutes from
#               /var/spool/mqueue/main to /var/spool/mqueue/hourly
#
#       AGE_DATA="[['25m',      '', 'hourly', 'main'],\
#               ['125', '', 'daily',  'hourly']]";
#               Same as the above, but also move files from the hourly queue
#               to the daily queue after 125 minutes in the hourly queue.
#
#       AGE_DATA="[['25m',\
#               '-e \'$msg{message}[0] == /Deferred: 452 4.2.2 Over quota/\'',\
#               'overquota', 'main']]";
#               Every 25 minutes, move all files deferred because of quota
#               violations from /var/spool/mqueue/main to
#               /var/spool/mqueue/overquota where they can be processed on
#               a different interval, or by some other means.
#
#       If the above samples suggest Perl arrays, well, they are...
#
# AGE_DATA="";  Perl array  Queue aging data
#
AGE_DATA="";
#
#------------------------------------------------------------------------------
#                               Dependant variables (set according to other variables)
#
#
#------------------------------------------------------------------------------
#                               Hidden variables (the blood be upon your hands)
#
DAEMON_RUNASUSER="No";
#
#------------------------------------------------------------------------------
#                               Deprecated variables (kept for reference)
#
DAEMON_STATS="${DAEMON_MAILSTATS}";
MSP_STATS="${MSP_MAILSTATS}";
#
#------------------------------------------------------------------------------
#                               Unknown variables (kept for reference)
#
#------------------------------------------------------------------------------
#

Writing /etc/cron.d/sendmail.
Could not open /etc/cron.d/sendmail(Permission denied), using STDOUT
####################################################################
##### This file is automagically generated -- edit at your own risk
#####
##### file: /etc/cron.d/sendmail
##### generated via: (/usr/bin/perl 587)
#####           /usr/share/sendmail/update_conf
#####           version: 8.13.5.20060308 2006-08-14 08:49:38 cowboy
##### by: sam@shamaho
##### on: Fri May 25 20:37:42 2007
##### in: /home/sam
##### input files:
#####   /etc/mail/sendmail.conf
#####
####################################################################
#------------------------------------------------------------------------------
#
# /etc/cron.d/sendmail
#
# Copyright (c) 2001-2005 Richard Nelson.  All Rights Reserved.
# Version:        8.13.5.20060308
# Time-stamp: <2006-08-14 08:49:38 cowboy>
#
# Sendmail crontab - Call sendmail at various times to do the following:
#       1) Age queues - move undelivered mail to a slower queue
#       2) Retry any mail queued by the message submission process
#       3) run the queues (deliver mail) if a standalone daemon is not desired
#
# Each processes is independant and guided by /etc/mail/sendmail.conf and
# {sendmail,submit}.mc files.
#
# There isn't anything here that should need touching.
#
# Any requisite queue/misc parameters must be set in /etc/mail/sendmail.conf
# and reflected herein via /usr/sbin/sendmailconfig (or more directly via
# /usr/share/sendmail/update_conf).
#
#------------------------------------------------------------------------------
#
# use default path, shell, home
#SHELL=/bin/sh
#PATH=
#HOME=
# send mail to this user, as `mail/smmsp` isn't real.
MAILTO=root
#
# format of entries:
# m h dom mon dow       user    command
#
#------------------------------------------------------------------------------
# Every so often, give sendmail a chance to run the MSP queues.
#
*/20 *    *    *    *           smmsp   test -x /usr/share/sendmail/sendmail && /usr/share/sendmail/sendmail cron-msp
#
#------------------------------------------------------------------------------
# Every so often, give sendmail a chance to run the MTA queues.
# Will also run MSP queues if enabled
#
#*/10 *    *    *    *          root    test -x /usr/share/sendmail/sendmail && /usr/share/sendmail/sendmail cron-mta
#
#------------------------------------------------------------------------------
# Every so often, give sendmail a chance to age the queues.
#
# No queue aging
#
Error creating new /etc/inetd.conf: Permission denied
/usr/share/sendmail/update_mc: line 173: /etc/mail/sendmail.mc.new: Permission denied
rm: cannot remove `/etc/mail/databases': Permission denied
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Could not open /etc/mail/databases(Permission denied), using STDOUT.
####################################################################
##### This file is automatically generated -- edit at your own risk
#####
##### Copyright (c) 2000-2005 Richard Nelson.  All Rights Reserved.
#####
##### file: /etc/mail/databases
##### generated via: (/usr/bin/perl 587)
#####           /usr/share/sendmail/parse_mc 8.13.5.20060308 2006-08-14 08:49:38 cowboy
#####           Parse_mc.pm 8.13.5.20060308 2006-08-14 08:49:38 cowboy
##### by: sam@shamaho
##### on: Fri May 25 20:37:42 2007
##### in: /home/sam
##### input files:
#####   /usr/share/sendmail/cf/debian/autoconf.m4
#####
##### Used by:
#####   update_{db,mk}
#####
##### The following databases are used by Debian Sendmail
#####
##### Format:
#####   <df>:<map>:<flags>:<file>:<opts>:
##### Where:
#####   <df>    = define or FEATURE name
#####   <map>   = map type (-,text,btree,hash, etc.)
#####   <flags> = map flags (-o for optional, etc.)
#####   <file>  = file name
#####   <opts>  = map options (%[^\#] for sprintf, etc.)
#####
####################################################################
ALIAS_FILE:newaliases:-:/etc/mail/aliases:-:
DATABASE_MAP_TYPE:hash:-:-:-:
HELP_FILE:-:-:/etc/mail/helpfile:-:
MAIL_SETTINGS_DIR:-:-:/etc/mail/:-:
MSP_QUEUE_DIR:-:-:/var/spool/mqueue-client:-:
MSP_STATUS_FILE:-:-:/var/lib/sendmail/sm-client.st:-:
Makefile:update_mk:-:/etc/mail/databases:-:
QUEUE_DIR:-:-:/var/spool/mqueue:-:
STATUS_FILE:-:-:/var/lib/sendmail/sendmail.st:-:
TRUST_AUTH_MECH:-:-:DIGEST-MD5 CRAM-MD5 NTLM LOGIN PLAIN:-:
access_db:hash:-:/etc/mail/access:skip:
auth:update_auth:-:/etc/mail/sasl/sasl.m4:-:
confAUTH_MECHANISMS:-:-:DIGEST-MD5 CRAM-MD5 NTLM LOGIN PLAIN:-:
confAUTH_REALM:-:-::-:
confCACERT:-:-:/etc/mail/tls/sendmail-server.crt:-:
confCACERT_PATH:-:-:/etc/ssl/certs:-:
confCLIENT_CERT:-:-:/etc/mail/tls/sendmail-client.crt:-:
confCLIENT_KEY:-:-:/etc/mail/tls/sendmail-common.key:-:
confCONTROL_SOCKET_NAME:-:-:/var/run/sendmail/mta/smcontrol:-:
confCRL:-:-::-:
confCR_FILE:-:-o:/etc/mail/relay-domains:%[^\#]:
confCT_FILE:-:-:/etc/mail/trusted-users:%[^\#]:
confCW_FILE:-:-:/etc/mail/local-host-names:%[^\#]:
confDEAD_LETTER_DROP:-:-:/var/lib/sendmail/dead.letter:-:
confEBINDIR:-:-:/usr/lib/sm.bin:-:
confHOSTS_FILE:-:-:/etc/hosts:-:
confHOST_STATUS_DIRECTORY:-:-:/var/lib/sendmail/host_status:-:
confPID_FILE:-:-:/var/run/sendmail/mta/sendmail.pid:-:
confSERVER_CERT:-:-:/etc/mail/tls/sendmail-server.crt:-:
confSERVER_KEY:-:-:/etc/mail/tls/sendmail-common.key:-:
confSERVICE_SWITCH_FILE:-:-:/etc/mail/service.switch:-:
confTLS_SRV_OPTIONS:-:-:V:-:
confTO_AUTH:-:-:2m:-:
confTO_STARTTLS:-:-:2m:-:
crontab:update_conf:-:/etc/mail/sendmail.conf:-:
databases:parse_mc:-:/etc/mail/sendmail.mc:-:
include:-:-:/usr/share/sendmail/cf/m4/cf.m4:-:
include:-:-:/usr/share/sendmail/cf/ostype/debian.m4:-:
include:-:-:/usr/share/sendmail/cf/debian/autoconf.m4:-:
include:-:-:/usr/share/sendmail/cf/domain/debian-mta.m4:-:
include:-:-:/usr/share/sendmail/cf/debian/autoconf.m4:-:
sendmail.cf:m4:-:/etc/mail/sendmail.mc:-:
submit.cf:m4:-:/etc/mail/submit.mc:-:
tls:update_tls:-:/etc/mail/tls/starttls.m4:-:

Checking filesystem, this may take some time - it will not hang!
  ...  chown: changing ownership of `/etc/mail': Operation not permitted
chmod: changing permissions of `/etc/mail': Operation not permitted
chown: changing ownership of `/etc/mail/m4': Operation not permitted
chmod: changing permissions of `/etc/mail/m4': Operation not permitted
chown: changing ownership of `/var/run/sendmail': Operation not permitted
chmod: changing permissions of `/var/run/sendmail': Operation not permitted
chown: changing ownership of `/var/run/sendmail/mta': Operation not permitted
chmod: changing permissions of `/var/run/sendmail/mta': Operation not permitted
chown: changing ownership of `/var/run/sendmail/msp': Operation not permitted
chmod: changing permissions of `/var/run/sendmail/msp': Operation not permitted
chown: changing ownership of `/var/run/sendmail/stampdir': Operation not permitted
chmod: changing permissions of `/var/run/sendmail/stampdir': Operation not permitted
chown: changing ownership of `/var/lib/sendmail': Operation not permitted
chmod: changing permissions of `/var/lib/sendmail': Operation not permitted
mkdir: cannot create directory `/var/lib/sendmail/host_status': Permission denied
chown: cannot access `/var/lib/sendmail/host_status': No such file or directory
chmod: cannot access `/var/lib/sendmail/host_status': No such file or directory
find: /var/lib/sendmail: Permission denied
find: /var/lib/sendmail: Permission denied
chown: changing ownership of `/var/lib/sendmail/dead.letter': Operation not permitted
chmod: changing permissions of `/var/lib/sendmail/dead.letter': Operation not permitted
chown: changing ownership of `/var/spool/mqueue': Operation not permitted
chmod: changing permissions of `/var/spool/mqueue': Operation not permitted
find: /var/spool/mqueue: Permission denied
chown: changing ownership of `/var/spool/mqueue': Operation not permitted
find: /var/spool/mqueue: Permission denied
chmod: changing permissions of `/var/spool/mqueue': Operation not permitted
find: /var/spool/mqueue: Permission denied
chown: changing ownership of `/var/spool/mqueue-client': Operation not permitted
chmod: changing permissions of `/var/spool/mqueue-client': Operation not permitted
find: /var/spool/mqueue-client: Permission denied
 Done.

Checking for installed MDAs...
chown: changing ownership of `/etc/mail/smrsh': Operation not permitted
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
chown: changing ownership of `/etc/mail/tls': Operation not permitted
cp: cannot open `/etc/mail/access' for reading: Permission denied
sam@shamaho:~$