Page 1 of 1

mailnode forward to external non-scalix server

Posted: Wed Dec 12, 2007 6:47 am
by hazem95
I have two email servers, currently both qmail, I wish to make one of them Scalix. Can I create a mailnode, and have all the email for that mailnode forwarded to the other non-scalix email server?
The configuration I have in mind, that scalix.domain.com server is the hub for domain.com. For a specific group of users, lets put them in a mailnode called qmailusers, scalix should forward their email to qmail.domain.com.
All users have aliases user@domain.com, and either user@scalix.domain.com, or user@qmail.domain.com.
Scalix by default assumes that all standard users (i.e. those in mailnodes) are to be delivered locally. I need to change this, and the solution is probably with omaddrt. Though I am not sure of the omaddrt options to send just a specific mailnode in non-scalix format to the qmail server.
I don't think a redirect catch-all will work, as it is setup to send to the same domain, not a sub-domain.
Appreciate any advise. Keep in mind, that once I get this working on my standard scalix installation, I will change the authentication to Openldap.

Posted: Wed Dec 12, 2007 3:26 pm
by mikevl
Hi

One of many possible solutions is to use sxaa to put a copy or redirect on the users accounts. sxaa will certianly allow you to redirect mail fro user@scalix.domain.com to user@qmail.domain.com this is just a simple case of adding a DNS and or /etc/hosts record which points to the qmail.domain.com server.

This is often one of the methods we use for cutting over from legacy servers.

Mike

Posted: Sat Dec 15, 2007 4:43 am
by hazem95
Thanks Mike
I tried
# sxaa --user qmailuser@domain.com --forward [qmailuser@qmail.domain.com | S=user/G=qmail/OU1=qmailusers]

# sxaa --user qmailuser@domain.com

gives:

OOF FLT OLK AANO ACTION TITLE STATE
--- --- --- ---- ---------- ------------------------------ --------
600 FORWARD SXAA FORWARD:600 enabled

sending an email to this user from a scalix user, sends it to a mailbox on scalix, not to the qmail server.
Any ideas on what I'm doing wrong?
Even if this works. This would be per user, not per mailnode. What syntax should I use to forward a whole maildnode to that server. So USER@domain.com becomes USER@qmail.domain.com?
Appreciate any help you can give. I'm a qmail guy, in a Scalix world.

Posted: Sat Dec 15, 2007 2:33 pm
by mikevl
Hi

is there a DNS record that points to the qmail server?

forward [qmailuser@qmail.domain.com |

ie

/etc/hosts

xxx.xxx.xxx.xxx qmail.domain.com qmail

but this would be better set up in you DNS server records

Mike