Commit Graph
19 Commits
Author SHA1 Message Date
Antoine Nguyen db0b7eb79d New fixes 2025-02-18 15:54:59 +01:00
Antoine Nguyen 89cc0cf2a3 Code reformatted using black 2024-02-20 21:45:07 +01:00
Antoine NguyenandGitHub 8ff49831d1 Merge pull request #3107 from modoboa/doveadm-caching
Doveadm caching
2023-12-20 14:56:48 +01:00
Antoine Nguyen 0e66477385 Convert port to integer 2023-11-08 10:32:04 +01:00
Antoine Nguyen c30f93850b Try not to call getaddrinfo in test data 2023-11-08 10:22:46 +01:00
Spitap c2cc14589d Added option to disable IPV6 mx checks 2023-11-05 12:20:03 +01:00
SpitapandAntoine Nguyen f05478bccd added rq
Co-Authored-By: Antoine Nguyen <tonio@ngyn.org>
2023-06-23 17:10:59 +02:00
Antoine NguyenandGitHub 08360400a9 Improved notifications management in MX checks. (#2015)
* Improved notifications management in MX checks.

see #1820

* Increased alarm internal code length.

* Force greenlet 0.4.16 due to a binary issue with 0.4.17.

* Improved coverage.
2020-09-25 21:27:24 +02:00
Jérôme Lebleu 369d05e1c3 Remove the UTF-8 coding header 2020-01-07 10:16:54 +01:00
Jérôme Lebleu 74d66c00a0 Update imports for Python 3.4+ 2020-01-07 10:16:54 +01:00
Antoine Nguyen 6274388975 Fixed unit test. 2018-11-20 14:50:07 +01:00
Antoine Nguyen 2101adff1b Improved coverage and added FR translation. 2018-11-20 10:37:07 +01:00
Antoine Nguyen 23865090e9 Fixed coverage. 2018-10-18 08:51:49 +02:00
Antoine Nguyen 6bc2cec007 Fixed lookups with custom DNS server. 2018-10-17 08:47:16 +02:00
Florian VANDENBULCKE cbbe840522 feat(dns-resolver): application to get ip address + unit tests 2018-10-14 18:34:44 +02:00
Andrew Fyfe 87e8a32063 whitespace fixes 2018-02-03 00:59:06 +00:00
Andrew Fyfe 24a7ca6a9e sort imports using isort
pip install isort
isort -y
2018-02-03 00:43:59 +00:00
Andrew Fyfe 042d0a8501 add IPv6 support to mx check
- add support for looking up IPv6 addresses (socket.getaddrinfo)
- add support for International Domain Names in case the DNS reponse contains one, to_unicode() decodes them to a utf8 string
- add logging for potential configuration errors:
    - DNS configuration errors (i.e. no MX records)
    - server name resolution errors (i.e. resolv.conf doesn't contain a working name server)
    - invalid values in MX records
- when looking up an ip address, don't stop on the first failure check all addresses
- update mock results for tests, return a real MX record for mock dns queries
2018-01-04 21:52:02 +00:00
Antoine NguyenandGitHub 226d65c0a0 Check MX validity when adding new domain. (#1215)
* Check MX validity when adding new domain.

see #1211

* Fixed unit test.

see #1215

* Added unit tests.

see #1211

* Fixed unit test.

see #1211

* Added missing file.

see #1211

* Fixed error definition.

see #1211
2017-08-18 09:29:01 +02:00