Resolvido no Grupo de Usuários do Amavis ... Obrigado Mark Martinec Requer duas alterações:
Em /etc/amavis/conf.d/50-user, adicione isto :
################## ---- CUSTOM SIGNATURES AS DISCLAIMERS ------- ###############################
# uses altermime to insert a different signatue per users
# signatures are located in teh /etc/postfix/signatures/ directory
# also needs a small change to amavisd code:
# nano /usr/sbin/amavisd-new - $disclaimer_options = untaint($opt); (add the "untaint" word before ($opt)
# each user needs two signatures (html / txt) user.domain.com.txt user.domain.com.html
$altermime = '/usr/bin/altermime';
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
@disclaimer_options_bysender_maps = ( { '.' => '$3.$5' } );
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/signatures/_OPTION_.txt --disclaimer-html=/etc/postfix/signatures/_OPTION_.html --force-for-bad-html);
################## ---- END CUSTOM SIGNATURES AS DISCLAIMERS ------- ###############################
Certifique-se de que o aviso de isenção de responsabilidade não seja comentado e = > 1
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
originating => 1, # is true in MYNETS by default, but let's make it explicit
os_fingerprint_method => undef, # don't query p0f for internal clients
allow_disclaimers => 1, # enables disclaimer insertion if available
};
Faça uma pequena alteração no Altermime:
nano /usr/sbin/amavisd-new - $disclaimer_options = untaint($opt); (add the "untaint" word before ($opt)
Reinicie o Amavis (pode ter que matar o processo)