Probleme Versand

txc

New Member
Hallo ich habe mit dem Versand Probleme.

Das Problem ist, dass
Code:
/etc/init.d/saslauthd start
Starting SASL Authentication Daemon: saslauthd.
/etc/init.d/saslauthd stop
Stopping SASL Authentication Daemon: saslauthd (not running).
Also SASL startet einfach nicht und deswegen kommt wahrscheinlich auch folgender Fehler:
Code:
connect from xxxxxx.dip.xxxxxxx.net[xx.xxx.xxx.xxx]
postfix/smtpd[3018]: warning: SASL authentication failure: cannot connect to saslauthd server: Connection refused
postfix/smtpd[3018]: warning: SASL authentication failure: Password verification failed
postfix/smtpd[3018]: warning: xxxxxx.dip.xxxxxxx.net[xx.xxx.xxx.xxx]: SASL PLAIN authentication failed: generic failure
postfix/smtpd[3018]: warning: SASL authentication failure: cannot connect to saslauthd server: Connection refused
postfix/smtpd[3018]: warning: xxxxxx.dip.xxxxxxx.net[xx.xxx.xxx.xxx]: SASL LOGIN authentication failed: generic failure

So nun zu den Dateien:

smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
autotransition:true
saslauthd_path: /var/run/saslauthd/mux

main.cf
Code:
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
#delay_warning_time = 4h
myhostname = meinedomain.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = meinedomain.de, localhost
mynetworks = 127.0.0.0/8
mailbox_command=/usr/bin/procmail
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
amtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
virtual_alias_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
$maildrop = ‘HOMEDIR/Maildir/’;
$mailBoxName = ‘Maildir’;
$pop_homeDir = ‘/mail’;
$mail_realHome = '1';´

/etc/default/saslauthd
Code:
START=yes
MECHANISMS="pam"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"

Master.cf
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      unix  -       -       -       -       -       smtp

Also ich weiß echt nicht mehr weiter warum saslauthd nicht startet.
Danke im voraus.

Betriebssystem: Debian 4
Postfix, Courier-pop3/imap
 
Last edited by a moderator:
Rufe deinen saslauthd von Hand auf, ohne das Initskript. Außerdem ist der Parameter -d sicherlich interessant dabei.
 
Sorry, nicht richtig gelesen ! :eek:

Steht ja auf yes ;)

/etc/default/saslauthd:

START=yes
 
Last edited by a moderator:
Rufe deinen saslauthd von Hand auf, ohne das Initskript. Außerdem ist der Parameter -d sicherlich interessant dabei.

Code:
/usr/sbin/saslauthd -d
saslauthd[18447] :main            : no authentication mechanism specified
usage: saslauthd [options]

option information:
  -a <authmech>  Selects the authentication mechanism to use.
  -c             Enable credential caching.
  -d             Debugging (don't detach from tty, implies -V)
  -r             Combine the realm with the login before passing to authentication mechanism
                 The realm name is passed untouched.
  -O <option>    Optional argument to pass to the authentication
                 mechanism.
  -l             Disable accept() locking. Increases performance, but
                 may not be compatible with some operating systems.
  -m <path>      Alternate path for the saslauthd working directory,
                 must be absolute.
  -n <procs>     Number of worker processes to create.
  -s <kilobytes> Size of the credential cache (in kilobytes)
  -t <seconds>   Timeout for items in the credential cache (in seconds)
  -v             Display version information and available mechs
  -V             Enable verbose logging
  -h             Display this message.

saslauthd 2.1.22
authentication mechanisms: sasldb getpwent kerberos5 pam rimap shadow ldap
 
Last edited by a moderator:
Die anderen Optionen nicht vergessen!
Code:
/usr/sbin/saslauthd -d -a pam -c -m /var/spool/postfix/var/run/saslauthd
 
Code:
/usr/sbin/saslauthd -d -a pam -c -
saslauthd[6290] :main            : num_procs  : 5
saslauthd[6290] :main            : mech_option: NULL
saslauthd[6290] :main            : run_path   : /var/spool/postfix/var/run/saslauthd
saslauthd[6290] :main            : auth_mech  : pam
saslauthd[6290] :cache_alloc_mm  : mmaped shared memory segment on file: /var/spool/postfix/var/run/saslauthd/cache.mmap
saslauthd[6290] :cache_init      : bucket size: 92 bytes
saslauthd[6290] :cache_init      : stats size : 36 bytes
saslauthd[6290] :cache_init      : timeout    : 28800 seconds
saslauthd[6290] :cache_init      : cache table: 944764 total bytes
saslauthd[6290] :cache_init      : cache table: 1711 slots
saslauthd[6290] :cache_init      : cache table: 10266 buckets
saslauthd[6290] :cache_init_lock : flock file opened at /var/spool/postfix/var/run/saslauthd/cache.flock
saslauthd[6290] :ipc_init        : using accept lock file: /var/spool/postfix/var/run/saslauthd/mux.accept
saslauthd[6290] :detach_tty      : master pid is: 0
saslauthd[6290] :ipc_init        : could not bind to socket: /var/spool/postfix/var/run/saslauthd/mux
saslauthd[6290] :ipc_init        : bind: Address already in use

master.cf
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
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
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr	  fifo	-	-	n	300	1	tlsmgr
#smtps	  inet	n	-	n	-	-	smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587	  inet	n	-	n	-	-	smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

#amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtpd_bin_address=127.0.0.1

Außerdem wird Confixx verwendet.

Code:
testsaslauthd -u webxxpx -p xxxxx
connect() : Connection refused
 
Last edited by a moderator:
hat keiner eine Idee?
Es wäre sehr wichtig und ich wäre auch bereit ganze 5 Euro zu bezahlen xD.
 
Danke für den Ansatz.

Es kommt weiterhin der Fehler
Code:
 postfix/smtpd[5917]: warning: SASL authentication failure: cannot connect to saslauthd server: Connection refused

Ich habe jetzt folgendes geändert:
smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: plain login
saslauthd_path: /var/spool/postfix/var/run/saslauthd
autotransition:true

default/saslauthd
Code:
START=yes
MECHANISMS="pam"
MECH_OPTIONS=""
THREADS=5
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

Ich habe /var/spool/postfix/var/run/saslauthd
genommen da:
Code:
ls -la /var/spool/postfix/var/run/saslauthd
total 944
drwxr-xr-x 3 root    sasl   4096 Jul  8 16:13 .
drwxr-xr-x 3 root    root   4096 May  6  2007 ..
-rw------- 1 postfix root      0 Jul  8 16:13 cache.flock
-rw------- 1 postfix root 945152 Jul  8 16:13 cache.mmap
drwxrwxrw- 2 root    sasl   4096 Jul  7 16:27 mux
-rw------- 1 postfix root      0 Jul  8 16:13 mux.accept
lrwxrwxrwx 1 postfix root     37 Jul  7 02:10 saslauthd -> /var/spool/postfix/var/run/saslauthd/
-rw------- 1 root    root      5 Jul  8 16:13 saslauthd.pid

Code:
 /usr/sbin/saslauthd -d -a pam -c -
saslauthd[8589] :main            : num_procs  : 5
saslauthd[8589] :main            : mech_option: NULL
saslauthd[8589] :main            : run_path   : /var/run/saslauthd
saslauthd[8589] :main            : auth_mech  : pam
saslauthd[8589] :cache_alloc_mm  : mmaped shared memory segment on file: /var/run/saslauthd/cache.mmap
saslauthd[8589] :cache_init      : bucket size: 92 bytes
saslauthd[8589] :cache_init      : stats size : 36 bytes
saslauthd[8589] :cache_init      : timeout    : 28800 seconds
saslauthd[8589] :cache_init      : cache table: 944764 total bytes
saslauthd[8589] :cache_init      : cache table: 1711 slots
saslauthd[8589] :cache_init      : cache table: 10266 buckets
saslauthd[8589] :cache_init_lock : flock file opened at /var/run/saslauthd/cache.flock
saslauthd[8589] :ipc_init        : using accept lock file: /var/run/saslauthd/mux.accept
saslauthd[8589] :detach_tty      : master pid is: 0
saslauthd[8589] :ipc_init        : could not bind to socket: /var/run/saslauthd/mux
saslauthd[8589] :ipc_init        : bind: Address already in use
 
Last edited by a moderator:
Hallo,

mit ps aux die Prozesse auflisten lassen und alle saslauthd abschließen. Oder einfach den Server rebooten.
 
Hallo,

mit ps aux die Prozesse auflisten lassen und alle saslauthd abschließen. Oder einfach den Server rebooten.
Das Problem ist ja das saslauthd erst gar nicht startet:

Code:
ps aux|grep sasl
root     27095  0.0  0.0   1644   504 pts/0    R+   18:12   0:00 grep sasl
server2:~# root     27056  0.0  0.0   1648   512 pts/0    R+   18:11   0:00 grep sasl
 
Hast Du schon mit
Code:
lsof |grep /var/spool/postfix/var/run/saslauthd/mux
nachgeschaut, welcher Prozess die Pipe offenhält und den saslauthd daran hindert, sich daran zu binden?
 
@LinuxAdmin

Ja dies habe ich auch schon gemacht aber leiter kommt da nichts.
Code:
server2:~# lsof |grep /var/spool/postfix/var/run/saslauthd/mux
server2:~#

Irgenwie ist da der Wurm drinnen.
 
Happy

@charli

Vielen Vielen Vielen Vielen Vielen Vielen Dank.

In var/spool/postfix/var/run/saslauthd war ein Ordner mux und deswegen konnte saslauthd dort irgendwie die Datei mux nicht anlegen.
Ich habe alle Dateien gelöscht und jetzt geht es 1a.
Dieser kleiner Hinweis hat viel gebracht.
Nochmal Danke.
 
Back
Top