SOLVED ?? - sendmail and FQDN

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

mrezzonico
Posts: 133
Joined: Thu Aug 16, 2007 8:20 am

SOLVED ?? - sendmail and FQDN

Postby mrezzonico » Tue Dec 18, 2007 6:31 am

Hi all,

I have installed a server in my internal network.

The FQDN is lxdms.company.ch

I have created the following user in Scalix:
user1@company.ch

If I log into the server and I send an email with the following command:
date | sendmail -v user1@company.ch
All is ok and the message is displayed in the SWA.

The problem is that emails arrives in the DMZ and are then redirected to my internal network.
The email arrives in the Scalix-Server with the following address:
user1@lxdms.company.ch

... and sendmail says: <user1@lxdms.company.ch>... User unknown

If I create the following user in Scalix:
user1@lxdms.company.ch
... then the previous sendmail command works. But the problem is that the correct email of my user is user1@company.ch

How can I solve this problem ?

Thanks for any help. Miche
Last edited by mrezzonico on Tue Dec 18, 2007 9:43 am, edited 1 time in total.

mrezzonico
Posts: 133
Joined: Thu Aug 16, 2007 8:20 am

SOLVED ?? - Re: sendmail and FQDN

Postby mrezzonico » Tue Dec 18, 2007 9:40 am

Hi have verified that if for each user I define an alias this solve the problem.

Example:
user1@company.ch
user1@lxdms.company.ch

Can someone confirm me that this is the correct solution ?

Thanks in advance. Miche

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Dec 18, 2007 10:12 am

That is a solution. What you need to find out, however, is where the address rewrite happens, and why. I know sendmail sometimes does this if there's an A/MX/CNAME mismatch. But it should work in the short term, at least.

mrezzonico
Posts: 133
Joined: Thu Aug 16, 2007 8:20 am

Postby mrezzonico » Tue Dec 18, 2007 10:24 am

Hi Valerion,

the rewrite is done in the DMZ.
To forward emails from the DMZ to the internal network I use "virtusertable".
Example:

user1@company.ch user1@lxdms.company.ch

Perhaps there is a better solution.
If someone can help me ...

Thanks. Michelangelo

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Dec 18, 2007 10:36 am

Rather use mailertable. In your mailertable put

Code: Select all

company.ch<TAB>esmtp:[scalix.company.ch]
.company.ch<TAB>esmtp:[scalix.company.ch]


The [] will prevent MX lookups, but isn't needed.

Or you can set the Scalix server as a smarthost in sendmail as well, then all emails will go there by default.

mrezzonico
Posts: 133
Joined: Thu Aug 16, 2007 8:20 am

Postby mrezzonico » Tue Dec 18, 2007 11:04 am

Hi Valerion,

thanks a lot for your help.

Regards. Miche


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron