Griffiths, Jon writes:
However, this is the crux of the matter. If I get an incorrectly addressed
user, with the correct domain, I get this in the logs:
Jul 24 13:56:52 jon maildrop[27922]: Invalid user specified.
Jul 24 13:56:52 jon sendmail[27919]: f6OANx626166:
to=<comp...@XXYY.com>, delay=01:32:53, xdelay=00:00:00,
mailer=local, pri=392405, dsn=4.0.0, stat=Deferred: local mailer
(/usr/local/bin/maildrop) exited with EX_TEMPFAIL
Now it seems to me that maildrop is not presenting the correct error code
for invalid user.
If it's an invalid user, why did you mail server accept the message for
delivery in the first place?
If this is a nonexistent mailbox, the mail server should refuse to accept
the message, and return it as undeliverable, and maildrop should not even be
run.