Bug 65629 - DSpam lacks Sendmail as delivery agent options
|
Bug#:
65629
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: minor
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: st_lim@gentoo.org
|
Reported By: simontsang@unimax.com.hk
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: DSpam lacks Sendmail as delivery agent options
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-09-27 21:35 0000
|
I emerged DSpam with all use flag disabled. But it defaults to use procmail as
the delivery agent which I have never specificed. Under the src_compile
section in dspam-3.1.2.ebuild, I found that the code:
if use cyrus; then
agent="/usr/lib/cyrus/deliver %u"
elif use exim; then
agent="/usr/sbin/exim -oMr spam-scanned"
elif use maildrop; then
agent="/usr/bin/maildrop -d %u"
elif use procmail; then
agent="/usr/bin/procmail"
fi
does not have a default value. It would be a good idea to add
/usr/bin/sendmail as another (or default) agent.
Reproducible: Always
Steps to Reproduce:
1. USE="-cyrus -debug -exim -maildrop -mysql -neural -oci8 -postgres -procmail"
emerge -v dspam
2.
3.
Actual Results:
DSpam tried to use procmail as delivery agent.
Expected Results:
It should use sendmail as delivery agent.
This is configurable in /etc/mail/dspam/dspam.conf too. You may set the
TrustedDeliveryAgent, UnTrustedDeliveryAgent and QuarantineAgent I believe.
Not sure how to include sendmail as an option. The idea of dspam is that you
should just use an MDA to deliver, so I do not see how sendmail can relate to
dspam other than let you bounce mails around the place...
Martin Allchin: Thanks for the information. However, I think it is a good idea
to have sendmail as the default option because people who don't use maildrop or
procmail are very likely to use a sendmail compatiable MDA, such as Postfix.
Lim Swee Tat: It is very simple to have sendmail as the default option.
if use cyrus; then
agent="/usr/lib/cyrus/deliver %u"
elif use exim; then
agent="/usr/sbin/exim -oMr spam-scanned"
elif use maildrop; then
agent="/usr/bin/maildrop -d %u"
elif use procmail; then
agent="/usr/bin/procmail"
else
agent="/usr/sbin/sendmail"
fi
If you use Postfix or sendmail without any additional MDA, you would need to
set agent="/usr/sbin/sendmail".
Also, the USE flag courier doesn't show up when doing emerge dspam -pv. The
Courier-MTA package installs maildrop, so there should be a section like this:
elif use courier; then
agent="/usr/bin/maildrop -d %u"
I see further down in the ebuild that it checks for a courier use flag, but
it's not in the list at the top.
Hi David and Simon,
Thanks for the feedback. I'll be updating the existing ebuilds. Hopefully, we should see the pr1 in tonight.
Regards
Lim Swee Tat