Re: [AMaViS-user] SMTP-result error found

2006-03-07 Thread Mark Martinec
Oliver,

  - one_response_for_all: report (propagate) all MTA SMTP responses
  if different

 Ok, i see. Do you know when it will be fixed

Well, if someone tells me how to automatically compress
to-some-degree-different responses to possibly hundred of recipients
into a single not-too-long, most informative smtp status line,
I'd welcome it.

  A workaround is to feed mail to amavisd via LMTP, if the most
  informative and accurate smtp message text is important.

 For loging purposes it is. Can you give me an example of how to
 integrate it with LMTP in postfix ?

README.postfix:
| To use LMTP instead of SMTP just replace the service name (last item)
| 'smtp' with 'lmtp' in the master.cf entry: 
| smtp-amavis unix -  -   y/n -   2  lmtp
|-o lmtp_data_done_timeout=1200
|-o lmtp_send_xforward_command=yes
| (and change option names accordingly).

  Mark



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] whitelisting with SQL lookups (working but I have a question)

2006-03-07 Thread Mark Martinec
Peter,

 I believe I have a test whitelisti set up but my
 question is why I needed to put the FQDN of the sender
 in the mailaddr table for this to work.  I thought
 putting @domain.com would be good enough but
 apparently not.  I had to put @host.domain.com.

If the sender address is not fully qualified,
then it can't match @domain.com.

Instead of trying to find ways around it, it is far better
to let MTA reject mail with non-replyable sender addresses
straight away, or if they come from your authorized users,
let MTA (in the role of MSA) fully qualify the sender domain,
providing missing domain.

  Mark


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] Decoding of p002 (RAR archive data, v1d, os: Win32) failed, leaving it unpacked: timed out

2006-03-07 Thread Mark Martinec
Nicklas,

 Ran into some strange things today:
 Seems like the RAR decoder (unrar) doesn't cope very well with large .rar
 files (~15MB).

 First of all I got this message in the log:
 Decoding of p002 (RAR archive data, v1d, os: Win32) failed, leaving it
 unpacked: timed out

 And then I got (obviously with a hogged clamscan process):
 xxx /etc/rc2.d/S20amavisd[500]: (00500-193) ClamAV-clamscan av-scanner
 FAILED: /usr/local/bin/clamscan DIED on signal 9 (0009) at (eval 38) line
 435.

 Any ideas, suggestions?
 We have have now switched to clamd instead of clamscan. Any other
 suggestions beside that, to avoid this kind of behavior?

Sorry, no good suggestions, besides disabling unrar or increasing
time limits. Try suggesting to ClamAV folks to impose a time limit
when they invoke some decoding library which is beyond their control.

 When this happened I was running cpio and not pax. Switched to pax, right
 after this happened.

That's unrelated, although using pax is safer than cpio for other reasons.

  Mark


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] amavisd 2.3.3 crash after 1-2 days operational with error requesting process rundown after 20 tasks

2006-03-07 Thread Mark Martinec
Siegbert,

 After the update from amavisd 2.3.1 to 2.3.3 we have the following problem:
 - amavisd run for 1-2 days without any problem (1000 - 2000 E-mails per
 day).

 Suddenly we show in the mail-log follow entry's: 
 /usr/local/sbin/amavisd[3044]: (03044-20) Requesting process rundown
 after 20 tasks (and 20 sessions)

This message is normal.

 After this entry's, the cpu load (User + System) goes up to 100%, and
 all mails are queued from postfix with status: timeout. After restart
 the amavisd all process run's forward (requeueing the e-mails and
 deliver) to the next amavisd crash in 1-2 days.

You need to investigate what happens next. Turn up log level to 5,
then when some process starts eating CPU again you will have a chance
to examine what it was doing last (grep amavis log on pid).
Find the PID of the looping process (don't kill it yet),
use lsof -p pid to see what files it has open, steal the email.txt
from its temporary directory to be able to examine what message
it was procesing. You may also try running strace (or truss) on this pid
and see what system calls it is doing (if any), before killing it.

 - All Perl-Module are on the newest release.
 - The Mail-Server contain 1GB memory.
 - also the amavisd-nanny programm is running without help or more
 information.
 - Amavisd 2.3.3 run's  on Linux 2.6.11 with postfix 2.1.3 with mysql
 3.x, spamassassin 3.001
 - db = BerkeleyDB 0.27,libdb 4.2

Looks fine.

  Mark


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] Decoding of p002 (RAR archive data, v1d, os: Win32) failed, leaving it unpacked: timed out

2006-03-07 Thread Henrik Krohns
On Wed, Mar 01, 2006 at 02:13:01AM +0100, Nicklas Bondesson wrote:
 Ran into some strange things today:
 
 Seems like the RAR decoder (unrar) doesn't cope very well with large .rar
 files (~15MB).
 
 First of all I got this message in the log:
 
 Decoding of p002 (RAR archive data, v1d, os: Win32) failed, leaving it
 unpacked: timed out

Maybe you have ancient unrar version?

You could get the newest (http://www.rarlab.com/rar/unrarsrc-3.5.4.tar.gz)
and compile it, if your distro doesn't have better version. You could also
try 'rar' package which might be newer. Amavisd tries 'rar' before 'unrar'..

Cheers,
Henrik


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] SQL lookup bug with amavisd-new-2.2.0 ?

2006-03-07 Thread Phil Regnauld
Mark Martinec (Mark.Martinec+amavis) writes:
 Phil,
 
  You can short-circuit this mail and tell me if this is a known bug and I
  need to upgrade
 
 I checked the release notes and I don't think the 2.3.3 bring any bug fixes
 in the area where your problem lurks. It offers somewhat more informative
 logging in the lookups code though, which might help.

Tried dropping 2.3.3 in place, didn't help unfortunately...

  --  Only one result is logged!  The manual query gives TWO results...
 ...
  Any ideas ?
 
 Sorry, no ideas. Looks strange, but I'm unable to offer explanation.
 You might want to insert some additional logging in sub lookup_sql,
 in particular in the loop:
   while ( defined($a_ref=$conn_h-fetchrow_arrayref($sel)) ) {
 See if perhaps the 'last  if !$get_all' causes the loop to exit.

I will do that, as 2.3.3 didn't help in this case.

Thanks,
Phil


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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/