[AMaViS-user] Global symbol requires explicit package name ...
bash-3.2# amavisd -u _amavisd -c /usr/local/etc/amavisd.conf debug Error in config file /usr/local/etc/amavisd.conf: Global symbol $enable_dkim_verification requires explicit package name at /usr/local/etc/amavisd.conf line 50. Global symbol $enable_dkim_signing requires explicit package name at /usr/local/etc/amavisd.conf line 51. Global symbol $sa_crediblefrom_dsn_cutoff_level requires explicit package name at /usr/local/etc/amavisd.conf line 101. Global symbol $bounce_killer_score requires explicit package name at /usr/local/etc/amavisd.conf line 105. bash-3.2# That's on my MacMini running Snow Leopard, using perl 5.8.9 from MacPorts. To the best of my knowloedge, no required perl modules are missing. Suggestions? -- -ste -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] Global symbol requires explicit package name ...
On Fri, Jan 8, 2010 at 9:32 AM, Mark Martinec mark.martinec+ama...@ijs.si wrote: The version of amavisd is older than 2.6.0 ? Nice catch. I was picking up the old one that Apple installed. When I run the correct one (2.6.4), I get: bash-3.2# /usr/local/bin/amavisd -u _amavisd -c /usr/local/etc/amavisd.conf debug setrgid() not implemented at /usr/local/bin/amavisd line 13421. bash-3.2# -- -ste -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] Global symbol requires explicit package name ...
Shaun, The version of amavisd is older than 2.6.0 ? Nice catch. I was picking up the old one that Apple installed. When I run the correct one (2.6.4), I get: bash-3.2# /usr/local/bin/amavisd -u _amavisd -c /usr/local/etc/amavisd.conf debug setrgid() not implemented at /usr/local/bin/amavisd line 13421. Try deleting (or commenting out) the two lines dealing with changing a group id near the indicated line number: $( = $gid; $) = $gid $gid; # real and effective GID POSIX::setgid($gid) or die drop_priv: Can't setgid to $gid: $!; Mark -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] Global symbol requires explicit package name ...
On Fri, Jan 8, 2010 at 10:25 AM, Mark Martinec mark.martinec+ama...@ijs.si wrote: ... Try deleting (or commenting out) the two lines dealing with changing a group id near the indicated line number: $( = $gid; $) = $gid $gid; # real and effective GID POSIX::setgid($gid) or die drop_priv: Can't setgid to $gid: $!; Now I can debug. Thanks! -- -ste -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] disclaimer not working with amavisd-new 2.6.x
Vishy, Need help with getting disclaimer working with amavisd-new 2.6.4. I had configured disclaimer to work with 2.5.4 and recently upgraded amavisd to 2.6.4 and since then disclaimer stopped working. Following is my configuration related to disclaimer in amavisd.conf $altermime = '/usr/bin/altermime'; # a path to the program @altermime_args_disclaimer = qw(--verbose --disclaimer=/etc/amavisd/disclaimer.txt --disclaimer-html=/etc/amavisd/disclaimer.html); $defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ]; $policy_bank{'MYUSERS'} = { originating = 1, allow_disclaimers = 1, }; The setup has postfix+amavisd-new+cyrus-imap. As mentioned earlier this configuration was working with amavisd 2.5.4 but has stopped working with 2.6.x. The only time it works is when a user send mail using webmail (also configured on the same server as postfix+amavis). For mail sent using any other clients like Outlook, Thunderbird etc., disclaimer is no longer working. Could someone help me get disclaimer working with 2.6.x Sorry for a long delay. I finally tried your setup, and it does work here. One difference between 2.5.4 and 2.6.4 is: amavisd-new-2.6.0 release notes: - an additional requirement for loading a policy bank 'MYUSERS' is that 'originating' flag must be on, which typically means that mail must be coming from internal networks or from authenticated roaming users to be able to load a policy bank 'MYUSERS'; so I suspect that what the $originating flag is not being turned on for mail from your SMTP MUA clients, yet it is being turned on by mail from your webmail server. The $originating flag is either turned on implicitly by a client's IP address matching @mynetworks, or explicitly through a policy bank typically attached to a dedicated TCP port number, to which MTA will feed mail from internal or authenticated roaming clients. A debug log would tell if my guess is right. Mark -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
Re: [AMaViS-user] adding header to mail
Replying to an old thread, with some new information: On Monday 05 October 2009 20:01:29 Stefan wrote: I'm using SpamAssassin with the URICountry Plugin. Now I would like to add a X-URI-Country: header to the scanned message. Therefore I added the following lines to the URICountry.pm module: # Build a string of all found countries and export it as a tag my $countries = ; foreach my $country (keys(%countries)) { $countries .= uc($country) . ; } chop $countries; $opts-{permsgstatus}-set_tag(URICOUNTRY, $countries); package Amavis::Custom; [...] sub before_send { my($self,$conn,$msginfo) = @_; my($uri_country) = $msginfo-supplementary_info('URICOUNTRY'); if (defined $uri_country $uri_country ne '') { my($hdr_edits) = $msginfo-header_edits; my($all_local) = !grep { !$_-recip_is_local } @{$msginfo-per_recip_data}; $hdr_edits-add_header('X-URI-Countries', $uri_country) if $all_local; } }; I can use the URICOUNTRY tag with the command 'spamassassin' (e.g. in a template like 30_text_de.cf). But amavisd doesn't add a header because URICOUNTRY is empty (=). Why doesn't amavisd see the content of URICOUNTRY? The concept I like to use is the same as with the RelayCountry plugin. I guess the problem is that the RelayCountry plugin is collecting its data much earlier (in the sub function extract_metadata) as the URICountry plugin. The URICountry plugin is collecting its data in the sub function parsed_metadata. Both plugins set the tag in the parsed_metadata function. But only the RelayCountry plugin can create an additional header (with put_metadata) in the extract_metadata function. So maybe the problem is that the plugin can't create an additional header and assign it to the tag. But on the other side is amavisd only evaluating the tag and not the header. So, any ideas why amavisd can not read the content of the tag URICOUNTRY? The $msginfo-supplementary_info gets filled in a sub call_spamassassin from a list of 'interesting' tags. You need to add URICOUNTRY to that list: for my $t (qw(TESTS AUTOLEARN AUTOLEARNSCORE SC SCRULE SCTYPE LANGUAGES RELAYCOUNTRY ASN ASNCIDR DCCB DCCR DCCREP DKIMDOMAIN DKIMIDENTITY AWLSIGNERMEAN CRM114STATUS CRM114SCORE CRM114CACHEID)) { $supplementary_info{$t} = $per_msg_status-get_tag($t); } With the next release of amavisd, along with SpamAssassin 3.3.0, amavisd will be able to 'see' added header fields as prepared by SpamAssassin (through its 'add_header ... _URICOUNTRY_' config option), and insert them into the mail header section, which will eliminate the need to collect SA tags and pass them through the supplementary_info mechanism. Mark -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/