Andrew Edelstein:
> A sample email address that is being sent to Postfix would be: [
> [email protected] ]. Postfix is turning this
> into [ "paku_paku..love-gateau..z7"@docomo.ne.jp ] (braces and
> whitespace add by me. Everything inside the braces is literal.)

As required by RFC 5321 and predecessors, a local-part with
adjacent dots must be quoted.

> While it may be "correct" for Postfix to munge that bogus
> email address into an RFC compliant string, is there a way to tell
> it not to do that, or even just discard the message without
> attempting to relay it?

Making this configurable makes no sense as you would just move the
problem to a remote MTA that is not under your control.

You can configure Postfix to reject recipients with adjacent dots.

/etc/postfix/main.cf:
    smtpd_recipient_restrictions = 
        pcre:/etc/postfix/idiot_filter 
        permit_mynetworks 
        reject_unauth_destination

/etc/postfix/idiot_filter:
    /\.\./ reject Syntax rejected by idiot filter

        Wietse

Reply via email to