Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: JohnG on December 27, 2012, 11:49:16 PM
-
What is the best way to forward/copy emails that contain certain text strings to another local email account? Ideally I'd like to do this on the server rather than using rules on each client.
-
JohnG
Configure the .qmail file(s) for that user, in /home/e-smith/files/users/username
(replace username with the actual user name)
Alternatively
see
http://www.dungog.net/wiki/Usermanager
and
http://www.dungog.net/wiki/Dungog-email
and install the usermanager (smeserver-userpanel) & mailsorting (smeserver-mailsorting) contribs & configure procmail or mailsorting with the GUI user manager panel, when logged in as the user to https://yourdomain/user-manager
-
Thanks for the quick response!
I had already installed the usermanager/mailsorting contribs hoping they would do the trick. From what I can tell, it only looks at the email address, header, subject, or the size, not the actual email body.
I think configuring the individual .qmail files seems like it's too late since I'm looking to examine the emails as they come in.
For example, ideally I'm looking for something like our maillog that examines all emails for "projectx" and forwards them all to a "projectx" user, regardless for who sent it. Can the contribs and/or .qmail files do that or do I need something else?
Thanks in advance.
-
JohnG
procmail
www.procmail.org
Here is one example of many to filter on body content, see
http://lipas.uwasa.fi/~ts/info/proctips.html#setvar