Server not accepting Forwarded Email

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

agitar

Server not accepting Forwarded Email

Postby agitar » Mon Feb 28, 2005 2:23 pm

I have an evaluation copy of Scalix running on server sleeves.in.agitar.com. Sleeves is given it's name and it's ipaddress by DHCP, with a static IP through DHCP of 10.250.100.230. This is a fresh copy with little configuration done. I have added myself as a user(Stephen.Hoffmann@sleeves.in.agitar.com - aliased to steve@agitar.com using the Scalix SAC gui)

My normal mail server is itserve.in.agitar.com at 10.250.100.3. I am running qmail with imap.

In order to test out this server, I want to forward mail from itserv to sleeves using the .qmail directory in my home directory. This is how I wrote up my qmail file:

[steve@itserv steve]$ cat .qmail
| /var/qmail/bin/forward steve@sleeves.in.agitar.com
/home/steve/Maildir/


What happens is that mail is forwarded to sleeves, it is delivered into /var/spool/mail/steve and does NOT show up in my Scalix mailbox. There is a user named steve on sleeves. However, when I change the forwarding to

[steve@itserv steve]$ cat .qmail
| /var/qmail/bin/forward Stephen.Hoffmann@sleeves.in.agitar.com
/home/steve/Maildir/

I get this:

The original message was received at Thu, 24 Feb 2005 11:53:58 -0800
from root@localhost

----- The following addresses had permanent fatal errors -----
<Stephen.Hoffmann@sleeves.in.agitar.com>
(reason: 550 5.1.1 <Stephen.Hoffmann@sleeves.in.agitar.com>... User unknown)
(expanded from: <Stephen.Hoffmann@sleeves.in.agitar.com>)

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


Final-Recipient: RFC822; Stephen.Hoffmann@sleeves.in.agitar.com
Action: failed
Status: 5.1.1
Remote-MTA: DNS; [127.0.0.1]
Diagnostic-Code: SMTP; 550 5.1.1 <Stephen.Hoffmann@sleeves.in.agitar.com>... User unknown
Last-Attempt-Date: Thu, 24 Feb 2005 16:54:28 -0800


I get the idea that this is sendmail running and not SCALIX. So I went onto sleeves and did /etc/init.d/sendmail stop which stopped sendmail and I restarted the scalix services. This caused email to disappear into thin air, no bounces, and nothing logged on the Scalix side. I telnetted to port 25 on sleeves and found that it answered with SCALIX instead of Sendmail, yet nothing was logged on either server and no mail was recieved.

I need help. If I can't get scalix up and running I'm told we have to explore Exchange. There is nothing in the documentation that explains anything about the sendmail part of Scalix.

-Steve

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Mar 01, 2005 7:04 am

The first thing to do is to check that the entry exists in the SYSTEM directory.

Use the command:

Code: Select all

omsearch -e IA=Stephen.Hoffmann@sleeves.in.agitar.com


You don't say what platform you are running on but another thing to look at is the /etc/hosts file to see if your server names are defined on the 127.0.0.1 line. For whatever reason, some distributions think that this is fine but it always causes problems when applications are trying to work out the name of the server. If you do have server names (other than localhost) on the 127.0.0.1 line, move them to another line and enter the correct IP address.

You can also enable auditing for the SMTP Relay to see what's happening to the message.

Code: Select all

omoff -d 0 smtpd
omconfaud -a smtpd 21
omon smtpd


When you next send a message, the details will be logged in ~scalix/logs/audit.

Cheers

Dave[/code]

agitar

Thanks for helping, Dave...

Postby agitar » Tue Mar 01, 2005 3:31 pm

I tried this: [root@sleeves ~]# omshowu -n "Stephen Hoffmann"
Authentication ID: Stephen.Hoffmann@agitar.com
User Name : Stephen W. Hoffmann /CN=Stephen Hoffmann
MailNode : sleeves
Internet Address : "Stephen Hoffmann" <steve@agitar.com>="Stephen Hoffmann" <Stephen.Hoffmann@agitar.com>
System Login : 60535
Password : set
External authentication only: NO
Admin Capabilities : NO
Mailbox Admin Capabilities : NO
Language : C
Virtual Vault : Enabled (default)
Mail Account: Unlocked
Last Signon : 02.28.05 10:16:48
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO

And then I tried your thing with this:

[root@sleeves ~]# omsearch -e IA=stephen.hoffmann@agitar.com
[OM 16954] Entry not in the Directory

And then this:
[root@sleeves ~]# omsearch -e stephen.hoffmann@agitar.com
omsearch: [OM 16073] Unknown attribute specified.

Parameter : Filter
Attribute : stephen.hoffmann@agitar.com


Now, I turned on logging and got this when I sent a mail. No bounce or delivery happened, this is the only thing I found:
[root@sleeves ~]# less ~scalix/logs/audit
SMTP-Relay
time 1109614800 Mon Feb 28 10:20:00 2005 -480
originator <pondhop@gmail.com>
originator-domain itserv.in.agitar.com
recipient Stephen.Hoffmann@sleeves.in.agitar.com
recipient-target U
mta-message-id : <800f9250503011019527cf938@mail.gmail.com>
message-size 2097
hop-count 10
summary-target U

SMTP-Relay
time 1109615845 Mon Feb 28 10:37:25 2005 -480
originator <beth@agitar.com>
originator-domain itserv.in.agitar.com
recipient Stephen.Hoffmann@sleeves.in.agitar.com
recipient-target U
mta-message-id 12670.10001109615845.sleeves.in.agitar.com
message-size 11787
hop-count 4
summary-target U

~


Also, I modified /etc/hosts as you suggested. I'm running on FC3 for this eval, but Red Hat support has been so bad that I'm thinking I'll install this on SUSE. Do you have any suggestions?

-Steve

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Mar 02, 2005 6:00 am

Code: Select all

Internet Address : "Stephen Hoffmann" <steve@agitar.com>="Stephen Hoffmann" <Stephen.Hoffmann@agitar.com>



From the output of omshowu, you do not have an entry in the directory with an address of Stephen.Hoffmann@sleeves.in.agitar.com .

This is why Scalix is passing the message on to sendmail for processing. You need to make sure that the entry in the SYSTEM directory contains all the addresses you are going to be using.

Cheers

Dave

agitar

Thanks! One last thing...

Postby agitar » Wed Mar 02, 2005 1:35 pm

How do I turn off logging? I'm not sure I want to use up tons of disk space like that.

-Steve

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Mar 02, 2005 1:41 pm

The audit logging can be turned off by running:

Code: Select all

omoff -d 0 smtpd
omconfaud -a smtpd 0
omon smtpd


Cheers

Dave


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 25 guests