PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : dist-upgrade und dann ward der postfix nicht mehr



Galeon
04.06.05, 18:02
Greetings,

ich kam gestern auf die fatale Idee meinem Debian mal ein Dist-upgrade zu geben ... tja, apt war plötzlich der Meinung postfix rausschmeißen zu müssen udn dafür exim4 zu installieren.
Also, "ganz simpel" dachte ich mir, exim4 wieder runter und postfix rein, die config ist ja noch da.
Gesagt getan und es klappt nix.
Postfix läuft zwar, jedoch bekomm ich jede Mail vom Mailerdeamon zurück und an verschicken ist mal gar nicht zu denken.
Wobei ich beim verschicken immerhin über die Meldung bekomme "SASL authentication failure: no secret in database" (blub ?).

Hab schon gegoogelt wie ein blöder komme aber irgendwie nicht weiter *sight* (das alles natürlich sehr passend genau zur Prüfungswoche ^^)

Hilfe ?

Danke schonmal
Finn

main.cf

# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

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

# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = howlingwolf.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +

smtpd_helo_required = yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
smtpd_delay_reject = yes
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_auth_destination, permit_mynetworks,reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_sasl_application_name = smtpd
smtpd_use_tls = no
smtpd_enforce_tls = no

### CONFIXX POSTFIX ENTRY ###

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

### /CONFIXX POSTFIX ENTRY ###


master.cf

# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ================================================== ========================
smtp inet n - n - - smtpd -v
#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 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
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
#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
proxymap unix - - n - - proxymap
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
tlsmgr unix - - - 1000? 1 tlsmgr
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
discard unix - - - - - discard
relay unix - - n - - smtp -o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5

Galeon
05.06.05, 14:30
*aus Hoffnung einmal schieb*

Tomek
05.06.05, 19:03
- Welche Distribution und Version hast du genau?
- Poste bitte mal die Ausgabe von:

COLUMNS=120 dpkg -l|egrep 'postfix|sasl'
- Poste bitte die Datei /etc/postfix/sasl/smtpd.conf.
- Relevante Auszüge aus dem Maillog wären ebenfalls interessant.

Galeon
05.06.05, 19:14
Ja greetings, danke für die Antwort:

Nach dem Distupgrade dürfte ein schmuckes Debian Sid draus geworden sein.

Zu der smtp.conf die existiert auf dem Server in dem postfixverzeichnis nicht, sondern nur im /usr/lib/sasl.

Wichtig ist vielleicht noch, das ist leider nicht meine Konfiguration sonst könnte ich evtl. mehr zu beisteuern :/. Hab den Server damals mit Confixx so hingestellt bekommen und vermute mal das der postfix bis zu dem Zeitpunkt vor dem Update die User über die shadow authentifiziert hat, da Confixx jedes Postfach als User in der shadow-datei anlegt.

srv101:~# COLUMNS=120 dpkg -l|egrep 'postfix|sasl'

ii libauthen-sasl-perl 2.08-2 Authen::SASL - SASL Authentication framework
ii libgsasl7 0.2.5-1 GNU SASL library
ii libsasl2 2.1.19-1.5 Authentication abstraction library
ii libsasl2-modules 2.1.19-1.5 Pluggable Authentication Modules for SASL
ii postfix 2.2.3-3 A high-performance mail transport agent
rc postfix-tls 1.1.11+tls0.7.15-0.woody TLS and SASL support for Postfix
rc sasl2-bin 2.1.19-1.5 Programs for manipulating the SASL users database


srv101:~# cat /usr/lib/sasl/smtpd.conf


pwcheck_method:pam


Mittlerweile hab ich den smtp mit -v starten lassen und such mal ein paar Stellen aus der mail.log

Galeon
05.06.05, 19:36
So,

das dürfte beim Mailversand der interessante Part sein:


Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 220 howlingwolf.de ESMTP Postfix (Debian/GNU)
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: < p54AFE2CD.dip.t-dialin.net[84.175.226.205]: EHLO [192.168.0.16]
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250-howlingwolf.de
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250-PIPELINING
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250-SIZE 10240000
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250-ETRN
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250-AUTH NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: match_list_match: p54AFE2CD.dip.t-dialin.net: no match
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: match_list_match: 84.175.226.205: no match
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250-AUTH=NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5
Jun 5 20:19:13 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 250 8BITMIME
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: < p54AFE2CD.dip.t-dialin.net[84.175.226.205]: AUTH CRAM-MD5
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: smtpd_sasl_authenticate: sasl_method CRAM-MD5
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: smtpd_sasl_authenticate: uncoded challenge: <2027574677.10699367@howlingwolf.de>
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 334 PDIwMjc1NzQ2NzcuMTA2OTkzNjdAc3J2MTAxLnB1bXBpLWhvc3 RpbmcuZGU+
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: < p54AFE2CD.dip.t-dialin.net[84.175.226.205]: d2ViMXA2IGM0N2M1MDI3YzgwNWRkMzIyZmYzNGIyZDI2MjNjYz Jm
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: smtpd_sasl_authenticate: decoded response: web1p6 c47c5027c805dd322ff34b2d2623cc2f
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: warning: SASL authentication failure: no secret in database
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: warning: p54AFE2CD.dip.t-dialin.net[84.175.226.205]: SASL CRAM-MD5 authentication failed
Jun 5 20:19:17 srv101 postfix/smtpd[18268]: > p54AFE2CD.dip.t-dialin.net[84.175.226.205]: 535 Error: authentication failed

und das beim Versuch eine Mail zu erhalten, wobei ich hier anmerken muss das in der Datei die Confixx dort verwaltet die Adresse definitiv existert:

Jun 5 20:24:14 srv101 postfix/smtpd[18303]: resolve_clnt: `webmaster@howlingwolf.de' -> transp=`error' host=`User unknown in virtual alias table' rcpt=`webmaster@howlingwolf.de' flags= class=alias
Jun 5 20:24:14 srv101 postfix/smtpd[18303]: ctable_locate: install entry key webmaster@howlingwolf.de
Jun 5 20:24:14 srv101 postfix/smtpd[18303]: extract_addr: result: webmaster@howlingwolf.de

srv101:/etc/postfix# cat confixx_virtualUsers
webmaster@howlingwolf.de web1p1
silverstream@howlingwolf.de web1p2

Blackcollar
05.06.05, 22:18
Servus,

also du hast da mind. 2 fehlende Pakete..


rc postfix-tls 1.1.11+tls0.7.15-0.woody TLS and SASL support for Postfix
rc sasl2-bin 2.1.19-1.5 Programs for manipulating the SASL users database


aussehen müsste es so :


ii postfix-tls 2.X.X-X TLS and SASL support for Postfix
ii sasl2-bin 2.X.XX-X.X Programs for manipulating the SASL users database


Die smtpd.conf muss im Verzeichnis


/etc/postfix/sasl/

liegen.

gruß Collar

Galeon
05.06.05, 22:26
Eingebunden und Datei ins Verzeichnis geschoben, das log meint nichts an seiner Ausgabe ändern zu müssen.