fix a bug causing all emails rejected