DUH moment here... I am trying to use disclaimers for incoming messages in this 
case. After looking more carefully in the logs, the policy bank is being 
called, but no mangling happens since it's not a local domain. I found a 
reference to add the following within the policy bank, but Mark mentioned there 
could be undesirable effects: 
local_domains_map => [1]; 
Is there a safer way to do this other than removing the restriction in the 
code? 

TIA. 


----- "Ricardo Stella" <[email protected]> wrote: 
> 
> Forgot to mention, that if I test it from the command line, it inserts 
> the text with no problems. Command line I using is: 
> 
> altermime --input=test.eml --disclaimer=/amavis/voicemail-url.txt 
> 
> On 4/9/2010 3:59 PM, Ricardo Stella wrote: 
> > Hello, 
> > 
> > I'm testing how to add disclaimers. We have a server that sends 
> > notifications and need to add a couple of lines of text. Testing by 
> > talking directly to the port where the policy map exists, works fine. 
> > However, when the server sends this notification, nothing gets added. 
> > It's not an issue of not hitting the policy bank, as I can see it in the 
> > logs. Could it be because how the messages are being sent by the 
> > server? This is an example (removed the top part of the header): 
> > 
> > To: <[email protected]> 
> > Reply-To: <[email protected]> 
> > Content-Type: multipart/mixed; 
> > boundary="Boundary_4BBF8200_90E68643_29" 
> > 
> > --Boundary_4BBF8200_90E68643_29 
> > Content-Type: text/plain; charset=UTF-8 
> > 
> > You have a voice message from extension 1234 
> > 
> > --Boundary_4BBF8200_90E68643_29-- 
> > 
> > My settings for the policy bank are: 
> > 
> > $inet_socket_port = [10024, 10026]; 
> > ... 
> > $interface_policy{'10026'} = 'VOICEMAIL'; 
> > $altermime = '/usr/bin/altermime'; 
> > @altermime_args_disclaimer = 
> > qw(--verbose --disclaimer=/amavis/voicemail-url.txt); 
> > $defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ]; 
> > $policy_bank{'VOICEMAIL'} = { 
> > bypass_spam_checks_maps => [1], 
> > allow_disclaimers => 1, 
> > final_spam_destiny => D_PASS, 
> > }; 
> > 
> > Also tried with --multipart-insert Any ideas? Thanks in advance... 
> > 
> > ------------------------------------------------------------------------------
> >  
> > Download Intel&#174; Parallel Studio Eval 
> > Try the new software tools for yourself. Speed compiling, find bugs 
> > proactively, and fine-tune applications for parallel performance. 
> > See why Intel Parallel Studio got high marks during beta. 
> > http://p.sf.net/sfu/intel-sw-dev 
> > _______________________________________________ 
> > AMaViS-user mailing list 
> > [email protected] 
> > https://lists.sourceforge.net/lists/listinfo/amavis-user 
> > AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
> > AMaViS-HowTos:http://www.amavis.org/howto/ 
> > 
> 
> ------------------------------------------------------------------------------
>  
> Download Intel&#174; Parallel Studio Eval 
> Try the new software tools for yourself. Speed compiling, find bugs 
> proactively, and fine-tune applications for parallel performance. 
> See why Intel Parallel Studio got high marks during beta. 
> http://p.sf.net/sfu/intel-sw-dev 
> _______________________________________________ 
> AMaViS-user mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/amavis-user 
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
> AMaViS-HowTos:http://www.amavis.org/howto/ 
> 
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to