Page 1 of 1

How can I receive emails from only specific users for piping

Posted: Wed Mar 27, 2013 6:52 am
by anwarkc
I want to do the email piping for creating automatic tickets when the user sends a request to one particular email ID.
My problem is I receive lot of SPAM emails on that email ID and every time a new ticket is created. How do I stop this? Or can I accept emails from only specified Email IDs on the pipe?
PLEASE HELP!!!!!!!!!!!!!!!

Re: How can I receive emails from only specific users for pi

Posted: Wed Mar 27, 2013 9:40 am
by Klemen
You obviously need a strong anti-spam filter enabled on the server. HESK doesn't filter incoming mails for SPAM (it's way out of the scope of what it does), the server is responsible for scanning incoming mail.

If you only want to accept pipe from certain emails, you could try modifying inc/pipe_functions.inc.php - just below

Code: Select all

	if ( ! $tmpvar['email'] )
	{
		return NULL;
	}
add something like

Code: Select all

    $allowed_emails = array('me@you.com', 'this@that.com', 'john@doe.com');

	if ( ! in_array( strtolower($tmpvar['email']) , $allowed_emails) )
	{
		return NULL;
	}