Re: [AMaViS-user] Amavis wont start with syslog enabled

2007-07-06 Thread Daniel Persch
Thank you for your reply,
at least there is one more person experiencing the problem... Me too,
I've rebuilded every single package from CPAN...
 
== There is no kernel issue because 2.4.27 and 2.6 have the same
behaviour.
== It seems to be a caused by using the latest cpan versions of the
packages (at least this seems to apply to both of us)

Me either, I'm no perl developer, however as I've written in my first
message I debugged as deep as possible into the perl code of amavis - it
freezes when executing the library call from Unix::Syslog - which is
binary.
Even tracing the system call gives no additional information. Something
seems to block the read/write call to /dev/log socket - but I can't
understand why this should or even could happen...


Any more ideas? Are some more people experiencing this problem?

Regards,

Daniel
 




Von: RobertMitrica [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 5. Juli 2007 03:29
An: Daniel Persch
Betreff: Re: [AMaViS-user] Amavis wont start with syslog enabled


Hi,
 
I'h having the same problem with our server running sa slackware
distribution with a 2.6 kernel. 
I've even compiled all the packages involved several times with
no effect.
There was no maxproc and $max_servers involved, the perl
packages are up to date, everything is made right, but telnet 10024
($inet_socket_port) freezes with no response.
 
The extreme sollution I have now is to migrate to a backup
server that runs a few weeks ago old debian that runs amavis very well. 
But it's a lot of time loss in migrating all involved apps and
settings.
 
Still searching for a sollution, but I'm not a perl programmer,
so little chances to do it fast.
 
Good luck
 
Robert


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Amavis wont start with syslog enabled

2007-07-02 Thread Daniel Persch
Hi,

thanks for your quick reply. However - test.pl works perfecly whith 'su
amavis' but amavis still does not want to run. In addition to that an
strace should have given me a EACCESS if a permission problem had been
the reason why...
Chrooting is disabled - I've just played around with it.

Idea: Is there a possibility to run amavis as root to exclude any
access-problems?

Regards for any further help,


Daniel

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:amavis-user-
 [EMAIL PROTECTED] On Behalf Of Mark Martinec
 Sent: Donnerstag, 28. Juni 2007 15:44
 To: amavis-user@lists.sourceforge.net
 Subject: Re: [AMaViS-user] Amavis wont start with syslog enabled
 
 Daniel,
 
  ***  make test for Unix::Syslog -- everything is fine
  ***  playing around with all syslog parameters available in config
 file,
  testing the same settings with Unix::Syslog/test.pl -- test works,
  amavis just hangs
 
 Try to run these tests under the same UID amavisd runs under.
 Perhaps there is a permission problem on the /dev/log socket.
 
  ***  Debugging with perl -D, going through every single step in
 amavisd:
  openlog call works, strace shows me /dev/log is opened, however when
  calling Unix::Syslog::syslog(...) amavis freezes when executing
 library
  routine _isyslog($priority, $msg)
 
  ***  played around with LOTS of configuration options, chrooting,
 
 
 For starters, make it work without chrooting.
 
  I've got no clue why this call works well using the test.pl but not
 when
  amavis opens it. This is really the first time I'm writing to a
 mailing
  list - I'm really despaired...
 
 
   Mark
 

---
 --
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 AMaViS-user mailing list
 AMaViS-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amavis-user
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
 AMaViS-HowTos:http://www.amavis.org/howto/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] Despairing: Amavis wont start with syslog enabled!

2007-06-28 Thread Daniel Persch
Hi list,

I'm a linux developer and using amavis for years for gateway spam
filtering. Hoever: after upgrading from (please don't laugh)
amavisd-new-20030616-p7 to amavisd-new-2.5.2 and therefore reinstalling
perl (5.8.8) and all libraries in newest versions available through
cpan, it is no longer possible for me to start amavis with logging to
syslog.

Well, what I tried:
***  stracing amavisd debug: it gives debug output, opens port,
everything seems to be fine, however a telnet does not respond and no
output is given (neither debug nor syslog - see output below)
***  after hours finding out that amavis works perfectly without
DO_SYSLOG=1 (file / stdout)
***  make test for Unix::Syslog -- everything is fine
***  playing around with all syslog parameters available in config file,
testing the same settings with Unix::Syslog/test.pl -- test works,
amavis just hangs
***  Debugging with perl -D, going through every single step in amavisd:
openlog call works, strace shows me /dev/log is opened, however when
calling Unix::Syslog::syslog(...) amavis freezes when executing library
routine _isyslog($priority, $msg)
***  played around with LOTS of configuration options, chrooting, 


I've got no clue why this call works well using the test.pl but not when
amavis opens it. This is really the first time I'm writing to a mailing
list - I'm really despaired...

Regards,


Daniel

PS: Here some information - if someone wants more, please let me know

# the end of the debug output (after telnet!!!) #

Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: Internal decoder for
.tnef
Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: Found decoder for
.exe  at /usr/local/bin/rar
Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: Creating db in
/var/amavis/db/; BerkeleyDB 0.31, libdb 4.5
Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: SpamControl:
initializing Mail::SpamAssassin
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: SpamControl:
init_pre_fork done
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: Net::Server: Beginning
prefork (2 processes)
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: Net::Server: Starting
2 children
Jun 28 13:53:50 X /usr/sbin/amavisd[20614]: Net::Server: Child
Preforked (20614)
Jun 28 13:53:50 X /usr/sbin/amavisd[20615]: Net::Server: Child
Preforked (20615)
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: Net::Server: Parent
ready for children.

## netstat -tlnp ##
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address
State   PID/Program name   
tcp0  0 127.0.0.1:27304 0.0.0.0:*
LISTEN  20613/amavisd (mast 

## telnet localhost 27304 #
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.

## /etc/amavisd.conf (log-part) ###
# $daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R
$log_level = 0;  # verbosity 0..5, -d
$log_recip_templ = undef;# disable by-recipient level-0 log entries
$DO_SYSLOG = 1;  # log via syslogd (preferred)
$syslog_facility = 'mail';   # Syslog facility as a string
   # e.g.: mail, daemon, user, local0, ... local7
$syslog_priority = 'debug';  # Syslog base (minimal) priority as a
string,
   # choose from: emerg, alert, crit, err, warning, notice,
info, debug

## some version information ###
Amavis - tried 2.4.5, 2.5.1, 2.5.2
Unix::Syslog - tried 0.99, 0.100
Perl - 5.8.8
Mail::SpamAssassin - 3.2.1

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] Despairing: Amavis wont start with syslog enabled

2007-06-28 Thread Daniel Persch
Hi list,

I'm a linux developer and using amavis for years for gateway spam
filtering. Hoever: after upgrading from (please don't laugh)
amavisd-new-20030616-p7 to amavisd-new-2.5.2 and therefore reinstalling
perl (5.8.8) and all libraries in newest versions available through
cpan, it is no longer possible for me to start amavis with logging to
syslog.

Well, what I tried:
***  stracing amavisd debug: it gives debug output, opens port,
everything seems to be fine, however a telnet does not respond and no
output is given (neither debug nor syslog - see output below)
***  after hours finding out that amavis works perfectly without
DO_SYSLOG=1 (file / stdout)
***  make test for Unix::Syslog -- everything is fine
***  playing around with all syslog parameters available in config file,
testing the same settings with Unix::Syslog/test.pl -- test works,
amavis just hangs
***  Debugging with perl -D, going through every single step in amavisd:
openlog call works, strace shows me /dev/log is opened, however when
calling Unix::Syslog::syslog(...) amavis freezes when executing library
routine _isyslog($priority, $msg)
***  played around with LOTS of configuration options, chrooting, 


I've got no clue why this call works well using the test.pl but not when
amavis opens it. This is really the first time I'm writing to a mailing
list - I'm really despaired...

Regards,


Daniel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] Amavis wont start with syslog enabled

2007-06-28 Thread Daniel Persch
Hi list,

I'm a linux developer and using amavis for years for gateway spam
filtering. Hoever: after upgrading from (please don't laugh)
amavisd-new-20030616-p7 to amavisd-new-2.5.2 and therefore reinstalling
perl (5.8.8) and all libraries in newest versions available through
cpan, it is no longer possible for me to start amavis with logging to
syslog.

Well, what I tried:
***  stracing amavisd debug: it gives debug output, opens port,
everything seems to be fine, however a telnet does not respond and no
output is given (neither debug nor syslog - see output below)
***  after hours finding out that amavis works perfectly without
DO_SYSLOG=1 (file / stdout)
***  make test for Unix::Syslog -- everything is fine
***  playing around with all syslog parameters available in config file,
testing the same settings with Unix::Syslog/test.pl -- test works,
amavis just hangs
***  Debugging with perl -D, going through every single step in amavisd:
openlog call works, strace shows me /dev/log is opened, however when
calling Unix::Syslog::syslog(...) amavis freezes when executing library
routine _isyslog($priority, $msg)
***  played around with LOTS of configuration options, chrooting, 


I've got no clue why this call works well using the test.pl but not when
amavis opens it. This is really the first time I'm writing to a mailing
list - I'm really despaired...

Regards,


Daniel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] Amavis wont start with syslog enabled

2007-06-28 Thread Daniel Persch
Hi list,

I'm a linux developer and using amavis for years for gateway spam
filtering. Hoever: after upgrading from (please don't laugh)
amavisd-new-20030616-p7 to amavisd-new-2.5.2 and therefore reinstalling
perl (5.8.8) and all libraries in newest versions available through
cpan, it is no longer possible for me to start amavis with logging to
syslog.

Well, what I tried:
***  stracing amavisd debug: it gives debug output, opens port,
everything seems to be fine, however a telnet does not respond and no
output is given (neither debug nor syslog - see output below)
***  after hours finding out that amavis works perfectly without
DO_SYSLOG=1 (file / stdout)
***  make test for Unix::Syslog -- everything is fine
***  playing around with all syslog parameters available in config file,
testing the same settings with Unix::Syslog/test.pl -- test works,
amavis just hangs
***  Debugging with perl -D, going through every single step in amavisd:
openlog call works, strace shows me /dev/log is opened, however when
calling Unix::Syslog::syslog(...) amavis freezes when executing library
routine _isyslog($priority, $msg)
***  played around with LOTS of configuration options, chrooting, 


I've got no clue why this call works well using the test.pl but not when
amavis opens it. This is really the first time I'm writing to a mailing
list - I'm really despaired...

Regards,


Daniel

PS: Here some information - if someone wants more, please let me know

# the end of the debug output (after telnet!!!) #

Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: Internal decoder for
.tnef
Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: Found decoder for
.exe  at /usr/local/bin/rar
Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: Creating db in
/var/amavis/db/; BerkeleyDB 0.31, libdb 4.5
Jun 28 13:53:48 X /usr/sbin/amavisd[20613]: SpamControl:
initializing Mail::SpamAssassin
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: SpamControl:
init_pre_fork done
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: Net::Server: Beginning
prefork (2 processes)
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: Net::Server: Starting
2 children
Jun 28 13:53:50 X /usr/sbin/amavisd[20614]: Net::Server: Child
Preforked (20614)
Jun 28 13:53:50 X /usr/sbin/amavisd[20615]: Net::Server: Child
Preforked (20615)
Jun 28 13:53:50 X /usr/sbin/amavisd[20613]: Net::Server: Parent
ready for children.

## netstat -tlnp ##
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address
State   PID/Program name   
tcp0  0 127.0.0.1:27304 0.0.0.0:*
LISTEN  20613/amavisd (mast 

## telnet localhost 27304 #
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.

## /etc/amavisd.conf (log-part) ###
# $daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R
$log_level = 0;  # verbosity 0..5, -d
$log_recip_templ = undef;# disable by-recipient level-0 log entries
$DO_SYSLOG = 1;  # log via syslogd (preferred)
$syslog_facility = 'mail';   # Syslog facility as a string
   # e.g.: mail, daemon, user, local0, ... local7
$syslog_priority = 'debug';  # Syslog base (minimal) priority as a
string,
   # choose from: emerg, alert, crit, err, warning, notice,
info, debug

## some version information ###
Amavis - tried 2.4.5, 2.5.1, 2.5.2
Unix::Syslog - tried 0.99, 0.100
Perl - 5.8.8
Mail::SpamAssassin - 3.2.1

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/