Hi there
Following this thread : http://community.pmail.com/forums/thread/27517.aspx
Before forwarding the incoming mail to the recipients I want to test if the sender is member of a list (only the member of the list can send mails to this address).
So the first line in the set is a test "Scan list", if the sender doesn't belong to the list I want to send him/her a message to inform him/her that he/she can't send mails to this address, this works (almost fine, some details could be improved)...
I use flow control to test if the sender belongs to the list or not (and actions that go with). My problem is that I have a lot of users and a lot of groups, each group will have its filtering rule and each will be created via scripts (to add new users).
It is very simple in a script to add a line at the end of a text file, it can be done in the middle of the file but it is not that simple, that's why I'd like to have all the Always Forward ... at the bottom of the set.
My aim would be to have a filtering rule having this structure:
If the sender belongs to a list goto SEND label
rem: the sender does not belong to the list
Send him/her a reply
Stop the rule action
:SEND label
rem: the sender belongs to the list
Always forward user1@mydomain.com
Always forward user2@mydomain.com
Always forward user3@mydomain.com
My problem is with the action "Stop the rule action" (kind of wscript.quit in vbs)
Thanks
<p>Hi there</p><p>&nbsp;</p><p>Following this thread : <a href="/forums/thread/27517.aspx" target="_blank" mce_href="/forums/thread/27517.aspx">http://community.pmail.com/forums/thread/27517.aspx</a></p><p>Before forwarding the incoming mail to the recipients I want to test if the sender is member of a list (only the member of the list can send mails to this address).</p><p>So the first line in the set is a test "Scan list", if the sender doesn't belong to the list I want to send him/her a message to inform him/her that he/she can't send mails to this address, this works (almost fine, some details could be improved)...</p><p>I use flow control to test if the sender belongs to the list or not (and actions that go with). My problem is that I have a lot of users and a lot of groups, each group will have its filtering rule and each will be created via scripts (to add new users).</p><p> It is very simple in a script to add a line at the end of a text file, it can be done in the middle of the file but it is not that simple, that's why I'd like to have all the Always Forward ... at the bottom of the set.</p><p>My aim would be to have a filtering rule having this structure:</p><blockquote><p>If the sender belongs to a list goto SEND label</p><p>rem: the sender does not belong to the list</p><p>Send him/her a reply</p><p>Stop the rule action</p><p>:SEND label</p><p>rem: the sender belongs to the list
</p><p>Always forward user1@mydomain.com</p><p>Always forward user2@mydomain.com</p><p>Always forward user3@mydomain.com
</p></blockquote><p>&nbsp;My problem is with the action "Stop the rule action" (kind of wscript.quit in vbs)
</p><p>Thanks
</p><p>&nbsp;</p>