Matus UHLAR - fantomas: > >> On 07.05.20 12:26, Matus UHLAR - fantomas wrote: > >> >I ust received mail where user specified destination address: > >> >@example....@example.com > >> > > >> >the mail was accepted and forwarded to "empty_address_recipient", > >> > > >> >which docs' say: > >> > > >> >"...Postfix does not accept such addresses in SMTP commands..." > >> >http://www.postfix.org/postconf.5.html#empty_address_recipient > > On 13.05.20 10:14, Wietse Venema wrote: > >There was a malformed recipient that looked like > > > > "@some-local-domain"@some-local-damain > > > >See http://www.postfix.org/postconf.5.html#resolve_dequoted_address for > >why Postfix looks inside the quotes and tries to deliver to > >""@some-local-domain. > > shouldn't this address be treated as empty and therefore rejected?
The RCPT TO address was not empty, and therefore the RCPT TO handler accepted the address. There are all kinds of ways that a non-empty address can resolve to an emmpty address. but the RCPT TO handler does not know that, and it should not know that. With resolve_dequoted_address=no, the RCPT TO handler would reject the address because "@some-local-domain" does not resolve to a "known" user. With resolve_dequoted_address=yes, the address resolves to an empty localpart in a local domain, and is mapped to $empty_address_recipient, but the RCPT TO handler does not know that, and it should not know that. Wietse