Page 1 of 1

Problem mit Postfix

Posted: 2004-11-30 20:00
by anpa
Hallo!
Mein Postfix läuft schon einige Zeit und hat auch immer funktioniert.
Doch plötzlich konnte ich keine Mails mehr abrufen.
In der mail.info steht folgendes drin:

Code: Select all

Nov 30 20:47:33 server pop3d: Connection, ip=[212.202.176.116]
Nov 30 20:47:33 server pop3d: db_connect: failed to connect to database: Error: Access denied for user: 'admin@localhost' (Using Passwort: YES)
Nov 30 20:47:33 server pop3d: Unable to connect to the mysql database
Ich hab nix geändert in der Zwischenzeit, das Problem trat plötzlich auf.
Wenn ich den Status von rcpostfix abfrage, sagt er mit dead. Klar, es heisst tot, aber was bedeutet das? Neu starten bringt auch nicht den gewünschten Erfolg.

Ein paar infos:
Suse 9.0
Confixx3


Gruß
AnPa

Re: Problem mit Postfix

Posted: 2004-11-30 20:05
by anpa
Ich seh grad folgendes in der mail.err:

Code: Select all

Nov 30 15:17:56 server postfix/master[1573]: fatal: bind INADDR_ANY port 25: Address already in use
Nov 30 15:18:56 server postfix/postqueue[2070]: fatal: Cannot flush mail queue - mail system is down
Nov 30 16:39:25 server postfix/master[3725]: fatal: bind INADDR_ANY port 25: Address already in use
Nov 30 16:40:26 server postfix/postqueue[3898]: fatal: Cannot flush mail queue - mail system is down
Nov 30 16:43:23 server postfix/master[1822]: fatal: bind INADDR_ANY port 25: Address already in use
Nov 30 16:44:24 server postfix/postqueue[2066]: fatal: Cannot flush mail queue - mail system is down
Wieso ist der Port 25 belegt? Wodurch?
Ein Server Neustart brachte auch keinen erfolg....

Re: Problem mit Postfix

Posted: 2004-11-30 20:13
by Joe User
1.) Postfix hat mit POP3 nix am Hut.
2.) /etc/init.d/mysql stop
3.) /etc/init.d/mysql start
4.) /etc/init.d/postfix stop
5.) /etc/init.d/postfix start
6.) ps auxf

Re: Problem mit Postfix

Posted: 2004-11-30 20:20
by anpa
1.) Postfix hat mit POP3 nix am Hut.
Ok :)
2.) /etc/init.d/mysql stop
3.) /etc/init.d/mysql start
4.) /etc/init.d/postfix stop
5.) /etc/init.d/postfix start
Ok, wobei mysql erst beim 2. mal starten wieder kam, beim 1. Versuch kam "failed"
6.) ps auxf
Also wenn du die Ausgabe davon haben wolltest, dann hier:

Code: Select all

server:/ # ps auxf
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   620  256 ?        S    16:42   0:03 init [3]
root         2  0.0  0.0     0    0 ?        SW   16:42   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  16:42   0:00 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   16:42   0:00 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   16:42   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   16:42   0:00 [kupdated]
root         7  0.0  0.0     0    0 ?        SW   16:42   0:00 [kinoded]
root         8  0.0  0.0     0    0 ?        SW   16:42   0:00 [mdrecoveryd]
root        12  0.0  0.0     0    0 ?        SW   16:42   0:00 [kjournald]
root        55  0.0  0.0     0    0 ?        SW   16:42   0:00 [kcopyd]
root       543  0.0  0.1  1560  624 ?        S    16:43   0:00 /sbin/syslogd -a /var/lib/named/dev/log
root       546  0.0  0.3  2352 1404 ?        S    16:43   0:00 /sbin/klogd -c 1 -2
root       568  0.0  0.1  1524  496 ?        S    16:43   0:00 /sbin/resmgrd
bin        575  0.0  0.0  1516  400 ?        S    16:43   0:00 /sbin/portmap
root       577  0.0  0.2  4136 1068 ?        S    16:43   0:00 /usr/sbin/saslauthd -a pam
root       578  0.0  0.2  4136 1068 ?        S    16:43   0:00  _ /usr/sbin/saslauthd -a pam
root       579  0.0  0.2  4136 1068 ?        S    16:43   0:00  _ /usr/sbin/saslauthd -a pam
root       580  0.0  0.2  4136 1068 ?        S    16:43   0:00  _ /usr/sbin/saslauthd -a pam
root       581  0.0  0.2  4136 1068 ?        S    16:43   0:00  _ /usr/sbin/saslauthd -a pam
root       582  0.0  1.2  7896 5460 ?        S    16:43   0:00 /usr/bin/perl /usr/libexec/usermin/miniserv.pl /etc/usermin/min
root       629  0.0  0.2  2172  900 ?        S    16:43   0:00 /usr/sbin/xinetd
root       646  0.0  0.1  1504  580 ?        S    16:43   0:00 /usr/sbin/acpid
root       648  0.0  0.1  1584  512 ?        S    16:43   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root       649  0.0  0.3  4916 1644 ?        S    16:43   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root      2600  0.0  0.5  5580 2336 ?        S    16:46   0:00  _ sshd: root@pts/0
root      2611  0.0  0.5  5580 2336 ?        S    16:47   0:00      _ sshd: root@pts/0
root      2615  0.0  0.3  2968 1688 pts/0    S    16:48   0:00      _ -bash
root      8952  0.0  0.1  2664  724 pts/0    R    21:14   0:00          _ ps auxf
root       654  0.0  0.0  1352  288 ?        S    16:43   0:00 /usr/lib/courier-imap/sbin/courierlogger imapd
root       688  0.0  0.1  1584  512 ?        S    16:43   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root       690  0.0  0.0  1352  288 ?        S    16:43   0:00 /usr/lib/courier-imap/sbin/courierlogger imapd-ssl
root       699  0.0  0.1  1584  516 ?        S    16:43   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root       703  0.0  0.0  1484  436 ?        S    16:43   0:00 /usr/lib/courier-imap/sbin/courierlogger pop3d
root       708  0.0  0.1  1584  512 ?        S    16:43   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root       710  0.0  0.0  1352  288 ?        S    16:43   0:00 /usr/lib/courier-imap/sbin/courierlogger pop3d-ssl
at        1861  0.0  0.1  1684  592 ?        S    16:43   0:00 /usr/sbin/atd
root      1891  0.0  2.5 28456 11420 ?       S    16:43   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root      1892  0.0  0.3  3312 1404 ?        S    16:43   0:00  _ /usr/bin/perl /usr/local/confixx/pipelog.pl
root      1900  0.0  2.5 28396 11352 ?       S    16:43   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    1902  0.0  3.0 30144 13840 ?       S    16:43   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    2598  0.0  3.0 29908 13560 ?       S    16:46   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    2732  0.0  3.6 32704 16548 ?       S    16:54   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3337  0.0  2.9 29740 13432 ?       S    17:37   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3338  0.0  3.0 29968 13544 ?       S    17:37   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4027  0.0  3.4 31708 15500 ?       S    17:51   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4028  0.0  3.0 30060 13740 ?       S    17:51   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4029  0.0  2.9 29752 13436 ?       S    17:51   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    4039  0.0  3.0 30308 13936 ?       S    17:51   0:01  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    8220  0.0  2.8 29452 12832 ?       S    20:59   0:00  _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root      1933  0.0  0.1  1516  588 ?        S    16:43   0:00 /usr/sbin/cron
root      8788  0.0  0.0     0    0 ?        Z    21:14   0:00  _ [cron] <defunct>
root      1939  0.0  0.1 12272  784 ?        S    16:43   0:00 /usr/sbin/nscd
root      1940  0.0  0.1 12272  784 ?        S    16:43   0:00  _ /usr/sbin/nscd
root      1941  0.0  0.1 12272  784 ?        S    16:43   0:00      _ /usr/sbin/nscd
root      1942  0.0  0.1 12272  784 ?        S    16:43   0:00      _ /usr/sbin/nscd
root      1943  0.0  0.1 12272  784 ?        S    16:43   0:00      _ /usr/sbin/nscd
root      1944  0.0  0.1 12272  784 ?        S    16:43   0:00      _ /usr/sbin/nscd
root      1945  0.0  0.1 12272  784 ?        S    16:43   0:00      _ /usr/sbin/nscd
root      1958  0.0  0.1  1500  516 tty1     S    16:43   0:00 /sbin/mingetty --noclear tty1
root      1959  0.0  0.1  1500  516 tty2     S    16:43   0:00 /sbin/mingetty tty2
root      1960  0.0  0.1  1500  516 tty3     S    16:43   0:00 /sbin/mingetty tty3
root      1961  0.0  0.1  1500  512 tty4     S    16:43   0:00 /sbin/mingetty tty4
root      1962  0.0  0.1  1500  512 tty5     S    16:43   0:00 /sbin/mingetty tty5
root      1963  0.0  0.1  1500  512 tty6     S    16:43   0:00 /sbin/mingetty tty6
named     8701  0.0  0.6 11216 2788 ?        S    21:10   0:00 /usr/sbin/named -t /var/lib/named -u named
named     8702  0.0  0.6 11216 2788 ?        S    21:10   0:00  _ /usr/sbin/named -t /var/lib/named -u named
named     8703  0.0  0.6 11216 2788 ?        S    21:10   0:00      _ /usr/sbin/named -t /var/lib/named -u named
named     8704  0.0  0.6 11216 2788 ?        S    21:10   0:00      _ /usr/sbin/named -t /var/lib/named -u named
named     8705  0.0  0.6 11216 2788 ?        S    21:10   0:00      _ /usr/sbin/named -t /var/lib/named -u named
root      8805  0.0  0.2  2704 1204 pts/0    S    21:14   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/m
mysql     8838  0.2  3.5 71140 16152 pts/0   S    21:14   0:00  _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/lib/mysq
mysql     8839  0.0  3.5 71140 16152 pts/0   S    21:14   0:00      _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/lib/
mysql     8840  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8841  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8842  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8843  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8845  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8846  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8847  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8848  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
mysql     8849  0.0  3.5 71140 16152 pts/0   S    21:14   0:00          _ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/
root      8941  0.2  0.2  2704 1236 pts/0    S    21:14   0:00 /bin/sh /etc/init.d/postfix start
root      8951  0.0  0.1  2236  608 pts/0    S    21:14   0:00  _ sleep 1
server:/ #
Hoffe du kannst mir helfen..
gruß
AnPa

Re: Problem mit Postfix

Posted: 2004-11-30 20:55
by Joe User
1.) Deinstallieren/deaktivieren: MySQL-Max, acpid, portmap und webmin
2.) Reboot

Re: Problem mit Postfix

Posted: 2004-11-30 21:01
by [tom]
Ohne die lange Prozessliste zu lesen: Nach Deiner Beschreibung läuft da ein anderer MTA (oder Postfix will 2 Mal starten).

Code: Select all

$ lsof -i -P | grep ":25"
Dann siehst Du, wer den Port 25 benutzt.


[TOM]

Re: Problem mit Postfix

Posted: 2004-11-30 21:12
by anpa
lsof -i -P | grep ":25"
ergbit:

Code: Select all

server:/var/mail # lsof -i -P | grep ":25"
xinetd      629   root    8u  IPv4   3048       TCP *:25 (LISTEN)
Habe mysql-max, acpid und portmap deinstalliert. Webmin ist nicht vorhanden.
Neu gestartet.
Geht leider immer noch nicht, postfix ist dead....
Und nun? Bin ratlos.....

Re: Problem mit Postfix

Posted: 2004-11-30 21:17
by [tom]
AnPa wrote:Und nun? Bin ratlos.....
Weiter suchen. ;-)

Was steht denn in der xinetd.conf drin, also wer startet da den Prozess?


[TOM]

Re: Problem mit Postfix

Posted: 2004-11-30 21:23
by anpa
xinetd.conf:

Code: Select all

#
# xinetd.conf
#
# Copyright (c) 1998-2001 SuSE GmbH Nuernberg, Germany.
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany.
#

defaults
{
        log_type        = FILE /var/log/xinetd.log
        log_on_success  = HOST EXIT DURATION
        log_on_failure  = HOST ATTEMPT
#        only_from       = localhost
        instances       = 30
        cps             = 50 10

#
# The specification of an interface is interesting, if we are on a firewall.
# For example, if you only want to provide services from an internal
# network interface, you may specify your internal interfaces IP-Address.
#
#       interface       = 127.0.0.1

}

includedir /etc/xinetd.d
xinetd.d Verzeichniss:

&#9484;<&#9472;/etc/xinetd.d&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
&#9474; Name &#9474; Size &#9474;
&#9474;/.. &#9474;UP--DIR&#9474;
&#9474; chargen &#9474; 251&#9474;
&#9474; chargen-udp &#9474; 271&#9474;
&#9474; cups-lpd &#9474; 283&#9474;
&#9474; cvs &#9474; 399&#9474;
&#9474; daytime &#9474; 251&#9474;
&#9474; daytime-udp &#9474; 271&#9474;
&#9474; echo &#9474; 243&#9474;
&#9474; echo-udp &#9474; 262&#9474;
&#9474; ftp_psa &#9474; 286&#9474;
&#9474; imap.rpmsave &#9474; 1054&#9474;
&#9474; netstat &#9474; 503&#9474;
&#9474; qpopper &#9474; 216&#9474;
&#9474; qpopper.rpmsave &#9474; 216&#9474;
&#9474; rsync &#9474; 257&#9474;
&#9474; servers &#9474; 260&#9474;
&#9474; services &#9474; 262&#9474;
&#9474; smtp_psa &#9474; 362&#9474;
&#9474; smtps_psa &#9474; 363&#9474;
&#9474; systat &#9474; 485&#9474;
&#9474; time &#9474; 277&#9474;
&#9474; time-udp &#9474; 271&#9474;
&#9474; vnc &#9474; 1696&#9474;
&#9474; vsftpd &#9474; 522&#9474;
&#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;
Ups :) Sieht etwas verzogen aus... Aber naja...

Re: Problem mit Postfix

Posted: 2004-11-30 21:28
by Joe User

Code: Select all

cat /etc/xinetd.d/smtp_psa

Re: Problem mit Postfix

Posted: 2004-11-30 21:30
by anpa
service smtp
{
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
server = /var/qmail/bin/tcp-env
server_args = /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}
Nachdem ich xinetd angehalten habe und postfix gestartet habe, kann ich wieder emails senden.
Aber Abrufen kann ich keine.....

Re: Problem mit Postfix

Posted: 2004-11-30 21:34
by anpa
Ã?hem.. es geht wieder!
Kann mir nun einer sagen was los war??
Sage schon mal vielen Dank an alle Helfer!
Gruß
AnPa

Re: Problem mit Postfix

Posted: 2004-11-30 21:44
by [tom]
AnPa wrote:Nachdem ich xinetd angehalten habe und postfix gestartet habe, kann ich wieder emails senden.
Klar - weil nach einem Reboot qmail als MTA gestartet wird und nicht Postfix. Den qmail hast Du eben gekillt - deswegen ließ sich auch Postfix wieder starten.

Das solltest Du erstmal fixen, bevor es an den POP Daemon geht.


[TOM]

Re: Problem mit Postfix

Posted: 2004-12-01 07:39
by anpa
Also meinst du das ich qmail einfach löschen kann, oder wie seh ich das??

Re: Problem mit Postfix

Posted: 2004-12-01 13:58
by [tom]
Du brauchst nur einen MTA. Was Du mit dem andern machst, ist egal.

Vermutlich existieren für den Postfix schon startscripte. Dann reicht es, wenn Du für den Service SMTP disable auf YES setzt. Dann "sollte" nach einem reboot der Postfix gestartet werden.

Wenn das dann alles klappt, kannst Du mit dem qmail machen, was Du willst - von mir aus grün lackieren oder tiefer legen.


[TOM]