[vchkpw] Mails delivered by maildirsmtp bounce with looping error after upgrade from 5.4.9 to 5.4.27

2009-04-23 Thread Koustubha Kale

Hi all,
First message to this list.

We are running a setup in which a central server receives and sends mails for users sitting at 
multiple branches. Branches each have a server which downloads mails by fetchmail and uploads mails 
for users within our domains but sitting at other branches with maildirsmtp. Among different 
business units we have 6 domains configured on the central server.


The central server is running qmail+vpopmail+qmail-scanner+spamassassin+clamav. The branch servers 
have qmail with local user accounts with courier imap.


The setup has been running well with vpopmail 5.4.9 for past few years. Due to very heavy load on 
qmail-scanner we decided to implement John Simpson's validrcptto.cdb to filter out invalid 
recipients before messages hit qmail-scanner. As part of this we upgraded vpopmail to 5.4.27 in 
order to get the onchange functionality. The validrcptto mechanism now works perfectly.


Now we can receive all mail from outside world ok, but any mail delivered to the central server with 
maildirsmtp from the branches bounces with mail is looping error. This must be because of the 
Delivered-To: header present in the message which was inserted by the branch server qmail while 
delivering the message to alias for onward delivery to the central server by means of maildirsmtp.


What I would like to know is what changed between 5.4.9 to 5.4.27 to cause this. And how can I get 
this working in 5.4.27?


Regards
Koustubha Kale

!DSPAM:49f05b0b32681232389314!



Re: [vchkpw] Mails delivered by maildirsmtp bounce with looping error after upgrade from 5.4.9 to 5.4.27

2009-04-23 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Koustubha Kale wrote:
 We are running a setup in which a central server receives and sends
 mails for users sitting at multiple branches. Branches each have a
 server which downloads mails by fetchmail and uploads mails for users
 within our domains but sitting at other branches with maildirsmtp. Among
 different business units we have 6 domains configured on the central
 server.

First, I have to say, this is one of the more... creative... ways I've
seen a cluster built.

 Now we can receive all mail from outside world ok, but any mail
 delivered to the central server with maildirsmtp from the branches
 bounces with mail is looping error. This must be because of the
 Delivered-To: header present in the message which was inserted by the
 branch server qmail while delivering the message to alias for onward
 delivery to the central server by means of maildirsmtp.

Well, as I indicated above, your system is in no way a normal cluster.
Because of this, and because of the sparse information provided, it's
very difficult to determine what the problem might be.

 What I would like to know is what changed between 5.4.9 to 5.4.27 to
 cause this. And how can I get this working in 5.4.27?

Well, technically you can look at the ChangeLog, but I'm not sure that
will help your particular situation.

If you put back the vdelivermail binary from 5.4.9, does it seem to
'work' again?  More than likely, there was a bug fixed in the older
version that allowed your odd system of clustering to work, whereas now,
it's doing the correct checks and balances.

Again, this is really only guess.  I'd try putting your old vdelivermail
binary in place and see if that resolves your issue.

- --
/*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknwdicACgkQ6QgvSNlBT3C3KACgn92Emt0YAKH0cykPxIJchc5s
CAUAn31DJjFbT6vb9zHMJg37EJ3T5yZk
=psqx
-END PGP SIGNATURE-


Re: [vchkpw] Mails delivered by maildirsmtp bounce with looping error after upgrade from 5.4.9 to 5.4.27

2009-04-23 Thread Tren Blackburn
Sorry to top post, but what options did you configure 5.4.9 with and what did 
you configure 5.4.27 with? How do you determine what messages go to which 
branch? Via smtproutes? Forwards? Mx records? IP over Avian Carrier (IPoAC) ;)

Regards,

Tren

- Original Message -
From: Koustubha Kale kmk...@gmail.com
To: vchkpw@inter7.com vchkpw@inter7.com
Sent: Thu Apr 23 22:22:18 2009
Subject: Re: [vchkpw] Mails delivered by maildirsmtp bounce with looping error  
after upgrade  from 5.4.9 to 5.4.27


 Koustubha Kale wrote:
 The setup has been running well with vpopmail 5.4.9 for past few years.
 Due to very heavy load on qmail-scanner we decided to implement John
 Simpson's validrcptto.cdb to filter out invalid recipients before
 messages hit qmail-scanner. As part of this we upgraded vpopmail to
 5.4.27 in order to get the onchange functionality. The validrcptto
 mechanism now works perfectly.
 
 After re-reading this, it may not be vpopmail's vdelivermail process
 rejecting the message.  It may be a qmail process.  Just something
 to think about.


No, because just reverting back to vpopmail 5.4.9 solves the issue without 
touching qmail in any 
way. Its the combination of maildirsmtp and vpopmail 5.4.27 thats causing the 
trouble. Everything 
else is working fine.

regards
Koustubha Kale






!DSPAM:49f14dc732688149620407!


Re: [vchkpw] Mails delivered by maildirsmtp bounce with looping error after upgrade from 5.4.9 to 5.4.27

2009-04-23 Thread Koustubha Kale

Manvendra Bhangui wrote:

On Thu, 2009-04-23 at 17:41 +0530, Koustubha Kale wrote:
Now we can receive all mail from outside world ok, but any mail delivered to the central server with 
maildirsmtp from the branches bounces with mail is looping error. This must be because of the 
Delivered-To: header present in the message which was inserted by the branch server qmail while 
delivering the message to alias for onward delivery to the central server by means of maildirsmtp.


What I would like to know is what changed between 5.4.9 to 5.4.27 to cause this. And how can I get 
this working in 5.4.27?



Can you show the full headers from one mail from the Maildir on the
central server.
maildirsmtp removes the Delivered-To header from the mail before sending
it to the destination host by SMTP.
By any chance are there two Delivered-To: headers in your mail?



here it is. I have obfuscated user, domain names  IP's.



- Original Message - From: mailer-dae...@hub.domain1.com
To: sen...@branch1.domain2.com
Sent: Wednesday, April 22, 2009 10:42 AM
Subject: failure notice


 Hi. This is the qmail-send program at hub.domain1.com.
 I'm afraid I wasn't able to deliver your message to the following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.

 rc...@branch2.domain1.com:
 mail is looping

 --- Below this line is a copy of the message.

 Return-Path: sen...@branch1.domain2.com
 Received: (qmail 25030 invoked by uid 511); 22 Apr 2009 10:42:33 +0530
 Received: from (branch1 ip) by hub.domain1.com (envelope-from sen...@branch1.domain2.com, uid 
502) with qmail-scanner-1.25-st-qms

 (spamassassin: 3.2.5. perlscan: 1.25-st-qms.
 Clear:RC:0(59.163.33.110):SA:0(3.2/6.2):.
 Processed in 5.374153 secs); 22 Apr 2009 05:12:33 -
 X-Spam-Status: No, hits=3.2 required=6.2
 X-Spam-Level: +++
 X-Spam-Report: SA TESTS
  1.0 EXTRA_MPART_TYPE   Header has extraneous Content-type:...type= entry
  0.0 HTML_MESSAGE   BODY: HTML included in message
  0.0 T_TVD_FW_GRAPHIC_ID1   BODY: T_TVD_FW_GRAPHIC_ID1
  0.8 HTML_TITLE_SUBJ_DIFF   HTML_TITLE_SUBJ_DIFF
  1.3 MISSING_SUBJECTMissing Subject: header
  0.1 RDNS_NONE  Delivered to trusted network by a host with no 
rDNS
 X-Antivirus-MYDOMAIN-Mail-From: sen...@branch1.domain2.com via hub.domain1.com
 X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:0(59.163.33.110):SA:0(3.2/6.2):. Processed in 
5.374153 secs Process 24978)

 Received: from unknown (HELO branch1.domain2.com) ((branch1 ip))
  by hub.domain1.com with SMTP; 22 Apr 2009 10:42:28 +0530
 Received-SPF: none (hub.domain1.com: domain at branch1.domain2.com does not designate permitted 
sender hosts)

 Received: (qmail 13562 invoked by alias); 22 Apr 2009 10:39:01 +0530
 Delivered-To: rc...@branch2.domain1.com
 Received: (qmail 13558 invoked by uid 507); 22 Apr 2009 10:39:01 +0530
 Received: from unknown (HELO DESKTOP-11) (192.168.4.158)
  by branch1.domain2.com with SMTP; 22 Apr 2009 10:39:01 +0530
 Message-ID: 00df01c9c308$5b102830$9e04a...@skyworldair.com
 From: sender sen...@branch1.domain2.com
 To: rcpt1 rc...@branch2.domain1.com,
 rc...@branch2.domain1.com
 Subject:
 Date: Wed, 22 Apr 2009 10:38:21 +0530
 MIME-Version: 1.0
 Content-Type: multipart/related;
 boundary==_NextPart_000_00DB_01C9C336.74B55160;
 type=multipart/alternative
 X-Priority: 3
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook Express 6.00.2900.2180
 Disposition-Notification-To: sender sen...@branch1.domain2.com
 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

 This is a multi-part message in MIME format.

 --=_NextPart_000_00DB_01C9C336.74B55160
 Content-Type: multipart/alternative;
 boundary==_NextPart_001_00DC_01C9C336.74B55160


 --=_NextPart_001_00DC_01C9C336.74B55160
 Content-Type: text/plain;
 charset=Windows-1252
 Content-Transfer-Encoding: quoted-printable

 Nature
snip---

!DSPAM:49f1546132687830311231!