Forwarding from external Domains

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

capser

Forwarding from external Domains

Postby capser » Tue Feb 12, 2008 8:50 am

Hello everybody

i have a little question. We habe e Scalix running und SLES 10 an everything works fine. The Problem now we have is, that we have another new Mailserver in our LAN but we have only one externel IP.
So the Port 25 is forwarded to our Scalix Mailserver. Now we want to managed another Domain on the Second Mailserver.
Is there a easy way to forwarded all mails for the new Domain directly to the new Mailserver?

Maybe we can make a entry in the virtusertable or how we can managed this?

thanks for your help[/quote]

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Forwarding from external Domains

Postby les » Tue Feb 12, 2008 10:30 am

capser wrote:Hello everybody

i have a little question. We habe e Scalix running und SLES 10 an everything works fine. The Problem now we have is, that we have another new Mailserver in our LAN but we have only one externel IP.
So the Port 25 is forwarded to our Scalix Mailserver. Now we want to managed another Domain on the Second Mailserver.
Is there a easy way to forwarded all mails for the new Domain directly to the new Mailserver?

Maybe we can make a entry in the virtusertable or how we can managed this?

thanks for your help
[/quote]

assuming you have sendmail configured as a filter for scalix to pass via clamav/spamassassin.....

setup scalix to accept mail for your 2nd domain (/var/opt/scalix/XX/s/sys/smtpd.cfg)

Then configure a /etc/mail/mailertable entry for the 2nd domain sendmail to redirect to the second server. Sendmail will relay happily in this scenario.

restart the scalix smtpd process and sendmail after the changes.
Regards,

Les Stott

capser

Postby capser » Tue Feb 12, 2008 12:24 pm

hm thanks for the Info, but i think i have missconfigured something...

i habe in the smtpd.cfg :

RELAY accept .xyz.com


and in the mailertable :
.xyz.com smtp:[192.168.0.10]


but i got these error in the mail.log on the scalix server :

Feb 12 16:51:52 mail sendmail[16400]: m1CFpopI016377: to=<info@xyz.com>, delay=00:00:02, xdelay=00:00:00, mailer=esmtp, pri=121066, relay=mail.xyz.com. [195.50.164.42], dsn=5.3.5, stat=Local configuration error
Feb 12 17:02:10 mail sendmail[19375]: m1CG27aH019335: to=<info@xyz.com>, delay=00:00:03, xdelay=00:00:00, mailer=esmtp, pri=121009, relay=mail.xyz.com., dsn=5.3.5, stat=Local configuration error

capser

Postby capser » Tue Feb 12, 2008 12:42 pm

Ok seems to be a mx record problem.

Now i have insert the new Domain also in the local-host-name and now i got the following error :

Code: Select all

info@xyz.com... User unknow

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Tue Feb 12, 2008 4:58 pm

capser wrote:Ok seems to be a mx record problem.

Now i have insert the new Domain also in the local-host-name and now i got the following error :

Code: Select all

info@xyz.com... User unknow


you dont want a local-host-name entry unless the scalix server is where that domain actually receives mail. remove that as you are relaying instead.

In the mailertable the format is...

xyz.com esmtp:[192.168.0.10]

not ".xyz.com"


and of course after making those changes you should do a "make -C /etc/mail" and then restart sendmail.
Regards,

Les Stott

capser

Postby capser » Wed Feb 13, 2008 4:15 am

Hello and good morning,

you're right about the local-host-name entry, i removed this and changed the mailertable to

Code: Select all

xyz.com esmtp:[192.168.0.10]


Now it works fine.

Thanks for your help


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 6 guests

cron