This is a discussion on Re: [AMaViS-user] Help with custom config / lookups within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Patrick, > I am trying to implement a vacation module for amavis, > using the amavisd-custom config. For new ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Patrick,
> I am trying to implement a vacation module for amavis, > using the amavisd-custom config. For new development work using amavisd-custom config, please use amavisd-new-2.6.0-rc1 and its amavisd-custom.conf as a template. There were some incompatible changes in custom hooks since 2.5.4. The 2.6.0-rc1 already provides a simple template (by the very end of the file 'amavisd') for auto-responses. It is stored in a variable $notify_autoresp_templ. (access it through: cr('notify_release_templ_by_ccat'). It is currently unused (juas read and stored), intended to be used from custom hooks. > I have trouble doing > LDAP lookups. Does someone have a code snippet > or other example of how to setup LDAP lookups from > the custom config? I'm not using LDAP myself, so I'm haven't tried it. Perhaps the low-level use through Amavis::Lookup::LDAPattr->new and $obj->lookup_ldap_attr would be easiest. To implement 'vacation', you will most likely also need SQL r/w access to implement rate limiting of replies. Storing and dynamically updating such information in LDAP may be awkward. See RFC 3834, implementing it in full is a MUST (and plenty of work, e.g. to get aliases recognition right, as this information is normally not available to amavisd and needs to be fetched from MTA databases). > I have been trying for a week but it does not work out. > I also have trouble debugging it, as the log level I set > does not seem to work for the amavisd-custom config. Calls to do_log from custom hooks should work normally. See the amavisd-custom.conf example. Mark ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216...et/marketplace _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|