Forwarder (to outside address)

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

robspierre

Forwarder (to outside address)

Postby robspierre » Wed Nov 09, 2005 12:49 pm

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.

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Forwarding

Postby Jason Warren » Wed Nov 09, 2005 12:55 pm

Hi,
why dont your users create a rule in Outlook?
Jason Warren

robspierre

Postby robspierre » Wed Nov 09, 2005 2:39 pm

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.

robspierre

Postby robspierre » Wed Nov 09, 2005 3:32 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Nov 09, 2005 3:50 pm

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

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Nov 09, 2005 6:34 pm

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.
Florian von Kurnatowski, Die Harder!

robspierre

Postby robspierre » Fri Nov 11, 2005 8:01 pm

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.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Nov 14, 2005 2:19 am

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

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Mon Jan 30, 2006 9:58 pm

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)

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jan 30, 2006 10:07 pm

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

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Mon Jan 30, 2006 10:08 pm

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."

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jan 30, 2006 10:14 pm

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

mabadjiev
Posts: 30
Joined: Thu Feb 23, 2006 12:57 am

Postby mabadjiev » Sat Feb 25, 2006 4:11 pm

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.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sat Feb 25, 2006 9:02 pm

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

mabadjiev
Posts: 30
Joined: Thu Feb 23, 2006 12:57 am

Postby mabadjiev » Sun Feb 26, 2006 2:11 am

That works, thaks a lot.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 18 guests

cron