- 论坛徽章:
- 0
|
root@kernel:/var/log# testsaslauthd -u kkk -p kkk
connect() : No such file or directory
when i
0: root@kernel:/var/log# saslauthd -a shadow
saslauthd[4758] :main : could not chdir to: /var/run/saslauthd
saslauthd[4758] :main : chdir: No such file or directory
saslauthd[4758] :main : Check to make sure the directory exists and is
saslauthd[4758] :main : writeable by the user this process runs as.
出错。有没有好的解决方法。
装了一个unbuntu 7.10的系统。apt-get sasl-bin2 postfix
root@kernel:/var/log# aptitude search sasl2
p cyrus-sasl2-dbg - Debugging symbols for Cyrus SASL
i cyrus-sasl2-doc - Documentation for Cyrus SASL library and utilities
p cyrus-sasl2-heimdal-dbg - Debugging symbols for Cyrus SASL
i libsasl2-2 - Authentication abstraction library
p libsasl2-dev - Development files for SASL authentication abstraction l
i libsasl2-modules - Pluggable Authentication Modules for SASL
p libsasl2-modules-gssapi-heimdal - Pluggable Authentication Modules for SASL (GSSAPI)
p libsasl2-modules-gssapi-mit - Pluggable Authentication Modules for SASL (GSSAPI)
p libsasl2-modules-ldap - Pluggable Authentication Modules for SASL (LDAP)
p libsasl2-modules-otp - Pluggable Authentication Modules for SASL (OTP)
p libsasl2-modules-sql - Pluggable Authentication Modules for SASL (SQL)
i sasl2-bin - Administration programs for SASL users database
root@kernel:/var/log# aptitude search postfix
p bld-postfix - Postfix tools for the Black List Daemon
p dtc-postfix-courier - web control panel for admin and accounting hosting serv
p gforge-mta-postfix - collaborative development tool - mail tools (using Post
i postfix - High-performance mail transport agent
p postfix-cdb - CDB map support for Postfix
p postfix-dev - Loadable modules development environment for Postfix
i postfix-doc - Documentation for Postfix
p postfix-gld - greylisting daemon for postfix, written in C, uses MySQ
p postfix-ldap - LDAP map support for Postfix
p postfix-mysql - MYSQL map support for Postfix
p postfix-pcre - PCRE map support for Postfix
p postfix-pgsql - PGSQL map support for Postfix
p postfix-policyd - anti-spam plugin for Postfix
p postfix-policyd-spf-perl - pure-Perl Postfix policy daemon for RFC 4408 compliant
p postfix-smtpguard - smtpguard policy service daemon for Postfix
v postfix-tls -
root@kernel:/var/log# cat /proc/version
Linux version 2.6.22-14-server (buildd@terranova) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Dec
18 08:31:40 UTC 2007
root@kernel:/var/log# vim /etc/default/saslauthd
#
# Settings for saslauthd daemon
#
# Should saslauthd run automatically on startup? (default: no)
#START=no
START=yes
PWDIR="/var/spool/postfix/var/run/saslauthd" # this is change i add
PARAMS="-m ${PWDIR}"
PIDFILE="${PWDIR}/saslauthd.pid"
# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam -- use PAM
# rimap -- use a remote IMAP server
# shadow -- use the local shadow password file
# sasldb -- use the local sasldb database file
# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
#MECHANISMS="pam"
MECHANISMS="shadow"
# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
#MECH_OPTIONS=""
# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5
# Other options (default: -c)
# See the saslauthd man page for information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
# Note: See /usr/share/doc/sasl2-bin/README.Debian
#OPTIONS="-c"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
root@kernel:/var/log#dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd
root@kernel:/var/log#adduser postfix sasl
root@kernel:/var/log# ps aux|grep sasl
root 4738 0.0 0.0 7452 748 ? Ss 17:06 0:00 /usr/sbin/saslauthd -a shadow -c -m /var/spool/postfix/var/run/saslauthd -n 5
root 4739 0.0 0.0 7452 476 ? S 17:06 0:00 /usr/sbin/saslauthd -a shadow -c -m /var/spool/postfix/var/run/saslauthd -n 5
root 4740 0.0 0.0 7452 360 ? S 17:06 0:00 /usr/sbin/saslauthd -a shadow -c -m /var/spool/postfix/var/run/saslauthd -n 5
root 4741 0.0 0.0 7452 360 ? S 17:06 0:00 /usr/sbin/saslauthd -a shadow -c -m /var/spool/postfix/var/run/saslauthd -n 5
root 4743 0.0 0.0 7452 360 ? S 17:06 0:00 /usr/sbin/saslauthd -a shadow -c -m /var/spool/postfix/var/run/saslauthd -n 5
root@kernel:/var/log# testsaslauthd -u kkk -p kkk
connect() : No such file or directory
when i
0: root@kernel:/var/log# saslauthd -a shadow
saslauthd[4758] :main : could not chdir to: /var/run/saslauthd
saslauthd[4758] :main : chdir: No such file or directory
saslauthd[4758] :main : Check to make sure the directory exists and is
saslauthd[4758] :main : writeable by the user this process runs as.
root@kernel:/var/log#
root@kernel:/var/log# mkdir /var/run/saslauthd
root@kernel:/var/log# saslauthd -a shadow
root@kernel:/var/log# testsaslauthd -u kkk -p kkk
0: OK "Success."
root@kernel:/var/log#
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
"/etc/postfix/master.cf" 77L, 4035C
[ 本帖最后由 weifeng270 于 2008-1-9 09:50 编辑 ] |
|