Re: Dspam with Postfix virtual addresses
Eric Broch <[email protected]> Fri, 5 Dec 2025 09:54:08 -0700
| Newsgroups | gmane.mail.spam.dspam.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============8177272879899214106==
Content-Type: multipart/alternative;
boundary="------------mg9E8PjIQXssmFrzG34x9cKO"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------mg9E8PjIQXssmFrzG34x9cKO
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Al,
Don't give me to much credit ;-). I found all this on the following link:
DSpam POSTFIX INTEGRATION - LedHed's Wiki
<https://wiki.ledhed.net/index.php/DSpam_POSTFIX_INTEGRATION>
As far as Procmail is concerned you're only checking for a header
inserted by the Content filter call (Postfix->Dspam->Postfix). If you
check the source of an email you should find this header which Procmail
is only checking for, below:
X-DSPAM-Result: Spam
X-DSPAM-Processed: Fri Dec 5 08:25:22 2025
X-DSPAM-Confidence: 0.9928
X-DSPAM-Improbability: 1 in 13789 chance of being ham
X-DSPAM-Probability: 1.0000
X-DSPAM-Signature: 15,6932f9623786159238293068
I think your correction to the Procmail filter looks good if I understand Procmail correctly.
You could also run Dspam in your procmail script then check the header tag: another option.
Eric
On 12/5/2025 9:29 AM, Al wrote:
> On Thu, 4 Dec 2025, Eric Broch wrote:
>
>> Right off the bat change
>>
>> DeliveryProto LMTP
>>
>> to
>>
>> DeliveryProto SMTP
>>
>> And
>>
>> ChangeUserOnParse on
>>
>> to
>>
>> ChangeUserOnParse full
>
> I made these changes and it is working now. I can't believe that I had
> worked on this for days and you seen the problem with the first email.
>
>
>> Also when running procmail I've never seen these settings for dspam
>> (what is -p and -e flags) :
>>
>> | /usr/local/bin/dspam -p -e
>>
>
> I don't know what they mean either. I copied this from another mail
> server that at one time was using dspam. It is not working, I am
> considering using something like:
>
> :0 * ^X-DSPAM-Result: Spam {
> :0
> * ^X-DSPAM-Confidence: 0\.(9|8[5-9])
> superspam/
>
> :0
> spam/
> }
>
>
> Kind Regards,
> Al
>
>
> _______________________________________________
> Dspam-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspam-user
--------------mg9E8PjIQXssmFrzG34x9cKO
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Al,</p>
<p>Don't give me to much credit ;-). I found all this on the
following link:</p>
<p><a
href="https://wiki.ledhed.net/index.php/DSpam_POSTFIX_INTEGRATION">DSpam
POSTFIX INTEGRATION - LedHed's Wiki</a></p>
<p>As far as Procmail is concerned you're only checking for a header
inserted by the Content filter call
(Postfix->Dspam->Postfix). If you check the source of an
email you should find this header which Procmail is only checking
for, below:</p>
<pre>X-DSPAM-Result: Spam
X-DSPAM-Processed: Fri Dec 5 08:25:22 2025
X-DSPAM-Confidence: 0.9928
X-DSPAM-Improbability: 1 in 13789 chance of being ham
X-DSPAM-Probability: 1.0000
X-DSPAM-Signature: 15,6932f9623786159238293068
I think your correction to the Procmail filter looks good if I understand Procmail correctly.
You could also run Dspam in your procmail script then check the header tag: another option.
Eric
</pre>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/5/2025 9:29 AM, Al wrote:<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">On
Thu, 4 Dec 2025, Eric Broch wrote:
<br>
<br>
<blockquote type="cite">Right off the bat change
<br>
<br>
DeliveryProto LMTP
<br>
<br>
to
<br>
<br>
DeliveryProto SMTP
<br>
<br>
And
<br>
<br>
ChangeUserOnParse on
<br>
<br>
to
<br>
<br>
ChangeUserOnParse full
<br>
</blockquote>
<br>
I made these changes and it is working now. I can't believe that I
had worked on this for days and you seen the problem with the
first email.
<br>
<br>
<br>
<blockquote type="cite">Also when running procmail I've never seen
these settings for dspam (what is -p and -e flags) :
<br>
<br>
| /usr/local/bin/dspam -p -e
<br>
<br>
</blockquote>
<br>
I don't know what they mean either. I copied this from another
mail server that at one time was using dspam. It is not working, I
am considering using something like:
<br>
<br>
:0 * ^X-DSPAM-Result: Spam {
<br>
:0
<br>
* ^X-DSPAM-Confidence: 0\.(9|8[5-9])
<br>
superspam/
<br>
<br>
:0
<br>
spam/
<br>
}
<br>
<br>
<br>
Kind Regards,
<br>
Al
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
Dspam-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dspam-user">https://lists.sourceforge.net/lists/listinfo/dspam-user</a>
</pre>
</blockquote>
</body>
</html>
--------------mg9E8PjIQXssmFrzG34x9cKO--
--===============8177272879899214106==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============8177272879899214106==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user
--===============8177272879899214106==--