Hi everyone,
We have received an email from a client whose email address looks like xxx@testyy.zz where xxx is the client's name, yy are 2 letters and zz is a top level country domain. I can see in the OTRS log where the message has been received and a response sent, and the sendmail log shows the email being accepted by the recipient's mail server. But when the agent tries to reply to the ticket it displays an error message under the "To" field: "Need a valid email address or don't use a local email address.". If I try to create a new ticket to the same email address I get a slightly different error: "This email address is not allowed due to the system configuration". I think the problem is that the domain name starts with the string "test". I get the same error trying to send to postmaster@test.com, I do not get an error sending to postmaster@speedtest.net and if I remove the second "t" from the domain name I get the "failed MX check" error.
I have no experience of coding in PERL so it's possible I've missed something but I can't see anywhere in the code that could be causing this. I appreciate that my version of OTRS is quite old (3.0.8) but I have read through the changelog (http://source.otrs.org/viewvc.cgi/otrs/ ... iew=markup) and can't see anything which might indicate this problem has been solved. I've also looked through the SysConfig but can't find anything there which could be causing this.
Has anybody come across this before? Does anybody know why this is happening? Have I overlooked something really stupid?
Thanks in advance,
Richard
[SOLVED] Cannot send email to domain starting with "test"
Moderator: crythias
-
- Znuny newbie
- Posts: 6
- Joined: 28 Apr 2011, 10:33
- Znuny Version: 3.0.8
- Real Name: Richard Thomas
- Company: Helle Auto S.A.U.
- Location: Málaga, España
- Contact:
[SOLVED] Cannot send email to domain starting with "test"
Last edited by RichardT on 27 Nov 2012, 17:08, edited 1 time in total.
OTRS 3.0.8 on CentOS5 with MySQL DB
Re: Cannot send email to domain starting with "test"
have alook in your config (search for test) and change it
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 6
- Joined: 28 Apr 2011, 10:33
- Znuny Version: 3.0.8
- Real Name: Richard Thomas
- Company: Helle Auto S.A.U.
- Location: Málaga, España
- Contact:
Re: Cannot send email to domain starting with "test"
Thank you jojo for the quick reply. Correct, it was in the CheckEmailInvalidAddress section of the config, I thought I must be overlooking something!
Interestingly in the admin page where you set that value it says the default value is "@(example)\.(..|...)$", whereas in fact the default value is "@(aa|aaa|aaaa|aaaaa|abc|any|anywhere|anonymous|bar|demo|example|foo|hello|hallo|nospam|nowhere|null|some|somewhere|test|teste.|there|user|xx|xxx|xxxx)\.(..|...)$" which potentially blocks several valid domains. Now I know exactly where to look I did a quick google search for CheckEmailInvalidAddress and found this: http://lists.otrs.org/pipermail/otrs/20 ... 18138.html which indicates it's been a problem for a while. Any idea on the reasoning for the overzealous default list of rejected words?
Interestingly in the admin page where you set that value it says the default value is "@(example)\.(..|...)$", whereas in fact the default value is "@(aa|aaa|aaaa|aaaaa|abc|any|anywhere|anonymous|bar|demo|example|foo|hello|hallo|nospam|nowhere|null|some|somewhere|test|teste.|there|user|xx|xxx|xxxx)\.(..|...)$" which potentially blocks several valid domains. Now I know exactly where to look I did a quick google search for CheckEmailInvalidAddress and found this: http://lists.otrs.org/pipermail/otrs/20 ... 18138.html which indicates it's been a problem for a while. Any idea on the reasoning for the overzealous default list of rejected words?
OTRS 3.0.8 on CentOS5 with MySQL DB
Re: [SOLVED] Cannot send email to domain starting with "test
in the actual version of OTRS it is not configured any more
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com