fetchmail, postfix, amavisd-new und cyrus-imapd wollen nicht so richtig
Hallo, ich benötige bei meinem Setup unbedingt etwas Hilfe. Folgendes Szenario: Ich habe unter Suse pro 9.0 fetchmail mit postfix und cyrus am laufen. Die Installation habe ich weitestgehend aus Yast2 durchgeführt, nur in der _main.cf_ habe ich | mailbox_transport = cyrus | fallback_transport = local und | mydestination = $myhostname,localhost.$mydomain,$mydomain,localhost ergänzt. Wenn ich jetzt über Yast2 dem amavisd-new aktiviere funktioniert zwar noch die lokale Mailauslieferung aber nicht mehr die Verteilung von per fetchmail geholten Emails: postfix/smtpd[20239]: connect from localhost[127.0.0.1] postfix/smtpd[20239]: 308961399B: client=localhost[127.0.0.1] postfix/cleanup[20241]: 308961399B: message-id=<200402291028.i1TAS4i29151@km0801.kasserver.com> postfix/qmgr[18165]: 308961399B: from=<post at gadma.net>, size=834, nrcpt=1 (queue active) postfix/smtp[20243]: 308961399B: to=<post at localhost.local.gadma.net>, orig_to=<post at localhost>, relay=none, delay=0, status=bounced (Name service error for name=localhost type=A: Host not found) postfix/cleanup[20241]: 5C87214013: message-id=<20040229102754.5C87214013@pundit.local.gadma.net> postfix/qmgr[18165]: 5C87214013: from=<>, size=2549, nrcpt=1 (queue active) postfix/smtpd[20239]: disconnect from localhost[127.0.0.1] postfix/smtp[20243]: 5C87214013: to=<post at gadma.net>, relay=mail.gadma.net[62.141.48.215], delay=1, status=sent (250 2.0.0 i1TASHi29202 Message accepted for delivery) Wo muß ich nun ansetzen, damit meine Emails auch mit amavisd-new noch zugestellt werden? -- TIA Matthias Appel
Am Sonntag, 29. Februar 2004 15:33 schrieb Matthias Appel:
ich benötige bei meinem Setup unbedingt etwas Hilfe. Folgendes Szenario:
Ich habe unter Suse pro 9.0 fetchmail mit postfix und cyrus am laufen. Die Installation habe ich weitestgehend aus Yast2 durchgeführt, nur in der _main.cf_ habe ich
| mailbox_transport = cyrus | fallback_transport = local
und
| mydestination = $myhostname,localhost.$mydomain,$mydomain,localhost
ergänzt. Wenn ich jetzt über Yast2 dem amavisd-new aktiviere funktioniert zwar noch die lokale Mailauslieferung aber nicht mehr die Verteilung von per fetchmail geholten Emails:
postfix/smtp[20243]: 308961399B: to=<post at localhost.local.gadma.net>, orig_to=<post at localhost>, relay=none, delay=0, status=bounced (Name service error for name=localhost type=A: Host not found) postfix/cleanup[20241]: 5C87214013:
"smtp" kann "localhost" nicht auflösen. Läuft smtp chroot'ed (master.cf) ? Entweder abschalten, oder dafür sorgen, dass im chroot mind. ne hosts-datei liegt. # postfix check Würde ich mal machen. Wenn da was kommt, beheben....
Wo muß ich nun ansetzen, damit meine Emails auch mit amavisd-new noch zugestellt werden?
-- Andreas
Hallo Andreas, du schriebst:
Am Sonntag, 29. Februar 2004 15:33 schrieb Matthias Appel:
postfix/smtp[20243]: 308961399B: to=<post at localhost.local.gadma.net>, orig_to=<post at localhost>, relay=none, delay=0, status=bounced (Name service error for name=localhost type=A: Host not found) postfix/cleanup[20241]: 5C87214013:
"smtp" kann "localhost" nicht auflösen. Läuft smtp chroot'ed (master.cf) ? Entweder abschalten, oder dafür sorgen, dass im chroot mind. ne hosts-datei liegt.
IMO nicht, denn da steht immer ein n drin: pundit:~ # grep smtp /etc/postfix/master.cf smtp inet n - n - 2 smtpd -o content_filter=smtp:[localhost]:10024 smtp unix - - n - - smtp relay unix - - n - - smtp localhost:10025 inet n - n - - smtpd -o content_filter= bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
# postfix check
Gibt bei mir leider nix verwertbares aus: pundit:~ # /usr/sbin/postfix check pundit:~ #
Würde ich mal machen. Wenn da was kommt, beheben....
Wo muß ich nun ansetzen, damit meine Emails auch mit amavisd-new noch zugestellt werden?
Was kann ich denn noch prüfen? -- MFG Matthias Appel
Am Sonntag, 29. Februar 2004 16:55 schrieb Matthias Appel:
du schriebst:
Am Sonntag, 29. Februar 2004 15:33 schrieb Matthias Appel:
postfix/smtp[20243]: 308961399B: to=<post at localhost.local.gadma.net>, orig_to=<post at localhost>, relay=none, delay=0, status=bounced (Name service error for name=localhost type=A: Host not found) postfix/cleanup[20241]: 5C87214013:
"smtp" kann "localhost" nicht auflösen. Läuft smtp chroot'ed (master.cf) ? Entweder abschalten, oder dafür sorgen, dass im chroot mind. ne hosts-datei liegt.
IMO nicht, denn da steht immer ein n drin:
Schick mal ein komplettes Log, von dem moment wo die Mail von fetchmail an Postfix geht, bis zu dem Fehler. Ausserdem mal die Namensauflösung testen. -- Andreas
Hallo, ich schrieb:
Andreas schrieb:
Am Sonntag, 29. Februar 2004 15:33 schrieb Matthias Appel:
postfix/smtp[20243]: 308961399B: to=<post at localhost.local.gadma.net>, orig_to=<post at localhost>, relay=none, delay=0, status=bounced (Name service error for name=localhost type=A: Host not found) postfix/cleanup[20241]: 5C87214013: "smtp" kann "localhost" nicht auflösen. Läuft smtp chroot'ed (master.cf) ? Entweder abschalten, oder dafür sorgen, dass im chroot mind. ne hosts-datei liegt.
Das war's wohl irgendwie. Ich habe jetzt meinem Router im DNS explizit localhost = 127.0.0.1 beigebracht und komme immerhin etwas weiter: postfix/smtpd[11359]: connect from pundit.local.gadma.net[127.0.0.1] postfix/smtpd[11359]: 2B9A013BA7: client=pundit.local.gadma.net[127.0.0.1] postfix/cleanup[11360]: 2B9A013BA7: message-id=<200402292059.i1TKxIh08970@km0801.kasserver.com> postfix/qmgr[2425]: 2B9A013BA7: from=<post at gadma.net>, size=845, nrcpt=1 (queue active) amavis[2430]: (02430-01) ESMTP::10024 /var/spool/amavis/amavis-20040229T215849-02430: <post at gadma.net> -> <post at localhost.local.gadma.net> Received: SIZE=845 from pundit.local.gadma.net ([127.0.0.1]) by localhost (pundit [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02430-01 for <post at localhost.local.gadma.net>; Sun, 29 Feb 2004 21:58:49 +0100 (CET) amavis[2430]: (02430-01) Checking: <post at gadma.net> -> <post at localhost.local.gadma.net> amavis[2430]: (02430-01) WARN: all primary virus scanners failed, considering backups amavis[2430]: (02430-01) TROUBLE in check_mail: virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE amavis[2430]: (02430-01) PRESERVING EVIDENCE in /var/spool/amavis/amavis-20040229T215849-02430 amavis[2430]: (02430-01) TIMING [total 159 ms] - SMTP EHLO: 5 (3%), SMTP pre-MAIL: 0 (0%), mkdir tempdir: 0 (0%), create email.txt: 1 (0%), SMTP pre-DATA-flush: 11 (7%), SMTP DATA: 30 (19%), body hash: 14 (9%), mkdir parts: 1 (1%), mime_decode: 28 (18%), get-file-type: 56 (35%), decompose_part: 11 (7%), parts: 0 (0%), rundown: 2 (1%) postfix/smtpd[11359]: disconnect from pundit.local.gadma.net[127.0.0.1] postfix/smtp[11361]: 2B9A013BA7: to=<post at localhost.local.gadma.net>, orig_to=<post at localhost>, relay=localhost.local.gadma.net[127.0.0.1], delay=0, status=deferred (host localhost.local.gadma.net[127.0.0.1] said: 451 4.5.0 Error in processing, id=02430-01, virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command)) Dumm nur, daß es von dem FQDN localhost.local.gadma.net ausgeht, das ist falsch, aber egal. Und im weiteren kam keine Email an. Was ist denn jetzt noch falsch?
Was kann ich denn noch prüfen?
Hm, das frag ich mich auch ;-) -- MFG Matthias Appel
Am Sonntag, 29. Februar 2004 22:21 schrieb Matthias Appel:
"smtp" kann "localhost" nicht auflösen. Läuft smtp chroot'ed (master.cf) ? Entweder abschalten, oder dafür sorgen, dass im chroot mind. ne hosts-datei liegt.
Das war's wohl irgendwie. Ich habe jetzt meinem Router im DNS explizit localhost = 127.0.0.1 beigebracht und komme immerhin etwas weiter:
Hmm, ??? Wäre es nicht geschickter, die Namensauflösung erst über die /etc/hosts zu machen und erst dann den DNS-Server abzufragen.
check_mail: virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE amavis[2430]: (02430-01) PRESERVING EVIDENCE in
id=02430-01, virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command))
Vielleicht solltest Du einen Virenscanner installieren?
Dumm nur, daß es von dem FQDN localhost.local.gadma.net ausgeht, das ist falsch, aber egal.
Irgendwoher wird das Sytem diesen fqdn haben, check das und ändere es. Im Log fehlte der Teil.
Und im weiteren kam keine Email an. Was ist denn jetzt noch falsch?
Check das mit dem Virenscanner.
Was kann ich denn noch prüfen?
Hm, das frag ich mich auch ;-)
Selbstgespräch ? ;-) -- Andreas
Andreas Winkelmann schrieb:
Am Sonntag, 29. Februar 2004 22:21 schrieb Matthias Appel:
Das war's wohl irgendwie. Ich habe jetzt meinem Router im DNS explizit localhost = 127.0.0.1 beigebracht und komme immerhin etwas weiter:
Wäre es nicht geschickter, die Namensauflösung erst über die /etc/hosts zu machen und erst dann den DNS-Server abzufragen.
Das hab' ich versucht und folgendes sollte doch eigentlich richtig sein: pundit:~ # grep localhost /etc/hosts 127.0.0.1 localhost ::1 localhost ipv6-localhost ipv6-loopback pundit:~ # grep -e '^[a-z]' /etc/host.conf order hosts, bind multi on pundit:~ # grep hosts /etc/nsswitch.conf hosts: files dns pundit:~ # less /etc/resolv.conf nameserver 10.0.0.1 search local.gadma.net Aber trotzdem erhalte ich: pundit:~ # host localhost Host localhost not found: 3(NXDOMAIN) obwohl natürlich: pundit:~ # ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.021 ms funktioniert.
id=02430-01, virus_scan FAILED: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command))
Vielleicht solltest Du einen Virenscanner installieren?
Hm, da hat bei mir das Wald und Bäume Problem zugeschlagen. Mit einem installierten Virenscanner kommt dann auch Email an. :-)
Dumm nur, daß es von dem FQDN localhost.local.gadma.net ausgeht, das ist falsch, aber egal.
Irgendwoher wird das Sytem diesen fqdn haben, check das und ändere es. Im Log fehlte der Teil.
Hm, ich weiß nicht genau wo ich das finden kann. Hier mal ein frischer
Auszug aus /var/log/mail:
postfix/smtpd[9388]: connect from localhost[127.0.0.1]
postfix/smtpd[9388]: 763C9140C6: client=localhost[127.0.0.1]
postfix/cleanup[9390]: 763C9140C6: message-id=<030289490420.pVb6tu6oVcuXuk@localhost>
postfix/qmgr[28952]: 763C9140C6: from=
Was kann ich denn noch prüfen? Hm, das frag ich mich auch ;-) Selbstgespräch ? ;-)
Tja, die langen Abende vor dem flackernden Monitor hinterlassen dann doch ihre Spuren. -- MFG Matthias Appel
Am Montag, 1. März 2004 22:33 schrieb Matthias Appel:
pundit:~ # less /etc/resolv.conf nameserver 10.0.0.1 search local.gadma.net
Dumm nur, daß es von dem FQDN localhost.local.gadma.net ausgeht, das ist falsch, aber egal.
Vermutlich, weil er "localhost" alleine nicht auflösen kann und dann "local.gadma.net" hinten dran stellt (resolv.conf).
Was kann ich denn noch prüfen? Hm, das frag ich mich auch ;-)
Selbstgespräch ? ;-)
Tja, die langen Abende vor dem flackernden Monitor hinterlassen dann doch ihre Spuren.
Das Zauberword heisst "TFT" ;-) -- Andreas
participants (2)
-
Andreas Winkelmann
-
Matthias Appel