replace amavis with rewritten amavis