Max Matslofva wrote:
> Hi
> I have the same problem on a new server running amavisd-new-2.6.0 (from 
> ports) on FreeBSD 6.3 and /var/amavis/tmp on 512m ramdisk.
> 
> Bill Landry skrev:
>> Mark Martinec wrote:
>>> What happens if you provide a username with an -u uption, e.g.:
>>>   # amavisd -u vscan reload
> I get "error loading optional module"
>>> vs.
>>>   # amavisd stop
>>>   # amavisd -u vscan start
> I get "error loading optional module"
>>> Anyway, the 'Permission denied' looks like these perl modules
>>> or one of their parent directories were not accessible as
>>> user vscan/amavis. Please check permissions of .pm files and all
>>> their parent directories. Make sure you do not have two copies
>>> of Perl module trees, or at least that they are consistent.
> [EMAIL PROTECTED] /]# find / -name Fast.pm
> /usr/local/lib/perl5/5.8.8/CGI/Fast.pm
> [EMAIL PROTECTED] /]# su vscan
> [EMAIL PROTECTED] /]# head /usr/local/lib/perl5/5.8.8/CGI/Fast.pm
> package CGI::Fast;
> 
> # See the bottom of this file for the POD documentation.  Search for the
> # string '=head'.
> 
> # You can run this file through either pod2man or pod2html to produce pretty
> # documentation in manual or html file format (these utilities are part of the
> # Perl 5 distribution).
> 
> # Copyright 1995,1996, Lincoln D. Stein.  All rights reserved.
> 
> 
> 
> But if I stop and start with rc-script from ports I can use "amavisd reload" ?
> [EMAIL PROTECTED] /]# /usr/local/etc/rc.d/amavisd stop
> Stopping amavisd.
> Waiting for PIDS: 16411.
> [EMAIL PROTECTED] /]# /usr/local/etc/rc.d/amavisd start
> Starting amavisd.
> [EMAIL PROTECTED] /]# amavisd reload
> Daemon [16587] terminated by SIGTERM, waiting for dust to settle...
> becoming a new daemon...
> [EMAIL PROTECTED] /]#

Upon further investigation, I found that this still happens here, as well:

uname -a
Linux mail.inetmsg.com 2.6.24.7-92.fc8 #1 SMP Wed May 7 16:50:09 EDT 
2008 i686 i686 i386 GNU/Linux

amavisd -V
amavisd-new-2.6.0 (20080423)

spamassassin -V
SpamAssassin version 3.2.4
   running on Perl version 5.8.8

However, for me, the odd things is this only happens when "amavisd 
reload or amavisd stop/start" is executed from within my home directory. 
  If executed anywhere outside of my home directory, no errors are seen. 
  The only other thing I noticed when executing from within my home 
directory, but again not if executed outside of my home directory, is 
the following entry in my maillog:

May 21 14:28:38 mail amavis[2612]: (!)_DIE: "image_info" is not exported 
by the Image::Info module\n "dim" is not exported by the Image::Info 
module\nCan't continue after import errors at 
/etc/mail/spamassassin/ImageCheck.pm line 7\nBEGIN failed--compilation 
aborted at /etc/mail/spamassassin/ImageCheck.pm line 7.\n

However, if I drop back to amavisd-new-2.5.4, the errors and maillog 
entry go away, no matter where I execute "amavisd reload or amavisd 
stop/start" from.  Thoughts?

Bill

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to