You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by dinmir <di...@gmail.com> on 2006/11/23 13:21:47 UTC

spamassassin uid / firewall port 6277 DCC

Hi, I recently installed the DCC plugin for SA (default install on CentOS
4.4).

I opened the outgoing destination port 6277 UDP for uid 0 (root) and uid
99 (nobody). I noticed this didn't work, so I opened port 6277 for all users
to get DCC working.

I'd rather only give outgoing access to port 6277 to the uid's who require
it. How can I figure out which uid's spamd is running under when connecting
to DCC?
I assumed it was either root or nobody, but apparently this is not the case
(at least on my server), since the firewall kept blocking the DCC requests,
after I allowed root and nobody outgoing access to port 6277.

Re: spamassassin uid / firewall port 6277 DCC

Posted by Matt Kettler <mk...@verizon.net>.
dinmir wrote:
> Hi, I recently installed the DCC plugin for SA (default install on
> CentOS 4.4).
>  
> I opened the outgoing destination port 6277 UDP for uid 0 (root) and
> uid 99 (nobody). I noticed this didn't work, so I opened port 6277 for
> all users to get DCC working.
>  
> I'd rather only give outgoing access to port 6277 to the uid's who
> require it. How can I figure out which uid's spamd is running under
> when connecting to DCC? 
> I assumed it was either root or nobody, but apparently this is not the
> case (at least on my server), since the firewall kept blocking the DCC
> requests, after I allowed root and nobody outgoing access to port 6277.
>  
It depends on how you're calling spamc.. spamd will normally setuid
itself to the userid  that invokes spamc.

In theory, spamd should *never* be running as root by the time it tries
to do DCC. It should setuid itself to nobody if spamc gets called as
root. The only code that should ever be able to invoke dcc as root would
be the "spamassassin" command-line script.


RE: spamassassin uid / firewall port 6277 DCC

Posted by Giampaolo Tomassoni <g....@libero.it>.
Isn't it the uid under which your MTA runs?

giampaolo
  -----Original Message-----
  From: dinmir [mailto:dinmir@gmail.com]
  Sent: Thursday, November 23, 2006 1:22 PM
  To: users@spamassassin.apache.org
  Subject: spamassassin uid / firewall port 6277 DCC


  Hi, I recently installed the DCC plugin for SA (default install on CentOS
4.4).

  I opened the outgoing destination port 6277 UDP for uid 0 (root) and uid
99 (nobody). I noticed this didn't work, so I opened port 6277 for all users
to get DCC working.

  I'd rather only give outgoing access to port 6277 to the uid's who require
it. How can I figure out which uid's spamd is running under when connecting
to DCC?
  I assumed it was either root or nobody, but apparently this is not the
case (at least on my server), since the firewall kept blocking the DCC
requests, after I allowed root and nobody outgoing access to port 6277.