Page 1 of 1

Redirection with sxaa

Posted: Thu Dec 14, 2006 9:10 pm
by mglenney
I am migrating users from postfix to scalix. I would like to migrate them in batches instead of all at once. Can I use sxaa redirection to do this?

I would create all my users on my scalix server, redirect incoming mail to the scalix server and then setup redirection for users I haven't migrated yet forwarding their messages to the old postfix server.

Being able to do this would make my life alot easier. If not sxaa is not the answer does someone know of another way to accomplish this?

Thanks,

MG

Posted: Fri Dec 15, 2006 6:55 pm
by ScalixSupport
Yes, sxaa will work as you describe.

Regards,
Don

Posted: Mon Dec 18, 2006 2:02 pm
by mglenney
Thanks for the reply Don.

I tried it and nothing seems to have happened. Maybe you or someone can help.

I typed in the following to test redirection (except I used the actual IP):

./sxaa --user Glenney --redirect 1.2.3.4

There's no error so it seems all is ok. Then I try and view the rule:

./sxaa --user Glenney

and I get back:

OOF FLT OLK AANO ACTION TITLE STATE
--- --- --- ---- ---------- ------------------------------ --------

There are no rules listed. Just the column headers. I tested and the redirect isn't happening. The message just ends up in my inbox. I tried looking at rules for another user who has none and it came back "No autoactions defined". This tells me that there must be some rule for user "Glenney" because it's coming back as I showed above, not as "No autoactions defined".

Any ideas about what I might be doing wrong here.

Thanks,

MG

Posted: Mon Dec 18, 2006 3:27 pm
by ScalixSupport
The redirect has to be an email address, so user@1.2.3.4 should work provided 1.2.3.4 receives mail in that format.

Regards,
Don

Posted: Mon Dec 18, 2006 3:50 pm
by mglenney
Oh. In that case SXAA may not be the answer to my problem.

I am migrating users from one mail server to another. Both mail servers are configured to receive mail for 1 domain (I'll use EXAMPLE.COM). My goal is to be able to migrate users in batches instead of all at once. My plan, if redirection is possible, is to change our MX record so that all incoming mail is sent to the new server (Scalix). For users who haven't migrated yet, I would like their messages redirected to the old server (Postfix). Users will have the same email address on both systems so I can't use an email address for the redirection.

I may possibly be able to redirect to user@oldserverhostname.example.corp but I'll have to test that to see if it works.

How can I delete the redirection rule that I put in for user 'Glenney'? As I said before entering ./sxaa --user Glenney returns the column headers (OOF, FLT, etc.) but doesn't list any rules. The README says to use ./sxaa --user Glenney --del reference. The 'reference' is supposed to be in the AANO column but I'm not getting anything.

Thanks,

MG

Posted: Mon Dec 18, 2006 4:32 pm
by mglenney
Thank you Don. Your suggestion was just what the doctor ordered.

I was able to get it to work but this may only work for my specific situation. I created the redirection as follows:

./sxaa --user Glenney --redirect mikeg@oldserver.example.com --title migration

I then edited /etc/hosts and put in an entry for my old mail server:

1.2.3.4 oldserver oldserver.example.com

Mail is redirected from the new Scalix server to our old Postfix server. The reason this works is because my old server is Postfix and it allows you to send an e-mail to <username>@<server hostname> and it'll be delivered to the right inbox. Other mail servers may allow this as well. I know QMail will and I'm pretty sure Sendmail will also.

The only other problem I had is that redirected messages recived by my old server have "undisclosed-recipients:" in the To: field instead of an email address. I imagine this is a problem with my Postfix server, not Scalix This an annoyance but not a show stopper. I still may go this way instead of migrating everyone at once.

If anyone know of a better way to accomplish all this mess please post it here.

Thanks,

MG