Re: spamassassin question

2009-11-23 Thread Ruben de Groot
On Mon, Nov 23, 2009 at 06:40:37AM +, Marwan Sultan typed:
 
  lastly, what format is used in the whitelist? is it similar
  to what i have in /etc/mail/access?
 
  Well, I never change the whitelist, my openwebmail generates the data 
 Automaticaly.
  You will not need to touch the file, as your webmail client will do it.
 
  However to answer your question its as
  whitelist_from  u...@xxx.xxx
  whitelist_from  *...@xxx.xxx

This may be confusing, as this thread started about spamassassins 
auto_whitelist feature.
Sure you can have your webmail or other client generate seperate whitelists as 
you 
describe here, but the auto_whitelist file really is maintained by SA only, and 
it's
in Berkeley DB format.

Here's how it works:

http://wiki.apache.org/spamassassin/AutoWhitelist

Ruben

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: spamassassin question

2009-11-23 Thread RW
On Mon, 23 Nov 2009 02:30:47 +
Marwan Sultan dead_l...@hotmail.com wrote:

 
 Gary,
 
  
 
  Its an old problem with /root/.spamassassin
 
  I dunt know why spamassassin still have it by default :(
 
  I spent a day or so to figure it out.. however,
 
  


If you run spamd as root it will setuid to the user running spamc and
use  ~/.spamassassin for user configuration - this is the normal way to
set it up if you wish to use traditional unix mail accounts with per
user conf (including bayes). Presumably this is why it
used /root/.spamassassin, assuming that you ran spamc as root.

Alternately you can use an unprivileged user either by letting it drop
privileges, like this

spamd_flags= -u unixuser

or by starting it directly, with spamd_user=unixuser, since spamd will
no longer be able to bind to the default port, you need to specify a
high port in this case. And for some odd reason spamd still expects the
-u option to be used.

You can also add virtual users like this:

spamd_flags= -c -x -u unixuser
--virtual-config-dir=/var/db/spamassassin/conf/%u

and then using:

spamc -u vuser

in the above unixuser is the unprivileged user and  vuser is the
virtual user which is substituted for %u in the above path. 

There are also numerous sql alternatives, but that's a bit more
complicated.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


spamassassin question

2009-11-22 Thread Gary Kline

Guys,

my network guy suggests this is ONE way of creating a
.spamassassin file.  Is there a better way than this:

mkdir /root/.spamassassin
chmod 775 /root/.spamassassin
chown root:spamd /root/.spamassassin

what's the consensus, mail gurus?

gary

PS: Is there any other spam tool i can use in-concert-wirh
spamassissim?  I *despise* spam  loathe it.



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: spamassassin question

2009-11-22 Thread Marwan Sultan

Gary,

 

 Its an old problem with /root/.spamassassin

 I dunt know why spamassassin still have it by default :(

 I spent a day or so to figure it out.. however,

 

 in your local.cf

 add the lines

 

auto_whitelist_path /var/spool/spamd/.spamassassin/auto-whitelist
bayes_path /var/spool/spamd/.spamassassin/bayes

 

 Save and Exit,

 Then:

 

 mkdir /var/spool/spamd/.spamassassin

 touch /var/spool/spamd/.spamassassin/auto-whitelist

 chown spamd .spamassassin

 chown spamd auto-whitelist

 

 You will need to set the right permissions then.

 

 And thats it.

 

 Marwan Sultan

 System Administrator

 

 
 
 Date: Sun, 22 Nov 2009 17:22:10 -0800
 From: kl...@thought.org
 To: freebsd-questions@FreeBSD.ORG
 CC: 
 Subject: spamassassin question
 
 
 Guys,
 
 my network guy suggests this is ONE way of creating a
 .spamassassin file. Is there a better way than this:
 
 mkdir /root/.spamassassin
 chmod 775 /root/.spamassassin
 chown root:spamd /root/.spamassassin
 
 what's the consensus, mail gurus?
 
 gary
 
 PS: Is there any other spam tool i can use in-concert-wirh
 spamassissim? I *despise* spam loathe it.
 
 
 
 -- 
 Gary Kline kl...@thought.org http://www.thought.org Public Service Unix
 http://jottings.thought.org http://transfinite.thought.org
 The 7.31a release of Jottings: http://jottings.thought.org/index.php
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
  
_
Windows 7: I wanted simpler, now it's simpler. I'm a rock star.
http://www.microsoft.com/Windows/windows-7/default.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:112009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: spamassassin question

2009-11-22 Thread Gary Kline
On Mon, Nov 23, 2009 at 02:30:47AM +, Marwan Sultan wrote:
 
 Gary,
 
  
 
  Its an old problem with /root/.spamassassin
 
  I dunt know why spamassassin still have it by default :(
 
  I spent a day or so to figure it out.. however,
 


i think everyone uwho uses spamassassim would be very
grateful; i am, certain.  thanks!


  
 
  in your local.cf
 
  add the lines
 
  
 
 auto_whitelist_path /var/spool/spamd/.spamassassin/auto-whitelist
 bayes_path /var/spool/spamd/.spamassassin/bayes
 

just to be complete++, :-), you mean

/usr/local/etc/mail/spamassassin/local.cf

, is this correct??


  
 
  Save and Exit,
 

done!

  Then:
 
  
 
  mkdir /var/spool/spamd/.spamassassin
 
  touch /var/spool/spamd/.spamassassin/auto-whitelist
 
  chown spamd /var/spool/spamd/.spamassassin
 
  chown spamd /var/spool/spamd/.spamassassin/auto-whitelist


would you check my tying to see if i've made any mistakes?


 
  
 
  You will need to set the right permissions then.
 
  


another question: are these the same perms, 0755, as before [in /root]?
i want to document and save these data in a local spamd howto
file for the next time i need to go thru this morass... 


lastly, what format is used in the whitelist?  is it similar
to what i have in /etc/mail/access?

-


 
  And thats it.
 
  
 
  Marwan Sultan
 
  System Administrator
 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: spamassassin question

2009-11-22 Thread Marwan Sultan

 

Hi Gary,


 just to be complete++, :-), you mean
 /usr/local/etc/mail/spamassassin/local.cf
 , is this correct??

 

 Yes, You are 100% Correct :)

 would you check my tying to see if i've made any mistakes?


 Again, Correct :)

 
 another question: are these the same perms, 0755, as before [in /root]?
 i want to document and save these data in a local spamd howto
 file for the next time i need to go thru this morass... 

 

 Gary, Its a sensitive part! if I give you the wrong permission you will be 
exposed to

 attackers! I my self dunt have the right permission, because I didnot have 
enough

 time to look for it, however

 If you set the wrong permission and you run spamd you will see error in you

 log files as cannot create ..etc.. permission denied

 You will have to go back and change the permission..

 and start spamd again..and check your log again..755 might be very good.

 after you set 0755 check your log..all errors should disappear.



 lastly, what format is used in the whitelist? is it similar
 to what i have in /etc/mail/access?


 Well, I never change the whitelist, my openwebmail generates the data 
Automaticaly.

 You will not need to touch the file, as your webmail client will do it.

 

 However to answer your question its as

 whitelist_from  u...@xxx.xxx

 whitelist_from  *...@xxx.xxx

 

 donot forget to change /usr/local/etc/rc.d/spamass-milter

 where it says owner and group to spamd

 So it run as spamd user instead of root.

 

 and this is in your /etc/rc.conf

 

spamd_enable=YES
spamass_milter_enable=YES
spamd_flags=-u spamd -H /var/spool/spamd

 

 note that after -u there is spamd (which is the user)

 

 Good luck.

 

 Marwan.
  
_
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Spamassassin question [was Re: Do I have an open relay?]

2003-06-24 Thread Jonathan Arnold
All tests performed, no relays accepted. My access file only contains a 
list of domains I reject:
Why not just not have one at all? As the top line says:

## Mail relay access control list.  Default is to reject mail unless the
## destination is local, or listed in /etc/mail/sendmail.cw
Well, my /etc/mail/access-sample says as listed in /etc/mail/local-host-names.
So just don't have a /etc/mail/access, right?
--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD blog:
http://freebsd.amazingdev.com/blog


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Spamassassin question [was Re: Do I have an open relay?]

2003-06-19 Thread Fernando Gleiser
On Thu, 19 Jun 2003, Andreas Widerøe Andersen wrote:


 Will Spamassassin only work on mails that are delivered to account on the
 server it runs (locally), or can it also work for mailinglists in Ie.
 /etc/mail/aliases that are being forward to other mailaccounts around the
 globe?

It depends. If you feed Spamassassin through a procmail recipe, it'll only
see the local delivered mails. You can install the milter hooks for
Spamassassin (mail/spamass-milter) and then Spamassassin will see
very single mail.


Fer

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]