List Info

Thread: Amavisd-new 2.4/2.4.1-pre1 Problem with @local_domains_maps




Amavisd-new 2.4/2.4.1-pre1 Problem with @local_domains_maps
user name
2006-05-02 09:37:17
Hello,

If I configure amavisd-new to use a file for local domains
amavisd won´t start.

My Conf:	
/etc/amavisd.conf
-----------------
local_domains_maps = (
read_hash('/var/amavis/local_domains') );

/var/amavis/local_domains
-------------------------
.example.com
.noexample.com
-------------------------

The Errormessage for 2.4.1-pr1 is:
Error in config file "/etc/amavisd.conf": Error
reading from /var/amavis/local_domains: Bad file descriptor
at /usr/sbin/amavisd line 2029, <GEN0> line2.

It works when /var/amavis/local_domains with a newline after
the last entry
--------------------------
.example.com
.noexample.com

-------------------------

I dont know if this is a bug.


Danny


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http:
//sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&
amp;3057&dat1642
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
Amavisd-new 2.4/2.4.1-pre1 Problem with @local_domains_maps
user name
2006-05-02 16:45:52
Danny,

> local_domains_maps = (
read_hash('/var/amavis/local_domains') );
> The Errormessage for 2.4.1-pr1 is:
> Error in config file "/etc/amavisd.conf":
Error reading from
> /var/amavis/local_domains: Bad file descriptor at
/usr/sbin/amavisd line
> 2029, <GEN0> line2.
>
> It works when /var/amavis/local_domains with a newline
after the last entry
> --------------------------
> .example.com
> .noexample.com
>
> -------------------------

Are you sure you need to put *two* linefeeds at the end of
file?
I expect your first case was just missing a LF at the end of
last line.

The following entry from release notes looks terribly
similar,
and indicates a PerlIO bug, hit when the last line is not
LF-terminated:

- run_av and other similar code sections: replace
line-by-line reads by
  block-by-block reads wherever possible to avoid
inappropriate status report
  EBADF (Bad file descriptor) caused by Perl I/O bug when
last line is not
  terminated by a newline. The problem was affecting reading
response from
  some command line virus checkers; reported by Sander
Steffann;

Unfortunately the read_hash needs to read file by lines, so
your
choice is to either work around a Perl bug, or report it to
perl bug tracking.
Perhaps it is already fixed in later versions of Perl - what
is your version?

  Mark


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )