PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : troubles mit postfix (oder never change a running system)



eAnic
04.04.04, 00:25
hallolo

Mit dem Versuch, postfix mit SASL support upzugraden, hab ich es geschafft, dass ich mich mit einem externen mail programm nicht mehr einloggen kann.

Bis dato liefen postfix 2.0.16 mit PHP virtual domains, courier imap, squirrel webmail, Amavis und spam assassin problemlos. Ich konnte mich sowohl unter der Webmail oberfläche, als auch mit meinem Mozilla Mailer einloggen, mails abfragen und senden.

Dummerweise geb ich mich mit einer bestehenden Konfiguration nie zufrieden, deshalb hab testweise mal cyrus-sasl 2.1.17 installiert und postfix mit der Option '-DUSE_SASL_AUTH -I/usr/include/sasl' \ neu kompiliert und installiert.
Seitdem kann ich mich mit Mozilla nicht mehr einloggen, obwohl ich die Konfiguration im mail client nicht geändert habe.
Ich hab dann postfix wieder wie ursprünglich kompiliert allerdings brachte das auch nichts. Webmail funktioniert allerdings wie gewohnt.

Bitte helft mir - ich check einfach nicht, was da schief gegangen ist. :(

stefaan
04.04.04, 11:28
Servus!

Was sagt das Maillog?

Grüße, Stefan

eAnic
04.04.04, 15:51
Hier der Auszug der maillog nach einem Neustart

Apr 4 16:08:28 novisan amavis[223]: starting. amavisd at novisan amavisd-new-20030616-p8, Unicode aware
Apr 4 16:08:28 novisan amavis[223]: Perl version 5.008
Apr 4 16:08:28 novisan amavis[223]: Module Amavis::Conf 1.15
Apr 4 16:08:28 novisan amavis[223]: Module Archive::Tar 1.08
Apr 4 16:08:28 novisan amavis[223]: Module Archive::Zip 1.10
Apr 4 16:08:28 novisan amavis[223]: Module Compress::Zlib 1.33
Apr 4 16:08:28 novisan amavis[223]: Module Convert::TNEF 0.17
Apr 4 16:08:28 novisan amavis[223]: Module Convert::UUlib 1.01
Apr 4 16:08:28 novisan amavis[223]: Module MIME::Entity 5.404
Apr 4 16:08:28 novisan amavis[223]: Module MIME::Parser 5.406
Apr 4 16:08:28 novisan amavis[223]: Module MIME::Tools 5.411
Apr 4 16:08:28 novisan amavis[223]: Module Mail::Header 1.62
Apr 4 16:08:28 novisan amavis[223]: Module Mail::Internet 1.62
Apr 4 16:08:28 novisan amavis[223]: Module Mail::SpamAssassin 2.63
Apr 4 16:08:28 novisan amavis[223]: Module Net::Cmd 2.25
Apr 4 16:08:28 novisan amavis[223]: Module Net::SMTP 2.28
Apr 4 16:08:28 novisan amavis[223]: Module Net::Server 0.87
Apr 4 16:08:28 novisan amavis[223]: Module Time::HiRes 1.56
Apr 4 16:08:28 novisan amavis[223]: Module Unix::Syslog 0.99
Apr 4 16:08:28 novisan amavis[223]: Found myself: /usr/local/sbin/amavisd -c /etc/amavisd.conf
Apr 4 16:08:28 novisan amavis[223]: Lookup::SQL code NOT loaded
Apr 4 16:08:28 novisan amavis[223]: Lookup::LDAP code NOT loaded
Apr 4 16:08:28 novisan amavis[223]: AMCL-in protocol code loaded
Apr 4 16:08:28 novisan amavis[223]: SMTP-in protocol code loaded
Apr 4 16:08:28 novisan amavis[223]: ANTI-VIRUS code NOT loaded
Apr 4 16:08:28 novisan amavis[223]: ANTI-SPAM code loaded
Apr 4 16:08:28 novisan amavis[233]: Net::Server: Process Backgrounded
Apr 4 16:08:28 novisan amavis[233]: Net::Server: 2004/04/04-16:08:28 Amavis (type Net::Server::PreForkSimple) starting! pid(233)
Apr 4 16:08:28 novisan amavis[233]: Net::Server: Binding to UNIX socket file /server/amavisd-new/amavisd.sock using SOCK_STREAM
Apr 4 16:08:28 novisan amavis[233]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Apr 4 16:08:28 novisan amavis[233]: Net::Server: Setting gid to "1016 1016"
Apr 4 16:08:28 novisan amavis[233]: Net::Server: Setting uid to "1020"
Apr 4 16:08:28 novisan amavis[233]: Found $file at /usr/bin/file
Apr 4 16:08:28 novisan amavis[233]: No $arc, not using it
Apr 4 16:08:28 novisan amavis[233]: Found $gzip at /bin/gzip
Apr 4 16:08:28 novisan amavis[233]: Found $bzip2 at /bin/bzip2
Apr 4 16:08:28 novisan amavis[233]: No $lzop, not using it
Apr 4 16:08:28 novisan amavis[233]: No $lha, not using it
Apr 4 16:08:28 novisan amavis[233]: No $unarj, not using it
Apr 4 16:08:28 novisan amavis[233]: Found $uncompress at /bin/uncompress
Apr 4 16:08:28 novisan amavis[233]: No $unfreeze, not using it
Apr 4 16:08:28 novisan amavis[233]: Found $unrar at /usr/bin/unrar
Apr 4 16:08:28 novisan amavis[233]: No $zoo, not using it
Apr 4 16:08:28 novisan amavis[233]: Found $cpio at /usr/bin/cpio
Apr 4 16:08:28 novisan amavis[233]: SpamControl: initializing Mail::SpamAssassin
Apr 4 16:08:31 novisan amavis[233]: SpamControl: done
Apr 4 16:08:33 novisan postfix/postfix-script: starting the Postfix mail system
Apr 4 16:08:33 novisan postfix/master[305]: daemon started -- version 2.0.16
Apr 4 16:08:34 novisan postfix/qmgr[307]: 612AB461ED4: from=<nobody@mail.statictune.net>, size=377, nrcpt=1 (queue active)
Apr 4 16:08:34 novisan postfix/qmgr[307]: 9E717461ED3: from=<nobody@mail.statictune.net>, size=374, nrcpt=1 (queue active)
Apr 4 16:08:34 novisan postfix/qmgr[307]: C2B45461ED5: from=<nobody@mail.statictune.net>, size=376, nrcpt=1 (queue active)
Apr 4 16:08:35 novisan postfix/qmgr[307]: E2B4D461ED7: from=<nobody@mail.statictune.net>, size=371, nrcpt=1 (queue active)
Apr 4 16:08:35 novisan postfix/local[311]: warning: lookup owner-mailer-daemon, NIS domain statictune.net, map mail.aliases: can't $
Apr 4 16:08:35 novisan postfix/local[312]: warning: lookup owner-mailer-daemon, NIS domain statictune.net, map mail.aliases: can't $
Apr 4 16:08:35 novisan postfix/local[311]: 612AB461ED4: to=<MAILER-DAEMON@mail.statictune.net>, relay=local, delay=85610, status=de$
Apr 4 16:08:35 novisan postfix/local[312]: 81789461ED6: to=<MAILER-DAEMON@mail.statictune.net>, relay=local, delay=85570, status=de$
Apr 4 16:08:35 novisan postfix/local[311]: warning: lookup owner-mailer-daemon, NIS domain statictune.net, map mail.aliases: can't $
Apr 4 16:08:35 novisan postfix/local[312]: warning: lookup owner-mailer-daemon, NIS domain statictune.net, map mail.aliases: can't $
Apr 4 16:08:35 novisan postfix/local[311]: 35942461ED8: to=<MAILER-DAEMON@mail.statictune.net>, relay=local, delay=85496, status=de$
Apr 4 16:08:35 novisan postfix/local[311]: warning: lookup owner-mailer-daemon, NIS domain statictune.net, map mail.aliases: can't $
Apr 4 16:08:35 novisan postfix/local[312]: 9E717461ED3: to=<MAILER-DAEMON@mail.statictune.net>, relay=local, delay=85817, status=de$
Apr 4 16:08:35 novisan postfix/local[312]: warning: lookup owner-mailer-daemon, NIS domain statictune.net, map mail.aliases: can't $
Apr 4 16:08:35 novisan postfix/local[311]: C2B45461ED5: to=<MAILER-DAEMON@mail.statictune.net>, relay=local, delay=85594, status=de$
Apr 4 16:08:35 novisan postfix/local[312]: E2B4D461ED7: to=<MAILER-DAEMON@mail.statictune.net>, relay=local, delay=85534, status=de$
Apr 4 16:09:17 novisan imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 4 16:09:18 novisan imapd: LOGIN, user=eanic@statictune.net, ip=[::ffff:127.0.0.1], protocol=IMAP
Apr 4 16:09:18 novisan imapd: LOGOUT, user=eanic@statictune.net, ip=[::ffff:127.0.0.1], headers=2118, body=0
Apr 4 16:09:23 novisan imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 4 16:09:23 novisan imapd: LOGIN, user=eanic@statictune.net, ip=[::ffff:127.0.0.1], protocol=IMAP
Apr 4 16:09:24 novisan imapd: LOGOUT, user=eanic@statictune.net, ip=[::ffff:127.0.0.1], headers=383, body=0
Apr 4 16:09:25 novisan imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 4 16:09:25 novisan imapd: LOGIN, user=eanic@statictune.net, ip=[::ffff:127.0.0.1], protocol=IMAP
Apr 4 16:09:26 novisan imapd: LOGOUT, user=eanic@statictune.net, ip=[::ffff:127.0.0.1], headers=2118, body=0


die letzten 3 connections stammen vom Webmailer.

eAnic
04.04.04, 16:25
Ergänzend dazu sollte ich vielleicht anführen, dass ich nach folgenden Manuals vorgegangen bin.

postfix+courier-imap+cyrus-sasl+mysql: http://www.high5.net/howto
cyrus-sasl mit MD5 Passwörtern: http://frost.ath.cx/software/cyrus-sasl-patches

Ich hab jetzt cyrus-sasl nochmal installiert, weil ich eig. keinen spamrelay will.

Gibt es eine Möglichkeit zu checken, ob postfix wirklich mit sasl-support kompiliert wurde?
Und kann ich mich irgendwie alternativ (telnet) einloggen?

stefaan
04.04.04, 19:47
Servus!

Interessant wäre ein Auszug des gescheiterten Logins... :D

Grüße, Stefan

eAnic
04.04.04, 19:58
Kann ich inzwischen auch schon genügend liefern. Ich weiß nun auch definitiv, dass kein sasl support in postfix integriert ist.

Anbei ein Auszug meiner mail.msg


Apr 4 20:08:09 novisan postfix/smtpd[17380]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
Apr 4 20:08:09 novisan postfix/smtpd[17380]: connect from ux3.wcm.at[80.78.228.21]
Apr 4 20:08:09 novisan postfix/smtpd[17380]: CF374461F56: client=ux3.wcm.at[80.78.228.21]
Apr 4 20:08:09 novisan postfix/smtpd[17380]: warning: restriction `permit_sasl_authenticated' ignored: no SASL support
Apr 4 20:08:09 novisan postfix/smtpd[17380]: warning: unknown smtpd restriction: "reject_invalid"
Apr 4 20:08:09 novisan postfix/smtpd[17380]: CF374461F56: reject: RCPT from ux3.wcm.at[80.78.228.21]: 451 Server configuration error; from=<www-data@ux3.wc$
Apr 4 20:08:11 novisan postfix/cleanup[17381]: E253E461F56: message-id=<20040404180811.E253E461F56@mail.statictune.net>
Apr 4 20:08:11 novisan postfix/qmgr[318]: E253E461F56: from=<double-bounce@mail.statictune.net>, size=868, nrcpt=1 (queue active)
Apr 4 20:08:11 novisan postfix/smtpd[17380]: disconnect from ux3.wcm.at[80.78.228.21]
Apr 4 20:08:11 novisan postfix/local[17383]: warning: lookup owner-postmaster, NIS domain statictune.net, map mail.aliases: can't bind to server on this do$
Apr 4 20:08:11 novisan postfix/local[17383]: E253E461F56: to=<postmaster@mail.statictune.net>, orig_to=<postmaster>, relay=local, delay=0, status=deferred $
Apr 4 20:11:01 novisan postfix/qmgr[318]: 87012461EE6: from=<double-bounce@mail.statictune.net>, size=1350, nrcpt=1 (queue active)
Apr 4 20:11:01 novisan postfix/qmgr[318]: BD9BE461F21: from=<double-bounce@mail.statictune.net>, size=1633, nrcpt=1 (queue active)
Apr 4 20:11:01 novisan postfix/qmgr[318]: 2EE4E461F31: from=<double-bounce@mail.statictune.net>, size=914, nrcpt=1 (queue active)
Apr 4 20:11:01 novisan postfix/qmgr[318]: 14CCA461EE5: from=<double-bounce@mail.statictune.net>, size=1392, nrcpt=1 (queue active)
Apr 4 20:11:01 novisan postfix/qmgr[318]: 7F12F461EF2: from=<double-bounce@mail.statictune.net>, size=1591, nrcpt=1 (queue active)

stefaan
04.04.04, 20:13
Servus!

> Apr 4 20:08:09 novisan postfix/smtpd[17380]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in

Ich würd sagen, hier hast du den Hund begraben...
Neu kompilieren oder passendes RPM nehmen...

Grüße, Stefan

eAnic
04.04.04, 20:42
Hab ich gemacht und zwar mit dieser Zeile
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/server/mysql4/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl 'AUXLIBS=-L/server/mysql4/lib/mysql -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2'

Mysql wird eingebunden, sasl allerdings nicht, obwohl sich die Libs in dem Verzeichnis befinden. Und Fehlermeldung beim Kompilieren erhalte ich auch keine. Ich versteh das echt nicht mehr.

Ein RPM bringt mir nix, weil ich auf SoL arbeite :)