On 08.07.2015 17:07, Robert Schetterer wrote:
Am 08.07.2015 um 16:12 schrieb Walter H.:
Hallo,

kann mir jemand bitte verraten wie ich bei Postfix erzwinge, daß er an
Stelle eines 450 einen 550 liefert?
hier meine main.cf:  http://pastebin.com/3Fvb6WXy

und mit telnet localhost 25 passiert das:

[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]>
450 4.1.8<[email protected]>: Sender address
rejected: Domain not found

und genau hier benötige ich an Stelle des 450-Fehlers einen 550 Fehler,
nur wie?
mein main.cf (http://pastebin.com/3Fvb6WXy) hat so ziemlich alle
reject-codes auf 550 gesetzt, nur woher kommt dieser 450?

Danke im voraus.

sollte sein

http://www.postfix.org/postconf.5.html

reject_unknown_sender_domain
     Reject the request when Postfix is not final destination for the
sender address, and the MAIL FROM domain has 1) no DNS MX and no DNS A
record, or 2) a malformed MX record such as a record with a zero-length
MX hostname (Postfix version 2.3 and later).
     The reply is specified with the unknown_address_reject_code
parameter (default: 450), unknown_address_tempfail_action (default:
defer_if_permit), or 550 (nullmx, Postfix 3.0 and later). See the
respective parameter descriptions for details.


also

unknown_address_reject_code = 550

in main.cf


Hallo wie Du richtig sagst - solllte sein;

ich hab das ja so im main.cf

smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
und
unknown_address_reject_code = 550

nebenbei erwähnt postfix 2.6.6 (CentOS 6.x rpm package, CentOS 7.x liefert auch nur 2.10.1 mit);

ich dache auch an das:

check_sender_mx_access type:table
Search the specified access(5) database for the MX hosts for the MAIL FROM domain, and execute the corresponding action. Note: a result of "OK" is not allowed for safety reasons. Instead, use DUNNO in order to exclude specific hosts from blacklists. This feature is available in Postfix 2.1 and later.

nur wie müsste diese Tabelle aussehen, ich kenne ja die Domainnamen nicht, ich weiß nur, es gibt weder A noch MX Rekord dazu;
so in etwa

check_sender_mx_access pcre:/etc/postfix/sender_mx_access.pcre

und da nur dieser Eintrag?
/^$/    REJECT

Danke,
Walter

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

Antwort per Email an