Fix saving allow_localdomain in email source

When the checkbox was unchecked, the option was not saved and was
enabled by default.