[Deploying Sakai] [Building Sakai] Making Email Archive work behind load balancer

Leon Kolchinsky lkolchin at gmail.com
Wed Sep 7 20:52:20 PDT 2011


Hi,

Here is more info I can provide:

1) When I send e-mail to "Email Archive" address, I'm getting this back -


The attached message was not delivered.

Message details:
 Subject: Test mail 2-08
 Sent date: Thu Sep 08 13:39:08 EST 2011
 To: newtest at vera068.its.mydomain.com
 Size (in bytes): 227

Attached details:
 Return-Path: <leon.kolchinsky at mydomain.com>
Received: from localhost.localdomain ([127.0.0.1])
          by vera068.its.mydomain.com (JAMES SMTP Server 2.1.3) with SMTP ID
954
          for <newtest at vera068.its.mydomain.com>;
          Thu, 8 Sep 2011 13:41:35 +1000 (EST)
Received: from stan.its.mydomain.com (stan.its.mydomain.com[130.194.13.165])
 by vera068.its.mydomain.com (Postfix) with ESMTP id 4F05B136814
for <newtest at vera068.its.mydomain.com>; Thu,  8 Sep 2011 13:41:35 +1000
(EST)
Received: from idle.its.mydomain.com ([130.194.13.84])
 by stan.its.mydomain.com
 (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005))
 with ESMTP id <0LR60041JQ9ALY20 at stan.its.mydomain.com> for
 newtest at vera068.its.mydomain.com; Thu, 08 Sep 2011 13:41:34 +1000 (EST)
Received: from idle.its.mydomain.com (localhost.localdomain [127.0.0.1])
by localhost (Postfix) with SMTP id BF12910094 for
 <newtest at vera068.its.mydomain.com>; Thu, 08 Sep 2011 13:41:34 +1000 (EST)
Received: from na3sys009aog125.obsmtp.com
 (na3sys009aog125.obsmtp.com [74.125.149.153])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested) by idle.its.mydomain.com (Postfix)
 with ESMTPS id 70C621008E for <newtest at vera068.its.mydomain.com>; Thu,
 08 Sep 2011 13:41:33 +1000 (EST)
Received: from mail-fx0-f54.google.com ([209.85.161.54]) (using TLSv1)
 by na3sys009aob125.postini.com ([74.125.148.12])
 with SMTP ID DSNKTmg43TUkXAuxcOUaSSZtRitN3N3eZzDq at postini.com; Wed,
 07 Sep 2011 20:41:33 -0700 (PDT)
Received: by mail-fx0-f54.google.com with SMTP id 4so1543523fxe.13 for
 <newtest at vera068.its.mydomain.com>; Wed, 07 Sep 2011 20:39:09 -0700 (PDT)
Received: by 10.223.62.134 with SMTP id x6mr346418fah.39.1315453148991; Wed,
 07 Sep 2011 20:39:08 -0700 (PDT)
Received: by 10.223.115.139 with HTTP; Wed, 07 Sep 2011 20:39:08 -0700 (PDT)
Date: Thu, 08 Sep 2011 13:39:08 +1000
From: Leon Kolchinsky <leon.kolchinsky at mydomain.com>
Subject: Test mail 2-08
To: newtest at vera068.its.mydomain.com
Message-id: <CAAPVj_NuT+pDC2bh2UgUn=
0kD7420OMvsCWcZPOZ39QP1E+kGg at mail.gmail.com>
MIME-version: 1.0
Content-type: multipart/alternative; boundary=001517402bfaaa113604ac65cd3c
X-PMX-Authenticated: NONE
X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379,
 Antispam-Data: 2011.9.8.33014
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%,
 Report=' BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0,
 BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_200_299 0,
 BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CTYPE_MULTIPART_NO_QUOTE 0,
 FROM_EDU_TLD 0, NO_URI_FOUND 0, SMALL_BODY 0, WEBMAIL_SOURCE 0, __CT 0,
 __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0,
 __HAS_MSGID 0, __MIME_HTML 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED
0,
 __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __TO_MALFORMED_2 0,
 __TO_NO_NAME 0'

--001517402bfaaa113604ac65cd3c
Content-Type: text/plain; charset=ISO-8859-1

Please ignore.

--001517402bfaaa113604ac65cd3c
Content-Type: text/html; charset=ISO-8859-1

Please ignore.

--001517402bfaaa113604ac65cd3c--

2) In maillog I see (/var/log/maillog):

Sep  8 13:41:35 vera068 postfix/smtpd[10294]: connect from
stan.its.mydomain.com[130.194.13.165]
Sep  8 13:41:35 vera068 postfix/smtpd[10294]: 4F05B136814: client=
stan.its.mydomain.com[130.194.13.165]
Sep  8 13:41:35 vera068 postfix/cleanup[10297]: 4F05B136814:
message-id=<CAAPVj_NuT+pDC2bh2UgUn=
0kD7420OMvsCWcZPOZ39QP1E+kGg at mail.gmail.com>
Sep  8 13:41:35 vera068 postfix/qmgr[12973]: 4F05B136814: from=<
leon.kolchinsky at mydomain.com>, size=2878, nrcpt=1 (queue active)
Sep  8 13:41:35 vera068 postfix/smtpd[10294]: disconnect from
stan.its.mydomain.com[130.194.13.165]
Sep  8 13:41:37 vera068 postfix/smtp[10298]: 4F05B136814: to=<
newtest at vera068.its.mydomain.com>, relay=127.0.0.1[127.0.0.1]:8025,
delay=2.1, delays=0.11/0.08/0.25/1.6, dsn=2.0.0, status=sent (250 Message
received)
Sep  8 13:41:37 vera068 postfix/qmgr[12973]: 4F05B136814: removed

3) James log shows:
# cat /srv/tomcat/sakai/logs/james-2011-09-08.log
08/09/11 13:41:35 INFO  smtpserver: Connection from localhost.localdomain
(127.0.0.1)
08/09/11 13:41:37 INFO  smtpserver: Successfully spooled mail from
leon.kolchinsky at mydomain.com for [newtest at vera068.its.mydomain.com]

Any idea what's wrong here?
Why James unable to deliver e-mail to "Email Archive"?

Cheers,
Leon Kolchinsky



On Thu, Sep 8, 2011 at 01:56, Sam Ottenhoff <ottenhoff at longsight.com> wrote:

>
>> We have 2 Sakai 2.6.2 servers installed behind hardware load-balancer.
>> Both of those servers connect to the same DB and have separate serverName
>> and serverID.
>>
>
>
> More common would be separate serverID with an identical serverName.  The
> only one of the load-balanced servers would be responsible for processing
> incoming mail.
>
>
>
>> So on each of them "Email Archive" address for site appears as
>> sitename at serverName.mydomain.com
>>
>> When I send e-mail to "Email Archive" address that I see on one of those
>> servers I can see that it's received by James (forwarded by postfix to
>> James):
>>
>> Sep  7 12:22:31 vera067 postfix/smtpd[24789]: connect from
>> cartman.mydomain.com[130.194.13.166]
>> Sep  7 12:22:32 vera067 postfix/smtpd[24789]: 81E8F5F8E8: client=
>> cartman.mydomain.com[130.194.13.166]
>> Sep  7 12:22:32 vera067 postfix/cleanup[24792]: 81E8F5F8E8:
>> message-id=<CACMGXTc-n2RvYjKHXcYC9gKKazaH-vPsFRUDtOawG=
>> ycrBtPXg at mail.gmail.com>
>> Sep  7 12:22:32 vera067 postfix/qmgr[16731]: 81E8F5F8E8: from=<
>> lkolchin at gmail.com>, size=3369, nrcpt=1 (queue active)
>> Sep  7 12:22:32 vera067 postfix/smtpd[24789]: disconnect from
>> cartman.mydomain.com[130.194.13.166]
>> Sep  7 12:22:34 vera067 postfix/smtp[24793]: 81E8F5F8E8: to=<
>> newtest at vera067.mydomain.com>, relay=127.0.0.1[127.0.0.1]:8025,
>> delay=2.6, delays=0.41/0.42/0.5/1.3, dsn=2.0.0, status=sent (250 Message
>> received)
>> Sep  7 12:22:34 vera067 postfix/qmgr[16731]: 81E8F5F8E8: removed
>>
>> The problem is that I can't see this e-amil in "Email Archive" section and
>> it's not being sent to site participants.
>> All other e-mails (Like e-mail to the newly added users) going out fine
>> from those servers.
>>
>> Any idea what's going wrong here and how to fix it?
>>
>
>
> You should have additional James logs in
> $CATALINA_HOME/sakai/logs/james-2011-09-07.log
>
> --Sam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20110908/f6479529/attachment.html 


More information about the production mailing list