Page 1 of 2

Forwarder (to outside address)

Posted: Wed Nov 09, 2005 12:49 pm
by robspierre
Would someone be so kind as to point me in the right direction as to how I can create a forwarder to an external e-mail address on my Scalix server?

Here is what I mean by "forwarder". Let's say my Scalix server is handling mail for the email.com domain and I have a user named Rob. I want all e-mail sent to my Scalix server for rob@email.com to be automatically forwarded to an external e-mail address, say rob@hotmail.com or something. Now I have roughly 150 mailboxes, and I only want to implement a forwarder for a handful of users, so I don't want all inbound e-mail forwarded; just for select users.

It seems to me like this would be simple enough to accomplish, but I can't seem to find this topic referenced in the forums, or the admin guide. Any help would be greatly appreciated.

Forwarding

Posted: Wed Nov 09, 2005 12:55 pm
by Jason Warren
Hi,
why dont your users create a rule in Outlook?

Posted: Wed Nov 09, 2005 2:39 pm
by robspierre
Unfortunately the user isn't really using or checking the "in-domain" e-mail account. They use an outside e-mail account, so we can't really use Outlook rules in this scenario.

What we mainly use this type of functionality for is an outside salesforce. Here's a generic example: Someone sends an inquiry to sales@mydomain.com, and I need to have ethat e-mail automatically forwarded to fred@hotmail.com.

Posted: Wed Nov 09, 2005 3:32 pm
by robspierre
I think I figured it out. I'm not sure if this is the cleanest solution, but I created a PDL for sales@mydomain.com and then I used the omaddpdln command as follows to add a single external address to the PDL. Seems to work fine.

linux:/var/opt/scalix # omaddpdln -x -l "sales" -n "/internet (rfc-822|rob@hotmail.com)"
The name was successfully added to the list

Posted: Wed Nov 09, 2005 3:50 pm
by ScalixSupport
I think the best and cleanest thing to do is the following:

- log into SWA as the user (rob).
- create a rule (using the SRW) that redirects all messages to the address you specify in the "to" field.

That's it. This creates a server-side rule that redirects all msgs to the address you specify, and the user (rob) does not need to login to Scalix at all.

Matthew
Support

Posted: Wed Nov 09, 2005 6:34 pm
by florian
well, if you do have a mailbox for your "forward account", you can also create the forward rule using the sxaa tool which is part of the admin resource kit directory in the scalix tarball.

if you don't want to have a mailbox, you can create directory entries that look like this:

omaddent -e "S=Lastname/G=Givenname/CN=Given Last/OU1=internet/DDT1=RFC-822/DDV1=external@forward.com/IA=internal@local.com"

such an entry will receive mails destined for internal@local.com and just move the email to the outgoing internet mail gateway over the /internet route to the external@forward.com address.

no storage or mailbox (or license!) is involved here.

actually, we even have a customer in uk that mostly bought scalix for such purpose, only having a limited number of actual mailboxes on the system.

-- f.

Posted: Fri Nov 11, 2005 8:01 pm
by robspierre
ScalixSupport wrote:I think the best and cleanest thing to do is the following:

- log into SWA as the user (rob).
- create a rule (using the SRW) that redirects all messages to the address you specify in the "to" field.

That's it. This creates a server-side rule that redirects all msgs to the address you specify, and the user (rob) does not need to login to Scalix at all.

Matthew
Support


OK, I'm a noob, so be patient. First, I'm assuming SRW stands for Scalix Rules Wizard. Do I have that part correct?

And second, how do I invoke the SRW in the SWA console? I can't seem to locate anything that has to do with rules in SWA.

Posted: Mon Nov 14, 2005 2:19 am
by ScalixSupport
Hi. Yes, SRW does stand for Scalix Rules Wizard. To enable it within SWA (Scalix Web Access), logon to your Scalix server and edit the file /etc/opt/scalix/webmail/partner.xml and change the setting:

rulesWizard="false"

to

rulesWizard="true"

then verify that:

rulesWizardURL="http://SCALIX-SERVER/Scalix/rw"

has your Scalix server's FQDN in place of SCALIX-SERVER. Now, save that file and restart tomcat. Once tomcat comes back up, you can go into SWA, choose Tools and you should see the Rules Wizard menu choice.

Optionally, you can simply access the SRW by going to the URL above. You'll be prompted for your user name and password.

Thanks,
Rachel

Posted: Mon Jan 30, 2006 9:58 pm
by will123195
omaddent -e "S=Lastname/G=Givenname/CN=Given Last/OU1=internet/DDT1=RFC-822/DDV1=external@forward.com/IA=internal@local.com"


my organization utilizes MANY "forwarders" which often times change weekly. please tell me that the next major release of the admin console will include a graphical interface for the above command where you simply type the incoming (local) email address and the destination email address (local OR external). this seems to be a fundamental feature of every email server i have encountered.

isn't the first & last name associated with a "forwarder" irrelevant? or am i misunderstanding the above code? (i don't want to allocate diskspace or setup email boxes for these forwarders)

Posted: Mon Jan 30, 2006 10:07 pm
by ScalixSupport
Quoting from Florian above,

if you don't want to have a mailbox, you can create directory entries that look like this:

omaddent -e "S=Lastname/G=Givenname/CN=Given Last/OU1=internet/DDT1=RFC-822/DDV1=external@forward.com/IA=internal@local.com"

such an entry will receive mails destined for internal@local.com and just move the email to the outgoing internet mail gateway over the /internet route to the external@forward.com address.

no storage or mailbox (or license!) is involved here.


You'll have to indicate the S= and CN=.

It is unlikely that you will see this function through the SAC anytime soon.

Regards,
Don

Posted: Mon Jan 30, 2006 10:08 pm
by will123195
i added the entry to the directory from the command line with the previous command, however, now i am unable to delete this "forwarder" from the admin console.

This is the error message:

"Could not delete First Last [internet (RFC-822|myemailaddress@domain.com) ]. Could not update the user information. One of the attributes is too long."

Posted: Mon Jan 30, 2006 10:14 pm
by ScalixSupport
Please try using the command

Code: Select all

omdelent -e "G=Chris/S=Wolf/OU1=ny/OU2=hq/OU3=mis"


See

Code: Select all

man omdelent


for full instructions for this and most all other om* commands.

Regards,
Don

Posted: Sat Feb 25, 2006 4:11 pm
by mabadjiev
Hello,

Here is my experience with v10.0

omaddent -e "S=Blow/G=Joe/CN=Joel Blow/OU1=host/OU2=domain/DDT1=RFC-822/DDV1=9999999@tmomail.net/IA=pager@domain.com"

[OM 16958] Added 1 entry to the Directory
===
However I cannot see the entry in SAC
Then I send an email to pager@domain.com
and I am getting the following error:

----------------------------- ERROR REPORT -----------------------------
Message could not be delivered to the following recipient:

Joe Blow /host, domain/CN=Joe Blow
DDT1=RFC-822; DDV1=9999999@tmomail.net;

because: 'Recipient name not found at destination' [OM 9300]

The message was forwarded to the local Error Manager:
postmaster / host, domain/CN=postmaster
------------------------------------------------------------------------

Usually forwarding is pretty easy even in M$Exchange, so how do we do it in Scalix -
how can we see all the forwarded email addresses?
Any suggestions / help would be greatly appreciated.

Posted: Sat Feb 25, 2006 9:02 pm
by ScalixSupport
The reason why you have that message is because you have not specified a route to the internet.

The command you want to use is:

Code: Select all

omaddent -e "S=Blow/G=Joe/CN=Joe Blow/OU1=internet/IA=9999999@tmomail.net=pager@domain.net"


This means that mail will come into pager@domain.net and go out to 9999999@tmomail.net.

Cheers

Dave

Posted: Sun Feb 26, 2006 2:11 am
by mabadjiev
That works, thaks a lot.