Recipients addresses appearing since upgrade
Julian Field
MailScanner at ecs.soton.ac.uk
Sun Sep 24 10:23:51 IST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Holland wrote:
>>>>> On Sat, 23 Sep 2006, Wayne wrote:
>>>>>
>>>>>
>>>>>> A serious situation has arisen since upgrading to Mailscanner 4,55
>>>>>> the following details are being added
>>>>>> to our mailing list postings: Example ....
>>>>>>
>>>>>>
>>>>>>>> X-Balita-MailScanner-To: aalicant at sakentz.com,
>>>>>>>>
>>> acarpio at us.imshealth.com,
>>>
>>>>>>>> adangoy at voyageur.ca, alablues at otelco.net,
>>>>>>>>
>>> alingdolly at yahoo.com,
>>>
>>>>>>>> almazan at uplink.net, alnoveloso at yahoo.com.au,
>>>>>>>> alophoixus at ukonline.co.uk and so on ........
>>>>>>>>
>>>>>> It is obvious the MailScanner upgrade has altered a setting that was
>>>>>> not set before.
>>>>>>
>>>>>> As a matter of urgency can someone tell me what it could be that
>>>>>> needs altering back to its original state.
>>>>>>
>>>>> I haven't come across this before, but the obvious place to look is in
>>>>> MailScanner.conf:
>>>>>
>>>>> # Do you want to add the Envelope-To: header?
>>>>> # This can be useful for tracking spam destinations, but should be
>>>>> # used with care due to possible privacy concerns with the use of
>>>>> # Bcc: headers by users.
>>>>> # This can also be the filename of a ruleset.
>>>>> Add Envelope To Header = no
>>>>>
>>>>> If you have that set to yes then that might explain your problem.
>>>>>
>>>>> Regards
>>>>>
>>>>> Jim Holland
>>>>> System Administrator
>>>>> MANGO - Zimbabwe's non-profit e-mail service
>>>>>
>>> On Sat, 23 Sep 2006, Wayne wrote:
>>>
>>>
>>>> Thanks Jim
>>>>
>>>> Both the To and From Envelopes are set to no :-( even commenting the
>>>> lines out with # seem to make no difference. Don't know if I should
>>>> or not but after each alteration in .conf I am restarting MailScanner.
>>>>
>>> Now it gets more difficult. Is your MailScanner.conf file in the standard
>>> place (/etc/MailScanner/MailScanner.conf)? Could there be another copy in
>>> some other place that is being used instead? Have you changed the type of
>>> MailScanner installation between versions (eg using a tarball for one and
>>> an rpm or other package for another)? Perhaps you then have a situation
>>> where you have a conflict between the old and new versions.
>>>
>>> In the meantime, if you are desperate, try stopping MailScanner,
>>> commenting out the following section of the Message.pm file which should
>>> be in /usr/lib/MailScanner/MailScanner, and then restarting MailScanner:
>>>
>>> # Do they all want the To header
>>> if (MailScanner::Config::Value('addenvto', $this) !~ /0/) {
>>> # Get the actual text for the header value
>>> foreach $to (@{$this->{to}}) {
>>> $tolist{$to} = 1;
>>> }
>>> $to = join(', ', sort keys %tolist);
>>>
>>> $envtoheader = MailScanner::Config::Value('envtoheader', $this);
>>> # Now reflow the To list in case it is very long
>>> $to = $this->ReflowHeader($envtoheader, $to);
>>>
>>> $global::MS->{mta}->ReplaceHeader($this, $envtoheader, $to);
>>> }
>>>
>>> Clearly the problem is that somehow the value of addenvto (which comes
>>>
>> >from AddEnvelopeToHeader) is not zero.
>>
>>> Regards
>>>
>>> Jim Holland
>>> System Administrator
>>> MANGO - Zimbabwe's non-profit e-mail service
>>>
>
> On Sat, 23 Sep 2006, Wayne wrote:
>
>
>> Date: Sat, 23 Sep 2006 15:27:18 +0100
>> From: Wayne <wjohns at balita.ph>
>> Reply-To: MailScanner discussion <mailscanner at lists.mailscanner.info>
>> To: MailScanner discussion <mailscanner at lists.mailscanner.info>
>> Subject: Re: Recipients addresses appearing since upgrade
>>
>> At 15:09 23/09/2006, you wrote:
>>
>> Jim
>>
>> Commenting out the section in Message.pm has eradicated the from and
>> to envelopes.
>>
>> I don't think I have / had two MailScanner.conf files I have always
>> used the RPM releases to upgrade, as far as I know the conf is
>> located at /etc/MailScanner/MailScanner.conf.
>>
>> It seems it all started when I was getting double messages and it was
>> suggested I should use flock instead of posix for locking. My
>> Sendmail is 8.12. Could be a coincidence :-)
>>
>> Many thanks for your most valued help it is appreciated.
>>
>> - Wayne -
>>
>
> I am glad to have been able to help, but I think only Julian will be able
> to get to the bottom of the original problem so it can be solved properly
> rather than just using this quick and dirty hack.
>
> Regards
>
> Jim Holland
> System Administrator
> MANGO - Zimbabwe's non-profit e-mail service
>
>
Try replacing the first line of that if statement with this:
if (MailScanner::Config::Value('addenvto', $this) =~ /^[1\s]+$/) {
If the addenvto was blank, the condition would have matched. I have
switched the order of the logic.
- --
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.5.0 (Build 1112)
Comment: Fetch my public key foot-print from www.mailscanner.info
Charset: ISO-8859-1
wj8DBQFFFk6oEfZZRxQVtlQRAvtRAKC07w1POnzh9yOul0B5XNrjjmumGwCePeqV
5/kfhV3wepAQlaH8W9WukN0=
=xvyf
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk
More information about the MailScanner
mailing list