Page 1 of 1

Resources 550 User Unknown

Posted: Tue Aug 28, 2007 8:04 pm
by mattgalloway
I am brand new to Scalix and have been plying with it for a couple of days. Today I created a resource for the first time. I scheduled an appointment and included a resource and the calendar updated but the email bounced with the following error:

Code: Select all

The original message was received at Tue, 28 Aug 2007 18:33:54 -0500
from root@localhost

   ----- The following addresses had permanent fatal errors -----
<testresource@gallowayfore.com>
    (reason: 550 5.1.1 <testresource@gallowayfore.com>... User unknown)
    (expanded from: <testresource@gallowayfore.com>)

   ----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <testresource@gallowayfore.com>... User unknown
550 5.1.1 <testresource@gallowayfore.com>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)


I added another resource with the same results. All of my user's email addresses seem to work fine. I get the same results when I try to email the resource directly. I also tried this:

#sendmail -bv testresource@gallowayfore.com
testresource@gallowayfore.com... User unknown

Any ideas?

Thanks,

Matt

(I'm using FC5, Scalix Platform 11.1.0.50, Single Server, Comunity)

Posted: Wed Aug 29, 2007 1:28 am
by mattgalloway
I'm not sure exactly how all of this works but I'm guessing that somehow sendmail is asking LDAP if the email address is valid. So, I'm guessing that for some reason the resources ar not being picked up n the query. So I've been trying to figure out ldap/slapd logging but I can't get it to log - or I don't know where it;s logging. At any rate I thought that the LDAP entry itself might be of interest in solving this problem:

# omldapsearch "cn=testresource"
cn=testresource, o=Scalix
cn=testresource
l=Tulsa
st=OK
c=US
objectClass=top
objectClass=scalixResource
surname=testresource
postalCode=74137
mhsORAddresses=S=testresource/OU1=mail/CN=testresource
omInternetAddr="testresource" <testresource@gallowayfore.com>
mail=testresource@gallowayfore.com
rfc822Mailbox=testresource@gallowayfore.com
omAddress=testresource /mail/CN=testresource
omMailnode=mail
omCn=testresource
omEmplOrg=Galloway-Fore Laboratories
omGlobalUniqueId=172000005bf11d64-02.1.861.291
omLocalUniqueId=641
omUlClass=Full
omResourceFlags=Accept
omResourceFlags=AllowRecurring
omResourceFlags=AllowConflicting

Both the mail and rfc822Mailbox match the "unknown user" email address.

Posted: Wed Aug 29, 2007 2:12 am
by mattgalloway
I figured out some of the logging and found this...

Code: Select all

REPORT                         LDAP Daemon   (LDAP Engine   ) 08.29.07 00:50:27
[OM 16093] Performing DB get with following attributes:
KeyName:  168
KeyValue: FC@GALLOWAYFORE.COM
Filter:    ( (1004=* & !1003=mail.gallowayfore.com ) | ( ( ( ( ( (1100=scalixPerson ) ) | ( (1=* ) & (422= ) & (620= ) ) ) & (433=* ) ) | ( ( (1100=scalixDistributionList ) ) | ( (1=* ) & (422=* ) ) ) | ( (1=+bb ) | (51=+bb ) ) ) & (168=fc@gallowayfore.com ) ) )


I'm not sure exactly what this does but it looks like it only validates scalixPerson and scalixDistributionList objects and NOT scalixResource objects.

Posted: Wed Aug 29, 2007 3:25 pm
by mattgalloway
I sure would appreciate anyone making any suggestion here.

Okay, I had another thought, I sent an email from my Scalix user (matt@gallowayfore.com) to one of my resources (fc@gallowayfore.com) and I got a bounce back as described above. I then tried to send an email to a user that actually didn't exists (in other words that was truly "User unknown"). I also got a bounce back for User unknown but it is in a different format.

Here is the message I got from a actual unknown user:

Code: Select all


Date: Wed, 29 Aug 2007 13:06:10 -0500
From: MAIL-SYSTEM <MAIL-SYSTEM>
To: Matt Galloway <matt@gallowayfore.com>
In-Reply-To: <22347474.1451188410769436.JavaMail.root@mail.gallowayfore.com>
Subject: Returned Mail: Message Could Not Be Delivered
MIME-Version: 1.0
Message could not be delivered to the following recipient:

    jkals@gallowayfore.com

    because: Recipient name not found at destination


Supplementary Information:


    550 5.1.1 <jkals@gallowayfore.com>... User unknown


As you can see, this message appears to be coming from the Scalix MAIL-SYSTEM where the other message appears to be from sendmail. Here's the header when the bounce is for a valid resource[i]:

Code: Select all

Return-Path: <MAILER-DAEMON@mail.gallowayfore.com>
Received: from mail.gallowayfore.com (localhost.localdomain [127.0.0.1])

   by mail.gallowayfore.com (8.13.8/8.13.5) with ESMTP id l7TI3hhq008454

   for <matt@gallowayfore.com>; Wed, 29 Aug 2007 13:03:44 -0500
Received: from localhost (localhost)

   by mail.gallowayfore.com (8.13.8/8.13.8/Submit) id l7TI3hMa008453;

   Wed, 29 Aug 2007 13:03:44 -0500
Date: Wed, 29 Aug 2007 13:03:44 -0500
From: Mail Delivery Subsystem <MAILER-DAEMON@mail.gallowayfore.com>
To: Matt Galloway <matt@gallowayfore.com>
Message-ID: <200708291803.l7TI3hMa008453@mail.gallowayfore.com>
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)


Once I discovered this difference, I began looking at /var/logs/maillog. It looks like when I mail something to a resource ("fc@gallowayfore.com" is the email address for a resource), it is handed from Scalix to sendmail and then when sendmail tries to deliver it back to Scalix the "User unknown" error occurs at which point sendmail creates the bounce message. This can be seen here:

Code: Select all

Aug 29 13:03:43 mail sendmail[8453]: l7TI3hMZ008453: from=<matt@gallowayfore.com>, size=1408, class=0, nrcpts=1, msgid=<20408668.1361188410623718.JavaMail.root@mail.gallowayfore.com>, proto=ESMTP, relay=root@localhost
Aug 29 13:03:44 mail sendmail[8454]: l7TI3hho008454: <fc@gallowayfore.com>... User unknown
Aug 29 13:03:44 mail sendmail[8453]: l7TI3hMZ008453: to=<fc@gallowayfore.com>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31408, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Aug 29 13:03:44 mail sendmail[8454]: l7TI3hho008454: from=<matt@gallowayfore.com>, size=1408, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 29 13:03:44 mail sendmail[8453]: l7TI3hMZ008453: l7TI3hMa008453: DSN: User unknown
Aug 29 13:03:44 mail sendmail[8454]: l7TI3hhq008454: from=<>, size=3340, class=0, nrcpts=1, msgid=<200708291803.l7TI3hMa008453@mail.gallowayfore.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 29 13:03:44 mail sendmail[8453]: l7TI3hMa008453: to=<matt@gallowayfore.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32432, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l7TI3hhq008454 Message accepted for delivery)
Aug 29 13:03:44 mail sendmail[8462]: l7TI3hhq008454: to=<matt@gallowayfore.com>, delay=00:00:00, xdelay=00:00:00, mailer=scalix_mime, pri=123340, relay=mail, dsn=2.0.0, stat=Sent (Ok)


When I send mail to a real invalid user(there is no "jkals@gallowayfore.com" in the system), it looks like sendmail doesn't even accept the message which is why, I'm guessing, Scalix (instead of sendmail) generates the bounce email. Here' the maillog:

Code: Select all

Aug 29 13:06:10 mail sendmail[8607]: l7TI69dU008607: <jkals@gallowayfore.com>... User unknown
Aug 29 13:06:10 mail sendmail[8607]: l7TI69dU008607: from=<matt@gallowayfore.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]


Please, does anyone have any suggestions at all?

Thanks in advance.

Posted: Thu Aug 30, 2007 12:06 pm
by mattgalloway
Alrighty... I found the problem...kind of.

I started trying to configure SpamAssassin and then backed out the changes in sendmail.cf in trying to debug a different problem. Inadvertently I left the SMTPFILTER=TRUE in the ~/sys/smtpd.cfg file. This caused the problem that I described above.

Removing this line seems to fix this problem.

So then I tried again to configure SpamAssassin and the problem resurfaced. So, it seems that once email leaves the Scalix Server and goes to sendmail for filtering, it can't get back into Scalix if they are addressed to a resource. I beleive the root cause to be that sendmail only queires LDAP for users and distribution lists but not Resource when determining whether users exists.

...but I still don't know how to fix it. ANY IDEAS WELCOME!

Posted: Thu Aug 30, 2007 9:02 pm
by mattgalloway
I continued this issue in a different forum and solved this mystery. Read about it here http://www.scalix.com/forums/viewtopic.php?p=39299.