Re: [AMaViS-user] Amavis will not ignore bad headers.

2009-08-07 Thread Tom Diehl

On Thu, 6 Aug 2009, Stefan Förster wrote:



The dovecot transport is not configured correctly in master.cf, most
probably with ${recipient} instead of ${us...@${nexthop}:

dovecot   unix  -   n   n   -   -  pipe
 flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d 
${us...@${nexthop} -n -m ${extension}

(Usernames and paths need to be adjusted to your setup, of course).
With -m ${extension}, you don't even need an alias ;-)



That took care of the + addressing problem. I can't believe I missed that.

THANK YOU!!

Regards,

--
Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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] Amavis will not ignore bad headers.

2009-08-05 Thread Tom Diehl
Hi all,

I am sure I have something mis-configured but I am at a loss what that could be.

Basically I have 2 problems. The first problem is that I am trying to get
amavis-new to pass messages with bad headers. I have $warnbadhsender = undef
in the amavisd.conf. As I understand things, this is the default and this
should allow these messages to just pass through.

The second problem is that the messages with bad headers are getting the
To address rewritten to tdiehl+b...@mydomain.com. This part is what I expect
since I have plus addressing turned on. What I do not understand is, with
softbounce turned on in postfix, I am getting messages stuck in the mailq
that say
Aug  5 15:33:55 vfoggy postfix/pipe[12086]: 7EEBAF0807: 
to=tdiehl+b...@mydomain.com, relay=dovecot, delay=94946, 
delays=94946/0.48/0/0.02, dsn=4.1.1, status=SOFTBOUNCE (user unknown)

I have an alias that says to deliver mail for tdiehl+badh to my mailbox, so
I do not understand why it says user unknown.

If I look at the header of one of the messages stuck in the queue I see the
following: 
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: MIME-Version

The system is running postfix 2.3.3, dovecot 1.2.2 using the dovecot lda,
amavisd-new 2.6.2 and the latest svn version of postfix admin. Quarantine
is in mysql and the users are stored in mysql and managed by postfixadmin.

Does anyone have any idea what I am doing wrong or how to troubleshoot this
problem?

Regards,

-- 
Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Amavis will not ignore bad headers.

2009-08-05 Thread Tom Diehl
Hi Daniel,

On Wed, 5 Aug 2009, Daniel Luttermann wrote:

 Tom,

 Basically I have 2 problems. The first problem is that I am trying to get
 amavis-new to pass messages with bad headers. I have $warnbadhsender = undef
 in the amavisd.conf. As I understand things, this is the default and this
 should allow these messages to just pass through.

 $warnbadhsender controls if the sender of an email should be notified
 when the header contains invalid characters and the mail is passed to the
 recipient.

 If you would like to pass messages (spam,virus,bad header) to
 recipients you should use $final_bad_header_destiny = D_PASS (for bad
 header) or @bad_header_lovers_maps.

 With $final_bad_header_destiny you can define if amavisd should reject
 the message, let the message pass through or else.

I already have $final_bad_header_destiny = D_PASS.


 The second problem is that the messages with bad headers are getting the
 To address rewritten to tdiehl+b...@mydomain.com. This part is what I expect
 since I have plus addressing turned on. What I do not understand is, with
 softbounce turned on in postfix, I am getting messages stuck in the mailq
 that say
 Aug  5 15:33:55 vfoggy postfix/pipe[12086]: 7EEBAF0807:
 to=tdiehl+b...@mydomain.com, relay=dovecot, delay=94946,
 delays=94946/0.48/0/0.02, dsn=4.1.1, status=SOFTBOUNCE (user unknown)

 I have an alias that says to deliver mail for tdiehl+badh to my mailbox, so
 I do not understand why it says user unknown.

 It seems that this is dovecot related because the lda couldn't find
 the user (relay=dovecot). Have you modified local_transport or
 virtual_transport in main.cf? Maybe the lda looks in the wrong alias
 database?

I have virtual_transport =  dovecot. I guess I need to look harder at the mysql
queries. Most mail gets delivered correctly it is only messages that amavisd
says have bad headers. I would think that if I had a problem with the dovecot
queries, I would have more problems getting mail delivered properly. Maybe I
need to ask about the user unknown problem on the dovecot list.


 If I look at the header of one of the messages stuck in the queue I see the
 following:
 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: MIME-Version

 The system is running postfix 2.3.3, dovecot 1.2.2 using the dovecot lda,
 amavisd-new 2.6.2 and the latest svn version of postfix admin. Quarantine
 is in mysql and the users are stored in mysql and managed by postfixadmin.

 Does anyone have any idea what I am doing wrong or how to troubleshoot this
 problem?

 You could try to disable this check with

   $allowed_header_tests{'multiple'} = 0;

I will give that a try. It will take some time to determine if that helps.


 At the moment I've no idea where this duplicate entry come from...
 This happens only when when the mail gets bounced (status=SOFTBOUNCE)?

Not really. If I turn off SOFTBOUNCE then the messages get bounced to the
postmaster which happens to be me. I turned SOFTBOUNCE on in the hope that
I would get more information, be able to correct the problem and deliver the
messages properly.

Thanks for the information.

Regards,

-- 
Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Question about @local_domains_maps

2007-07-26 Thread Tom Diehl
Hi,

I am in the process of setting up amavisd-new-2.5.2  with postfix-2.3.2-1.
I would appreciate it if someone could tell me exactly what the 
@local_domains_maps parameter really does. The docs seem to indicate that
all it does is determine wether or not amavis should add spam headers.
Am I understanding this correctly?

What is the reason for not simply adding spam headers to all of the mail,
even mail that is being relayed outside of the local domain?

Regards,

-- 
Tom Diehl   [EMAIL PROTECTED]   Spamtrap address [EMAIL 
PROTECTED]

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
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] Re: Alternatives to Maia?

2005-12-31 Thread Tom Diehl
On Sat, 31 Dec 2005, Peter wrote:

 
 --- Danita Zanre [EMAIL PROTECTED] wrote:
 
  I've been testing Maia Mailguard with Amavisd, and while it is pretty
  cool [...]
 
  So, I'm looking for some possible alternatives.  [...]
 
 I did the search myself and could not find anything.  Personally, I found
 Maia not worth the trouble/resources.

That makes 3 of us. Currently I am having fairly good results with a
combination of greylisting (postgrey) and a couple of rbl's. Grey listing is
way more effective than I ever dreamed. If I wanted/needed to add something else
I would look at dspam. I have been told that dspam is easier on resources than
SA/Maia and does a good job at stopping spam. In addition it adds a serial
number to each message so that if you want to train dspam you can forward a
message back to dspam and it knows how to do the right thing with the message.
Take this with a grain of salt since I have not actually tried it. It is still
on my todo list.

Regards,

Tom Diehl   [EMAIL PROTECTED]   Spamtrap address [EMAIL 
PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
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] Re: amavis-stats 0.1.15

2005-10-09 Thread Tom Diehl
On Sun, 9 Oct 2005, Elijah Savage wrote:

 Dale Walsh wrote:
 
 
  On Oct 9, 2005, at 11:23 , Elijah Savage wrote:
 
  Dale Walsh wrote:
 
 
  I've done a major rewrite again, daemonized the application,  
  cleaned  up the web interface.
 
  I realize that I just added the auto cron create/delete routines  
  but  since some platforms were having issues with the cron jobs I  
  decided  to go a different route.
 
  It's configurable and customizable, I currently include startup  
  items  for Darwin 7.x and 8.x (Mac OSX 10.3.x and 10.4.x), if you  
  create  something for your platform, please pass it along so it  can 
  be  integrated into the build process making it easier for  others.
 
  Also, please examine the 'TODO' file, perhaps you can contribute  
  in  some way.
 
 
  You can view it at:
  http://www.daleenterprise.com/amavis-stats
 
  You can download it from:
  http://downloads.topicdesk.com/amavis_stats/amavis- stats-0.1.15.tar.gz
 
  -- Dale
 
 
 
 
 
  Non-authoritative answer:
  www.daleenterprise.com  canonical name = daleenterprise.com.
  Name:   daleenterprise.com
  Address: 67.78.11.229
 
  It says the site can't be found and when I use this ip address I  get 
  taken to some mac osX server page, if I append amavis-stats to  the 
  end of the ip address like a link it comes up. Dale you might  want 
  to look in to this.
 
 
  I just did a dig from Australia:
  [server:~] root# dig www.daleenterprise.com
 
  ;  DiG 9.2.2  www.daleenterprise.com
  ;; global options:  printcmd
  ;; Got answer:
  ;; -HEADER- opcode: QUERY, status: NOERROR, id: 45193
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
 
  ;; QUESTION SECTION:
  ;www.daleenterprise.com.IN  A
 
  ;; ANSWER SECTION:
  www.daleenterprise.com. 300 IN  CNAME   daleenterprise.com.
  daleenterprise.com. 300 IN  A   67.78.11.229
 
  ;; Query time: 405 msec
  ;; SERVER: 203.50.2.71#53(203.50.2.71)
  ;; WHEN: Mon Oct 10 01:56:15 2005
  ;; MSG SIZE  rcvd: 70
 
  [server:~] root#
 
 
 
  Here's from USA:
 
  mustangrestomods:/ root# dig www.daleenterprise.com
 
  ;  DiG 9.2.2  www.daleenterprise.com
  ;; global options:  printcmd
  ;; Got answer:
  ;; -HEADER- opcode: QUERY, status: NOERROR, id: 11970
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 1
 
  ;; QUESTION SECTION:
  ;www.daleenterprise.com.IN  A
 
  ;; ANSWER SECTION:
  www.daleenterprise.com. 136 IN  CNAME   daleenterprise.com.
  daleenterprise.com. 136 IN  A   67.78.11.229
 
  ;; AUTHORITY SECTION:
  daleenterprise.com. 136 IN  NS  dns1.daleenterprise.com.
  daleenterprise.com. 136 IN  NS   
  dns1.macftphttp.serverbox.org.
 
  ;; ADDITIONAL SECTION:
  dns1.macftphttp.serverbox.org. 136 IN   A   67.78.11.227
 
  ;; Query time: 23 msec
  ;; SERVER: 65.32.1.65#53(65.32.1.65)
  ;; WHEN: Sun Oct  9 11:55:33 2005
  ;; MSG SIZE  rcvd: 148
 
  mustangrestomods:/ root#
 
 
  I'd look at your dns servers as a cause of lookup failures.
 
  -- Dale
 
 DNS looks it up fine must be something with firefox. WHen I go there it 
 says page can't be found. So then I take the nslookup address I got and 
 put http://67.78.11.229 this macOSX page comes up. SO then I put 
 http://67.78.11.229/amavis-stats in firefox and it comes right up. H 
 strange.

WORKSFORME here in the US with firefox.

Regards,

Tom Diehl   [EMAIL PROTECTED]   Spamtrap address [EMAIL 
PROTECTED]


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
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/