Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65629 - DSpam lacks Sendmail as delivery agent options
Summary: DSpam lacks Sendmail as delivery agent options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Lim Swee Tat (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 21:35 UTC by Simon Tsang
Modified: 2004-10-16 10:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Tsang 2004-09-27 21:35:16 UTC
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.
Comment 1 Martin Allchin 2004-10-13 06:21:28 UTC
This is configurable in /etc/mail/dspam/dspam.conf too. You may set the TrustedDeliveryAgent, UnTrustedDeliveryAgent and QuarantineAgent I believe.
Comment 2 Lim Swee Tat (RETIRED) gentoo-dev 2004-10-13 22:35:05 UTC
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...
Comment 3 Simon Tsang 2004-10-13 23:28:48 UTC
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".
Comment 4 David Blewett 2004-10-15 06:07:06 UTC
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.
Comment 5 Lim Swee Tat (RETIRED) gentoo-dev 2004-10-16 10:07:17 UTC
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