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/ 

Reply via email to