After I figured out that my pgsql query was returning an empty row for virtual_mailbox_maps used to reject_unlisted_recipient, I started thinking about what the query returned when there was an address match.

It is clear that smtpd is looking for row or no row. And I've read on this mailing list and elsewhere that the query result value is ignored. I've been happy with that answer for several years. Then, in two different places, I read that it is best to have the query return "1" if a match is found because postfix might not be happy with anything else.

It seems like a good idea, on the face of it, to always return a known and benign value. So, does it matter in any way whatsoever? Is it be possible for the return value to somehow confuse smtpd or break something?

Lynn
--

Chief Technical Officer
CreditLink Corporation

Reply via email to