Verzweifel an Miller

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
bmp
Posts: 116
Joined: 2003-03-13 16:30

Verzweifel an Miller

Post by bmp » 2005-11-17 15:45

Ich versuche Clamav mit Sendmail zu verbinden.
Dabei kommt das raus:
sendmail[3241]: jAHEUwXd003241: Milter (milter-amavis): error connecting to filter: Connection refused by /var/run/amavis/amavis-milter.sock
Welche Rechte UID GID braucht der sock ??

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: Verzweifel an Miller

Post by Roger Wilco » 2005-11-17 18:39

BMP wrote:Welche Rechte UID GID braucht der sock ??
So, dass Sendmail darauf zugreifen kann.

Aber in der Meldung steht nichts von "Permission denied", sondern "Connection refused". ;)

bmp
Posts: 116
Joined: 2003-03-13 16:30

Re: Verzweifel an Miller

Post by bmp » 2005-11-17 23:09

Roger Wilco wrote:So, dass Sendmail darauf zugreifen kann.

Aber in der Meldung steht nichts von "Permission denied", sondern "Connection refused". ;)
Hmm, Sendmail kann drauf zugreifen. Sonst bekämme ich die fehlermeldung ja schon beim Starten.
Aber warum dann das "Permission denied" ?

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: Verzweifel an Miller

Post by Roger Wilco » 2005-11-18 01:24

BMP wrote:Aber warum dann das "Permission denied" ?
Gerade das steht da ja nicht. Ã?berprüfe lieber deine Amavis(-Milter) Konfiguration, ob lokale Verbindungen erlaubt sind. An den Dateirechten (bzw. Socketrechten) wird es nicht liegen.

bmp
Posts: 116
Joined: 2003-03-13 16:30

Re: Verzweifel an Miller

Post by bmp » 2005-11-18 08:36

Hier noch mal der Amavis Startlog:

Code: Select all

Nov 18 08:29:48 essen112 amavis[12033]: starting.  /usr/sbin/amavisd at essen112 amavisd-new-2.1.2, Unicode aware, LANG=de_DE@euro
Nov 18 08:29:48 essen112 amavis[12033]: user=, EUID: 0 (0);  group=, EGID: 0 0 (0 0)
Nov 18 08:29:48 essen112 amavis[12033]: Perl version               5.008005
Nov 18 08:29:48 essen112 amavis[12034]: Net::Server: Process Backgrounded
Nov 18 08:29:48 essen112 amavis[12034]: Net::Server: 2005/11/18-08:29:48 Amavis (type Net::Server::PreForkSimple) starting! pid(12034)
Nov 18 08:29:48 essen112 amavis[12034]: Net::Server: Binding to UNIX socket file /var/spool/amavis/amavis-milter.sock using SOCK_STREAM
Nov 18 08:29:48 essen112 amavis[12034]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Nov 18 08:29:48 essen112 amavis[12034]: Net::Server: Setting gid to "108 108"
Nov 18 08:29:48 essen112 amavis[12034]: Net::Server: Setting uid to "65"
Nov 18 08:29:48 essen112 amavis[12034]: Module Amavis::Conf        2.032
Nov 18 08:29:48 essen112 amavis[12034]: Module Archive::Tar        1.08
Nov 18 08:29:48 essen112 amavis[12034]: Module Archive::Zip        1.16
Nov 18 08:29:48 essen112 amavis[12034]: Module BerkeleyDB          0.25
Nov 18 08:29:48 essen112 amavis[12034]: Module Compress::Zlib      1.33
Nov 18 08:29:48 essen112 amavis[12034]: Module Convert::TNEF       0.17
Nov 18 08:29:48 essen112 amavis[12034]: Module Convert::UUlib      1.051
Nov 18 08:29:48 essen112 amavis[12034]: Module DB_File             1.809
Nov 18 08:29:48 essen112 amavis[12034]: Module MIME::Entity        5.404
Nov 18 08:29:48 essen112 amavis[12034]: Module MIME::Parser        5.406
Nov 18 08:29:48 essen112 amavis[12034]: Module MIME::Tools         5.411
Nov 18 08:29:48 essen112 amavis[12034]: Module Mail::Header        1.60
Nov 18 08:29:48 essen112 amavis[12034]: Module Mail::Internet      1.60
Nov 18 08:29:48 essen112 amavis[12034]: Module Mail::SpamAssassin  3.000004
Nov 18 08:29:48 essen112 amavis[12034]: Module Net::Cmd            2.26
Nov 18 08:29:48 essen112 amavis[12034]: Module Net::DNS            0.48
Nov 18 08:29:48 essen112 amavis[12034]: Module Net::SMTP           2.29
Nov 18 08:29:48 essen112 amavis[12034]: Module Net::Server         0.87
Nov 18 08:29:48 essen112 amavis[12034]: Module Razor2::Client::Version 2.61
Nov 18 08:29:48 essen112 amavis[12034]: Module Time::HiRes         1.59
Nov 18 08:29:48 essen112 amavis[12034]: Module Unix::Syslog        0.99
Nov 18 08:29:48 essen112 amavis[12034]: Amavis::DB code        loaded
Nov 18 08:29:48 essen112 amavis[12034]: Amavis::Cache code     loaded
Nov 18 08:29:48 essen112 amavis[12034]: Lookup::SQL code       NOT loaded
Nov 18 08:29:48 essen112 amavis[12034]: Lookup::LDAP code      NOT loaded
Nov 18 08:29:48 essen112 amavis[12034]: AMCL-in protocol code  loaded
Nov 18 08:29:48 essen112 amavis[12034]: SMTP-in protocol code  loaded
Nov 18 08:29:48 essen112 amavis[12034]: ANTI-VIRUS code        loaded
Nov 18 08:29:48 essen112 amavis[12034]: ANTI-SPAM  code        loaded
Nov 18 08:29:48 essen112 amavis[12034]: Unpackers  code        loaded
Nov 18 08:29:48 essen112 amavis[12034]: Found $file       at /usr/bin/file
Nov 18 08:29:48 essen112 amavis[12034]: Found $arc        at /usr/bin/arc
Nov 18 08:29:48 essen112 amavis[12034]: Found $gzip       at /usr/bin/gzip
Nov 18 08:29:48 essen112 amavis[12034]: Found $bzip2      at /usr/bin/bzip2
Nov 18 08:29:48 essen112 amavis[12034]: No $lzop,         not using it
Nov 18 08:29:48 essen112 amavis[12034]: Found $lha        at /usr/bin/lha
Nov 18 08:29:48 essen112 amavis[12034]: Found $unarj      at /usr/bin/unarj
Nov 18 08:29:48 essen112 amavis[12034]: Found $uncompress at /usr/bin/uncompress
Nov 18 08:29:48 essen112 amavis[12034]: No $unfreeze,     not using it
Nov 18 08:29:48 essen112 amavis[12034]: Found $unrar      at /usr/bin/unrar
Nov 18 08:29:48 essen112 amavis[12034]: Found $zoo        at /usr/bin/zoo
Nov 18 08:29:48 essen112 amavis[12034]: Found $cpio       at /usr/bin/cpio
Nov 18 08:29:48 essen112 amavis[12034]: Found $rpm2cpio   at /usr/bin/rpm2cpio
Nov 18 08:29:48 essen112 amavis[12034]: Found $cabextract at /usr/bin/cabextract
Nov 18 08:29:48 essen112 amavis[12034]: No $dspam,        not using it
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: KasperskyLab AVP - aveclient
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: KasperskyLab AntiViral Toolkit Pro (AVP)
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: KasperskyLab AVPDaemonClient
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: H+BEDV AntiVir or CentralCommand Vexira Antivirus
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: Command AntiVirus for Linux
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: Symantec CarrierScan via Symantec CommandLineScanner
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: Symantec AntiVirus Scan Engine
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: F-Secure Antivirus
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: CAI InoculateIT
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: CAI eTrust Antivirus
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: MkS_Vir for Linux (beta)
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: MkS_Vir daemon
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: ESET Software NOD32
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: ESET Software NOD32 - Client/Server Version
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: Norman Virus Control v5 / Linux
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: Panda Antivirus for Linux
Nov 18 08:29:48 essen112 amavis[12034]: Found primary av scanner NAI McAfee AntiVirus (uvscan) at /usr/local/bin/uvscan
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: VirusBuster
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: CyberSoft VFind
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: Ikarus AntiVirus for Linux
Nov 18 08:29:48 essen112 amavis[12034]: No primary av scanner: BitDefender
Nov 18 08:29:48 essen112 amavis[12034]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Nov 18 08:29:48 essen112 amavis[12034]: No secondary av scanner: FRISK F-Prot Antivirus
Nov 18 08:29:48 essen112 amavis[12034]: No secondary av scanner: Trend Micro FileScanner
Nov 18 08:29:48 essen112 amavis[12034]: No secondary av scanner: drweb - DrWeb Antivirus
Nov 18 08:29:48 essen112 amavis[12034]: No secondary av scanner: KasperskyLab kavscanner
Nov 18 08:29:48 essen112 amavis[12034]: Creating db in /var/spool/amavis/db/; BerkeleyDB 0.25, libdb 4.2
Nov 18 08:29:49 essen112 amavis[12034]: SpamControl: initializing Mail::SpamAssassin
Nov 18 08:29:50 essen112 sendmail-client[12047]: starting daemon (8.13.1): persistent-queueing@00:01:00
Nov 18 08:29:50 essen112 sendmail[12049]: starting daemon (8.13.1): SMTP+queueing@00:30:00
Nov 18 08:29:51 essen112 amavis[12034]: SpamControl: done
Nov 18 08:29:51 essen112 amavis[12051]: TIMING [total 40 ms] - bdb-open: 40 (100%), rundown: 0 (0%)
Nov 18 08:29:51 essen112 amavis[12052]: TIMING [total 39 ms] - bdb-open: 39 (100%), rundown: 0 (0%)
Nov 18 08:31:53 essen112 sendmail[12089]: jAI7VrAv012089: Milter (milter-amavis): error connecting to filter: Connection refused by /var/run/amavis/amavis-milter.sock
Nov 18 08:31:53 essen112 sendmail[12089]: jAI7VrAv012089: Milter (milter-amavis): to error state

bmp
Posts: 116
Joined: 2003-03-13 16:30

Re: Verzweifel an Miller

Post by bmp » 2005-11-18 10:02

Ã?brigens wenn ich mich per Telnet auf 10024 connecte klappt dieses wunderbar:
ssen112:/home/BMP # telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
help
214-2.0.0 See amavisd-new home page at:
214 2.0.0 http://www.ijs.si/software/amavisd/
quit
221 2.0.0 [127.0.0.1] (amavisd-new) closing transmission channel
Connection closed by foreign host.

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: Verzweifel an Miller

Post by Roger Wilco » 2005-11-18 10:12

Na also, da hast du doch deinen Fehler. Kleiner Tipp: Schau mal, welchen UNIX-Socket amavisd-new öffnet und auf welchen sich sendmail verbinden will. ;)

bmp
Posts: 116
Joined: 2003-03-13 16:30

Re: Verzweifel an Miller

Post by bmp » 2005-11-18 11:09

Roger Wilco wrote:Kleiner Tipp: Schau mal, welchen UNIX-Socket amavisd-new öffnet und auf welchen sich sendmail verbinden will. ;)
Wie bringe ich nun Sendmail bei die Mails auf 10025 wieder abzuholen ?
Irgendwie finde ich die möglichkeit nicht.
In der amavis.conf ist die rede von einer $Protocol Variabele. Diese kann ich aber auch nicht finden.