Skip to Content.
Sympa Menu

en - [sympa-users] nrcpt parameter doesn't work

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Fabio Napoleoni <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] nrcpt parameter doesn't work
  • Date: Fri, 05 Feb 2010 13:59:59 +0100

Hi folks,

I have a problem with sympa. In our company we use Sympa 5.3.4 because our servers runs with Debian Lenny and this is the last version provided by this distribution.

What I'm trying to do is to setup sympa in order to work with aol.com FBL. They send ARF with addresses rewrited in it, so the only way to track the user who marked the message as spam is to avoid sympa aggregation of aol addresses.

I tried to do this first by using nrcpt_by_domain.conf file in /etc/sympa (location of sympa.conf in Debian) with this content

aol.com 1

but it doesn't work. Then I tried to setup the nrcpt parameter to 1 in sympa.conf file, but neither this has worked.

I saw in the sympa sources by grep these do_log calls

host6:/usr/lib/sympa/bin# grep nrcpt *
Conf.pm: logo_html_definition misaddressed_commands misaddressed_commands_regexp max_size maxsmtp nrcpt
Conf.pm: 'nrcpt' => 25,
Conf.pm: my $nrcpt_by_domain = &load_nrcpt_by_domain ;
Conf.pm: $Conf{'nrcpt_by_domain'} = $nrcpt_by_domain ;
Conf.pm:## load nrcpt file (limite receipient par domain
Conf.pm:sub load_nrcpt_by_domain {
Conf.pm: my $config = $Conf{'etc'}.'/nrcpt_by_domain.conf';
Conf.pm: my %nrcpt_by_domain ;
Conf.pm: &do_log('notice',"load_nrcpt: loading $config");
Conf.pm: $nrcpt_by_domain->{$domain} = $value;
Conf.pm: &do_log('debug',"load_nrcpt: loaded $valid_dom config lines from $config");
Conf.pm: return ($nrcpt_by_domain);
mail.pm: my($i, $j, $nrcpt, $size, @sendto);
mail.pm: &do_log('debug2', "domain: $dom ; rcpt by dom: $rcpt_by_dom{$dom} ; limit for this domain: $Conf{'nrcpt_by_domain'}{$dom}");
mail.pm: if (defined ($Conf{'nrcpt_by_domain'}{$dom}) && ( $rcpt_by_dom{$dom} >= $Conf{'nrcpt_by_domain'}{$dom} )){
mail.pm: $nrcpt = $size = 0;
mail.pm: $nrcpt = $size = 0;
mail.pm: if ($#sendto >= 0 && (($size + length($i)) > $max_arg || $nrcpt >= &Conf::get_robot_conf($robot, 'nrcpt'))) {
mail.pm: $nrcpt = $size = 0;
mail.pm: $nrcpt++; $size += length($i) + 5;
sympa_wizard.pl: {'name' => 'nrcpt',
sympa_wizard.pl: 'query' => 'Maximum number of recipients per call to Sendmail. The nrcpt_by_domain.conf file allows a different tuning per destination domain.',

so I setup the log_level parameter to 4, but none of these message appears.

With both the nrcpt parameter and nrcpt_by_domain.conf set but my test list with 5 users (two of them are aol's users) act like this

Feb 5 06:54:06 host6 sympa(message)[28245]: main::DoMessage() Message for fabio from address@concealed accepted (0 seconds, 1 sessions, 5 subscribers), message-id=<address@concealed> , size=1048

Thanks in advance for any help.

--
Fabio Napoleoni
address@concealed

"Computer Science is no more about computers than astronomy is
about telescopes"

Edsger W. Dijkstra



Archive powered by MHonArc 2.6.19+.

Top of Page