Page 1 of 1

forwarding/relaying issue?

Posted: Thu Apr 20, 2006 10:34 pm
by davismarques
I am attempting to setup a Scalix server for testing/demo purposes inside my
office and am having what I believe is some kind of forwarding/relaying issue.

We have an existing mail server (mail.domain.com). I have installed
Scalix version 10.0.1 on a fresh Fedora 4 server (www2.domain.com). I am
forwarding my personal email from mail.domain.com to www2.domain.com
using a ".forward" file. I am able to:

+ login to sac and webmail on www2.domain.com
+ send email to users inside and outside our domain from www2.domain.com using
the local sendmail
+ receive email from users inside our domain

I am not able to:

+ receive email from users outside our domain

This is a segment of /var/log/maillog on www2.domain.com that I beleive
summarizes the issue I am experiencing:

Apr 20 15:21:03 www2 sendmail[24045]: k3KML2sF024045: davis@www2.domain.com... User unknown
Apr 20 15:21:03 www2 sendmail[24045]: k3KML2sF024045: from=username@hotmail.com, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Apr 20 15:21:07 www2 sendmail[24048]: k3KML6jL024048: from=username@hotmail.com, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Apr 20 15:21:07 www2 sendmail[24052]: k3KML7Xn024052: from=<username@hotmail.com>, size=1580, class=0, nrcpts=1, msgid=<BAY112-F20A689C780FC44B6007D97F4BA0@phx.gbl>, proto=ESMTP, relay=root@localhost
Apr 20 15:21:07 www2 sendmail[24053]: k3KML7DO024053: from=<username@hotmail.com>, size=1804, class=0, nrcpts=1, msgid=<BAY112-F20A689C780FC44B6007D97F4BA0@phx.gbl>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Apr 20 15:21:07 www2 sendmail[24052]: k3KML7Xn024052: to=<davis@www2.domain.com.domain.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31580, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k3KML7DO024053 Message accepted for delivery)
Apr 20 15:21:07 www2 sendmail[24057]: k3KML7DO024053: to=<davis@www2.domain.com.domain.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=121804, relay=www2.domain.com.domain.com, dsn=5.1.2, stat=Host unknown (Name server: www2.domain.com.domain.com: host not found)
Apr 20 15:21:08 www2 sendmail[24057]: k3KML7DO024053: k3KML8DO024057: DSN: Host unknown (Name server: www2.domain.com.domain.com: host not found)
Apr 20 15:21:09 www2 sendmail[24057]: k3KML8DO024057: to=<username@hotmail.com>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=33041, relay=mx3.hotmail.com. [65.54.244.200], dsn=2.0.0, stat=Sent ( <200604202221.k3KML8DO024057@www2.domain.com> Queued mail for delivery)

The Scalix server (www2.domain.com) receives the message then seems to be trying
to forward it on to www2.domain.com.domain.com. It is apparently mangling the
domain name.

I have reviewed the Scalix config files, logs, and SAC interface and found
nothing to control or indicate what may be going on. In addition, I've scoured
the user forums and have not found a posting for an issue which obviously
relates. I'm stuck!

This is a segment from my /etc/opt/scalix/webmail/swa.properties file:

swa.version=10.0

swa.email.domain=domain.com
swa.email.imapServer=www2.domain.com
swa.email.smtpServer=www2.domain.com
swa.email.userNameIncludesDomain=false

This is a segment from my /var/opt/scalix/sys/smtpd.cfg file:

RELAY accept 127.0.0.1
RELAY accept .domain.com
RELAY Log_Reject ALL

Email is unfortunately not my area of expertese. I know I've done something along the way to mess this up but just can't figure out what it is. Any insight you can provide
would be greatly appreciated.

Thanks,


Davis Marques

PS: you've done a wickedly good job with this application. I am wholly impressed.

Posted: Thu Apr 20, 2006 11:45 pm
by leigh
Sounds like a DNS issue rather than a problem with scalix.
My best guess is that you've left a "." off the end of either the MX record or the A record it resolves to.
If you don't mind giving us the domain, someone can check your DNS entries.
Alternatively, head on over to http://www.dnsreport.com or it's sister site http://www.dnsstuff.com and check it out. There's a heap of diagnostic tools there you can use to narrow it down.

DNS issue

Posted: Fri Apr 21, 2006 1:35 pm
by davismarques
hi Leigh;

The domain is mccalldesign.com

I have checked our DNS record using both dnsreport and dnsstuff tools as you had suggested. Both sites report that the records appear correct.

Davis

Posted: Fri Apr 21, 2006 2:51 pm
by AussieOwner
Are you sure that you have an alias (internet address) setup for davis@www2.domain.com?

Please execute the command: omshowu -n "Davis Marques/<yourmailnode>" (the double quotes are inclusive to the cmd)

Verify that there *is* an explicit internet address of "davis@www2.domain.com" for your account.

In the email "davis@www2.domain.com" you should note that the domain for this email address is "www2.domain.com". Thus when the outbound MTA goes to do a lookup, it will (first) do an type=MX lookup of www2.domain.com. Of course it will fail to find an MX record for this because it is a hostname. Next, it will try and just do a simple name resolution on www2.domain.com. This should work. Thus the outbound mta will just connect directly to the ip address of the hostname to deliver the email.

All in all, you must have an alias confiugre for davis@www2.domain.com.