Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-13 23:57 UTC

Message

Re: [milter-greylist] block SRS senders

2016-09-05 by Marcus Schopen

On 2016-09-05 13:39, Marcus Schopen lists-yahoogroups@... 
[milter-greylist] wrote:
> Hi,
> 
> On 2016-09-05 05:23, Emmanuel Dreyfus manu@...
> [milter-greylist]
> wrote:
>> 
>> The problem you report stems from this code in milter-greylist.c :
>> 
>> /*
>> * Strip anything before the last '=' in the
>> * source address. This avoid problems with
>> * mailing lists using a unique sender address
>> * for each retry.
>> */
>> if ((idx = rindex(tmpfrom, '=')) == NULL)
>> idx = tmpfrom;
> 
> I tried to build a new package just deleting these two lines from
> source:
> 
> if ((idx = rindex(tmpfrom, '=')) == NULL)
> idx = tmpfrom;
> 
> Milter is crashing then
> 
> milter_sys_read(greylist): cmd read returned 0, expecting 5
> Milter (greylist): to error state
> Milter (greylist): time command (M), 0

Arrr, too much coffee, too little sleep. Just deleting the line

  if ((idx = rindex(tmpfrom, '=')) == NULL)

"fixes" the problem and the raw SRS mail from address comes up in the 
milter. Nice!

Ciao!
Marcus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.