[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] 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/