PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Sendmail zerschossen



[MORD]Locutus
02.10.05, 03:19
Hi,
ich hoffe es sind noch einige da die mir evt helfen könnten.
Ich hab mir bei meinem Debian-Server gerade sendmail zerschossen.
Hab ein apt-get update und dann apt-get install sendmail gemacht.
Alle zusätzlichen Pakete wurden ohne Probleme installiert
nur bei Sendmail bekomme ich folgenden fehler:

Updating /etc/mail/aliases...
/etc/mail/aliases: line 32: news... Warning: duplicate alias name news
/etc/mail/aliases: 35 aliases, longest 93 bytes, 581 bytes total
invoke-rc.d: not a symlink: /etc/rc2.d/S94sendmail
dpkg: error processing sendmail-bin (--configure):
subprocess post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of rmail:
rmail depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet
.
Package nullmailer which provides mail-transport-agent is not installed.
Package exim which provides mail-transport-agent is not installed.
dpkg: error processing rmail (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
sensible-mda depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet
.
Package nullmailer which provides mail-transport-agent is not installed.
Package exim which provides mail-transport-agent is not installed.
dpkg: error processing sensible-mda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sendmail:
sendmail depends on sendmail-bin (= 8.13.4-3); however:
Package sendmail-bin is not configured yet.
sendmail depends on sensible-mda (= 8.13.4-3); however:
Package sensible-mda is not configured yet.
sendmail depends on rmail (= 8.13.4-3); however:
Package rmail is not configured yet.
dpkg: error processing sendmail (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sendmail-bin
rmail
sensible-mda
sendmail
Updating Debian Packages of System Configurations.
E: Sub-process /usr/bin/dpkg returned an error code (1)


Werde daraus nicht schlau.
Wäre für Hilfe sehr dankbar!

carnil
02.10.05, 20:11
sorry bitte löschen, fälschlicherweise zwiemal auf Abschicken gedrückt!

carnil
02.10.05, 20:12
Hallo

Was kommt bei


apt-get -f install
dpkg --configure -a

Was ist die Ausgabe von


ls -lah /etc/init.d/sendmail

und


ls -lah /etc/rc2.d/*sendmail

[MORD]Locutus
02.10.05, 21:37
Danke für deine Antwort!

Bei apt-get -f install kommt die gleiche Ausgabe wie oben.
Bei dpkg --configure -a kommt:


Setting up sendmail-bin (8.13.4-3) ...
update-rc.d: /etc/init.d/sendmail exists during rc.d purge (continuing)
update-rc.d: warning: /etc/rc2.d/S94sendmail is not a symbolic link
update-rc.d: warning: /etc/rc2.d/S94sendmail is not a symbolic link
Saving old /etc/mail/sendmail.cf as /etc/mail/sendmail.cf.old ...
Stopping Sendmailrm: cannot remove `/var/run/sendmail.pid': No such file or directory
.
Updating sendmail environment ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...

Checking filesystem, this may take some time - it will not hang!
... Done.

Checking for installed MDAs...
sasl2-bin not installed, not configuring sendmail support.

To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"


Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
Creating SSL certificates for sendmail.
Checking {sendmail,submit}.mc and related databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Updating /etc/mail/access...
Updating /etc/mail/aliases...
/etc/mail/aliases: line 32: news... Warning: duplicate alias name news
/etc/mail/aliases: 35 aliases, longest 93 bytes, 581 bytes total
invoke-rc.d: not a symlink: /etc/rc2.d/S94sendmail
dpkg: error processing sendmail-bin (--configure):
subprocess post-installation script returned error exit status 102
dpkg: dependency problems prevent configuration of sendmail:
sendmail depends on sendmail-bin (= 8.13.4-3); however:
Package sendmail-bin is not configured yet.
dpkg: error processing sendmail (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rmail:
rmail depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet.
Package nullmailer which provides mail-transport-agent is not installed.
Package exim which provides mail-transport-agent is not installed.
dpkg: error processing rmail (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
sensible-mda depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet.
Package nullmailer which provides mail-transport-agent is not installed.
Package exim which provides mail-transport-agent is not installed.
dpkg: error processing sensible-mda (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sendmail-bin
sendmail
rmail
sensible-mda


Bei ls -lah /etc/init.d/sendmail kommt:



-rwxr-xr-x 1 ezad users 816 Jun 20 2003 /etc/init.d/sendmail


Und bei ls -lah /etc/rc2.d/*sendmail kommt:


-rwxr-xr-x 1 ezad users 816 Jun 20 2003 /etc/rc2.d/S94sendmail

carnil
02.10.05, 21:40
Hi

Sichere mal die Datei unter /etc/rc2.d/S94sendmail vorsichtshalber. Dann löschen, und erstelle einen Symlink S94sendmail auf /etc/init.d/sendmail. Dann nochmals das update ausführen, bzw. die Schritte oben.

Hoffe es hilft.

Edit: Bist Du auch gerade beim Wechseln von oldstable (woody) auf stable (sarge)?

[MORD]Locutus
02.10.05, 22:13
Erst mal 1000 Dank!
So wie es aussieht hat es geklappt und sendmail scheint installiert zu sein,
allerdings lässt es sich auch nach einem Neustart nicht über das Webinterface starten.
Ich bekommen nur ein "Sendmail Offline". Außerdem kann ich weder Mails empfangen noch verschicken.

EDIT: Nein eigentlich nicht. Wollte bei Woody bleiben. Ich hatte kleinere Probleme mit Sendmail und PHP bzw Perl-Scripten, daher dachte ich ein update würde evt helfen..

carnil
03.10.05, 20:13
Hallo
Locutus']Erst mal 1000 Dank!
So wie es aussieht hat es geklappt und sendmail scheint installiert zu sein,
allerdings lässt es sich auch nach einem Neustart nicht über das Webinterface starten.
Ich bekommen nur ein "Sendmail Offline". Außerdem kann ich weder Mails empfangen noch verschicken.

Hmm, dazu kann ich leider nicht allzuviel sagen. Wie siehts aus, wenn Du sendmail "manuell" starten willst?


invoke-rc.d sendmail stop
invoke-rc.d sendmail start

gibt es Fehlermeldungen? Oder steht dann etwas dazu in den Log-Dateien?

[MORD]Locutus
04.10.05, 10:12
beim starten kommt: Starting Sendmail
beim stoppen:
Stopping Sendmailrm: cannot remove `/var/run/sendmail.pid': No such file or directory

carnil
06.10.05, 20:17
Hallo

Da kann ich leider nicht weiterhelfen, die Suche bei google war bei mir nicht so ergiebig, einziges Resultat war http://www.serversupportforum.de/forum/mail/1822-netdirekt-server-nach-upgrade-kein-mailversand-mehr.html und das lässt sich nicht wirklich weitergebrauchen. Der einzige Vorschlag der dort fiel war ein reboot. Kannst es ja mal versuchen, aber ... :)

LKH
06.10.05, 21:31
Hi,


Locutus']beim starten kommt: Starting Sendmail
beim stoppen:
Stopping Sendmailrm: cannot remove `/var/run/sendmail.pid': No such file or directory


Frage ist, ob Sendmail überhaupt startet. Teste das mal mit einem "telnet hostname 25" bzw. einem "ps -ef | grep sendmail".

LKH

[MORD]Locutus
07.10.05, 02:36
hehe.. wie der zufall es will hab ich auch einen netdirekt-server! :ugly: :ugly: :ugly:
Das Problem wurde von mir nun auf die harte, aber sicherlich bessere Tour gelößt. Ich hab ein neues Image eigespielt und hab jetzt Sarge! Außerdem hat mir der Support von Netdirket versichert, dass das Sarge-Image update fähig is.
Das sendmail jedenfalls war ein Eigenbau von Netdirekt unter woody.

carnil
07.10.05, 09:56
Hallo
Locutus']hehe.. wie der zufall es will hab ich auch einen netdirekt-server! :ugly: :ugly: :ugly:
Hehe :D

Zufälle gibts ... nunja, hier kann man dann also wohl sagen, egal ob auf die harte Tour, immerhin gehts jetzt ;)