Cannot switch off mx checking for emails

I first installed otrs with MX checking on, and got lots of messages about email addresses failing mx checks. So I reinstalled with mx checking off, but when I login as root and try and change the root email address it still claims the email address fails the mx check. 1) How can I stop these mx checks being done 2) could an option be added to the admin section to switch off mx checking after installation, to save re-installing. John

Hi John, John Bray wrote:
I first installed otrs with MX checking on, and got lots of messages about email addresses failing mx checks. So I reinstalled with mx checking off, but when I login as root and try and change the root email address it still claims the email address fails the mx check.
1) How can I stop these mx checks being done
Check your Kernel/Config.pm if CheckMXRecord is really "0". In case you use mod_perl, restart your webserver to reload the config file. Then it should work.
2) could an option be added to the admin section to switch off mx checking after installation, to save re-installing.
Yes. OTRS 2.0 later will have an admin interface to edit the config options. It's on our todo list.
John
Martin -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

On Wed, 2005-01-12 at 20:37 +0100, Martin Edenhofer wrote:
1) How can I stop these mx checks being done
Check your Kernel/Config.pm if CheckMXRecord is really "0". In case you use mod_perl, restart your webserver to reload the config file. Then it should work.
grep -i mx Kernel/Config.pm # $Self->{CheckMXRecord} = 0; [root@vicarage otrs]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] And the problem still occurs, both with Konqueror and Firefox, and if I log out and in again. John

Hi John, John Bray wrote:
1) How can I stop these mx checks being done
Check your Kernel/Config.pm if CheckMXRecord is really "0". In case you use mod_perl, restart your webserver to reload the config file. Then it should work.
grep -i mx Kernel/Config.pm # $Self->{CheckMXRecord} = 0; [root@vicarage otrs]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]
And the problem still occurs, both with Konqueror and Firefox, and if I log out and in again.
Ok, could it be that the error message is "Email address (root@localhost) not valid (invalid root@localhost (fqdn)! )"? In OTRS 1.x the email address checking is very conservative, so OTRS says root@localhost is not a valid internet email address because of the hostname (localhost). OTRS 1.x has two config options for email checking: [Kernel/Config.pm] # CheckMXRecord # (Check mx recorde of used email addresses) $Self->{CheckMXRecord} = 1; # CheckEmailAddresses # (Check syntax of used email addresses) $Self->{CheckEmailAddresses} = 1; [...] In your case, change the email address root@localhost to a real email adress or set CheckEmailAddresses to "0". PS: In upcoming OTRS 2.0 the email address check is better.
John
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Oops, my CheckMXRecord was commented out. Changing that fixed the first set of problems, then I was getting problems because my default from: address, otrs@localhost was also considered invalid, until I put the CheckEmailAddress=0 line in Config.pm (it was missing entirely in my version, 1.13 according to the rcs header info) Now email seems a lot happier. BTW, I had to add a /opt/otrs/.forward to get procmail to work, which I don't think is mentioned in the documentation, and had to grant o+w access to /opt/otrs/var/log to allow the procmail log files to be correctly written. Thanks for your prompt help. John
participants (2)
-
John Bray
-
Martin Edenhofer