Re: [AMaViS-user] Amavis::Custom

2010-11-16 Thread Mark Martinec
Armin, Could somebody help me to understand/direct why checks is working as designed with more than internal envelope address. Using this with a combination of in-/external envelope dynamic_altermime_disclaimer is called for internal email as well. sub checks { my($self, $conn,

Re: [AMaViS-user] Amavis::Custom

2010-11-16 Thread Amavis
Armin, Mark, it should say something like: # don't bother with inbound or internal-to-internal mail (or the condition should be changed) Changed. Using this with a combination of in-/external envelope dynamic_altermime_disclaimer is called for internal email as well. That's it! But, I

[AMaViS-user] Amavis::Custom

2010-11-10 Thread Amavis
List, Could somebody help me to understand/direct why checks is working as designed with more than internal envelope address. Using this with a combination of in-/external envelope dynamic_altermime_disclaimer is called for internal email as well. sub checks { my($self, $conn, $msginfo) =

Re: [AMaViS-user] [Amavis::Custom]: get parts size and location temporary path

2009-01-27 Thread Mark Martinec
David, I try to get parts file path location and part size here is my code my($tempdir) = $msginfo-mail_tempdir; my($mail_file_name) = $msginfo-mail_text_fn; my $size; if ($msginfo-mime_entity-parts 0){ for (my $i=0;$i$msginfo-mime_entity-parts;$i++){ my $subEntity =

Re: [AMaViS-user] [Amavis::Custom]: get parts size and location temporary path

2009-01-27 Thread David Touzeau
: amavis-user@lists.sourceforge.net Sujet: Re: [AMaViS-user] [Amavis::Custom]: get parts size and location temporary path Date: Tue, 27 Jan 2009 14:22:55 +0100 David, I try to get parts file path location and part size here is my code my($tempdir) = $msginfo-mail_tempdir; my($mail_file_name

Re: [AMaViS-user] [Amavis::Custom]: replace the entire mail using the temporay file

2009-01-26 Thread Mark Martinec
David, I have created a tool that parse the amavis temp txt file (eg : /var/amavis/afj0siVX/email.txt) , strip attachments and compress attachments and rebuild the mail the temp file (/var/amavis/afj0siVX/email.txt) was replaced by a new one in the checks() function, a command is

Re: [AMaViS-user] [Amavis::Custom]: replace the entire mail using the temporay file

2009-01-26 Thread David Touzeau
} #$ldap-unbind(); $self; }; Message initial De: Mark Martinec mark.martinec+ama...@ijs.si À: amavis-user@lists.sourceforge.net Sujet: Re: [AMaViS-user] [Amavis::Custom]: replace the entire mail using the temporay file Date: Mon, 26 Jan 2009 19:37:13 +0100 my($out_fh) = IO::File

Re: [AMaViS-user] [Amavis::Custom]: replace the entire mail using the temporay file

2009-01-26 Thread Mark Martinec
David, I really don't understand this my function and the mail is not changed, only the original is passed trought. Just one information. I'm using Postfix + amavis-milter (perhaps it change something)... Ah yes, that explains it. The milter/amavisd interface does not currently support

[AMaViS-user] [Amavis::Custom]: get parts size and location temporary path

2009-01-25 Thread David Touzeau
Dear I try to get parts file path location and part size here is my code my($tempdir) = $msginfo-mail_tempdir; # working directory for this process my($mail_file_name) = $msginfo-mail_text_fn; my $size; if ($msginfo-mime_entity-parts 0){ for (my

[AMaViS-user] [Amavis::Custom]: replace the entire mail using the temporay file

2009-01-25 Thread David Touzeau
Dear I have created a tool that parse the amavis temp txt file (eg : /var/amavis/afj0siVX/email.txt) , strip attachments and compress attachments and rebuild the mail the temp file (/var/amavis/afj0siVX/email.txt) was replaced by a new one in the checks() function, a command is

Re: [AMaViS-user] [Amavis::Custom] : Project auto-compress feature

2009-01-14 Thread TOUZEAU DAVID
Many thanks for your information OK il developp a such tool that rebuild the message. Is the execution of external process system perl function working in the custom area ? but when my tool has rebuild the message, where i put it ? replace the file in the working directory ? How to notify amavis

[AMaViS-user] [Amavis::Custom] : query if sender is whitlisted or blacklisted

2009-01-14 Thread TOUZEAU DAVID
Dear What is the function in Amavis::Custom that help detecting that the sender address is whitelisted or not ? Currently, my whitelist and blacklist are stored in the LDAP database. I think it will be a loosing time to request 2 times the LDAP database since amavis already do the operation...

Re: [AMaViS-user] [Amavis::Custom] : Project auto-compress feature

2009-01-13 Thread Mark Martinec
David, I have a project using amavis in order to add auto-compress feature when mails meet specific rules. I would like to know what function in Amavis::Custom can be use to : - List Mime-parts - Extract files. - Delete attached files - Adding new attached files. I can do this by

Re: [AMaViS-user] [Amavis::Custom] Do not quarantine spam messages - Was: Re: [Amavis::Custom] : Unable to block mail after amavis results

2009-01-13 Thread Mark Martinec
Lucas, I would like to take this message to ask about quarantine. In my amavis::custom, I use CC_SPAM to discard the e-mail, but the message has been stored at disk. These filters are developed in checks function. Is there the way to discard the message entirely? You could employ the

[AMaViS-user] [Amavis::Custom] : Project auto-compress feature

2009-01-09 Thread TOUZEAU DAVID
Dear I have a prohect using amavis in order to add auto-compress feature when mails meet specific rules. I would like to know what function in Amavis::Custom can be use to : - List Mime-parts - Extract files. - Delete attached files - Adding new attached files. I can do this by executing a

[AMaViS-user] [Amavis::Custom] Do not quarantine spam messages - Was: Re: [Amavis::Custom] : Unable to block mail after amavis results

2009-01-08 Thread Lucas Vianna
On Wed, Jan 7, 2009 at 6:49 PM, Mark Martinec mark.martinec+ama...@ijs.si wrote: David, *** Amavis send to recipients has Passed BANNED ! Similar to my previous example, but this one shows how to block mail as banned: sub checks { my($self,$conn,$msginfo) = @_; for my $r

Re: [AMaViS-user] [Amavis::Custom] Passed INFECTED in syslog but no mails blocked

2009-01-07 Thread Mark Martinec
David, I use Amavis::Custom in order to add my own plugin. For testing i try to judge all mails received has infected All mails came from Fetchmail so the connection is 127.0.0.1 i have removed 127.0.0.1 in @mynetworks attribute In This case, all mails are forwarded to recipients instead

Re: [AMaViS-user] [Amavis::Custom] : Unable to block mail after amavis results

2009-01-07 Thread Mark Martinec
David, *** Amavis send to recipients has Passed BANNED ! Similar to my previous example, but this one shows how to block mail as banned: sub checks { my($self,$conn,$msginfo) = @_; for my $r (@{$msginfo-per_recip_data}) { # $r-add_contents_category(CC_VIRUS,0) if

Re: [AMaViS-user] [Amavis::Custom] Passed INFECTED in syslog but no mails blocked

2009-01-07 Thread TOUZEAU DAVID
super ! thanks And what about if i just want to ban instead warn virus ? Mark Martinec a écrit : David, I use Amavis::Custom in order to add my own plugin. For testing i try to judge all mails received has infected All mails came from Fetchmail so the connection is 127.0.0.1 i have

Re: [AMaViS-user] [Amavis::Custom] : Unable to block mail after amavis results

2009-01-07 Thread TOUZEAU DAVID
Many many thanks This is very great I fact this way is more powerfull ! no i can code many things !! Mark Martinec a écrit : David, *** Amavis send to recipients has Passed BANNED ! Similar to my previous example, but this one shows how to block mail as banned: sub checks {

Re: [AMaViS-user] [Amavis::Custom] Passed INFE CTED in syslog but no mails blocked

2009-01-07 Thread Mark Martinec
David, And what about if i just want to ban instead warn virus ? I'm not sure I understand the question. If what you mean is how to label mail as banned (instead of infected), see my other posting. If a question is about blocking vs. sending warnings to recips vs. sending a non-delivery

Re: [AMaViS-user] [Amavis::Custom] Passed INFECTED in syslog but no mails blocked

2009-01-07 Thread TOUZEAU DAVID
You right your last post answers my needs. the first needs is To bann specific internal users sending mails trought Internet with data stored in Openldap database server To bann mails comming trought gateway by Geoip (countries, cities) locations Mark Martinec a écrit : David, And what

[AMaViS-user] [Amavis::Custom] : Unable to block mail after amavis results

2009-01-03 Thread TOUZEAU DAVID
Dear my custom script will block any message passed by the custome script (just for testing) It seems that amavis don't care about the result of Amavis::Custom What can i do in order to force the mail to reject the message ? how to change final_destiny to D_DISCARD ? Jan 3 18:09:48 pc-touzeau

[AMaViS-user] [Amavis::Custom] Passed INFECTED

2008-12-26 Thread TOUZEAU DAVID
Dear I use Amavis::Custom in order to add my own plugin. For testing i try to judge all mails received has infected All mails came from Fetchmail so the connection is 127.0.0.1 i have removed 127.0.0.1 in @mynetworks attribute But all mails are forwarded to recipients instead being refused