Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under Zimbra

2006-11-09 Thread Gary V
Bradley wrote:

 Hi,

 I am having a problem under Zimbra version 4.0.3 which includes AMaVIS
 2.4.1. I'm hoping someone here can help since I have found no answers 
 on the Zimbra forums.

 I am running Zimbra community edition on a Debian/sid box. Everything
 works fine until I turn on antivirus/antispam, which is apparently
 controlled by AMaVIS. Once I turn amavis on, mail stops being delivered,
 all mail is deferred. My normally empty queues back up and I see
 messages such as

 Nov  8 18:30:46 merrimac postfix/smtp[11701]: EC93F562F4:
 to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=8490,
 status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in
 processing, id=09543-03, parts_decode_ext FAILED: Error reading from
 file(1) utility: Bad file descriptor at (eval 51) line 151, GEN17 line
 1. (in reply to end of DATA command))

 I searched google and the only error germane to my situation involved
Net::Server  0.90 with versions of amavis  2.4.0rc*. Although Zimbra
 runs 2.4.1, I tried downgrading to Net::Server 0.87, to no avail. I also
 upgraded perl (from Debian version 5.8.8-5 to 5.8.8-6.1) and file (from
 4.17-3 to 4.17-4), so everything is up to date.

 Can someone please tell me what is causing this problem? AMaVISd
 controls the antivirus but also the antispam (spamassassin)...And spam
 is killing me.

 Thanks,
 --b

Do you have anything (error messages) logged by amavis? Possibly in a
log by itself if not in mail.log? If you start amavisd-new using
'amavisd debug' (after stopping amavisd) (or amavisd-new debug), what
version of Net::Server does that show you are running (it lists
versions of helper programs). I'm looking to see if you have ever
installed 0.91 or 0.92 from source or CPAN which would obscure the
Debian version(s). As you have found out, Net::Server 0.87 0.90 0.93
or 0.94 should work fine with 2.4.1.

Gary V


-
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=lnkkid=120709bid=263057dat=121642
___
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] Bad file descriptor errors with AMaVIS under Zimbra

2006-11-09 Thread Mark Martinec
Bradley,

 ...parts_decode_ext FAILED: Error reading from file(1) utility:
 Bad file descriptor at (eval 51) line 151

This is probably unrelated to Net::Server. Must be something
weird with a pipe to a subprocess running file(1) utility.
Are you running amavisd chrooted? Does file(1) utility work
if you invoke it from a command line as user amavis (vscan)?
Show amavisd logging a log level 5 (or: amavisd debug)
just prior to this logged error.

  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=lnkkid=120709bid=263057dat=121642
___
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] Postgresql encoding?

2006-11-09 Thread Mark Martinec
Justin,

 Thanks for the idea on how to fix the problem, unfortunately it doesn't
 seem to totally fix it, I have a feeling that it's not just the mail_text
 field that is being affected but other fields like subject etc, it seems to
 only happen with poorly built email and viruses

Fields From:, Subject: and Message-Id: are converted to UTF-8 bytes
by Perl module Encode, called from amavisd, subroutine save_info_final,
so the resulting string of bytes should be a valid UTF-8 bytes string.
Logging at level 4 or 5 would show it (search for
save_info_final.*Message-ID:). A potential remaining problem there
could be when these fields are longer than 255 and are chopped to 255,
which could chop a multibyte sequence.

Are you seeing problems with these three fields in table msgs,
or somewhere else? Most other values for CHAR and VARCHAR fields
are either internally-generated and known to be plain ascii.
A possible problem could be if an 8-bit character appears in
SMTP envelope addresses (not in mail header). These would be
apparent from top-level log entries which list sender and
recipients, protecting nonprintable and non-ascii characters.

 I have found that by changing the client_encoding for the user used for
 connecting to the database to LATIN1 has stopped most of the errors

This shouldn't be necessary (just sweeps the problem under a carpet),
and invalidates interpretation of msgs.from_addr, msgs.subject
(and msgs.message_id), which are to be interpreted as UTF-8 strings.

 but still getting errors like

 check_header: 2, Non-encoded 8-bit data (char A3 hex): Subject: MS Office
 2003 Basic oem ONLY \\24395.00\\n

 DBD::Pg::st execute failed: ERROR:  invalid input syntax for type bytea at
 (eval 46) line 176, GEN8 line 102.

Looks like you have a version of DBD::Pg older than 1.48:
  http://rt.cpan.org/Public/Bug/Display.html?id=18264

Upgrade DBD::Pg to 1.49 (or 1.48).

  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=lnkkid=120709bid=263057dat=121642
___
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] Bad file descriptor errors with AMaVIS under Zimbra

2006-11-09 Thread Bradley M Alexander
amavisd is not chrooted unless Zimbra is doing so...And I don't believe it
is. And there is no amavis or vscan user. Everything is run as
the zimbra user...That said, file works fine from the command line:

[EMAIL PROTECTED] amavisd]$ file db/nanny.db 
db/nanny.db: Berkeley DB (Hash, version 8, native byte-order)

I will start amavisd with debug 5 and post the results here.

--b


- Original Message -
From: Mark Martinec [EMAIL PROTECTED]
To: amavis-user@lists.sourceforge.net
Sent: Thursday, November 9, 2006 12:12:56 PM GMT-0500 US/Eastern
Subject: Re: [AMaViS-user] Bad file descriptor errors with AMaVIS under
Zimbra

Bradley,

 ...parts_decode_ext FAILED: Error reading from file(1) utility:
 Bad file descriptor at (eval 51) line 151

This is probably unrelated to Net::Server. Must be something
weird with a pipe to a subprocess running file(1) utility.
Are you running amavisd chrooted? Does file(1) utility work
if you invoke it from a command line as user amavis (vscan)?
Show amavisd logging a log level 5 (or: amavisd debug)
just prior to this logged error.

-
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=lnkkid=120709bid=263057dat=121642
___
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] Double maildelivery

2006-11-09 Thread Maurice Sienema
Hi,

I've have a problem with double mail delivery when using 
recipient_bcc_maps and transport_maps. When the BCC recipient contains 
an adres which is routed by the transport_map postfix will deliver the mail 
twice, when de BCC recepient address domain is not listed in the 
transport_map the mail is delivered normal ( 1 time ). Somebody have ideas 
how to solve this issue ?

this is how my postfix config looks like:

-=-=-
inet_protocols = all
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
unknown_local_recipient_reject_code = 450
relay_domains = /etc/postfix/relay_domains
home_mailbox = Maildir/
debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
alias_maps = hash:/etc/aliases
virtual_maps = hash:/etc/postfix/virtual
mydestination = /etc/postfix/localdomains
smtpd_recipient_restrictions = permit_mynetworks,reject_rbl_client,
check_client_access hash:/etc/postfix/pop-before-smtp,
reject_unauth_destination, hash:/etc/postfix/access-sender
content_filter=smtp-amavis:[127.0.0.1]:10024
message_size_limit = 5024
mynetworks_style = subnet
mynetworks = $config_directory/mynetworks
transport_maps = hash:/etc/postfix/transport
myhostname = alpha
html_directory = no
queue_directory = /var/spool/postfix
mail_owner = postfix
mailbox_command_maps = hash:/etc/postfix/mailbox_commands
smtpd_delay_reject = yes
smtpd_client_restrictions =
hash:/etc/postfix/access
reject_unauth_pipelining,
reject_unknown_sender_domain,
reject_rbl_client opm.blitzed.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client relays.ordb.org,
reject_rbl_client virbl.dnsbl.bit.nl
recipient_bcc_maps = hash:/etc/postfix/bcc_maps
-=-=-=-

Thanks for helping,

Maurice Sienema
aaargh-infotainment 


-
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=lnkkid=120709bid=263057dat=121642
___
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] Double maildelivery

2006-11-09 Thread Mark Burdick
You *might* get some assistance on this list, but your question is
really Postfix-specific. You would probably get more insight and
assistance using a Postfix list.

- Mark

--- Maurice Sienema [EMAIL PROTECTED] wrote:

 Hi,
 
 I've have a problem with double mail delivery when using 
 recipient_bcc_maps and transport_maps. When the BCC recipient
 contains 
 an adres which is routed by the transport_map postfix will deliver
 the mail 
 twice, when de BCC recepient address domain is not listed in the 
 transport_map the mail is delivered normal ( 1 time ). Somebody have
 ideas 
 how to solve this issue ?
 
 this is how my postfix config looks like:
 
 -=-=-
 inet_protocols = all
 command_directory = /usr/sbin
 daemon_directory = /usr/lib/postfix
 unknown_local_recipient_reject_code = 450
 relay_domains = /etc/postfix/relay_domains
 home_mailbox = Maildir/
 debug_peer_level = 2
 sendmail_path = /usr/sbin/sendmail
 newaliases_path = /usr/bin/newaliases
 mailq_path = /usr/bin/mailq
 setgid_group = postdrop
 manpage_directory = /usr/local/man
 sample_directory = /etc/postfix
 readme_directory = no
 alias_maps = hash:/etc/aliases
 virtual_maps = hash:/etc/postfix/virtual
 mydestination = /etc/postfix/localdomains
 smtpd_recipient_restrictions = permit_mynetworks,reject_rbl_client,
 check_client_access hash:/etc/postfix/pop-before-smtp,
 reject_unauth_destination, hash:/etc/postfix/access-sender
 content_filter=smtp-amavis:[127.0.0.1]:10024
 message_size_limit = 5024
 mynetworks_style = subnet
 mynetworks = $config_directory/mynetworks
 transport_maps = hash:/etc/postfix/transport
 myhostname = alpha
 html_directory = no
 queue_directory = /var/spool/postfix
 mail_owner = postfix
 mailbox_command_maps = hash:/etc/postfix/mailbox_commands
 smtpd_delay_reject = yes
 smtpd_client_restrictions =
 hash:/etc/postfix/access
 reject_unauth_pipelining,
 reject_unknown_sender_domain,
 reject_rbl_client opm.blitzed.org,
 reject_rbl_client list.dsbl.org,
 reject_rbl_client sbl.spamhaus.org,
 reject_rbl_client cbl.abuseat.org,
 reject_rbl_client relays.ordb.org,
 reject_rbl_client virbl.dnsbl.bit.nl
 recipient_bcc_maps = hash:/etc/postfix/bcc_maps
 -=-=-=-
 
 Thanks for helping,
 
 Maurice Sienema
 aaargh-infotainment 
 
 

-
 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=lnkkid=120709bid=263057dat=121642
 ___
 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/
 



 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-
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=lnkkid=120709bid=263057dat=121642
___
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] Double maildelivery

2006-11-09 Thread Mark Martinec
Maurice,
 I've have a problem with double mail delivery when using
 recipient_bcc_maps and transport_maps. When the BCC recipient contains
 an adres which is routed by the transport_map postfix will deliver the mail
 twice, when de BCC recepient address domain is not listed in the
 transport_map the mail is delivered normal ( 1 time ). Somebody have ideas
 how to solve this issue ?

See README.postfix, search for bcc

  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=lnkkid=120709bid=263057dat=121642
___
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] LDAP and Spam copy

2006-11-09 Thread Jorgen Lundman

We use Amavisd with LDAP (qmail+amavis schema) and everything mostly works fine.

However, I have yet to find documentation that talk about the schema values 
that 
can be set in LDAP per user. (Or, should I not look for LDAP specific guides?)

In particular, most users do not want to receive spam and virus. This is the 
default and appears to work. But there are a few who would always want to 
receive Spam and Virus emails, and filter them themselves.

I currently have:

$final_virus_destiny  = D_DISCARD;
$final_spam_destiny   = D_DISCARD;

And my account is set to:

amavisBypassVirusChecks: FALSE
amavisBypassSpamChecks: FALSE
amavisSpamLover: TRUE
amavisVirusLover: TRUE

Which made me think I would receive Spam, tagged. But I do not. Changing 
$final_spam_destiny to D_PASS, and I receive spam, but then so all the others 
who do not wish to receive spam at all.

Can someone clarify how this works? How can I set it so that I receive spam, no 
matter how high the score, and others don't, based on LDAP settings?

Thanks,

Lund


-- 
Jorgen Lundman   | [EMAIL PROTECTED]
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo| +81 (0)90-5578-8500  (cell)
Japan| +81 (0)3 -3375-1767  (home)

-
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=lnkkid=120709bid=263057dat=121642
___
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/