[GH-ISSUE #920] manage.py modo check_mx gives ValueError for one domain #796

Closed
opened 2026-02-27 11:13:35 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Sep 18, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/920

Hi,

I'm getting a ValueError for one of my domains when running manage.py modo check_mx. I can't see any difference bwtween the MX reord of this domain compared to all other domains. This is the output from the manage.py modo check_mx command:

Traceback (most recent call last):
File "/opt/modoboa_home/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 353, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/subcommand/base.py", line 53, in run_from_argv
return super(SubcommandCommand, self).run_from_argv(argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(_args, *_cmd_options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute
output = self.handle(_args, *_options)
File "/usr/local/lib/python2.7/dist-packages/subcommand/base.py", line 84, in handle
return command.run_from_argv(argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(_args, *_cmd_options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute
output = self.handle(_args, *_options)
File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/management/commands/subcommands/_mx.py", line 241, in handle
self.check_domain(domain, *_options)
File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/management/commands/subcommands/_mx.py", line 217, in check_domain
self.check_valid_mx(domain, mx_list, *_options)
File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/management/commands/subcommands/_mx.py", line 173, in check_valid_mx
for mx in mx_list]
File "/usr/lib/python2.7/dist-packages/ipaddress.py", line 166, in ip_address
address)
ValueError: u'mail.olearys.ae.' does not appear to be an IPv4 or IPv6 address

Originally created by @ghost on GitHub (Sep 18, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/920 Hi, I'm getting a ValueError for one of my domains when running manage.py modo check_mx. I can't see any difference bwtween the MX reord of this domain compared to all other domains. This is the output from the manage.py modo check_mx command: Traceback (most recent call last): File "/opt/modoboa_home/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/**init**.py", line 353, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/**init**.py", line 345, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/subcommand/base.py", line 53, in run_from_argv return super(SubcommandCommand, self).run_from_argv(argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv self.execute(_args, *_cmd_options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute output = self.handle(_args, *_options) File "/usr/local/lib/python2.7/dist-packages/subcommand/base.py", line 84, in handle return command.run_from_argv(argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv self.execute(_args, *_cmd_options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute output = self.handle(_args, *_options) File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/management/commands/subcommands/_mx.py", line 241, in handle self.check_domain(domain, *_options) File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/management/commands/subcommands/_mx.py", line 217, in check_domain self.check_valid_mx(domain, mx_list, *_options) File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/management/commands/subcommands/_mx.py", line 173, in check_valid_mx for mx in mx_list] File "/usr/lib/python2.7/dist-packages/ipaddress.py", line 166, in ip_address address) ValueError: u'mail.olearys.ae.' does not appear to be an IPv4 or IPv6 address
kerem closed this issue 2026-02-27 11:13:35 +03:00
Author
Owner

@ghost commented on GitHub (Sep 19, 2016):

I found the problem, I had two MX entries for the domain where it bombs out. I'll just close this issue.

<!-- gh-comment-id:247915300 --> @ghost commented on GitHub (Sep 19, 2016): I found the problem, I had two MX entries for the domain where it bombs out. I'll just close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#796
No description provided.