I'm trying to use the SASL authentification method with sendmail, in order to have an AUTH SMTP service.
Debian GNU/Linux (sid) sendmail 8.12.1-5 After following some installation steps, I get # telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 maki.ene.es ESMTP Sendmail 8.12.1/8.12.1/Debian -5; Thu, 17 Jan 2002 12:45:49 +0100; (No UCE/UBE) logging access from: localhost.ene.es(OK)[EMAIL PROTECTED] [127.0.0.1] EHLO localhost 250-maki.ene.es Hello [EMAIL PROTECTED] [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-EXPN 250-VERB 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN 250-DELIVERBY 250 HELP MAIL FROM: [EMAIL PROTECTED] 250 2.1.0 [EMAIL PROTECTED] Sender ok RCPT TO: [EMAIL PROTECTED] 250 2.1.5 [EMAIL PROTECTED] Recipient ok DATA 354 Enter mail, end with "." on a line by itself . 250 2.0.0 g0HBjnUS001785 Message accepted for delivery QUIT 221 2.0.0 maki.ene.es closing connection Connection closed by foreign host. As you can see I'm able to send mails without any authorization. How could I force Sendmail to use the AUTH command? Attachments: -------------- /etc/mail/sendmail.mc /etc/mail/sendmail.conf /usr/lib/sasl/Sendmail.conf
define(`_USE_ETC_MAIL_')dnl include(`/usr/share/sendmail/sendmail.cf/m4/cf.m4')dnl VERSIONID(`$Id: sendmail.mc, v 8.12.1-5 2001-12-14 13:11:55 cowboy Exp $') OSTYPE(`debian')dnl DOMAIN(`debian-mta')dnl dnl # dnl # General defines dnl # dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot() dnl # into this directory before writing files. dnl # If *all* your user accounts are under /home then use that dnl # instead - it will prevent any writes outside of /home ! dnl # define(`confSAFE_FILE_ENV', `')dnl LOCAL_CONFIG FEATURE(`masquerade_envelope')dnl FEATURE(`always_add_domain')dnl LOCAL_CONFIG Cwene.es FEATURE(`use_cw_file')dnl FEATURE(`use_ct_file')dnl FEATURE(`bestmx_is_local')dnl define(`confMAILER_NAME', `postmaster')dnl dnl # dnl # Dialup/LAN connection overrides dnl # include(`/etc/mail/dialup.m4')dnl include(`/etc/mail/provider.m4')dnl dnl # MAILER_DEFINITIONS MAILER(local)dnl MAILER(smtp)dnl LOCAL_CONFIG ## Custom configurations below (will be preserved) TRUST_AUTH_MECH(`LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl define(`confDEF_AUTH_INFO', `/etc/mail/default-auth-info')dnl ## TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl ## define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl ## define(`confDEF_AUTH_INFO', `/etc/mail/default-auth-info')dnl
#------------------------------------------------------------------------------ # SMTP Listener Configuration # # 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: for the nonce, DAEMON_MODE="none" is *NOT* supported !!! # DAEMON_MODE="Daemon"; # # DAEMON_PARMS=""; String Listener parms # Any parameters here will be ignored when run from cron. # Note that MISC_PARMS and 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="Yes"; # # 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) # # NOTE: for the nonce, QUEUE_MODE="none" is *NOT* supported !!! # QUEUE_MODE="${DAEMON_MODE}"; # # QUEUE_INTERVAL="10"; Integer in minutes # 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. # QUEUE_INTERVAL="10"; # # 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="${QUEUE_MODE}"; 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="${QUEUE_MODE}"; # # MSP_INTERVAL="${QUEUE_INTERVAL}"; Integer in minutes # 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. Probably should be the same as the # whats used in QUEUE_INTERVAL. # MSP_INTERVAL="${QUEUE_INTERVAL}"; # # MSP_PARMS="${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. # MSP_PARMS="${QUEUE_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="No"; # #------------------------------------------------------------------------------ # 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=""; # #------------------------------------------------------------------------------ # 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="[['25', '', 'hourly', 'main']]"; # Every 25 minutes, move any file older than 25 minutes from # /var/spool/mqueue/main to /var/spool/mqueue/hourly # # AGE_DATA="[['25', '', '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="[['25',\ # '-e \'$msg->{message} = 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=""; # #------------------------------------------------------------------------------ # Hidden variables (the blood be upon your hands) # # #------------------------------------------------------------------------------ # Deprecated variables (kept for reference) # DAEMON_STATS="${DAEMON_MAILSTATS}"; MSP_STATS="${MSP_MAILSTATS}"; # #------------------------------------------------------------------------------ # Unknown variables (kept for reference) # #------------------------------------------------------------------------------
#Currently configurable parameters: #- srvtab (for KERBEROS_V4): [/etc/srvtab] path # where to find the srvtab # #- pwcheck_method: [PAM] one of {PAM, kerberos_v4, passwd, shadow, sasldb} # how to check plaintext passwords. # #- auto_transition: [false] # if true, automatically add secrets to the secret database when # PLAIN or check_password is used, so in the future the user can # use the more secure mechanisms. # #*** For a more detailed guide on configuring SASL, please look at #doc/sysadmin.html. # ## #pwcheck_method: sasldb ## pwcheck_method: PAM ## auto_transition: true pwcheck_method: PAM auto_transition: true