• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]Fetchmail funktioniert nicht mehr/ es war amavis!

Status
Für weitere Antworten geschlossen.

Keepers

Advanced Hacker
Hi,

habe ja nun das abholen der E-Mails nach Crazyrolfs Howto (einmal noch antivir davor und dann fetchmail konfiguriert) eingerichtet.
Gestern funktionierte auch alles wunderbar, nur heute nicht mehr.

Die Anzeige in Evolution beim Mail holen verschwindet nach wenigen Millisekunden als waer es fertig, die Date /var/mail/stefan ist 0B groß.

Mails die ich als Test von einem anderen Account an michverschickte waren bei web.de online zu sehen, spaeter nicht mehr. Aber abholen ist scheinbar trotzdem nicht drin.

Das Versenden von E-Mails nach außen funktioniert aber!

Leider weiß ich jetzt auch nicht welche Dateien ihr einsehen wuerdet um den Fehler einzugrenzen, daher hoffe ich dass ihr mir die selben sagen koennt oder gar direkt wisst woran es liegen koennte?

Gruß
Keepers
 

crazyrolf

Advanced Hacker
Hallo,

in der /var/log/mail kannst du sehen wohin fetchmail bzw. postfix die abgeholten Mails senden möchte.

Da müsste ein Fehler zu sehen sein!

Du benutzt ja in Evelution als Postfach das Maildir richtig?

hast du das auch da abgespeichert?

Sieht ja so aus, als würden die Mails abgeholt.

Oder läuft auch noch KMail?
 
OP
K

Keepers

Advanced Hacker
In /var/log/mail befindet sich seit gestern Abend 22:40 Uhr fast durchgaengig ein connection refused...

Code:
Jun  4 09:22:50 tux postfix/smtp[6654]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Jun  4 09:22:50 tux postfix/smtp[6664]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Jun  4 09:22:50 tux postfix/smtp[6666]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Jun  4 09:22:50 tux postfix/smtp[6667]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Jun  4 09:22:50 tux postfix/smtp[6668]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Jun  4 09:22:50 tux postfix/smtp[6664]: 27739D2D2: to=<stefan@localhost.tux.site>, orig_to=<stefan@localhost>, relay=none, delay=40274, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)

Eintraege davor sehen zB so aus:
Code:
Jun  4 09:22:50 tux postfix/qmgr[6648]: 834372FD3F: from=<igaygpjvmyl@insightbb.com>, size=2756, nrcpt=1 (queue active)
Jun  4 09:22:50 tux postfix/qmgr[6648]: 807A92FCE5: from=<custcare@PRODUCTTESTERSWENEED.INFO>, size=3443, nrcpt=1 (queue active)
Jun  4 09:22:50 tux postfix/qmgr[6648]: DC7B52FD38: from=<ysyjus@tom.com>, size=1255, nrcpt=1 (queue active)
Jun  4 09:22:50 tux postfix/qmgr[6648]: D6F802FD22: from=<CarrieHendrix@libellula.net>, size=21465, nrcpt=1 (queue active)
Jun  4 09:22:50 tux postfix/qmgr[6648]: EABC92F977: from=<chwbobr@lrz.tu-muenchen.de>, size=2722, nrcpt=1 (queue active)

Da scheint wohl irgendwas nicht zu laufen?

In Evolution habe ich als Quelle /var/mail/stefan angegeben und natuerlich auch gespeichert.

Es laeuft kein weiteres Mailprogramm welches ich darauf eingestellt hab. Thunderbird laeuft mit pop3 und smtp.
 

crazyrolf

Advanced Hacker
Es sieht aus, als wolltest du einen Filter benutzen der aber nicht läuft.

Hast du amavis-new drauf und läuft es im runlevel?
 

crazyrolf

Advanced Hacker
Deine Mails werden alle in der mailq liegen.

Kannst ja mal als root auf der Konsole dies eingeben.

postqueue -p

Da sollten sie sein.
 
OP
K

Keepers

Advanced Hacker
postqueue -p

69 Eintraege dieser Art:
Code:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
0DF2A2FD64     1682 Sat Jun  4 09:42:46  zywzobjy@marchmail.com
                         (connect to 127.0.0.1[127.0.0.1]: Connection refused)
                                         stefan@localhost.tux.site

amavis habe ich installiert und im runlevel aktiviert gehabt.

Main.cf
Code:
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/lib/postfix

mail_owner = postfix

unknown_local_recipient_reject_code = 550

debug_peer_level = 2

debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5


sendmail_path = /usr/sbin/sendmail

newaliases_path = /usr/bin/newaliases

mailq_path = /usr/bin/mailq

setgid_group = maildrop

html_directory = /usr/share/doc/packages/postfix/html

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/packages/postfix/samples

readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = tux.site
program_directory = /usr/lib/postfix
inet_interfaces = 127.0.0.1 ::1
masquerade_domains = 
mydestination = $myhostname,localhost.$mydomain,$mydomain
defer_transports = 
disable_dns_lookups = no
relayhost = smtp.web.de
mailbox_command = 
mailbox_transport = 
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = 
smtpd_helo_required = no
smtpd_helo_restrictions = 
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtp_sasl_security_options = 
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

master.cf
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       2       smtpd -o content_filter=smtp:[127.0.0.1]:10024
#submission inet n      -       n       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#	-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       2       smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
#tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
localhost:10025 inet	n	-	n	-	-	smtpd -o content_filter=
scache	  unix	-	-	n	-	1	scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus	  unix	-	n	n	-	-	pipe
  user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp	  unix	-	n	n	-	-	pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
 

crazyrolf

Advanced Hacker
Und das:

Geb mal dies in der Konsole als root ein.


hostname -f

Da sollte dann so was in der Art raus kommen!

rolf.linux.de

Dies dann so in die main.cf eintragen (Beispiel):

myhostname = rolf.linux.de
mydomain = linux.de

postfix neu starten!

Jetzt sollten deine Mails im Posteingang sein!
 

crazyrolf

Advanced Hacker
Bei dir müsste das so aussehen denke ich.

myhostname = stefan.tux.site
mydomain = tux.site

Geht nicht?

Komisch!


schick dir mal ne neue Mail ob die ankommt?
Am besten vorher noch mal postfix und amavis neu starten.
 

crazyrolf

Advanced Hacker
Vielleicht musst du die alten Nachrichten jetzt der mailq neu zustellen.

Das geht so:

Konsole als root:

postsuper -r ALL

Danach mal in die var/log/mail sehen!
 

crazyrolf

Advanced Hacker
Hab noch was gefunden in deiner main.cf

inet_protocols = all

Das kannst du löschen!

Dann fehlt noch

mynetworks = 192.168.0.0/24, 127.0.0.0/8

Hat dein Rechner eine IP wie die:

192.168.0.22 oder 15, 16

Dann so wie da oben steht.

Hat er

192.168.1.22 oder 15, 16 .....

Dann so:

mynetworks = 192.168.1.0/24, 127.0.0.0/8

Und wie immer nach jeder Änderung postfix neu starten.
 
OP
K

Keepers

Advanced Hacker
Habe deine Aenderungen angewandt, nichts.

postsuper -r ALL gibt folgendes zurueck:

Code:
postsuper: Requeued: 98 messages

Aber es klappt immernoch nicht
 

crazyrolf

Advanced Hacker
Um mal zu testen ob es dein amavis ist, könntest du den Eintrag in der master.cf mal kurz verändern!

smtp inet n - n - 2 smtpd -o content_filter=smtp:[127.0.0.1]:10024

ändern in

smtp inet n - n - 2 smtpd


Postfix neu starten!

Wenn die Mails jetzt ankommen stimmt was mit deinem amavis nicht.
 
OP
K

Keepers

Advanced Hacker
Ok es muss an amavis liegen, denn mit der Aenderung in der master.cf funktioniert es jetzt!
 
OP
K

Keepers

Advanced Hacker
Da hatte ich zwar nichts umgestellt, aber ich habe eine vorhandene Sicherheitskopie ueberspielt und jetzt klappt es auch wieder mit amavis.

Danke dir Rolf!
 
Status
Für weitere Antworten geschlossen.
Oben