Re: [AMaViS-user] postfix+amavisd-new+perl5.8.7 on debian sarge

This is a discussion on Re: [AMaViS-user] postfix+amavisd-new+perl5.8.7 on debian sarge within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Jiøí wrote: > Hello, > I´ve following problem with amavisd-new. I´m trying to use it on debian &...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-16-2005
Gary V
 
Posts: n/a
Default Re: [AMaViS-user] postfix+amavisd-new+perl5.8.7 on debian sarge

Jiøí wrote:

> Hello,
> I´ve following problem with amavisd-new. I´m trying to use it on debian
> (sarge)
> machine (perl 5.8.7) with postfix. But when I try to run amavisd-new debug,
> i receive this:
> gate:/home/ogeen# amavisd-new debug
> Subroutine AUTOLOAD redefined at /etc/perl/IO/Zlib.pm line 84.
> Subroutine isaFilehandle redefined at /etc/perl/IO/Zlib.pm line 99.
> Subroutine isaFilename redefined at /etc/perl/IO/Zlib.pm line 108.
> Subroutine gzopen redefined at /etc/perl/IO/Zlib.pm line 115.
> Subroutine ParseParameters redefined at /etc/perl/IO/Zlib.pm line 132.
> Subroutine deflateInit redefined at /etc/perl/IO/Zlib.pm line 198.
> Subroutine inflateInit redefined at /etc/perl/IO/Zlib.pm line 210.
> Subroutine Compress::Zlib::deflateStream::deflateParams redefined at
> /etc/perl/IO/Zlib.pm line 220.
> Subroutine compress redefined at /etc/perl/IO/Zlib.pm line 249.
> Subroutine uncompress redefined at /etc/perl/IO/Zlib.pm line 280.
> Subroutine memGzip redefined at /etc/perl/IO/Zlib.pm line 319.
> Subroutine _removeGzipHeader redefined at /etc/perl/IO/Zlib.pm line 350.
> Subroutine memGunzip redefined at /etc/perl/IO/Zlib.pm line 409.
> Aug 16 13:21:26 gate amavisd-new[29247]: starting. amavisd-new at gate
> amavisd-new-20030616-p10, Unicode aware



> When I start amavisd-new using /etc/init.d/amavisd-new I´m able to make
> postfix to transfer emails to amavis,
> but those are not delivered and mail is returned with this message:
> This is the Postfix program at host gate.sps-pi.cz.


> I'm sorry to have to inform you that your message could not
> be delivered to one or more recipients. It's attached below.


> For further assistance, please send mail to


> If you do so, please include this problem report. You can
> delete your own text from the attached returned message.


> The Postfix program


> <cervenka@sps-pi.cz>: Command died with status 255: "/usr/sbin/amavisd-new".
> Command output: Subroutine AUTOLOAD redefined at /etc/perl/IO/Zlib.pm line
> 84. Subroutine isaFilehandle redefined at /etc/perl/IO/Zlib.pm line 99.
> Subroutine isaFilename redefined at /etc/perl/IO/Zlib.pm line 108.
> Subroutine gzopen redefined at /etc/perl/IO/Zlib.pm line 115. Subroutine
> ParseParameters redefined at /etc/perl/IO/Zlib.pm line 132. Subroutine
> deflateInit redefined at /etc/perl/IO/Zlib.pm line 198. Subroutine
> inflateInit redefined at /etc/perl/IO/Zlib.pm line 210. Subroutine
> Compress::Zlib::deflateStream::deflateParams redefined at
> /etc/perl/IO/Zlib.pm line 220. Subroutine compress redefined at
> /etc/perl/IO/Zlib.pm line 249. Subroutine uncompress redefined at
> /etc/perl/IO/Zlib.pm line 280. Subroutine memGzip redefined at
> /etc/perl/IO/Zlib.pm line 319. Subroutine _removeGzipHeader redefined at
> /etc/perl/IO/Zlib.pm line 350. Subroutine memGunzip redefined at
> /etc/perl/IO/Zlib.pm line 409. Unknown argument. Usage:
> /usr/sbin/amavisd-new [ -c config-file ] ( [ start ] | stop | reload |
> debug | debug-sa | foreground )


First, stop amavisd-new

That is a very unusual place to have /IO/Zlib.pm

I would insure you have more than one copy of /IO/Zlib.pm by doing:
# updatedb
# locate /IO/Zlib.pm

You should have one in /usr/share/perl5/IO/Zlib.pm
(make a note of where you found all the copies)

If you don't have at least one other copy, then install it:
# apt-get install libio-zlib-perl
If you do find another copy, then that copy should be used instead of
/IO/Zlib.pm (which next we are going to rename).

Then rename the one in the weird place (this will disable it):
# mv /etc/perl/IO/Zlib.pm /etc/perl/IO/Zlib.pm-backup

> Postfix is configured this way:
> main.cf :
> ..
> content_filter = smtp-amavis:127.0.0.1:10024
> ..


This should be content_filter = smtp-amavis:[127.0.0.1]:10024

> master.cf :
> ..
> smtp-amavis unix - n n - 10 pipe user=amavis argv=/usr/sbin/amavisd-new
> ${sender} ${recipient}
> localhost:10025 inet n - n - - smtpd -o content_filter=


> Thank you for any help


There is a better way to do this (using smtp rather than pipe),
see http://www.ijs.si/software/amavisd/README.postfix.txt

Comment out your old stuff, and use something more like this:
(this stuff may wrap)

smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20

127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks_style=host
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_ unknown_recipient_checks


Since you are using version 20030616-p10, you could get by with:

smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes

But I believe there is no harm in using the newer version.

postfix reload
amavisd-new debug

If you get into more trouble, you can simply undo what I have told you
to do, but I think this will solve this problem.

Gary V



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0