Jump to content
Froxlor Forum
  • 0
Raymond

SpamAssassin-settings Plugin

Question

I have updated the SA-Settings Plugin from Syscp to work with Froxlor.

 

Download can be found here

[EDIT]Now also here as attachment[/EDIT]

 

I have included a text-file with installation-instructions (for Debian Lenny).

 

If you find a bug or have a translation (included are English and Dutch for now) please report it here, as i will look to fix / add it.

froxlor_sasettings-1.0.tar.gz

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

could you please upload your patch to froxlor.org? either here in the forum or in the bugtracker. We had to make the experience that external link could stop working suddenly...

 

thanks

Share this post


Link to post
Share on other sites
  • 0

could you please upload your patch to froxlor.org? either here in the forum or in the bugtracker. We had to make the experience that external link could stop working suddenly...

 

thanks

 

Done, i have attached it to my original post, the first in this thead.

Share this post


Link to post
Share on other sites
  • 0

Hey,

 

hi, I've a problem:

 

/var/log/syslog

postfix/qmgr[16209]: warning: connect to transport spamassassin: No such file or directory 

 

system is debian/lenny, postfix+spamassassin

 

Incoming and outcoming mails arrived in the queue.

 

Run as vmail: razor-admin -d -register

Razor-Log: Computed razorhome from env: /var/customers/mail/.razor
Razor-Log: No razorhome found, using all defaults
Razor-Log: read_file: 2 items read from /etc/razor/razor-agent.conf
Jan 22 16:18:19.757286 admin[20331]: [ 2] [bootup] Logging initiated LogDebugLevel=9 to stdout
Jan 22 16:18:19.757810 admin[20331]: [ 5] computed razorhome=, conf=/etc/razor/razor-agent.conf, ident=identity
Jan 22 16:18:19.757985 admin[20331]: [ 2]  Razor-Agents v2.84 starting razor-admin -d -register
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Errorhandler.pm line 44.
Jan 22 16:18:19.758302 admin[20331]: [ 1] razor-admin error: Unable to register without a valid razorhome or identity:
Unable to register without a valid razorhome or identity: <host>:/root$

 

 

/etc/postfix/local.cf

       user_scores_dsn DBI:mysql:froxlor:localhost
       user_scores_sql_username froxlor
       user_scores_sql_password <pwdhere>
       user_scores_sql_custom_query SELECT preference, value FROM modules_sasettings_sa WHERE username = _USERNAME_ OR username = '$GLOBAL' OR username = CONCAT('%',_DOMAIN_) ORDER BY username ASC

 

 

/etc/postfix/master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=spamassassin
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
-o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
 flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
 flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
 flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
 flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
 flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
 flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
 ${nexthop} ${user}

# Add this lines to be able to use dovecot as delivery agent
# Dovecot LDA
dovecot	  unix	-	n	n	-	-	pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}

 

 

/etc/default/spamasssassin

CRON=0
     ENABLED=1
     OPTIONS="--create-prefs --max-children 5 -q -x -u vmail"
     NICE="--nicelevel 10"

 

 

/etc/passwd

[...]
vmail:x:2000:2000::/var/customers/mail:/bin/sh
[...]

 

Does anyone have tips for me?

 

 

 

EDIT:

Could it be possible that a entry for spamassassin in master.cf is missing?

Share this post


Link to post
Share on other sites
  • 0

This isn't working for me either.

I have set up Froxlor for Debian 6.0 (using the 5.0 settings . works like a charm). My servers are Courier and Postfix. I followed the module's installation instructions with one exception: The module ... which must be installed via aptitude is now calles ... in Debian Squeeze. OK, no problem.

 

However, as soon as I insert smamassassin as content_filter in the master.cf, I will receive those errors in the mail.log, and no email is sent to the mailbox:

 

 

Mar 10 20:42:39 myserver postfix/cleanup[4573]: 45F97D4AA7F: message-id=<4D7961EE.3060809@sender-domain.de>

Mar 10 20:42:39 myserver postfix/qmgr[4562]: 45F97D4AA7F: from=<sender@sender-domain.de>, size=1827, nrcpt=1 (queue active)

Mar 10 20:42:39 myserver postfix/smtpd[4569]: disconnect from sending-server.domain.net[78.46.xxx.yyy]

Mar 10 20:42:39 myserver postfix/qmgr[4562]: warning: connect to transport private/spamassassin: No such file or directory

Mar 10 20:42:39 myserver postfix/error[4574]: 45F97D4AA7F: to=<test@my-local-domain.de>, relay=none, delay=0.1, delays=0.07/0.01/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)

 

 

Does anybody know how to get this working? :)

I can provide additional files (configs, etc.) if required.

Share this post


Link to post
Share on other sites
  • 0

mail transport unavailable < sounds to me like you didn't start "spamassassin". Try a /etc/init.d/spamassassin start (or /etc/init.d/spamd start, depending on your system)

Share this post


Link to post
Share on other sites
  • 0

spamd is running:

 

root@server1:/var/log# ps aux | grep spam

root 1569 0.2 1.3 130504 54916 ? SNs 09:08 0:02 /usr/sbin/spamd --create-prefs --nouser-config --max-children 5 -q -x -u vmail -d --pidfile=/var/run/spamd.pid

vmail 1641 0.0 1.3 130504 53376 ? SN 09:08 0:00 spamd child

vmail 1642 0.0 1.3 130504 53376 ? SN 09:08 0:00 spamd child

root 3372 0.0 0.0 11004 892 pts/0 S+ 09:23 0:00 grep spam

 

I don't understand this line in the log:

"warning: connect to transport private/spamassassin: No such file or directory"

 

I have this entry in my master.cf:

 

smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=spamassassin

 

After commenting the line with the content filter and restarting postfix, mails will be delivered. If the line is active, no mails are delivered because of the error message mentioned above. :(

 

(Why is it always the spamassassin that makes my hair get gray when setting up a new server? ^^)

Share this post


Link to post
Share on other sites
  • 0

you also need the following line in master.cf

 

spamassassin unix - n n - - pipe user=nobody argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Share this post


Link to post
Share on other sites
  • 0

Hi,

 

is this working with actual release of FROXLOR? I can't see any changes in the frontend (also in classic template mode)?

I really would like to use spamassassin for mail to check for SPF and DKIM (and more).

 

regards

 

Ronny

Share this post


Link to post
Share on other sites
  • 0

Hello arnoldB,

 

if you don't have the time to create a solution I'll be do it, if it's ok for you.

Also, if you're searching, you can add me as developer for Froxlor too.

 

Well, it needs time to know the froxlor's structer and source but it's ok for me.

 

At last I'll remember, that my mainlanguage are german. So if you can speak and write german please do it ;).

 

Regards

Chaos234

Share this post


Link to post
Share on other sites
  • 0

Chaos, arnoldB ist kein Entwickler mehr bei Froxlor und kann dich auch nicht dem Team hinzuf?gen, sowas entscheided das Team, am besten stellst du dich einem aus dem Team im IRC (freenode, channel #froxlor) vor und erz?hlst was du vorhast.

Share this post


Link to post
Share on other sites
  • 0

Any chance we see SpamAssassin support? One of the few things missing in my opinion, before it's almost perfect.

Share this post


Link to post
Share on other sites
  • 0

Hi,

 

the current froxlor version changed the database backend. I patched the source of this plugin to work with the current version of froxlor. You can download the updated tar ball on the following links:

http://www.fileswap.com/dl/oVSY6fLQSj/

http://www.datafilehost.com/d/6ad52ce3

http://www.megafileupload.com/en/file/490065/froxlor-sasettings-1-0-1-tar.html

 

(Sorry, the upload feature of this forum do not work for me)

 

Regards

 

Valentin

Share this post


Link to post
Share on other sites
  • 0

Es gibt halt andere priorit?ten. Wir wollen gerade wieder weg von diesem "wir f?gen einfach mal alles ein" - und am ende funktioniert nichts davon richtig und keiner will sich drum k?mmern.

Share this post


Link to post
Share on other sites
  • 0

Das wurde nur so verkauft - es gab nie wirklichen modul-support/schnittstellen

 

EDIT: eine modul-schnittstelle w?re nat?rlich eine tolle l?sung und auch w?nschenswert, allerdings fehlt hier f?r die zeit (davon abgesehen, dass die zielgruppe der personen die tats?chlich module entwickeln w?rde doch eher gering w?re)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now





×
×
  • Create New...