replace amavis with amavis rewrite