#6 amavis-perl11 to detected execs/crypts

closed
nobody
None
5
2002-03-19
2002-03-16
Dirk Datzert
No

Hi amavis team,

I have a patch which integrates a feature I needed
in our company

Detect/quarantine/inform about executables attachments
Detect/quarantine/inform about encrypted attachments

I also did some sort of S/MIME support and GnuPG
support to amavis-perl. This means that amavis can
decrypt S/MIME mails or PGP/MIME mails, if the mail
is encrypted to a special public key, for which amavis
has access to the private key pendant.

Patch is against amavis-perl11, MTA-postfix

gpg 1.0.6 and perl-GnuPG 0.09 is needed for gpg
support.

Regards,
Dirk

Discussion

  • Dirk Datzert
    Dirk Datzert
    2002-03-16

    amavis-patch to detect execs/crypted attachements

     
  • Lars Hecking
    Lars Hecking
    2002-03-16

    Logged In: YES
    user_id=28904

    Interesting.

    If you update the patch for amavis-perl in cvs, and maybe
    even for amavisd, I would put it into the contrib area on
    our web site.

     
  • Dirk Datzert
    Dirk Datzert
    2002-03-17

    Logged In: YES
    user_id=139139

    Hi Lars,

    I did the patch now against amavis-perl 0.3.12pre6
    CVS from 16.3.2002.

    I did no patch against amavisd. Probably this will be
    done if I will use amavisd or a other person wants to
    do this.

    Regards,
    Dirk

     
  • Dirk Datzert
    Dirk Datzert
    2002-03-17

    same patch against amavis-perl-0.3.12pre6 from CVS 16.3.2002

     
  • Dirk Datzert
    Dirk Datzert
    2002-03-17

    Logged In: YES
    user_id=139139

    some comments for configuration:

    in GnuPG.pm line 267 should be changed like this:

    from: $max_fd = POSIX::sysconf ( ... ) || 256;
    to: $max_fd = 2556;

    I created amavis from scratch with

    ./configure --enable-postfix --with-smtp-port=10025

    The patch can than applied against amavis with

    patch amavis amavis.diff

    Regards,
    Dirk

     
  • Dirk Datzert
    Dirk Datzert
    2002-03-17

    Logged In: YES
    user_id=139139

    sorry typo:

    to: $max_fd = 256;

     
  • Lars Hecking
    Lars Hecking
    2002-03-19

    Logged In: YES
    user_id=28904

    The patch is now available under http://www.amavis.org/contrib/.

    Thank you very much for your contribution! I cannot say
    whether I will accept the code for distribution, though.

     
  • Lars Hecking
    Lars Hecking
    2002-03-19

    • status: open --> closed