Move user-specific logic check into mail plugin