Page 1 of 1
forward a domain to second server
Posted: Sun Sep 24, 2006 6:38 pm
by mayk
Hi,
i have searched the forums, but could not find a way how to accomplish the following..
I want to tell the scalix CE i'm testing at the moment to forward some domains it is accepting to another server located elsewhere. I gues it must be configured in the smtpd.cfg , but i have no clue on how to do this.
Could someone please give me a pointer ?
Thanx in advance, i'm a n00b trying to learn.
greets,
Mayk
Posted: Mon Sep 25, 2006 2:49 pm
by AussieOwner
So im a bit confused by your post. Let me offer some options and maybe one of these will get you going..
When you say "..forward some domains it is accepting to another server.."
Why not just change the MX record for those domains that you want forwarded? Then instead of going thru Scalix, they will go to the correct location.
Now if what you are trying to do is "forward some of the messages to another domain" then this is different.
Use the "sxaa" utility that is included in the admin_resource_kit of the sw distribution. This utility will allow you to setup autoforwarding for a given Scalix user to another email address on another domain.
Hope this helps. If not, then clarify and repost..
Darrell
Posted: Mon Sep 25, 2006 3:40 pm
by mayk
Hi Darrell,
Sorry for the confusion. I'll clarify my question with some more details..
My question is to let the scalix accept domain1 , domain2, domain3 , domain4.
The users of domain 1 and domain2 are located on the scalix. the users of the other domains are located on another mailserver, of which the ISP blocks port 25. The MX points to the scalix , and it needs to forward all incoming mail to the other mailserver that listens on a different port (2525 to be exact).
thanks for your time.
greets
Mayk
Posted: Sun Oct 01, 2006 5:07 pm
by mayk
*bump*
no one a pointer on this question ? My feeling is that it's solved by adding 1 line to the smtpd file.. but i have no clue on what ....
thanx in advance...
Posted: Tue Oct 03, 2006 8:04 pm
by AussieOwner
I ran this by our resident sendmail expert and this is the info that he gave me:
You need to add a RELAY ACCEPT line to the SMTP relay so that the messages are passed on to sendmail. This is done by editing the file in /var/opt/scalix/sys/smtpd.cfg
Add something like this to the smtpd.cfg file:
Code: Select all
RELAY ACCEPT myotherdomain1.com
RELAY ACCEPT myotherdomain2.com
Save the file and restart the Scalix smtpd service.
Code: Select all
omoff -d0 smtpd; sleep 1; omon smtpd
Next, you will need to create a new mailer entry in /etc/mail/sendmail.cf file.
Code: Select all
Minternal, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990, T=DNS/RFC822/SMTP, A=TCP $h 2525
Then you will need to create an entry in /etc/mail/mailertable. Add the following line to this file: Please note that <TAB> represent hitting the tab key.
Code: Select all
myotherdomain1.com<TAB>internal:[internal.server.name1]
myotherdomain2.com<TAB>internal:[internal.server.name2]
Create a fresh copy of the mailer db:
Restart sendmail