mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #920] manage.py modo check_mx gives ValueError for one domain #796
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.