PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Kein versenden von Mails mehr



MFrei
18.02.09, 15:21
Hi,
seit gestern kann ich auf meinem Debian-Sever keine Mails mehr verschicken & empfangen.
Ich habe den Server als auch die Dienste neue gestartet und die Firewall überprüft und auch schon zu testzwecken ausgeschalten. Jedoch kann ich über mein Mail-Programm keine Mails mehr versenden und empfangen.
Über den Confixx-Webmailer meines Systems ist das Versenden jedoch noch möglich. Aber auch beim Empfangen geht hier nichts mehr.

Was kann ich tun?? Ich habe in letzter Zeit auf dem Server auch nichts in den Einstellungen verändert.

Thunderbird meldet bei mir das der Server nicht erreichbar ist oder die Verbindung zurückweist.

In der /var/log/mail.log findet man folgendes:

Feb 18 15:11:04 pv194 postfix/smtpd[22098]: warning: SASL: Connect to private/auth failed: No such file or directory
Feb 18 15:11:04 pv194 postfix/smtpd[22098]: fatal: no SASL authentication mechanisms
Feb 18 15:11:05 pv194 postfix/master[32120]: warning: process /usr/lib/postfix/smtpd pid 22098 exit status 1
Feb 18 15:11:05 pv194 postfix/master[32120]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Feb 18 15:15:05 pv194 postfix/smtpd[26462]: warning: SASL: Connect to private/auth failed: No such file or directory
Feb 18 15:15:06 pv194 postfix/smtpd[26462]: fatal: no SASL authentication mechanisms
Feb 18 15:15:07 pv194 postfix/master[32120]: warning: process /usr/lib/postfix/smtpd pid 26462 exit status 1
Feb 18 15:15:07 pv194 postfix/master[32120]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Und in der mail.err dies:

Feb 18 15:04:09 pv194 postfix/smtpd[11905]: fatal: no SASL authentication mechanisms



Danke
Matze

marce
18.02.09, 17:09
"no such file or directory" deutet darauf hin, das da was fehlt.

Was genau kann man evtl. sagen, wenn Du die Konfig des Servers postest.

MFrei
18.02.09, 17:18
ja kein thema... ich frag mich nur wie was verschiwnden kann ohne das ich irgendwas am server verändert habe aber es gibt ja bekanntlicherweise manchmal solche mysterien.. ;-)

/etc/postfix/sasl/smtpd.conf :

pwcheck_method: saslauthd
mech_list: plain login
saslauthd_path: /var/run/saslauthd/mux/mux
autotransition:true


/etc/postfix/dynamicmaps.cf

# Postfix dynamic maps configuration file.
#
# The first match found is the one that is used. Wildcards are not supported
# as of postfix 2.0.2
#
#type location of .so file open function (mkmap func)
#==== ================================ ============= ============
tcp /usr/lib/postfix/dict_tcp.so dict_tcp_open
pcre /usr/lib/postfix/dict_pcre.so dict_pcre_open


main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl.crt
smtpd_tls_key_file = /etc/ssl/private/ssl.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = srv1.mfrei.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = srv1.mfrei.de, pv194.ncsrv.de, localhost.ncsrv.de, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_tls_auth_only = no
smtpd_tls_received_header = yes
smtpd_tls_loglevel = 1
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtp_tls_cert_file = /etc/ssl/certs/ssl.crt
smtp_tls_key_file = /etc/ssl/private/ssl.key
smtp_tls_loglevel = 1
smtp_tls_security_level = may

### CONFIXX POSTFIX ENTRY ###

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains

### /CONFIXX POSTFIX ENTRY ###
broken_sasl_auth_clients = yes


master.cf

#
# 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_authenticate d,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,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 fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error 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
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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 -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}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}




ich hoffe, das dir das hilft und du vllt irgendeinen fehler findest...
matze

Roger Wilco
18.02.09, 18:19
Schau dir deinen smtpd_sasl_path nochmal an und bedenke, dass dein smtpd in einer chroot-Umgebung läuft...

MFrei
18.02.09, 18:53
Und kannst du mir eventuell auch sagen wie der lauten muss bzw was für auswahlmöglichkeiten ich habe??

Roger Wilco
18.02.09, 18:57
Das kommt auf deine Konfiguration von Dovecot bzw. Dovecot SASL an. Ich würde an deiner Stelle das Dovecot Wiki konsultieren...

MFrei
18.02.09, 19:06
jo danke... das hat gefunzt!!


folgendes musste ich in der dovecot.conf ersetzen:

auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}

nun geht alles wieder einwandfrei!!

marce
18.02.09, 19:09
Ich habe in letzter Zeit auf dem Server auch nichts in den Einstellungen verändert.
dann hat's aber wohl noch nie funktioniert?

MFrei
18.02.09, 19:11
doch eben schon.. das is ja grad das verwunderliche...
ich bin auch grad noch auf der suche nach dem fehler der das verursacht hat, auch wenn ichs mir nicht erklären kann...

cane
19.02.09, 13:31
Wenn Du nichts geändert hast würde ich mir das System mal ganz genau ansehen, nicht das es infiziert ist...

mfg
cane

MFrei
19.02.09, 13:53
ja mach ich natürlich...

das verwunderliche ist nur das das system als root nicht (mehr) läuft, obwohl der root ja alle rechte besitzt. Lässt man postfix jedoch über den user postfix starten, geht es auf einmal obwohl es vorher als root lief.

Roger Wilco
19.02.09, 20:19
Wenn Postfix abgesehen von dem Prozess "master" bei dir jemals mit root-Privilegien lief, hast du etwas falsch gemacht. ;)