Bug Tracker item #2796548, was opened at 2009-05-25 21:05
Message generated for change (Comment added) made by thomas_martin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2796548&group_id=250683
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Martin (thomas_martin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Incorrect return code when delivery fails
Initial Comment:
Man page specify :
"If the error involved an error in calling the delivery agent, the exit
value of the delivery agent will be returned."
However dspam (3.6.8) returns 255 when delivery agent fails with error code 75.
See this line of Postfix log :
Command died with status 255: "/usr/local/bin/dspam". Command output: 86436:
[05/25/2009 19:54:32] Delivery agent returned exit code 75:
/usr/local/libexec/dovecot/deliver
----------------------------------------------------------------------
Comment By: Thomas Martin (thomas_martin)
Date: 2009-05-26 11:22
Message:
# ls -la /usr/local/libexec/dovecot/deliver
-rwsr-x--- 1 root mail 652148 May 17 12:31
/usr/local/libexec/dovecot/deliver
dspam is run as dspam:mail via the following master.cf entry in Postfix :
dspam unix - n n - 1 pipe flags=Rqu
user=dspam:mail
argv=/usr/local/bin/dspam --user ${recipient} --deliver=innocent,spam
Note that the failure of /usr/local/libexec/dovecot/deliver is volunteer
during my tests.
----------------------------------------------------------------------
Comment By: Stevan Bajic (sbajic)
Date: 2009-05-26 11:07
Message:
I am today out of office and can not look deeper into your problem right
now. Would it be possible for you to submit the output of the following
command:
ls -la /usr/local/libexec/dovecot/deliver
----------------------------------------------------------------------
Comment By: Thomas Martin (thomas_martin)
Date: 2009-05-26 10:13
Message:
Same effect with "LMTPLDAErrorsPermanent off". Note that i don't use server
mode nor LMTP.
Here is my config (based on FreeBSD default config file) :
Algorithm graham burton
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride optIn optOut
AllowOverride showFactors
AllowOverride signatureLocation
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride trainingMode
AllowOverride whitelistThreshold
Debug *
Feature whitelist
HashAutoExtend on
HashConnectionCache 10
HashExtentSize 49157
HashMaxExtents 0
HashMaxSeek 100
HashRecMax 98317
Home /var/db/dspam
LMTPLDAErrorsPermanent off
LocalMX 127.0.0.1
MaxMessageSize 307200
Notifications on
OnFail error
Opt out
PValue graham
Preference "showFactors=on"
Preference "signatureLocation=message" # 'message' or 'headers'
Preference "spamAction=quarantine"
ProcessorBias on
PurgeHapaxes 30 # Tokens with less than 5 hits (hapaxes)
PurgeHits1I 15 # Tokens with only 1 innocent hit
PurgeHits1S 15 # Tokens with only 1 spam hit
PurgeNeutral 90 # Tokens with neutralish probabilities
PurgeSignatures 14 # Stale signatures
PurgeUnused 90 # Unused tokens
StorageDriver /usr/local/lib/libhash_drv.so
SystemLog on
TestConditionalTraining on
TrainingMode teft
Trust daemon
Trust dspam
Trust mail
Trust mailnull
Trust root
Trust smmsp
TrustedDeliveryAgent "/usr/local/libexec/dovecot/deliver -d %u"
UserLog on
----------------------------------------------------------------------
Comment By: Stevan Bajic (sbajic)
Date: 2009-05-25 23:22
Message:
Can you check your dspam.conf and look what value you have set for the
option "LMTPLDAErrorsPermanent"? Can you set it to "off" and try again?
----------------------------------------------------------------------
Comment By: Thomas Martin (thomas_martin)
Date: 2009-05-25 22:23
Message:
Reproduced with dspam 3.8.0 :
# cat /tmp/somemail | /usr/local/bin/dspam --user [email protected]
--deliver=innocent,spam
66028: [05/25/2009 22:20:03] Delivery agent returned exit code 75:
/usr/local/libexec/dovecot/deliver -d [email protected]
# echo $?
255
----------------------------------------------------------------------
Comment By: Stevan Bajic (sbajic)
Date: 2009-05-25 21:22
Message:
Can you reproduce this error with 3.8.0 or git version?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2796548&group_id=250683
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel