[milters] Archive

Lists Index Date Thread Search

Article: 1937
From: Anthony Howe
Date: 2008-12-31 11:47:43 -0500
Subject: Re: milter-link letting through a message

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Michael Grant uttered...:
> I am using milter-link version 0.7.25 and libsnert version 1.66.951
> and sendmail version 8.14.3 on freebsd 6.3p2.
> 
> I'm trying to understand why, when I seemingly properly configure a
> link to reject using milter-link that the mail is not rejected.
> 
> I configured a link in my access file like this:
> 
> milter-link-Body:meanmore.com           REJECT
> 
> and in the logs I see this:
> 
> Dec 29 07:25:16 charm sm-mta[13033]: mBTCPBjo013033: Milter add:
> header: X-milter-link-Report: rejected URL host meanmore.com
> Dec 29 07:25:16 charm sm-mta[13033]: mBTCPBjo013033: Milter accept: message
> 
> The message comes through.  The above was done with all the other
> milters disabled in my sendmail.mc file, only milter-link active.

milter-link.c, testUri(), look for

----
	case SMDB_ACCESS_REJECT:
		snprintf(data->reply, sizeof (data->reply), "rejected URL host %s",
uri->host);
		goto error0;
----

insert the line	"data->policy = 'r';" as shown. This fix will appear in
the next release.


----

	case SMDB_ACCESS_REJECT:
		snprintf(data->reply, sizeof (data->reply), "rejected URL host %s",
uri->host);
		data->policy = 'r';
		goto error0;
----




-- 
Anthony C Howe        Twitter: SirWumpus                    SnertSoft
+33 6 11 89 73 78       Skype: SirWumpus        BarricadeMX & Milters
http://www.snert.com/     ICQ: 7116561
     http://www.snertsoft.com/

Lists Index Date Thread Search