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

Mails hängen in der Queue fest

Status
Für weitere Antworten geschlossen.
Also ich habe das Problem das meine Mails in der Mail Queue festhängen
und ich nicht weiß wie ich sie wieder "anschieb". Weder extern(Web.de)
noch intern (w-domain.de) werden sie verschickt.Muss ich da irgendwas
neustatrten ?

In der "/var/log/messages" steht nix.
aber in der
"/var/log/mail"

Sep 27 13:51:34 kae-soxs postfix/nqmgr[20219]: 70C312E5E0: from=<>, size=2062, nrcpt=1 (queue active)
Sep 27 13:51:34 kae-soxs postfix/nqmgr[20219]: 70C312E5E0: to=<heinzel@mann.de>, relay=none, delay=0, s
tatus=deferred (deferred transport)
Sep 27 13:51:34 kae-soxs postfix/nqmgr[20219]: 76DE02F0CE: from=<>, size=3021, nrcpt=1 (queue active)
Sep 27 13:51:34 kae-soxs postfix/nqmgr[20219]: 76DE02F0CE: to=<swiegmann@w-domain.de>, relay=none, de
lay=0, status=deferred (deferred transport)
Sep 27 14:14:48 kae-soxs postfix/smtpd[20624]: connect from localhost[127.0.0.1]
Sep 27 14:14:48 kae-soxs postfix/smtpd[20624]: 85F9E2F0E4: client=localhost[127.0.0.1]
Sep 27 14:14:48 kae-soxs postfix/cleanup[20625]: 85F9E2F0E4: message-id=<3725047.1096287288499.SLOX.Web
Mail.wwwrun@kae-soxs.w-domain.de>
Sep 27 14:14:48 kae-soxs postfix/nqmgr[20219]: 85F9E2F0E4: from=<swiegmann@w-domain.de>, size=715, nr
cpt=1 (queue active)
Sep 27 14:14:48 kae-soxs postfix/smtpd[20624]: disconnect from localhost[127.0.0.1]
Sep 27 14:14:48 kae-soxs postfix/nqmgr[20219]: 85F9E2F0E4: to=<ABC@web.de>, relay=none, delay=0, sta
tus=deferred (deferred transport)

weshalb (deferred transport) zurückgestellt bekommt der keine Verbindung hin oder muss er sich da erst authorisieren ?Aber warum bei sich selbst ?
 
du musst deinem postfix beibringen, für wen er zuständig ist ...

lies hier nach:
http://www.fredshack.com/docs/postfix.html

ansonsten wäre es sehr hilfreich wenn die Konfiguration gepostet würde ...
cat /etc/postfix/main.cf | grep -v "^#"
cat /etc/postfix/master.cf | grep -v "^#"
 
OP
$noop
/etc/postfix/main.cf

fallback_transport= cyrus
luser_relay= $root@mail.w-domain.de
smtpd_banner= $myhostname ESMTP
local_destination_concurrency_limit= 2
default_destination_concurrency_limit= 10
debug_peer_level= 2
debugger_command= PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path= /usr/sbin/sendmail
newaliases_path= /usr/sbin/sendmail
mailq_path= /usr/bin/mailq
setgid_group= maildrop
manpage_directory= /usr/share/man
sample_directory= /usr/share/doc/packages/postfix/samples
readme_directory= /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory= /var/spool/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= kae-soxs.w-domain.de
inet_interfaces= all
masquerade_domains= w-domain.de
mydestination= $myhostname, localhost.$mydomain
defer_transports= smtp
disable_dns_lookups= no
relayhost= 87.0.1.51
content_filter=
mailbox_command= /usr/lib/cyrus/bin/deliver
mailbox_transport = lmtp:unix:public/lmtp
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,check_relay_domains
alias_maps= hash:/etc/aliases
smtp_sasl_auth_enable= yes
smtp_sasl_security_options= noanonymous
smtp_sasl_password_maps= hash:/etc/postfix/smtp_auth
program_directory = /usr/lib/postfix
deamon_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
default_peer_level = 2
default_transport = smtp

/etc/postfix/master.cf
smtp inet n - n - - smtpd
pickup fifo n n n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 nqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
smtp unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
 
mydomain =
mydestination =

dort solltest du ansetzen ... und die richtigen Werte eintragen für deine Domain.
 
OP
$noop
Intern funktioniert alles(in der domain)aber nach extern
(z.b. web.de) kommt nix durch.Bzw hängt immer noch fest

(/var/log/messages) kommt nix

(/var/log/mail)
Sep 28 08:04:12 kae-soxs postfix/trivial-rewrite[2426]: warning: database /etc/p
ostfix/transport.db is older than source file /etc/postfix/transport
Sep 28 08:04:12 kae-soxs postfix/cleanup[2425]: A0DD0C776: message-id=<000a01c4a
521$2e242100$07000057@edvsw>
Sep 28 08:04:12 kae-soxs postfix/nqmgr[2007]: A0DD0C776: from=<swiegmann@w-domain.de>, size=1459, nrcpt=1 (queue active)
Sep 28 08:04:12 kae-soxs postfix/smtpd[2424]: disconnect from unknown[87.0.0.7]
Sep 28 08:04:12 kae-soxs postfix/nqmgr[2007]: A0DD0C776: to=<Pollta@web.de>, rel
ay=none, delay=0, status=deferred (deferred transport)

/etc/postfix/main.cf

soft_bounce= no
queue_directory= /var/spool/postfix
command_directory= /usr/sbin
daemon_directory= /usr/lib/postfix
mail_owner= postfix
default_privs= nobody
mydomain= w-domain.de
myorigin= $mydomain
mynetworks= 87.0.0.0/16, 127.0.0.0/8
fallback_transport= cyrus
luser_relay= $user@root.w-domain.de
smtpd_banner= $myhostname ESMTP
local_destination_concurrency_limit= 2
default_destination_concurrency_limit= 10
debug_peer_level= 2
debugger_command= PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path= /usr/sbin/sendmail
newaliases_path= /usr/sbin/sendmail
mailq_path= /usr/bin/mailq
setgid_group= maildrop
manpage_directory= /usr/share/man
sample_directory= /usr/share/doc/packages/postfix/samples
readme_directory= /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory= /var/spool/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= kae-soxs.w-domain.de
inet_interfaces= all
masquerade_domains= w-domain.de
mydestination= $myhostname, $mydomain, localhost.$mydomain, $mail.$mydomain
defer_transports= smtp
disable_dns_lookups= no
relayhost= 87.0.1.51
content_filter=
mailbox_command= /usr/lib/cyrus/bin/deliver
mailbox_transport = lmtp:unix:public/lmtp
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,check_relay_domains
alias_maps= hash:/etc/aliases
smtp_sasl_auth_enable= yes
smtp_sasl_security_options= noanonymous
smtp_sasl_password_maps= hash:/etc/postfix/smtp_auth
program_directory = /usr/lib/postfix
deamon_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
default_peer_level = 2
default_transport = smtp
 
OP
$noop
Steht auf http://www.fredshack.com/docs/postfix.html so
Die Mails hängen immer noch nach extern(web.de).


Sep 28 13:32:20 kae-soxs postfix/smtpd[8359]: connect from unknown[87.0.0.7]
Sep 28 13:32:20 kae-soxs postfix/smtpd[8359]: E91DD2F1A9: client=unknown[87.0.0.7]
Sep 28 13:32:21 kae-soxs postfix/cleanup[8360]: E91DD2F1A9: message-id=<000c01c4a54f$05a734a0$07000057@edvsw>
Sep 28 13:32:21 kae-soxs postfix/nqmgr[6550]: E91DD2F1A9: from=<swiegmann@w-domain.de>, size=1340, nrcpt=1 (queue active)
Sep 28 13:32:21 kae-soxs postfix/smtpd[8359]: disconnect from unknown[87.0.0.7]
Sep 28 13:32:21 kae-soxs postfix/nqmgr[6550]: E91DD2F1A9: to=<Pollta@web.de>, relay=none, delay=1, status=deferred (deferred transport)

auch nach "postmap transport" "rcpostfix restart"
 
OP
$noop
Ahh warum hab ichs nicht selbst entdeckt :x
die Mails hängen jetzt nicht mehr fest allerdings kommt sie gleich an den
Absender als Anhang zurück mit der Orginal mail und einer "delivery error report.dat"
mit Inhalt:

Reporting-MTA: dns; kae-soxs.w-domain.de
Arrival-Date: Wed, 29 Sep 2004 07:02:25 +0200 (CEST)

Final-Recipient: rfc822; Pollta@web.de
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail for 87.0.1.51 loops back to myself

/var/log/mail

Sep 29 07:02:24 kae-soxs postfix/smtpd[20217]: connect from unknown[87.0.0.7]
Sep 29 07:02:25 kae-soxs postfix/smtpd[20217]: 033612F4E3: client=unknown[87.0.0.7]
Sep 29 07:02:25 kae-soxs postfix/cleanup[20218]: 033612F4E3: message-id=<005c01c4a5e1$b7d6d170$07000057@edvsw>
Sep 29 07:02:25 kae-soxs postfix/nqmgr[19948]: 033612F4E3: from=<swiegmann@w-domain.de>, size=1344, nrcpt=1 (queue active)
Sep 29 07:02:25 kae-soxs postfix/smtpd[20217]: disconnect from unknown[87.0.0.7]
Sep 29 07:02:25 kae-soxs postfix/smtpd[20217]: connect from kae-soxs.w-domain.de[87.0.1.51]
Sep 29 07:02:25 kae-soxs postfix/smtp[20219]: warning: host 87.0.1.51[87.0.1.51] greeted me with my own hostname kae-soxs.w-domain.de
Sep 29 07:02:25 kae-soxs postfix/smtp[20219]: warning: host 87.0.1.51[87.0.1.51] replied to HELO/EHLO with my own hostname kae-soxs.w-domain.de
Sep 29 07:02:25 kae-soxs postfix/smtp[20219]: 033612F4E3: to=<Pollta@web.de>, relay=87.0.1.51[87.0.1.51], delay=0, status=bounced (mail for 87.0.1.51 loops back to myself)
Sep 29 07:02:25 kae-soxs postfix/smtpd[20217]: lost connection after EHLO from kae-soxs.w-domain.de[87.0.1.51]
Sep 29 07:02:25 kae-soxs postfix/smtpd[20217]: disconnect from kae-soxs.w-domain.de[87.0.1.51]
Sep 29 07:02:25 kae-soxs postfix/cleanup[20218]: 1BC4E2F57F: message-id=<20040929050225.1BC4E2F57F@kae-soxs.w-domain.de>
Sep 29 07:02:25 kae-soxs postfix/nqmgr[19948]: 1BC4E2F57F: from=<>, size=2976, nrcpt=1 (queue active)
Sep 29 07:02:25 kae-soxs postfix/lmtp[20222]: 1BC4E2F57F: to=<swiegmann@w-domain.de>, relay=public/lmtp[public/lmtp], delay=0, status=sent (250 2.1.5 Ok)

/var/log/messages

Sep 29 07:02:25 kae-soxs lmtpd[20117]: accepted connection
Sep 29 07:02:25 kae-soxs lmtpd[20117]: lmtp connection preauth'd as postman
Sep 29 07:02:25 kae-soxs lmtpd[20117]: duplicate_check: <20040929050225.1BC4E2F57F@kae-soxs.w-domain.de> user.swiegmann 0
Sep 29 07:02:25 kae-soxs lmtpd[20117]: mystore: starting txn 2147483711
Sep 29 07:02:25 kae-soxs lmtpd[20117]: mystore: committing txn 2147483711
Sep 29 07:02:25 kae-soxs lmtpd[20117]: duplicate_mark: <20040929050225.1BC4E2F57F@kae-soxs.w-domain.de> user.swiegmann 1096434145
Sep 29 07:02:46 kae-soxs master[20227]: about to exec /usr/lib/cyrus/bin/pop3d
Sep 29 07:02:46 kae-soxs pop3[20227]: executed
Sep 29 07:02:46 kae-soxs pop3d[20227]: accepted connection
Sep 29 07:02:46 kae-soxs pop3d[20227]: login: [87.0.0.7] swiegmann plaintext
Sep 29 07:02:56 kae-soxs master[20230]: about to exec /usr/lib/cyrus/bin/lmtpd
Sep 29 07:02:56 kae-soxs lmtpunix[20230]: executed
Sep 29 07:02:56 kae-soxs master[729]: process 19837 exited, status 0
Sep 29 07:03:46 kae-soxs master[729]: process 20227 exited, status 0
Sep 29 07:05:05 kae-soxs master[729]: process 20117 exited, status 0
 
OP
$noop
Schickt der die Mail an sich selbst ?
oder seh ich das falsch ?

Sep 29 07:02:25 kae-soxs postfix/smtp[20219]: warning: host 87.0.1.51[87.0.1.51] greeted me with my own hostname kae-soxs.w-domain.de
Sep 29 07:02:25 kae-soxs postfix/smtp[20219]: warning: host 87.0.1.51[87.0.1.51] replied to HELO/EHLO with my own hostname kae-soxs.w-domain.de
Sep 29 07:02:25 kae-soxs postfix/smtp[20219]: 033612F4E3: to=<Pollta@web.de>, relay=87.0.1.51[87.0.1.51], delay=0, status=bounced (mail for 87.0.1.51 loops back to myself)
 
relayhost= 87.0.1.51

irgendwie baust du einen mail-loop!


bitte mal die ausgabe von netstat -lntp posten.
une nen kleinen ablaufplan wie deine email in deinem
netzwerk geroutet wird - bis zum relayhost.


ps: da hast du aber nen komischen adressraum gewaehlt :)
 
OP
$noop
kae-soxs:~ # netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 1557/java
tcp 0 0 0.0.0.0:6661 0.0.0.0:* LISTEN 992/java
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 891/slapd
tcp 0 0 127.0.0.1:8007 0.0.0.0:* LISTEN 1652/java
tcp 0 0 0.0.0.0:6663 0.0.0.0:* LISTEN 992/java
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 729/master
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 1184/perl
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 729/master
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 750/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1599/httpd
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1615/(squid)
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 1373/X
tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 729/master
tcp 0 0 127.0.0.1:33333 0.0.0.0:* LISTEN 948/sessiond
tcp 0 0 87.0.1.52:53 0.0.0.0:* LISTEN 886/named
tcp 0 0 87.0.1.51:53 0.0.0.0:* LISTEN 886/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 886/named
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 1626/inetd
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 975/cupsd
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 1615/(squid)
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 898/postmaster
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 19944/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 886/named
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1599/httpd
tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 1297/java
tcp 0 0 0.0.0.0:4447 0.0.0.0:* LISTEN 1297/java
tcp 0 0 :::21 :::* LISTEN 917/pure-ftpd (SERV
tcp 0 0 :::22 :::* LISTEN 820/sshd
tcp 0 0 ::1:953 :::* LISTEN 886/named

wie meinst du geroutet wird ? Ich bin ja selber der Mail, DNS und Proxy Server. Dann muss ich als relayhost doch mich selber angeben oder wer soll sonst die mail verschicken ?Den Adressraum hab ich mir nicht ausgesucht den gibts seit über 20 Jahren :)
 
relayhost = der MTA deines providers

wenn du selbst ausliefern willst, musst du

relayhost =

setzen!


einen provider MTA musst du setzen wenn du aus einem DUL bereich
kommst. mit fester IP und richtigem reverse-lookup gehts auch ohne...
 
OP
$noop
Welch ein Wunder es funktioniert :D und ich dachte die ganze Zeit
wenn man da den "Mailserver" angeben soll das es natürlich der eigene ist
und nicht ein externer aber so bin ich glücklich :lol: vielen Dank
 
Status
Für weitere Antworten geschlossen.
Oben