To follow up to my own posting. A bit more investigation shows that the
above only seems to hold true for postmaster@$mydomain. Any other
domains in $mydestination exhibit the behaviour I'm looking for - the
mail is rejected whether or not it is to postmaster@.....
Postfix 2.x makes an exception for the "bare" postmaster address
only, that is, postmaster without domain, because that form is
explicitly allowed by RFC 2821. For everything else, RFC 2821
requires user@fully-qualified-domain-name.
Because of this inconsistency, the bare postmaster is excluded from
all the UCE junk so that people don't have to jump hoops to avoid
rejecting it by accident.
Otherwise, the SMTP server does nothing special with postmasters.
Wietse
However what I see now (testing this from home before I go anyplace
close to implementing it at work.....):
Jan 6 16:16:19 homer postfix/smtpd[1239]: input attribute name: (end)
Jan 6 16:16:19 homer postfix/smtpd[1239]: resolve_clnt:
`postm...@peachfamily.net' -> transp=`local' host=`mail.peachfamily.ne
t' rcpt=`postm...@peachfamily.net' flags= class=local
Jan 6 16:16:19 homer postfix/smtpd[1239]: ctable_locate: install entry
key postm...@peachfamily.net
Jan 6 16:16:19 homer postfix/smtpd[1239]: extract_addr: result:
postm...@peachfamily.net
Jan 6 16:16:19 homer postfix/smtpd[1239]: send attr request = rewrite
Jan 6 16:16:19 homer postfix/smtpd[1239]: send attr rule = canonicalize
Jan 6 16:16:19 homer postfix/smtpd[1239]: send attr address =
postmaster
Jan 6 16:16:19 homer postfix/smtpd[1239]: private/rewrite socket:
wanted attribute: address
Jan 6 16:16:39 homer postfix/smtpd[1239]: input attribute name: (end)
Jan 6 16:16:39 homer postfix/smtpd[1239]: resolve_clnt:
`postmaster@johnpeach.c
om' -> transp=`local' host=`mail.peachfamily.net' rcpt=`postmaster@johnp
each.com
' flags= class=local
Jan 6 16:16:39 homer postfix/smtpd[1239]: ctable_locate: install entry
key post
mas...@johnpeach.com
Jan 6 16:16:39 homer postfix/smtpd[1239]: extract_addr: result:
postmaster@john
peach.com
Jan 6 16:16:39 homer postfix/smtpd[1239]: >>> START Recipient address
RESTRICTI
ONS <<<
Jan 6 16:16:39 homer postfix/smtpd[1239]: generic_checks:
name=reject_non_fqdn_
sender
For some reason, postm...@peachfamily.net is bypassing the
restrictions.
$mydomain = peachfamily.net
and johnpeach.com being in $mydestination.
mail_version = 2.0.16-20031231