Yahoo Groups archive

Milter-greylist

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

Message

milter-greylist passing useless queueid to spamd

2017-12-18 by John_Damm_S=c3=b8rensen

My maillog contains this type of of error for each processed mail when 
spamd runs as user root:
Dec 18 12:10:24 www spamd[5198]: spamd: handle_user (getpwnam) unable to 
find user: 'vBIBAIFU006181'
and this when spamd runs as user sa-milt:
Dec 18 17:14:25 www spamd[11859]: spamd: handle_user (userdir) unable to 
find user: 'vBIGEJAn012103'

Spamd is trying to change user ID to the ID of the user passed to spamd 
with this code in spamd.c:
 �snprintf(buffer, SPAMD_BUFLEN,
 ��������� "CHECK SPAMC/1.2\r\n"
 ��������� "Content-length: %d\r\n"
 ��������� "User: %s\r\n\r\n",
 ��������� (unsigned int)(priv->priv_msgcount + strlen(rcvhdr)),
 ���������� priv->priv_queueid);

priv->priv_queueid is picked up from the sendmail macro $i containing 
the queueid of the current mail i:
 From milter-greylist.c:
if ((priv->priv_queueid = smfi_getsymval(ctx, "{i}")) == NULL) {

It seems to me that the queueid is useless to spamd and I suggest it to 
be replaced/removed.

John

---
Denne e-mail blev kontrolleret for virusser af Avast antivirussoftware.
https://www.avast.com/antivirus

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.