Page 1 of 1

rules on a PDL?

Posted: Fri Sep 10, 2010 11:00 am
by RickC
Hi,

I'm wondering if its at all possible to create a filter rule on a PDL?

Something like "if not from abc.com then forward to xyz.com". Its pretty easy to do with an account, but I don't see how with a PDL -

Thanks,

Rick

11.4.4 on RHEL4

Re: rules on a PDL?

Posted: Fri Sep 10, 2010 12:12 pm
by BaldBoy
That's pretty easy indeed: you have to pass through a normal account.

Let me explain ... imagine you have a distribution list which email address is sales-team@mycompany.com and want to deliver messages to the list only if they originate from specific email addresses.

Do this
  • change the email address of your PDL to sales-team-internal@mycompany.com. Hide the address from the address book
  • create a normal account with First Name "Sales" and Last Name "Team" and assign it the email address sales-team@mycompany.com.
  • open a terminal window on your Scalix server and do :

    Code: Select all

    sxaa --user "Sales Team" --redirect sales-team-internal@mycompany.com --not --sender someaddress@abc.com

This will cause the email to be processed by the rules of the mailbox and, if the rule matches, to be redirected to the PDL.
Not matching messages will remain in the fake user's mailbox and you can easily cleanup them scheduling an omtidyu command.

Eventually you can create how many rules you want on that fake account and redirect messages to the list if the incoming messages do match the criteria.