Properly check the return code of send_via_mailgate

8da874c9 changed send_via_mailgate to return a status code, as if it had
run bin/mailgate by hand.  As such, success is a 0 value, and failure
values are determined by right-shifting.