HORDE mailversand error

opaque

New Member
Hallo

Ich bekomme folgenden Fehler wenn ich via Horde Webmail ein Email versenden will:

Code:
Beim Versenden der Nachricht ist ein Fehler aufgetreten: Failed to connect to localhost:25 [SMTP: Failed to connect socket: Erfolg (code: -1, response: )]

Konfig:
1und1 XL V-Server
Suse
Plesk 8.1
spamassasin mit clamAV laut huschi.net

Email Empfangen geht.

Versenden via Entourage (OsX) geht, dauert aber ewig bis das Mail weg ist.

Ein paar logs.

ps ax:
Code:
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init
20093 ?        Ss     0:00 /sbin/syslogd -a /var/lib/named/dev/log -a /var/lib/ntp/dev/log -a /var/lib/stunnel/dev/log
20099 ?        Ss     0:00 /usr/sbin/saslauthd -n 2 -a pam
20100 ?        S      0:00 /usr/sbin/saslauthd -n 2 -a pam
20126 ?        S      0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=imapd -maxprocs=40 -maxperip=4 -pid=/var/run/imapd.pid -nodnslookup -
20128 ?        S      0:00 /usr/sbin/courierlogger imapd
20137 ?        S      0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=imapd-ssl -maxprocs=40 -maxperip=4 -pid=/var/run/imapd-ssl.pid -nodns
20139 ?        S      0:00 /usr/sbin/courierlogger imapd-ssl
20146 ?        S      0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d -maxprocs=40 -maxperip=4 -pid=/var/run/pop3d.pid -nodnslookup -
20148 ?        S      0:00 /usr/sbin/courierlogger pop3d
20156 ?        S      0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d-ssl -maxprocs=40 -maxperip=4 -pid=/var/run/pop3d-ssl.pid -nodns
20158 ?        S      0:00 /usr/sbin/courierlogger pop3d-ssl
20203 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.sock --datadir=/var/lib/mysql
20237 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20241 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20242 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20243 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20244 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20245 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20253 ?        Ss     0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
20259 ?        Ss     0:00 /usr/sbin/xinetd
20260 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20261 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20262 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20263 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20408 ?        S      0:01 /usr/bin/postmaster -D /var/lib/pgsql/data
20410 ?        S      0:00 postgres: writer process                  
20438 ?        Ss     0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20449 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20450 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20533 ?        S      0:02 /usr/sbin/clamd
20539 ?        Ss     0:00 /usr/sbin/cron
20545 ?        Ss     0:00 /usr/bin/freshclam -d
20556 ?        Ss     0:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl --quiet --stale-lock-cleanup start
20560 ?        Ss     0:00 /usr/local/psa/admin/bin/php /usr/local/psa/admin/bin/modules/watchdog/wdcollect -c /usr/local/psa/etc/modules/watchdog/wdcollect.inc.php
20561 ?        Ss     0:00 /usr/local/psa/admin/bin/modules/watchdog/monit -Ic /usr/local/psa/etc/modules/watchdog/monitrc
20564 ?        S      0:00 /usr/local/psa/admin/bin/modules/watchdog/monit -Ic /usr/local/psa/etc/modules/watchdog/monitrc
20565 ?        S      0:00 /usr/local/psa/admin/bin/modules/watchdog/monit -Ic /usr/local/psa/etc/modules/watchdog/monitrc
20571 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
20572 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
20573 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
20574 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
20575 ?        S      0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
20576 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
20577 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
20578 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
20579 ?        S      0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
20697 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20700 ?        Ss     0:00 sshd: root@pts/0                                   
20704 pts/0    Ss     0:00 -bash
20724 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20742 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20744 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20745 ?        S      0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
20807 pts/0    S      0:00 qmail-send
20809 pts/0    S      0:00 splogger qmail
20810 pts/0    S      0:00 qmail-lspawn ./Maildir/
20811 pts/0    S      0:00 qmail-rspawn
20812 pts/0    S      0:00 qmail-clean
20852 ?        Ss     0:00 /usr/sbin/spamd -d -c -L -x -r /var/run/spamd.pid
20853 ?        S      0:00 spamd child
20854 ?        S      0:00 spamd child
21066 ?        Ss     0:00 /usr/local/psa/admin/bin/httpsd
21070 ?        S      0:00 /usr/local/psa/admin/bin/httpsd
21108 ?        Ss     0:00 /usr/sbin/named -t /var/lib/named -u named
21109 ?        S      0:00 /usr/sbin/named -t /var/lib/named -u named
21110 ?        S      0:00 /usr/sbin/named -t /var/lib/named -u named
21111 ?        S      0:00 /usr/sbin/named -t /var/lib/named -u named
21112 ?        S      0:00 /usr/sbin/named -t /var/lib/named -u named
21231 ?        S      0:00 /usr/sbin/clamd
21298 ?        Ss     0:00 tcp-env /usr/sbin/rblsmtpd -r bbin.at /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qma
21305 pts/0    R+     0:00 ps ax

/var/log/mail.err
Code:
Jan 26 08:48:50 s15225430 imapd: /etc/courier-imap/shared/index: No such file or directory
Jan 26 08:50:08 s15225430 clamd[7072]: Can't unlink the pid file /var/lib/clamav/clamd.pid 
Jan 26 08:50:47 s15225430 qmail: 1169797847.044220 alert: cannot start: qmail-send is already running
Jan 26 08:50:48 s15225430 freshclam[20545]: Can't save PID to file /var/lib/clamav/freshclam.pid: Permission denied 
Jan 26 08:50:49 s15225430 clamd[20533]: Can't save PID in file /var/lib/clamav/clamd.pid 
Jan 26 08:52:37 s15225430 imapd: /etc/courier-imap/shared/index: No such file or directory
Jan 26 08:57:49 s15225430 pop3d: 
Jan 26 09:00:52 s15225430 pop3d:

/var/log/mail.warn
Code:
Jan 26 08:36:09 s15225430 imapd: /etc/courier-imap/shared/index: No such file or directory
Jan 26 08:36:48 s15225430 pop3d: 
Jan 26 08:39:03 s15225430 pop3d: 
Jan 26 08:39:03 s15225430 pop3d: 
Jan 26 08:39:41 s15225430 imapd: /etc/courier-imap/shared/index: No such file or directory
Jan 26 08:39:49 s15225430 last message repeated 2 times
Jan 26 08:41:49 s15225430 pop3d: 
Jan 26 08:48:50 s15225430 imapd: /etc/courier-imap/shared/index: No such file or directory
Jan 26 08:50:08 s15225430 clamd[7072]: Can't unlink the pid file /var/lib/clamav/clamd.pid 
Jan 26 08:50:17 s15225430 spamd[1507]: spamd: cannot unlink /var/run/spamd.pid: No such file or directory 
Jan 26 08:50:47 s15225430 qmail: 1169797847.044220 alert: cannot start: qmail-send is already running
Jan 26 08:50:48 s15225430 freshclam[20545]: Can't save PID to file /var/lib/clamav/freshclam.pid: Permission denied 
Jan 26 08:50:49 s15225430 clamd[20533]: Can't save PID in file /var/lib/clamav/clamd.pid 
Jan 26 08:52:37 s15225430 imapd: /etc/courier-imap/shared/index: No such file or directory

/var/log/messages
Code:
Jan 26 09:01:59 s15225430 wdcollect[20560]: Failed to connect to all SMTP servers.

da gibt es eine menge fehlermeldungen aber ich weiss nicht was zu tun ist!

danke walter
 
Failed to connect to localhost:25 [SMTP: Failed to connect socket: Erfolg (code: -1, response: )]
Evtl. lauscht Dein Qmail nicht am localhost sondern nur an der IP selbst.
Mach mal ein "netstat -ap |grep xinet" und such nach Port 25 bzw. SMTP.
Oder Du hast eine Firewall drauf laufen.

Alternativ kannst Du dem Horde auch sagen, er soll über die IP connecten statt über "localhost".

Jan 26 08:50:08 s15225430 clamd[7072]: Can't unlink the pid file /var/lib/clamav/clamd.pid
Jan 26 08:50:17 s15225430 spamd[1507]: spamd: cannot unlink /var/run/spamd.pid: No such file or directory
Jan 26 08:50:48 s15225430 freshclam[20545]: Can't save PID to file /var/lib/clamav/freshclam.pid: Permission denied
Jan 26 08:50:49 s15225430 clamd[20533]: Can't save PID in file /var/lib/clamav/clamd.pid
Hier haben sich die Verzeichnisse wohl neue Benutzer angeeignet. Das kann durch ein Update der RPM-Pakete passiert sein.


huschi.
 
Benutzer

Das Problem mit dem Benutzer hab ich mit chmod 777 und chown vscan:vscan gelöst.

Aber die Sache mit dem Webmail hab ich noch nicht gelöst.

netstat -ap | grep xinet
Code:
tcp        0      0 *:smtps                 *:*                     LISTEN      20259/xinetd        
tcp        0      0 *:ftp                   *:*                     LISTEN      20259/xinetd        
tcp        0      0 *:smtp                  *:*                     LISTEN      20259/xinetd        
tcp        0      0 *:poppassd              *:*                     LISTEN      20259/xinetd        
unix  2      [ ]         DGRAM                    288333286 20259/xinetd

iptables --list
Code:
s15225430:/var/lib/clamav # iptables --list
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
REJECT     tcp  --  anywhere             anywhere            tcp flags:!SYN,RST,ACK/SYN reject-with tcp-reset 
DROP       all  --  anywhere             anywhere            state INVALID 
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pcsync-https 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:cddbp-alt 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3s 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imap 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imaps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:poppassd 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:postgresql 
DROP       tcp  --  anywhere             anywhere            tcp dpt:9008 
DROP       tcp  --  anywhere             anywhere            tcp dpt:glrpc 
DROP       udp  --  anywhere             anywhere            udp dpt:netbios-ns 
DROP       udp  --  anywhere             anywhere            udp dpt:netbios-dgm 
DROP       tcp  --  anywhere             anywhere            tcp dpt:netbios-ssn 
DROP       tcp  --  anywhere             anywhere            tcp dpt:microsoft-ds 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:openvpn 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     icmp --  anywhere             anywhere            icmp type 8 code 0 
ACCEPT     all  --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
REJECT     tcp  --  anywhere             anywhere            tcp flags:!SYN,RST,ACK/SYN reject-with tcp-reset 
DROP       all  --  anywhere             anywhere            state INVALID 
ACCEPT     all  --  anywhere             anywhere            
DROP       all  --  anywhere             anywhere            

Chain OUTPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
REJECT     tcp  --  anywhere             anywhere            tcp flags:!SYN,RST,ACK/SYN reject-with tcp-reset 
DROP       all  --  anywhere             anywhere            state INVALID 
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere

kannst du mir damit weiterhelfen?

danke walter
 
Last edited by a moderator:
Grundsätzlich sollte es also gehen.
Fang mal mit einem "telnet localhost smtp" an.
Wenn Du damit einen Connect erhälst ("QUIT" zum beenden eintippen) liegt es also nicht an der Qmail-Config sondern am Horde.

huschi.
 
localhost

antwort von localhost:
Code:
xxx:~ # telnet localhost smtp
Trying ::1...
xxx:~ # telnet localhost smtp
Trying ::1...
xxx:~ # telnet 127.0.0.1 smtp
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 xxx.server.info ESMTP
quit
221 xxx.server.info
Connection closed by foreign host.
xxx:~ #

walter
 
Code:
xxx:~ # telnet localhost smtp
Trying ::1...[/QUOTE]
Du hast Dir Deinen localhost zerschossen. :)
Wahrscheinlich stimmt Deine /etc/hosts nicht mehr. Dort sollte sowas drin stehen:
[code]127.0.0.1 localhost.localdomain localhost

huschi.
 
/etc/hosts

sieht so aus:
Code:
s15225430:/etc # vi hosts
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#


# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts

127.0.0.1       s1111111.onlinehome-server.info        s1111111
 
Muß man Dir noch sagen, was Du tun mußt, oder siehst Du es selber?
Evlt. einfach mal etwas experimentieren.
Der Lösungsansatz steht schon oben. Du mußt es nur noch für Dich umsetzen.

huschi.
 
Back
Top