Can not get amavisd running with ZMQ code

2014-11-30 Thread Christian Rößner
Hi,

I just tried to get amavisd running on Gentoo with zmq support.

Version 2.10.1, start fails with:

zmq establish failed: Error setting highwater mark on a ZMQ socket: Invalid 
argument at (eval 109) line 108.
 [ !! ]

I do not really know, if I need zmq, but a comment in the provided config file 
tells me that zmq is needed for SNMP and nanny. So I reinstalled amavisd with 
zmq support.

# $enable_zmq = 1;   # enable use of ZeroMQ (SNMP and nanny)

Thanks

Christian
--
Bachelor of Science Informatik
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345
USt-IdNr.: DE225643613, http://www.roessner-network-solutions.com



smime.p7s
Description: S/MIME cryptographic signature


Re: Can not get amavisd running with ZMQ code

2014-11-30 Thread Christian Rößner

 Am 30.11.2014 um 11:45 schrieb Christian Rößner 
 c...@roessner-network-solutions.com:
 
 Hi,
 
 I just tried to get amavisd running on Gentoo with zmq support.
 
 Version 2.10.1, start fails with:
 
 zmq establish failed: Error setting highwater mark on a ZMQ socket: Invalid 
 argument at (eval 109) line 108.  
[ !! ]
 
 I do not really know, if I need zmq, but a comment in the provided config 
 file tells me that zmq is needed for SNMP and nanny. So I reinstalled amavisd 
 with zmq support.
 
 # $enable_zmq = 1;   # enable use of ZeroMQ (SNMP and nanny)

It fixed it. Gentoo only provides ZMQ/LibZMQ2, which probably does not work 
well here, as I am running IPv6. So I created LibZMQ3 and now it works.

Kind regards

Christian
--
Bachelor of Science Informatik
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345
USt-IdNr.: DE225643613, http://www.roessner-network-solutions.com



smime.p7s
Description: S/MIME cryptographic signature


Re: cronjob warning perl_version (SOLVED)

2014-11-30 Thread A. Schulze


Benny Pedersen:

Upgrade to sa 3.4 where this work, else wait for next rule update,  
this is a work in progress thats only gives error when not using sa  
3.4


At least here I *have* 3.4 but got the same warnings.

The file 72_active.cf from update_spamassasin_org contain some
lines if perl_version = 5.001000

I simply removed these lines/if statements because I *do run* a perl  
version  5.1.

( patch attached )
Hope, the next update from updates.spamassassin.org solved the issue.

Andreas
--- /var/lib/spamassassin/3.004000/updates_spamassassin_org/72_active.cf	2014-11-29 07:04:53.0 +0100
+++ /var/lib/spamassassin/3.004000/updates_spamassassin_org/72_active.cf.orig	2014-11-30 13:00:25.0 +0100
@@ -1602,9 +1602,7 @@
 
 ##{ PDS_FROM_2_EMAILS if perl_version = 5.01
 
-if perl_version = 5.01
   metaPDS_FROM_2_EMAILS   __PDS_FROM_2_EMAILS  !__VIA_ML  !__VIA_RESIGNER
-endif
 ##} PDS_FROM_2_EMAILS if perl_version = 5.01
 
 ##{ PHP_NOVER_MUA
@@ -4886,9 +4884,7 @@
   mimeheader   __PDF_ATTACH_MTContent-Type =~ m,\bapplication/pdf\b,i
 endif
 
-if perl_version = 5.01
   header  __PDS_FROM_2_EMAILS From =~ /^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w]{0,80})?(?!\1)[^\n\s]*\@/i
-endif
 
 meta__PD_CNT_1(__PUMPDUMP_01+__PUMPDUMP_02+__PUMPDUMP_03+__PUMPDUMP_04+__PUMPDUMP_05+__PUMPDUMP_06+__PUMPDUMP_07+__PUMPDUMP_08+__PUMPDUMP_09+__PUMPDUMP_10)  0
 


Re: Can not get amavisd running with ZMQ code

2014-11-30 Thread Christian Rößner
Just one last question

 Am 30.11.2014 um 12:27 schrieb Christian Rößner 
 c...@roessner-network-solutions.com:
 
 
 Am 30.11.2014 um 11:45 schrieb Christian Rößner 
 c...@roessner-network-solutions.com:
 
 Hi,
 
 I just tried to get amavisd running on Gentoo with zmq support.
 
 Version 2.10.1, start fails with:
 
 zmq establish failed: Error setting highwater mark on a ZMQ socket: Invalid 
 argument at (eval 109) line 108. 
 [ !! ]
 
 I do not really know, if I need zmq, but a comment in the provided config 
 file tells me that zmq is needed for SNMP and nanny. So I reinstalled 
 amavisd with zmq support.
 
 # $enable_zmq = 1;   # enable use of ZeroMQ (SNMP and nanny)
 
 It fixed it. Gentoo only provides ZMQ/LibZMQ2, which probably does not work 
 well here, as I am running IPv6. So I created LibZMQ3 and now it works.

Are these warnings normal?

Nov 30 14:35:17 mx amavis-agentx[25760]: _WARN: Filehandle STDIN reopened as 
STDOUT only for output at /usr/sbin/amavisd-snmp-subagent-zmq line 1068.
Nov 30 14:35:17 mx amavis-agentx[25760]: _WARN: Filehandle STDERR reopened as 
STDERR only for input at /usr/sbin/amavisd-snmp-subagent-zmq line 1070.
Nov 30 14:35:17 mx amavis-agentx[25760]: amavis-agentx-2.9.0 (20140506) 
starting. daemonized as PID [25760], perl 5.018002

Kind regards

Christian
--
Bachelor of Science Informatik
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345
USt-IdNr.: DE225643613, http://www.roessner-network-solutions.com



smime.p7s
Description: S/MIME cryptographic signature


Re: cronjob warning perl_version (SOLVED)

2014-11-30 Thread Benny Pedersen

Or simple make a local backport from

http://svn.apache.org/viewvc?view=revisionrevision=1642207

Or use trunc sa

On 30. nov. 2014 13.04.43 A. Schulze s...@andreasschulze.de wrote:


The file 72_active.cf from update_spamassasin_org contain some
lines if perl_version = 5.001000

I simply removed these lines/if statements because I *do run* a perl
version  5.1.( patch attached )
Hope, the next update from updates.spamassassin.org solved the issue.


+1


Re: cronjob warning perl_version (SOLVED)

2014-11-30 Thread Noel Butler
 

On 30/11/2014 22:42, Alexander Wirt wrote: 

 On Sun, 30 Nov 2014, A. Schulze wrote:
 Benny Pedersen: Upgrade to sa 3.4 where this work, else wait for next rule 
 update, this is a work in progress thats only gives error when not using sa 
 3.4 At least here I *have* 3.4 but got the same warnings.

The problem is only fixed in trunk. All released versions have the
problem.

Alex

I was told it was going to be rolled back, but I guess not as of yet. 

Nobody should have to upgrade production machines to an alpha/beta/rc of
spamassassin simply to resolve this, which should have been detected and
realised under better QC. 

 

Re: Central Logging Question

2014-11-30 Thread Patrick Ben Koetter
* Guido Kuehler guido.kueh...@it-power.biz:
 exists in Amavis a way to log information about an EMail-Transaction (Sender, 
 Recipient,SenderIP,SpamCount,Attachments,Size,..)
 via HTTP or HTTPS Posting to a central System?OK, we can post all 
 informations to a syslog and here parse but the parsing by
 this way is very hard.

You can modify the log template to change the content and format as required.

p@rick


-- 
[*] sys4 AG
 
https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
 


Re: Central Logging Question

2014-11-30 Thread Guido Kuehler
Thank you for the Tip!

Best Regards
Guido Kuehler


- Ursprüngliche Mail -
Von: Patrick Ben Koetter p...@sys4.de
An: amavis-users@amavis.org
Gesendet: Montag, 1. Dezember 2014 06:42:49
Betreff: Re: Central Logging Question

* Guido Kuehler guido.kueh...@it-power.biz:
 exists in Amavis a way to log information about an EMail-Transaction (Sender, 
 Recipient,SenderIP,SpamCount,Attachments,Size,..)
 via HTTP or HTTPS Posting to a central System?OK, we can post all 
 informations to a syslog and here parse but the parsing by
 this way is very hard.

You can modify the log template to change the content and format as required.

p@rick


-- 
[*] sys4 AG
 
https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein