* Added checking the email server config to anvil-daemon. Email works now!

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 4 years ago
parent fe7cdb18fb
commit dc5ec9c264
  1. 2
      Anvil/Tools/Email.pm
  2. 4
      tools/anvil-daemon

@ -88,7 +88,7 @@ sub parent
=head2 check_config
This method checks the current postfix server configuration to see if it needs to be updated, then checks to see if the local C<< postfix >> daemin is enabled and started.
This method checks the current postfix server configuration to see if it needs to be updated, then checks to see if the local C<< postfix >> daemon is enabled and started.
If any problem is encountered, C<< 1 >> is returned. Otherwise, if all is well, C<< 0 >> is returned.

@ -425,6 +425,10 @@ sub handle_periodic_tasks
}
}
}
# Check mail server config.
my $problem = $anvil->Email->check_config({debug => 3});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { problem => $problem }});
}
# Now check to see if it's time to run daily tasks.

Loading…
Cancel
Save