Re: [AMaViS-user] Local quarantine with SQL Index

2005-05-23 Thread Mark Martinec
Hamie, I've been looking at the latest SQL integration with amavisd-new and just wondering if anyone else besides myself is interested in having a combination of the current quarantine options, with the files saved locally (Or in my case AFS), but the information about the quarantine kept in

Re: [AMaViS-user] QMQPqq code not loaded after upgrade to amavisd-new-2.3.1

2005-05-23 Thread Mark Martinec
Nicklas, Martin, It wil be the same bug reported here in regard to Courier: http://marc.theaimsgroup.com/?l=amavis-userm=111584415904600w=2 This should fix it: --- amavisd~Mon May 9 20:22:42 2005 +++ amavisd Mon May 23 17:35:34 2005 @@ -8639,3 +8639,7 @@ { my(%needed_protocols);

Re: [AMaViS-user] Re: AW: lost connection with 127.0.0.1[127.0.0.1] while sending end of data

2005-05-23 Thread Mark Martinec
John, Florian Engelmann wrote: mail mailq was full of emails deferred by this error. My setup worked great in the history - so the error must be a result of one of the last apt-get upgrades. I thought I'd revive this thread, as I get rare messages that show this problem too. I run

Re: [AMaViS-user] problems after upgrading

2005-05-24 Thread Mark Martinec
Rodrigo, I've just upgraded to amavisd-new 2.3.1 and spamassassin 3.0.3, and I'm getting these error messages: May 19 03:18:07 omni amavis[11980]: (11965-01) TROUBLE in ^^ process_request: Error writing a SMTP response to the socket: Bad file

Re: [AMaViS-user] Skip scanning for SMTP Authenticated users?

2005-05-24 Thread Mark Martinec
Gerald, Can someone with a Postfix + Amavis system help me figure out how to make Amavis NOT scan email from users who use SMTP authentication to connect from remote? I'd hate to have users blocked becuse they score on the DUL DNSBL tests. I already have Postfix REJECTing non-authenticated

Re: [AMaViS-user] Bypass amavis scanning based on sender address/domain

2005-05-25 Thread Mark Martinec
Pasi, I'm using amavisd-new with postfix. I need to bypass amavis based on sender address/domain.. What's the best way to do this? Possible with the help of Postfix configuration. If I understand correctly, amavisd-new does not support this? Partly right, whitelisting the sender or his

Re: [AMaViS-user] Attachement white- blacklist on a per-user basis

2005-05-25 Thread Mark Martinec
Marc, %banned_rules = ( 'NO-MS-EXEC'= new_RE( qr'^\.(exe-ms)$' ), ... How can I use these whitelist entries for recipients and senders? The banned filenames in banned_filename_re get blocked for recipients and senders. But the banned_filename_maps whitelist only works if the listed

Re: [AMaViS-user] Problems with communication between amavisd-new and DrWeb

2005-05-25 Thread Mark Martinec
Sander, Looks like another case of Perl on Linux problem of reading when the last line does not terminate by a newline. See: http://marc.theaimsgroup.com/?l=amavis-userm=111458535106056 Removing amavisd-new line 12145 defined $ln || $!==0 or die Error reading: $! also

Re: [AMaViS-user] Addtional info in SQL logging

2005-05-27 Thread Mark Martinec
Martin, I'm experimenting with the SQL logging feature, a great thing! In the current setup I can see the spam score (msgs.spam_level), but is there a possibility to also include which rules were hit, and which score they gave (BAYES_99 4.0 etc)? At the point where sub save_info_final is

Re: [AMaViS-user] filtering mail by user groups

2005-05-27 Thread Mark Martinec
Maicon, Im starting to learn how to use amavisd-new, and Im having a hard time finding documentation for the not so common set up. I need to set up a postfix + amavisd-new to filter attachments. I found that this can be easily done. What im having trouble to find out how to do is: how to

Re: [AMaViS-user] amavisd-new-2.3.2-pre1 minor fixes

2005-06-17 Thread Mark Martinec
Bill, I recently upgraded an existing installation of amavisd-new (w/ Courier 0.50 on Solaris 9) and was preparing for a new setup on FC2 (also with Courier 0.50)... so I tried using the 2.3.1 release and ran into the problem I later saw noted in the fix list for 2.3.2-pre1. OK, so I've been

Re: [AMaViS-user] 'amavisd-release' user comments

2005-06-17 Thread Mark Martinec
JC, Just to let you know that while playing a little with 'amavisd-release' I've found that the script doesn't work properly when '$quarantine_subdir_levels = 1' is defined: # amavisd-release spam-RcBmfs9lMPS6.gz [EMAIL PROTECTED] 450 4.5.0 Failure: File

Re: [AMaViS-user] amavisd-new 2.3.2-pre1 - SQL lookups and quarantine / Perl / question

2005-06-17 Thread Mark Martinec
Nicklas, I'm currently implementing SQL lookups and quarantine through SQL. Since we're running perl 5.6.1 on a Debian woody stable we got into some troubles with not finding the Encode module (Encode.pm). It can't be installed on our system without upgrading perl. This is pretty obvious

Re: [AMaViS-user] General question about amavisd-new variables

2005-06-17 Thread Mark Martinec
Nicklas, I have a question about variables in amavisd-new. I'm looking for a way to let each domain have it's own virus admin based on the blocked recipient domain. Something like this, where $(domain) should be replaced with a valid variable: $virus_admin = [EMAIL PROTECTED](domain);

Re: [AMaViS-user] amavisd-agent reports percentages exceeding 100%

2005-06-17 Thread Mark Martinec
Ralf, The ones that strike me as odd are: Is this a bug or do I simply not understand what they represent? CacheHitsSpamMsgs76 8/h 542.9 % (ContentSpamMsgs) ContentSpamMsgs 14 1/h0.1 % (InMsgs) The CacheHitsSpamMsgs/ContentSpamMsgs percentage is

Re: [AMaViS-user] Calyx Point pcf files

2005-06-17 Thread Mark Martinec
John, There is a mortgage/realty software called Point, produced by Calyx, that has a .PCF file format for its data output. These are simple reports, not executables or macros or whatnot. ... That list is the first place I checked. The string pcf was not listed in $banned_filename_re in

Re: [AMaViS-user] VERP addressing and maddr in SQL

2005-06-19 Thread Mark Martinec
Alan, I've been running with SQl enabled for a few weeks now. Looking at the maddr table it has thousands of VERP addressed mail records. I've searched for information on maintaining this table but have yet to find it. Is it intended that Admins delete these records manually or should

Re: [AMaViS-user] problems with altermime patch

2005-06-20 Thread Mark Martinec
Leonardo, As several users of amavis+postfix, I also had to configure my email sistem for adding a disclaimer to all messages. After some researching, I've found a patch (http://marc.theaimsgroup.com/?l=amavis-userm=108842870023754w=2) to amavisd which allow it to calls altermime and did

Re: [AMaViS-user] Crash when receiving mail from Yahoo Groups

2005-06-20 Thread Mark Martinec
Dan, The problem occurs whenever I receive email from any of Yahoo's Yahoo Groups email servers. [...] If I then take a look at the output of top, I see that the email above crashes amavis: 6539 amavisd 640 34M 26M onproc/1 - 10:33 95.26% perl 29468 amavisd 640

Re: [AMaViS-user] amavisd-new went away PIDs / BDB lockers

2005-06-20 Thread Mark Martinec
For the archive I'm forwarding this to the list: From: Martin Blapp [EMAIL PROTECTED] Date: Tue Jun 14 01:59:18 2005 Hi, first to all of you thank you a lot for testing my examples. It is interesting that it runs fine on FreeBSD and it crashes during razor with RH/FC (Bill), Debian (Gary),

Re: [AMaViS-user] Ldap and amavis 2.3.1

2005-06-20 Thread Mark Martinec
Paul, ... I have a environment with extern and intern mailing configured. So if usera want to send intern to userb a mail with a banned file i have to set the attribute for usera and userb in the ldap dir. usera and userb are also allowed to send banned files through the internet. Is there

Re: [AMaViS-user] amavisd dies after SA Timeout

2005-06-20 Thread Mark Martinec
Sven, With that many mails I'd also suggest looking into using an SQL backend for bayes. This will reduce your risk of running into bdb problems (for some people it works fine, I usually have LOTS of problems with bdb) such as file corruption, running out of lockers, safe backups etc. The

Re: [AMaViS-user] VERP addressing and maddr in SQL

2005-06-20 Thread Mark Martinec
Alan, I have tried this delete clause but it generates an error my system: mysql DELETE FROM maddr - WHERE NOT EXISTS (SELECT sid FROM msgs WHERE sid=id) - AND NOT EXISTS (SELECT rid FROM msgrcpt WHERE rid=id); ERROR 1064: You have an error in your SQL syntax near 'EXISTS

Re: [AMaViS-user] SpamAssassin 3.1.0pre1

2005-06-21 Thread Mark Martinec
Michael, Any issues with amavisd-new and SpamAssassin 3.1.0pre1? Apart from an issue when using IPv6 for communicating with a local DNS resolver, it seems fine (problem has been reported). I'll add the module Mail::SpamAssassin::Plugin::WhiteListSubject to the list of modules that need to be

Re: [AMaViS-user] Bug in 2.1.3 regarding sa_spam_modifies_subject_maps

2005-06-21 Thread Mark Martinec
Joe, Uncommenting it gave an error like Global symbol @sa_spam_modifies_subj_maps requires explicit package name at /etc/amavisd.conf line 1557 After looking into amavisd script I changed it to @spam_modifies_subj_maps Thanks, I fixed the example for the next release. BTW: is it possible

Re: [AMaViS-user] How to use read_hash in amavisd.conf

2005-06-21 Thread Mark Martinec
meow, I try to use read_hash() to import black list from a file, but I can't see amavisd use this file's information.(If it works, the test mail should be add 100 points) @score_sender_maps= ({ #SOFT-BLACKLISTING # site-wide opinions about senders (the '.' matches any recipient) '.'

Re: [AMaViS-user] Per user defang_* options in mysql

2005-06-21 Thread Mark Martinec
Chris, Is it possible maintain per user defang_* options in MySQL? I have an entry in my policy table called 'No checks' which is supposed to do just what it says on the tin. Both virus_lover and bypass_virus_checks are set to 'Y'. The intention is that users selecting this policy should

Re: [AMaViS-user] Subject line tagging with no X-Spam headers inserted

2005-06-21 Thread Mark Martinec
Randy, I'm running a mail gateway in front of Exchange using postfix, amavis, and spamassassin. I have virus scanning on the Exchange server, so I use the gateway for Spam filtering only (@bypass_virus_checks_maps = (1)). Most of the time this works great. However, I have a few messages

Re: [AMaViS-user] 2 questions

2005-06-22 Thread Mark Martinec
Sergey, Is it possible to do with amavis-new? 1. I want make local backup each incoming and outgoing messages Possible. In file amavisd you need to uncomment the following two lines (2.3.1): do_quarantine($conn, $msginfo, Amavis::Out::EditHeader-new, ['archive-files'],

Re: [AMaViS-user] All messages infected?

2005-06-22 Thread Mark Martinec
Ross, We've run a successful amavisd-new/clamav/postfix setup for a year now. I needed to update the clamscan binary in our system, so I compiled a new one, tested it, and replaced the old binary. All of a sudden, every piece of email started being marked as infected with a blank virus name:

Re: [AMaViS-user] Feature request: for log_templ, different macros for spam score and boost

2005-06-22 Thread Mark Martinec
Bill, While on the subject of next version wishlist items, I very much appreciate the added logging that amavisd-new now does in reporting individual test scores. I was wondering if the URIBL tests could also report what URI in the message was actually tagged by a particular URIBL test? For

Re: [AMaViS-user] alteration of subject line without insertion of X-Spam headers

2005-06-22 Thread Mark Martinec
Randy, I didn't see any replies to this from an earlier post, so I think I'll rephrase. Has anyone ever seen amavis tag a subject line without inserting X-Spam headers? It happens rarely, but I get a few every week. My custom tag line is in the subject, but there are no X-Spam headers or

Re: [AMaViS-user] How to use read_hash in amavisd.conf

2005-06-22 Thread Mark Martinec
meow, I have another question, can I use Regular Expression in somefile.txt? At the moment the only available routines to read a lookup table from a file are read_hash and read_array. Reading regexp table form a file could be accomplished by a couple of lines of Perl code in amavisd.conf, but

Re: [AMaViS-user] ANNOUNCE: amavisd-milter 1.0.1

2005-06-22 Thread Mark Martinec
Petr, I would like to announce the amavisd-milter which use new AM.PDP protocol. Project web is at http://sourceforge.net/projects/amavisd-milter/ Instead of amavis-milter helper program, full amavisd-new functionality is available, including adding spam and virus information header fields,

Re: [AMaViS-user] Attachments larger than 0,1MB are hold by Amavis

2005-06-23 Thread Mark Martinec
I have a serious problem with Amavis at the moment because Amavis holds every e-mail larger than 0,1MB and puts it in a loop in /var/lib/amavis/tmp I'm using Amavis+ClamAV+Maia. First of all I have changed the quota setting in the Maia-DB to -1 because at the first time Maia was blocking

Re: [AMaViS-user] Attachments larger than 0,1MB are hold by Amavis

2005-06-23 Thread Mark Martinec
I have changed $MIN_EXPANSION_QUOTA to 1*1024; for an example, and when I want to send an e-amil with an attachment about 6MB I still have the same problem. 1*1024 = 9.77 MB if a 6 MB attachment is base64 encoded, it requires about 8 MB of storage, plus mail header plus some overhead.

Re: [AMaViS-user] Blocking attachments with a certain size

2005-06-23 Thread Mark Martinec
Bart, Is it possible to block all mails that have a certain filesize, and this for certain email addresses? I know it's possible to set the size to determine wether or not to check the attachment for virusses, but can i actually block an email with a too big attachment? amavisd-new-2.2.0

Re: [AMaViS-user] Pid error

2005-06-27 Thread Mark Martinec
Tom, I'm running Amavis-new-2.3.1 with Postfix(not chrooted) on redhat ES 3 When I try to reload or stop amavis, I get- No PID file /var/amavis/amavisd.pid, can't reload the process Because most likely amavisd is not running. /usr/local/sbin/amavisd[7870]: Net::Server: Setting gid to 999

Re: [AMaViS-user] spam quarantine and existing X-Spam-* headers

2005-06-27 Thread Mark Martinec
Thomas, when forwarding all spam mails to a single destination, existing X-Spam-* headers don't get deleted. Hm, are sure? With a Postfix (dual-MTA) setup? I'm not seeing it here. Here's why: check_mail() calls do_spam() before the first add_forwarding_header_edits_common() call is done.

Re: [AMaViS-user] Pid error

2005-06-27 Thread Mark Martinec
Tom, amavis:x:886:886:amavisd-new daemon:/var/amavis:/sbin/nologin I don't know what is going on on your host, but as a workaround you can start amavisd with an option -u, giving it a username to change uid to. This way the Net::Server will be completely relieved of attempting to change uid or

Re: [AMaViS-user] problem with sample $log_templ

2005-06-27 Thread Mark Martinec
Gary, Maybe the spaces should be removed in the sample: #$log_templ = ' #[?%#D|#|Passed # #[? [?%#V|1] |INFECTED (%V)|# I'll add the following comment before the example: # (remove the leading '#' and a space in the following lines to activate) Mark

Re: [AMaViS-user] AmavisNewSQL

2005-06-27 Thread Mark Martinec
Stephen, I'm using a postfix/courier/amavis/spamassassin/squirrelmail/mysql with virtual domains in a db. I have a vacation program from High5 so as mail comes in postfix does the look up to the aliases table which looks like this: satkins at skircr dot com - satkins at skircr dot com

Re: [AMaViS-user] Old amavisd-new and Convert::UUlib problem

2005-06-27 Thread Mark Martinec
Phil, System: SuSE SLES 8 x86, Perl 5.8.3, amavisd-20020517 (I know...) I don't expect a lot of support for such an old version of Amavis, but we're in the process of migrating to a new version. In the meantime, we're getting this failure in the maillog: amavis[536]: (00536-20) Decoding of

Re: [AMaViS-user] spam quarantine and existing X-Spam-* headers

2005-06-28 Thread Mark Martinec
Thomas, Perhaps you are examining quarantined mail, not a forwarded mail? True, I looked at a quarantined mail. Thought an smtp quarantine was the natural way to forward all spam emails to a single destination, isn't it? Quarantined messages tries to preserve mail close to the original.

[AMaViS-user] release candidate amavisd-new-2.3.2-rc1 is out

2005-06-28 Thread Mark Martinec
A release candidate of amavisd-new-2.3.2 is available at: http://www.ijs.si/software/amavisd/amavisd-new-2.3.2-rc1.tar.gz Compared to 2.3.2-pre3 it: - uses recv() instead of read() to get results from daemonized virus scanners in an attempt to avoid a Perl I/O status bug on some Linux

Re: [AMaViS-user] amavisd-new errors w/ new perl freebsd port

2005-06-28 Thread Mark Martinec
Bob, Bart, Michael, Chris, Jun 25 11:12:59 sunrise amavis[1159]: (01159-01) TROUBLE in check_mail: mime_decode-1 FAILED: Error reading: Resource temporarily unavailable at (eval 64) line 153, GEN9 line 1. ... Here comes the weird part, when i tried to debug it, and set the log level

Re: [AMaViS-user] Pid error

2005-06-28 Thread Mark Martinec
Gary, Seems to have worked. What a pain. Did anyone notify the Net::Server author Actually, yes, I filed a bug report with CPAN. Funny. When Net::Server 0.88 finally fixed the long-standing setuid security problem for everybody else, it seems to be failing on ancient bug-infested

Re: [AMaViS-user] SAVI-Perl updates for amavisd with Net::Server 0.88

2005-06-28 Thread Mark Martinec
Paul, The new version of Net::Server implemented my requested change for a new hook, removing the need for my previous patch. However, I'm not going to have time this week to test the minor change to amavisd in time for Mark to include it in the next release version. Can anyone volunteer to

Re: [AMaViS-user] conf file differences

2005-06-28 Thread Mark Martinec
email builder, Recently comparing a fresh install to our older conf file and this was part of the diff... wondering if I should change these things in our conf file or not? -$file = 'file'; # file(1) utility; use recent versions -$gzip = 'gzip'; -$bzip2 = 'bzip2'; -$lzop =

Re: [AMaViS-user] Pid error

2005-06-29 Thread Mark Martinec
Gary, The final version of amavisd-new 2.3.2 will not *require* 0.88, will it? No, although I toyed with the idea, as it removes the need to apply two patches to it (the setuid fix and providing a new hook for a SAVI Perl module) and avoids a need for amavisd to provide its own sub done().

Re: [AMaViS-user] Allowing ZIP's but only if password protected?

2005-06-29 Thread Mark Martinec
Darryl, Now I am confused; qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta| inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst| ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs| wmf|wsc|wsf|wsh)$'ix, # banned ext - long ... #

Re: [AMaViS-user] spam from mailing lists

2005-06-29 Thread Mark Martinec
Jorge, i've a virtual domain mailing system with postfix, fetchmail gets mail from all my accounts and forwards it to my virtual account on this system. all of this mail is analized by amavis-new 20030616p10-5 with sa 3.0.3-1. it detects about 99% of the spam in mails to the mail address

Re: [AMaViS-user] Message to original virus recipient?

2005-06-29 Thread Mark Martinec
Mathias, | $final_virus_destiny = D_DISCARD; | $warnvirusrecip= 1; | $virus_admin = [EMAIL PROTECTED]; | $mailfrom_notify_admin = [EMAIL PROTECTED]; | $mailfrom_notify_recip = [EMAIL PROTECTED]; The quarantine in a special mail account is i slike I want it. But the

Re: [AMaViS-user] what to do with Quarantined messages

2005-06-29 Thread Mark Martinec
Can some one suggest what is the best policy to deal with quarantined messages which are storing in /var/amavis/virusmais. Is there any built-function to remove very old messages from this directory? Or we have to write a cron script for this? release from quarantine functionality is

Re: [AMaViS-user] spam from mailing lists

2005-06-30 Thread Mark Martinec
Jorge, mail is passing over amavisd-new but the scores from SA are too low, ... i can't see any extrange in the logs, here is an example of a spam recived fron the lartc mailing list: Jun 29 05:41:22 hurt amavis[1795]: (01795-07) SPAM-TAG, [EMAIL PROTECTED] - [EMAIL PROTECTED], No,

Re: [AMaViS-user] amavisd debug-sa

2005-06-30 Thread Mark Martinec
Luke, I am having problems with spamassassin and amavisd on openbsd 3.7. Basically the mta accepts mail and checks it for viruses using clamav but it doesn't register any hits for spam. Amavis version: amavisd-new-2.3.2 Spamassasin vers: p5-Mail-SpamAssassin-3.0.2 Razor version:

Re: [AMaViS-user] Crash analysis?

2005-06-30 Thread Mark Martinec
Daniel, Here is the output of lsof -p 2975. Lots of it here-- apologies if this is overkill. COMMAND PIDUSER FD TYPE DEVICE SIZE/OFFNODE NAME perl2975 amavisd cwd VDIR4,4 1024 618380 /var (/dev/sd0e) perl2975 amavisd rtd VDIR4,4 512

Re: [AMaViS-user] Logging

2005-07-02 Thread Mark Martinec
Terry, After upgrading my amavisd-new to 2.3.2 fixing a few odd problems with postfix my amavisd-new daemon is logging partly into mail.log logging the passed or blocked messages into system.log - could anyone enlighten me how to change it so that all amavisd-new messages are logged

Re: [AMaViS-user] Amavisd-new with Dspam

2005-07-02 Thread Mark Martinec
Emmanuel, I'm looking in google for a guide for howto integrate Dspam with amavisd-new, but i did not find nothing :-) Could someone give me a reference for this implementation? For starters, see RELEASE_NOTES and search for: provisional/experimental support for DSPAM Mark

Re: [AMaViS-user] Constant error trying to use amavisd-new

2005-07-25 Thread Mark Martinec
Javier, amavis[4619]: DENIED ACCESS from IP 192.168.1.10, Jul 22 21:09:57 vida postfix/smtp[4864]: connect to 127.0.0.1[127.0.0.1]: server dropped connection without sending the initial SMTP greeting I´ve got amavisd listening on 127.0.0.1:10024 For some reason Postfix chose to use its

Re: [AMaViS-user] amavisd-new+sqlite+MailZu, stupid idea?

2005-07-25 Thread Mark Martinec
Gerald, I play with the idea to use amavisd-new, sqlite and MailZu on very small servers with only a few users. I think that it should be possible for amavisd-new to use sqlite for writing if I limit the concurrent processes to 1. To get some mails a little bit later I can tolerate. Mysql or

Re: [AMaViS-user] AMaViS and LDAP lookups

2005-07-25 Thread Mark Martinec
Justin, The docs imply that the searches are done in order. You definitely want settings in [EMAIL PROTECTED] overriding @host.com, so order is important. Does anyone know - do the SQL lookups build one SQL request, or are they done sequentially? If they're done in one request, at least

Re: [AMaViS-user] Error Message. - update

2005-07-25 Thread Mark Martinec
Matthew, Jul 13 12:07:37 MYSERVER sm-mta-rx[11810]: j6DGiNkn007630: to=[EMAIL PROTECTED], delay=03:23:14, xdelay=00:00:14, mailer=esmtp, pri=58440458, relay=[127.0.0.1] [127.0.0.1], dsn=4.5.0, stat=Deferred: 451 4.5.0 Error in processing, id=11801-01, mime_decode-1 FAILED: Maximum

Re: [AMaViS-user] Followup on Perl 5.8.7 and Freebsd issues

2005-07-25 Thread Mark Martinec
Michael, Problem with perl 5.8.7 in error processing. (or problem is in amavis, fixed with 2.3.2) If problem fixed with a patch to amavisd-new, was it original problem with amavis? Then why did it just NOW show up? It is a problem in Perl 5.8.7, which for some reason only surfaces on

Re: [AMaViS-user] spam threshold avoid by amavis

2005-07-26 Thread Mark Martinec
Tony, Nothing to do with OP's question, but I'd value particularly your answer to the following question to do with the above: What is your (and possibly others') experience with sending bounce notices to spammers? In my experience, not far from all spammer addresses are forged, meaning

Re: [AMaViS-user] Postfix XFORWARD/XCLIENT question

2005-07-26 Thread Mark Martinec
Tony, Both work nearly perfectly together. However, I have a scenario (on a test rig) where I want to simulate Internet mail from a Postfix smtpd listener through amavisd-new to a postfix listener. # telnet localhost submission Trying 127.0.0.1... Connected to localhost (127.0.0.1).

Re: [AMaViS-user] MIME type and $banned_filename_re

2005-07-26 Thread Mark Martinec
David, I wanted to stop any JPEG's in my incomings mails. So I put : $banned_filename_re = new_RE( qr'.\.(jpg|jpeg)$'ix, qr'^image/'i); Just fine when amavis stop it. I was happy so I decided to stop all mails with a MIME-type that is not known : qr'^application/octet-stream$'i, I tried

Re: [AMaViS-user] user specific banned_filename_maps

2005-07-26 Thread Mark Martinec
Marcus, I dont want to disable notification completely, just the unnecessary messages that are generated when blocked_filename messages are dilivered to a blocked_filename_lover. Newer versions of amavisd-new have separate controls for virus and banned admin notifications, you can just turn

Re: [AMaViS-user] FreeBSD 4.11 + amavis 2.3.1 + perl 5.8.7 : Resource temporarily unavailable

2005-07-26 Thread Mark Martinec
peculiar. Anyway, after looking through the mail archives I found a posting by Mark Martinec with the following fix +defined $ln || $!==0 || $!==EAGAIN + or die Error reading from file(1) utility: $!; That workaround was included in 2.3.2. ... Anyway, the amavisd run_av routine

Re: [AMaViS-user] No data in client_addr FIELD of msgs TABLE ??

2005-07-26 Thread Mark Martinec
meow, I setup PostgreSQL to store Log and it worked fine, but I found their is no information in client_addr FIELD of msgs TABLE. ... And my /etc/postfix/master.cf config contains -o smtp_send_xforward_command=yes. I thought if I use -o smtp_send_xforward_command=yes then postfix will

Re: [AMaViS-user] AWL score not being added correctly?

2005-07-26 Thread Mark Martinec
Gary, Mike, I should rephrase that. The score that is reported in the header (and the log) is not correct for messages that are quarantined. Amavisd-new still does the right thing as far as where the message should go. This may also explain what happened in this thread: Below taglevel but

Re: [AMaViS-user] Email being sent to incorrect recipients

2005-07-26 Thread Mark Martinec
Joel, Both user2 and userB received the emails that were sent. The problem, however, is that user2 also received the email sent by userA. This is a huge security risk. After looking through the logs, I discovered the following (see attached). Any help would be appreciated. Here is the

Re: [AMaViS-user] Limiting Incomming SMTP Sessions

2005-07-26 Thread Mark Martinec
MJ, 1- Max number of incoming smtp session my server will accept is 20, right? smtp-amavis unix - - n - 20 smtp Wrong, unless you also set the regular smtpd at port 25 to maxproc 20, which you shouldn't. It is usual that the number of content filters (20 in your case) is

Re: [AMaViS-user] Email being sent to incorrect recipients

2005-07-26 Thread Mark Martinec
P.S. to my previous posting: The most likely reason is that exec in a forked process fails, and the forked process continues its cloned life instead of terminating. The explanation and the cause I did right, but I failed to explain why user2 got userA's message. Here is the rest:

Re: [AMaViS-user] Email being sent to incorrect recipients

2005-07-26 Thread Mark Martinec
Joel, I've upgraded to amavis-2.3.2 and the latest SpamAssassin from CPAN and the issue is still happening but is much less frequent(2-3/day for ~1 Million emails from 70/day). I was using amavis-2.2.1 and SpamAssassin 3.0.1 or 3.0.2. I haven't been able to reproduce the error but I will

Re: [AMaViS-user] Whitelist file

2005-07-26 Thread Mark Martinec
Scott, I have my whitelist file setup in /var/amavis/whitelist_sender In /etc/amavisd.conf I have the following line : read_hash(/var/amavis/whitelist_sender), To which variable (lookup table) are you reading the whitelist_sender file? When I receive an email from address of [EMAIL

[AMaViS-user] Re: Perl routine problem.

2005-07-27 Thread Mark Martinec
Well, perl is kicking my ass again a nd not playing nice, I'm having a problem with the ' if ( $processPattern == amavisd) {' line. Seems it doesn't matter what's in $processPattern, everything matches, I only wish to execute this if $processPattern is amavisd so what am I doing wrong?

Re: [AMaViS-user] idea for SQL database storage...

2005-07-27 Thread Mark Martinec
Ed, Instead of storing the client_addr as a VARCHAR(255), how about storing it instead as a 32bit number in a column of type UNISIGNED INT? This'll reduce storage and speed queries. MySQL can convert back and forth using inet_aton and inet_ntoa. Perhaps there's something similar for

Re: [AMaViS-user] Can Amavisd quarantine each mail?

2005-07-27 Thread Mark Martinec
meow, Does anybody knows how to set amavisd.conf to storage each mail like quarantined mail? or where can I change the amavisd soruce code to do this? Search for: $which_section = aux_quarantine; in file amavisd, there are several examples of calling do_quarantine there, uncomment perhaps the

Re: [AMaViS-user] LDAP amavisBypassBannedChecks not working

2005-07-27 Thread Mark Martinec
Joel, Here are the complete logs using grep 32392-04 /var/log/maillog.1 Thanks. Do you have perhaps anything assigned to $banned_namepath_re? I still don't see lookup_ldap_attr(amavisbypassbannedchecks)... Does this have something to do with the MYUSERS policy bank not being defined?

Re: [AMaViS-user] LDAP amavisBypassBannedChecks not working

2005-07-27 Thread Mark Martinec
That's ok, it's because you have bypass_spam_checks_maps=[1] in MYNETS. Oops, I meant the bypass_banned_checks_maps. Mark --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps,

Re: [AMaViS-user] LDAP amavisBypassBannedChecks not working

2005-07-28 Thread Mark Martinec
Joel, Yes, I have $banned_namepath_re defined and $banned_filename_re=undef. Am I missing something here? Do I need to use the new $banned_filename_re instead of $banned_namepath_re when doing per recipient banned checks? I want one definition for banned checks but I'd like to be able to

Re: [AMaViS-user] Can I setup amavis to store quarantine files to remote machine?

2005-07-28 Thread Mark Martinec
meow, Is there any way, without changing any perl code, without using NFS, to store quarantine files to remote machine by change amavis.conf? Yes, specify a mail address as a $*_quarantine_to setting, then you can configure MTA (local or remote) to store the quarantined message any way you

Re: [AMaViS-user] quarantine

2005-07-28 Thread Mark Martinec
mess-mate, i'm using amavis (litte modified) with maia. Virus and Spam must be quarantined $QUARANTINEDIR = '/var/lib/amavis/virusmails'; $virus_quarantine_method = local:virus-%i-%n;# default $spam_quarantine_method = local:spam-%b-%i-%n; # default $final_virus_destiny =

Re: [AMaViS-user] Statistics report with log_level=0

2005-07-28 Thread Mark Martinec
MJ, Is there any statistics script for reporting SPAM and Virus statistics which can work with log_level=0 of amavis. I have tried the one available at http://flakshack.com/anti-spam/wiki/index.php it works fine only if the log_level = to 2. One way would be to modify the utility

Re: [AMaViS-user] LDAP amavisBypassBannedChecks not working

2005-07-28 Thread Mark Martinec
Joel, Ok, I will adjust my configuration. But according to the new-docs, checks may be performed (forced) when there are multiple recipients and one recipient has checks and the other doesn't. In this case I'm sending to one recipient, who has BypassBannedChecks=TRUE set in LDAP. Why is

Re: [AMaViS-user] f-prot DIED on signal 11 (008b)

2005-07-30 Thread Mark Martinec
Gawie, I have a freeBSD server running with amavisd-new ,, f-prot ,, spamassassin installed from the ports collection. Everything installed fine, except that when a message is scanned, it seems like there is a problem with the Anti-Virus Scanning :- With every message or only on some?

Re: [AMaViS-user] Stripping attachments

2005-07-30 Thread Mark Martinec
Gordon, Is it possible to strip an attachment in the case of $final_banned_destiny with other Amavisd-NEW options so that the attachment is saved to, say, /var/virusmails, and still the original email text is delivered to the user's mailbox with a notification that the executable attachment

Re: [AMaViS-user] f-prot DIED on signal 11 (008b)

2005-08-01 Thread Mark Martinec
GM, [EMAIL PROTECTED] /]# truss -o 0.log f-prot f-prot -dumb -archive -packed /var/amavis/tmp/amavis-20050801T172532-40177 truss: cannot open /proc/82371/mem: No such file or directory truss: cannot open /proc/curproc/mem: No such file or directory Seems like it's trying to access

Re: [AMaViS-user] f-prot DIED on signal 11 (008b)

2005-08-01 Thread Mark Martinec
[EMAIL PROTECTED] /]# truss -o 0.log f-prot f-prot -dumb -archive -packed /var/amavis/tmp/amavis-20050801T172532-40177 truss: cannot open /proc/82371/mem: No such file or directory truss: cannot open /proc/curproc/mem: No such file or directory Seems like it's trying to access

Re: [AMaViS-user] SQL quarantine, quarantine table not optimized

2005-08-01 Thread Mark Martinec
Paolo, As expected, there was no significant speedup/slowdown. Ok, thanks for your investigation. You might want to add a note for MySQL users to read Chapter 15 of the reference manual On chapter 15.17 I found: ... So, do not waste time and resources by creating a specific index on

Re: [AMaViS-user] Amavisd and canonical maps?

2005-08-02 Thread Mark Martinec
Marcel, Ok i have found the README.postfix file. And there is the hint, that if i put the canonical in main.cf before the contentfilter he should use the original names. But He doesn't! The order or settings in main.cf makes no difference to Postfix. What should be done is to attach Postfix

Re: [AMaViS-user] Again: Inserting X-Spam-Headers ...

2005-08-02 Thread Mark Martinec
Volker, one year ago I posted following question but obviously amavisd-new was not able to be configured in the way I wished. So I deinstalled it. Now I wonder if 1 year later the application maybe does fullfill my expecations. I would be glad if someone could give me a short hint! Yes.

Re: [AMaViS-user] Meaning?

2005-08-02 Thread Mark Martinec
Which would mean that either you have a hash collision, would would be very unprobable, or the first mail that got hashed and cached came from a whitelisted sender. Whitelisting should have no effect there, it does not propagate through cache, white/blacklisting is always re-checked on

Re: [AMaViS-user] Tagging mails #SPAM# and #SCANNED#

2005-08-03 Thread Mark Martinec
BTW, I don't think there is a setting to place #SCANNED# in the Subject line of every email. Actually there is, although I keep it low profile for its unfortunate choice of the name of the setting: @spam_subject_tag_maps or the $sa_spam_subject_tag1 . One would then set

Re: [AMaViS-user] Auto Forward/Redirect eBay Phishing Spoofs

2005-08-03 Thread Mark Martinec
Chris, It would be cool if I could add something like '*PHISHING*', to the subject perhaps have the outbound email come from '', as the response email from eBay is almost as annoying as the spoof! The place to add or modify existing headers is subroutine add_forwarding_header_edits_common or

Re: [AMaViS-user] forward of email with procmail sends 5 messages for user in vacation

2005-08-03 Thread Mark Martinec
mik, i'm running a dual sendmail config. i need to forward the email of a pippo to user2 on the same domain (i've no created the home for the users cause they only use that server to get email via pop3 (so i don't have a place to put the .forward file for a specific user) i've added a

Re: [AMaViS-user] Tagging mails #SPAM# and #SCANNED#

2005-08-03 Thread Mark Martinec
Javier, Thanks, Mark, buy i don´t know if i expressed the idea correctly, i need to insert #Scanned# on every mail, but in the possible spam ones then instead of #Scanned# that would be #SPAM#, correct me if this isn´t the way it works. Yes, such was my suggestion. $sa_tag_level_deflt =

Re: [AMaViS-user] Amavisd-new extend logging

2005-08-03 Thread Mark Martinec
Oliver, i want to log the subjects auf spammails in amavisd.log, how can i do that ? Im not very experienced with perl, could someone post some code to do this ? There is a macro %j which expands to a Subject, and can be used in the log template ($log_templ) or in templates for notifications.

Re: [AMaViS-user] mysql problem

2005-08-03 Thread Mark Martinec
Gustavo, $sql_select_policy = SELECT users.id,filter_policies.*,CONCAT(users.user,'@',domains.domain) as email FROM users LEFT JOIN domains on users.domain_id=domains.domain_id LEFT JOIN filter_policies ON users.policy_id=filter_policies.id WHERE email IN (%k); Btw, you forgot to \@

  1   2   3   4   5   6   7   8   9   10   >