Hi,
I want to test some filters which check the From field of an email.
How can I set the From field ?
Thanks you.
[SOLVED] Set 'From' field of email for testing
Moderator: crythias
[SOLVED] Set 'From' field of email for testing
Last edited by Rick on 13 May 2015, 12:41, edited 1 time in total.
-
- 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
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
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
MySQL Database
Re: Set 'From' field of email for testing
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
ex : somone@otterhub.com
my filter check from field like this : .*otterhub.com
I want to check the domain of a customer
Re: Set 'From' field of email for testing
Same logic. I test my filters using my own emailaddress.
If this test regex hits what you want it to hit:
Then this will also work:
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 
If this test regex hits what you want it to hit:
Code: Select all
.*@myowndomain.com
Code: Select all
.*@mycustomersdomain.com
