Yes, done that after every change in listeners.d directory. Tried several settings, but nothing works.
Listener not working anymore
-
- patched
- merlin81
- Closed
- Thread is marked as Resolved.
-
-
I'll test the listener and give you my feedback soon (today, don't worry).
-
-
I'm really confused. I've tested serveral listeners (all together and standalone for dns)
Working:Code- package Listener::Named::OverrideDefaultMXRecords;
- use strict;
- use warnings;
- use iMSCP::EventManager;
- #
- ## Configuration parameters
- #
- # Define here your out-of-zone mailservers
- my @mailservers = (
- '10 mymailservername',
- );
- #
- ## Please don't edit anything below this line
- #
- iMSCP::EventManager->getInstance()->register(
- 'afterNamedAddDmnDb',
- sub {
- my ($wrkFile, $data) = @_;
- # Remove default mailservers records
- $$wrkFile =~ s/^(?:\@(?:\s+\d+)?\s+IN\s+MX|[0-9]\s+IN)\s+[^\n]+\n//gm;
- # Add out-of-zone mailservers
- $$wrkFile .= "$data->{'DOMAIN_NAME'}.\tIN\tMX\t$_.\n" for @mailservers;
- 0;
- }
- );
- 1;
- __END__
not working:
https://github.com/i-MSCP/imsc…med/10_named_global_ns.pl
https://github.com/i-MSCP/imsc…med/20_named_dualstack.pl -
Just a few things. I installed Plugin DomainAutoApproval today. Maybe this is a fact to my problems. When having an not functional listener the zonefiles from standard are changed by 20_named_dualstack.pl for example. But if all listeners are functional standard files look not changed.
And found some more: The script is not running for all standard domains, few domains have records. This domains was approved by DomainActivationPlugin.
For this I get:
[DEBUG] iMSCP::EventManager::trigger: Triggering onLoadTemplate event
[DEBUG] iMSCP::EventManager::trigger: Triggering onLoadTemplate event
[DEBUG] iMSCP::EventManager::trigger: Triggering afterNamedAddDmnDb event .....
in output
while other domains seems to miss this event. It looks like this domains all have custom dns activated. -
-
You got a mail.
-
Problem was with custom DNS Entries (OpenDKIM) is custom DNS entry too. Problem is now fixed in 1.3.8
-
-
A fix has been added in the 1.3.x branch. See https://github.com/i-MSCP/imsc…e8e3e8cdb594679f78ef81af2
Thank you for your report.