[Hetzner] Mailserver Probleme

reichweite.de

New Member
Tach,

ich bin verzweifelt, zuerst wurden nicht alle Mails verschickt, dann nach etlichem Rumfummeln (und ein paar Hetzner-Wiki-Anleitungen) "geht gar nix mehr". :confused:

Vielleicht kann mir hier ja jemand weiterhelfen, ich wäre sehr dankbar:

Debian-40-etch-64-LAMP

/var/log/mail.err:
Code:
Jul 20 19:57:38 Debian-40-etch-64-LAMP cyrus/deliver[19916]: connect(/var/run/cyrus/socket/lmtp) failed: No such file or directory
Jul 20 19:57:38 Debian-40-etch-64-LAMP cyrus/deliver[19918]: connect(/var/run/cyrus/socket/lmtp) failed: No such file or directory


var/log/mail.info:
Code:
Jul 19 13:07:38 Debian-40-etch-64-LAMP cyrus/deliver[12355]: connect(/var/run/cyrus/socket/lmtp) failed: No such file or directory
Jul 19 13:07:38 Debian-40-etch-64-LAMP postfix/pipe[12340]: 877F11C38087: to=<root@mail.reichweite.de>, relay=cyrus, delay=125000, delays=125000/0.27/0/0.0
3, dsn=4.3.0, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: No such file or directory_ 421 4.3.0 deliver: couldn't connect
 to lmtpd_ )

/var/log/mail.warn:
Code:
Jul 20 03:50:58 Debian-40-etch-64-LAMP cyrus/deliver[29791]: connect(/var/run/cyrus/socket/lmtp) failed: No such file or directory
Jul 20 03:53:58 Debian-40-etch-64-LAMP postfix/sendmail[29795]: fatal: open /etc/postfix/main.cf: Permission denied

Wo kann ich noch nachschauen? Bzw. welche Dateien wären interessant?
 
Der Socket ex. nicht:
Code:
Debian-40-etch-64-LAMP:/var/run/cyrus/socket# ls
notify
Wie erzeugt man einen socket?

In der /etc/cyrus.conf finde ich:

Code:
SERVICES {
        # --- Normal cyrus spool, or Murder backends ---
        # add or remove based on preferences
        imap            cmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
        imaps           cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100
        pop3            cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
        pop3s           cmd="pop3d -s -U 30" listen="pop3s" prefork=0 maxchild=50
        squatter_1      cmd="/usr/bin/nice -n 19 /usr/sbin/squatter -s" period=120
        nntp            cmd="nntpd -U 30" listen="nntp" prefork=0 maxchild=100
        #nntps          cmd="nntpd -s -U 30" listen="nntps" prefork=0 maxchild=100

        # At least one form of LMTP is required for delivery
        # (you must keep the Unix socket name in sync with imap.conf)
        #lmtp           cmd="lmtpd" listen="localhost:lmtp" prefork=0 maxchild=20
        lmtpunix        cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=0 maxchild=20

postfix wäre der MTA, welche Datei ist denn interessant?

Code:
Debian-40-etch-64-LAMP:/etc/postfix# ls -al
total 104K
drwxr-xr-x  3 root root 4.0K 2009-07-06 13:23 .
drwxr-xr-x 78 root root 4.0K 2009-07-09 21:51 ..
-rw-r--r--  1 root root  425 2009-04-26 11:24 dynamicmaps.cf
-rw-------  1 root root 2.4K 2009-07-06 13:29 main.cf
-rw-r--r--  1 root root 5.2K 2009-04-26 13:25 master.cf
-rw-------  1 root root  462 2009-05-05 18:30 mysql-canonical.cf
-rw-------  1 root root  464 2009-05-05 18:30 mysql-canonical.cf~
-rw-------  1 root root  369 2009-05-05 18:31 mysql-mydestination.cf
-rw-------  1 root root  371 2009-05-05 18:31 mysql-mydestination.cf~
-rw-------  1 root root  402 2009-05-05 18:31 mysql-virtual.cf
-rw-------  1 root root  404 2009-05-05 18:31 mysql-virtual.cf~
-rw-r--r--  1 root root  18K 2008-08-19 09:33 postfix-files
-rwxr-xr-x  1 root root 6.7K 2008-08-19 09:33 postfix-script
-rwxr-xr-x  1 root root  22K 2008-08-19 09:33 post-install
drwxr-xr-x  2 root root 4.0K 2009-04-26 11:25 sasl

Danke schonmal. Hab noch recht wenig Mailserver-Know-How...

Würde es Sinn machen, postfix zu deinstallieren und neu zu installieren?
 
Last edited by a moderator:
Der Socket wird normalerweise automatisch angelegt, wenn der Dienst gestartet wird (und verschwindet wieder, wenn der Dienst gestoppt wird). Daher mal die Logfiles durchforsten, warum der Dienst nicht läuft.
Ansonsten mal mit "/etc/init.d/cyrus restart" versuchen, ihn wieder zu starten.
 
Aha, habe da zwei Mal cyrus gefunden:
Code:
Debian-40-etch-64-LAMP:/etc/init.d# ls -al cyr*
-rwxr-xr-x 1 root root 4.0K 2007-02-13 09:37 cyrus21
-rwxr-xr-x 1 root root 6.6K 2006-12-09 16:52 cyrus2.2
Debian-40-etch-64-LAMP:/etc/init.d#
und:
Code:
Debian-40-etch-64-LAMP:/etc/init.d# /etc/init.d/cyrus2.2 restart
Stopping Cyrus IMAPd: .
Waiting for complete shutdown...
/etc/init.d/cyrus2.2: Database backends mismatch! You must manually
/etc/init.d/cyrus2.2: verify and update the Cyrus databases to the
/etc/init.d/cyrus2.2: new backends.
/etc/init.d/cyrus2.2: Please refer to /usr/share/doc/cyrus-common-2.2/README.Debian
/etc/init.d/cyrus2.2: for instructions.

/etc/init.d/cyrus2.2: Cyrmaster not started.
 
Sieht so aus, als ob Du wohl die andere (ältere) Version nehmen oder die Anleitung in der angegebenen README-Datei befolgen solltest.
Schau mal nach welche der beiden Dateien nach /etc/init.d/rc3.d/ verlinkt ist und ob der Link evtl. kürzlich geändert wurde (Datum).
 
Nach /etc/init.d/rc3.d/ scheint keine verlinkt zu sein:
Code:
Debian-40-etch-64-LAMP:/etc/init.d# ls -al rc*
-rwxr-xr-x 1 root root 7.9K 2008-05-19 18:28 rc
-rwxr-xr-x 1 root root  798 2007-01-30 23:36 rc.local
-rwxr-xr-x 1 root root  117 2008-05-19 18:28 rcS
Die Installation von cyrus wurde nach der Hetzner-Wiki-Anleitung vorgenommen, da stand cyrus21 eigentlich unter "Sarge" und nicht "Etch":
DebianMailserver3 ? Hetzner DokuWiki

Kann ich denn eine der beiden deinstallieren?
 
Kann sein, dass der Pfad bei Debian /etc/rc3.d/ ist -- ich verwende kein Debian ;)

Zu der Installation kann ich nichts sagen, aber es sieht fast so aus, als ob da was durcheinander gekommen ist...
 
In dem Verzeichnis ist einiges verlinkt:
Code:
Debian-40-etch-64-LAMP:/etc# ls -al rc3.d
total 12K
drwxr-xr-x  2 root root 4.0K 2009-04-26 13:22 .
drwxr-xr-x 78 root root 4.0K 2009-07-09 21:51 ..
-rw-r--r--  1 root root  556 2008-05-19 18:28 README
lrwxrwxrwx  1 root root   18 2008-10-07 16:18 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx  1 root root   15 2008-10-07 16:18 S11klogd -> ../init.d/klogd
lrwxrwxrwx  1 root root   23 2008-10-07 16:18 S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx  1 root root   19 2008-10-07 16:18 S18mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx  1 root root   15 2008-10-07 16:18 S19mysql -> ../init.d/mysql
lrwxrwxrwx  1 root root   18 2009-04-26 13:18 S19postgrey -> ../init.d/postgrey
lrwxrwxrwx  1 root root   22 2009-04-26 13:22 S19spamassassin -> ../init.d/spamassassin
lrwxrwxrwx  1 root root   15 2008-10-07 16:18 S20acpid -> ../init.d/acpid
lrwxrwxrwx  1 root root   23 2009-04-26 13:21 S20clamav-daemon -> ../init.d/clamav-daemon
lrwxrwxrwx  1 root root   26 2009-04-26 13:21 S20clamav-freshclam -> ../init.d/clamav-freshclam
lrwxrwxrwx  1 root root   22 2008-10-07 16:18 S20cpufrequtils -> ../init.d/cpufrequtils
lrwxrwxrwx  1 root root   17 2009-04-26 12:30 S20cyrus21 -> ../init.d/cyrus21
lrwxrwxrwx  1 root root   18 2009-04-26 12:31 S20cyrus2.2 -> ../init.d/cyrus2.2
lrwxrwxrwx  1 root root   17 2008-10-09 02:32 S20hddtemp -> ../init.d/hddtemp
lrwxrwxrwx  1 root root   17 2008-10-07 16:18 S20makedev -> ../init.d/makedev
lrwxrwxrwx  1 root root   23 2008-10-07 16:18 S20openbsd-inetd -> ../init.d/openbsd-inetd
lrwxrwxrwx  1 root root   17 2009-04-26 11:24 S20postfix -> ../init.d/postfix
lrwxrwxrwx  1 root root   15 2008-10-07 16:18 S20rsync -> ../init.d/rsync
lrwxrwxrwx  1 root root   19 2009-04-26 11:22 S20saslauthd -> ../init.d/saslauthd
lrwxrwxrwx  1 root root   13 2008-10-07 16:18 S20ssh -> ../init.d/ssh
lrwxrwxrwx  1 root root   18 2008-10-28 21:01 S21sendmail -> ../init.d/sendmail
lrwxrwxrwx  1 root root   13 2008-11-07 13:14 S23ntp -> ../init.d/ntp
lrwxrwxrwx  1 root root   15 2008-10-07 16:18 S25mdadm -> ../init.d/mdadm
lrwxrwxrwx  1 root root   17 2008-10-07 16:18 S50proftpd -> ../init.d/proftpd
lrwxrwxrwx  1 root root   14 2008-10-07 16:18 S89cron -> ../init.d/cron
lrwxrwxrwx  1 root root   17 2008-10-07 16:18 S91apache2 -> ../init.d/apache2
lrwxrwxrwx  1 root root   18 2008-10-07 16:18 S99rc.local -> ../init.d/rc.local
lrwxrwxrwx  1 root root   19 2008-10-07 16:18 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx  1 root root   23 2008-10-07 16:18 S99stop-bootlogd -> ../init.d/stop-bootlogd
lrwxrwxrwx  1 root root   18 2008-10-07 16:18 S99webmin -> /etc/init.d/webmin

Es existieren aber auch andere Verzeichnisse rcx.d (x in 0,1,2,3,4,5,6,S)...
 
Code:
lrwxrwxrwx  1 root root   17 2009-04-26 12:30 S20cyrus21 -> ../init.d/cyrus21
lrwxrwxrwx  1 root root   18 2009-04-26 12:31 S20cyrus2.2 -> ../init.d/cyrus2.2
Es wird versucht, beide Versionen beim Booten zu starten, was natürlich nicht gut gehen kann. Wie es scheint, hast Du (nach der Anleitung) cyrus installiert, obwohl bereits eine andere Version davon installiert war. Da sind Komplikationen vorprogrammiert.

Wie Du aus dem Schlamassel wieder rauskommst, muss Dir ein Debian-Profi sagen. Vermutlich müssen beide Versionen deinstalliert werden, um anschliend eine davon sauber installieren zu können.
 
Wie es scheint, hast Du (nach der Anleitung) cyrus installiert, obwohl bereits eine andere Version davon installiert war.

Zumindest ist das Problem jetzt eingekreist, danke. Evtl. reicht ja ein:

Code:
apt-get remove
oder ein
Code:
apt-get --purge remove

aber das traue ich mich nicht "einfach so".
 
Back
Top