[SOLVED] Set 'From' field of email for testing

Moderator: crythias

Locked
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

[SOLVED] Set 'From' field of email for testing

Post by Rick »

Hi,

I want to test some filters which check the From field of an email.
How can I set the From field ?

Thanks you.
Last edited by Rick on 13 May 2015, 12:41, edited 1 time in total.
mavrie
Znuny newbie
Posts: 43
Joined: 02 Sep 2014, 15:04
Znuny Version: 4.0.7
Real Name: Mattias
Company: BusSaP
Location: Belgium

Re: Set 'From' field of email for testing

Post by mavrie »

I do it like this:

Make a new mail account somewhere (live, gmail,...).
Define filters on that address.
Mail from that address to your system.
Done.

Is this what you were looking for? You can probably modify the "From" address, but that just doesn't seem right.

Regards
Otrs 4.0.7 on CentOS 6.5
MySQL Database
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Set 'From' field of email for testing

Post by Rick »

No, i can't do like this because i would like to filter a domain :
ex : somone@otterhub.com

my filter check from field like this : .*otterhub.com
I want to check the domain of a customer
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Set 'From' field of email for testing

Post by EXG133 »

Same logic. I test my filters using my own emailaddress.

If this test regex hits what you want it to hit:

Code: Select all

.*@myowndomain.com
Then this will also work:

Code: Select all

.*@mycustomersdomain.com
The only reason this wouldn't work is if you're testing this directly on your production system in which case the solution would be setting up a test system ;)
Locked