On 09.07.2015 16:43, Ralf Hildebrandt wrote:
* Walter H.<[email protected]>:

450 4.1.8<[email protected]>: Sender address rejected: 
Domain not found
Was steht im Log?

Jul 5 08:17:25 filter postfix/smtpd[21563]: NOQUEUE: reject: RCPT from filter.local[192.168.1.1]: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<filter.local> Jul 5 08:21:09 filter postfix/smtpd[21671]: NOQUEUE: reject: RCPT from filter.local[192.168.1.1]: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<filter.local> Jul 5 08:25:01 filter postfix/smtpd[21794]: NOQUEUE: reject: RCPT from filter.local[192.168.1.1]: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<filter.local>
...
Jul 9 17:33:25 filter postfix/smtpd[17691]: NOQUEUE: reject: RCPT from filter.local[192.168.1.1]: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<filter.local>

knapp alle 4 Minuten ein Eintrag ...

angemerkt sei, daß die Mails via fetchmail abgeholt und an postfix übergeben werden; nimmt dieser die Mail mit einem 4xx Fehler aber nicht an, dann wird diese auch am Postfach beim ISP/Mailhoster/... nicht gelöscht und etwa 4 Minuten später wieder versucht ... verweigert hingegen Postfix mit einem 5xx Fehler, dann wird eine Fehlernachricht generiert, und die Mail am Postfach beim ISP/Mailhoster/... entfernt; die hier generierte Fehlernachricht fange ich mittels header_checks am 'smarthost' ab, und leite sie in den root Ordner;

habe ich z.B. im header_check folgendes

/^from:[[:space:]].*(mainziboy\@yahoo\.com).*$/
        REJECT Sender blocked.

dann ergibt das mit telnet folgendes:

[root@filter ~]# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 filter.local ESMTP Postfix (2.6.6)
ehlo filter.local
250-filter.local
250-PIPELINING
250-SIZE 20972032
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250 8BITMIME
mail from: <[email protected]>
250 2.1.0 Ok
rcpt to: <[email protected]>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
To: <[email protected]>
From: <[email protected]>
Subject: Automated Test-Mail ...

sent directly from the console via 'telnet'.
.
550 5.7.1 Sender ([email protected]) blocked.

dann findet man im log folgendes

Jul 9 10:35:09 filter postfix/cleanup[4410]: E852D48F3: reject: header From: <[email protected]> from filter.local[192.168.1.1]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<filter.local>: 5.7.1 Sender blocked

Danke für Hilfe
Walter

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Antwort per Email an