mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 09:55:58 +03:00
[GH-ISSUE #983] Docs: What is "DNS status" doing? #833
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#833
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 @jprasmussen on GitHub (Dec 4, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/983
This is probably related to #965 but I'm not too sure... I can't find in the documentation explaining what the "DNS status" column is doing/looking for under the Admin > Domains > List Domains page.
Presumably it's looking for MX records? Any insight will help. Thanks!
@tonioo commented on GitHub (Dec 5, 2016):
this column displays information about MX configuration and DNSBL status for each domain. Make sure those features are enabled (Check Modoboa > Parameters > Administration).
@jprasmussen commented on GitHub (Dec 5, 2016):
Thank you @tonioo.
I have those checks enabled under Modoboa > Parameters > Administration but the domains remain "Awaiting checks". So I'm not clear on what it's looking with the DNS records or if I need to manually trigger a check somehow.
In testing I'm able to send and receive emails to accounts on the domains that are marked as awaiting checks. So I believe things are correctly setup for each domain's MX records.
@tonioo commented on GitHub (Dec 5, 2016):
I don't know how you installed Modoboa but those checks are issued by a cron task so you might need to install it manually. (http://modoboa.org/en/weblog/2016/09/14/modoboa-160-out/)
@jprasmussen commented on GitHub (Dec 5, 2016):
Hmm... I see the cron task in there. I tried running the command manually but get an error... perhaps it's because I'm not familiar enough with python.
Here's what I ran:
/usr/bin/env python /srv/modoboa/instance/manage.py modo check_mxAnd this is the error:
If that command looks right then perhaps something went wrong in install. I'm just learning how this works so I'm not opposed to wiping out the server and started over.
Ultimately, emails are sending and receiving without this DNS check. So all else fails... do nothing. :)
@tonioo commented on GitHub (Dec 5, 2016):
You need to load the proper virtual env in order to run this command. Something like this:
/srv/modoboa/env/bin/python srv/modoboa/instance/manage.py modo check_mx@jprasmussen commented on GitHub (Dec 5, 2016):
That worked!
So that means the cron tasks aren't working correctly. I'll dig into that some more and post back here incase anyone else runs into the problem.
@jprasmussen commented on GitHub (Dec 10, 2016):
I re-installed on a new server this week (Ubuntu 16.04) and it still doesn't seem to work on cron. But manually running the below works fine for me since I'm not planning to add many domains.
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py modo check_mx@tonioo commented on GitHub (Dec 11, 2016):
You reinstalled using the installer?
@jprasmussen commented on GitHub (Dec 11, 2016):
Yes. I used the recommended way from the documentation.
@tonioo commented on GitHub (Dec 12, 2016):
Can you check if a cron daemon is installed on your server?
@jprasmussen commented on GitHub (Dec 12, 2016):
Cron is installed and running. Here is the status output:
Contents of /etc/cron.d/modoboa
@tonioo commented on GitHub (Dec 12, 2016):
Everything looks fine. Have you tried to restart the cron service?
@jprasmussen commented on GitHub (Dec 20, 2016):
It appears to be working now but I never restarted any services. I've added a couple of domains for testing purposes since your last post. Their DNS status was updated in the Admin UI without running the check manually.
I think it's probably safe to close this until someone else reports the problem.
@hrx777 commented on GitHub (Jan 5, 2018):
Same issue here, cron jobs are started but not working. Apparently the variables $PYTHON and $INSTANCE are not interpreted correctly.
I tried to have them dumped by using
within the modoboa crontab (/etc/cron.d/modoboa)
Contents of /root/cron-env are:
[...]
PYTHON=/srv/modoboa/env/bin/python
INSTANCE=/srv/modoboa/instance
[...]
I'm using Debian Stretch 9.3 and Modoboa 1.9.1. Since I want the jobs to be run correctly I replaced the variables with the paths for having a workaround.
Probably worth being investigated, jprasmussen and me are certainly not the only ones having this issue.