## Where do we connect to?
my $smtphost = $config{default_email_host} || 'localhost';
+ my $smtpport = $config{default_email_port} || 25;
## Send normal email
## Do not send it if the 'example.com' default value is still in place
eval {
my $smtp = Net::SMTP->new(
Host => $smtphost,
+ Port => $smtpport,
Hello => $hostname,
Timeout => 15
);
+
+ if ($config{email_auth_user} and $config{email_auth_pass}) {
+ ## Requires Authen::SASL
+ my ($auser,$apass) = ($config{email_auth_user}, $config{email_auth_pass});
+ $self->glog("Attempting Net::SMTP::auth with user $auser", LOG_DEBUG);
+ $smtp->auth($auser, $apass);
+ }
+
$smtp->mail($from);
$smtp->to($arg->{to});
$smtp->data();
default_email_from|nobody@example.com|Who the alert emails are sent as
default_email_to|nobody@example.com|Who to send alert emails to
default_email_host|localhost|Which host to send email through
+default_email_port|25|Which port to send email through
default_conflict_strategy|bucardo_latest|Default conflict strategy for all syncs
email_debug_file||File to save a copy of all outgoing emails to
+email_auth_user||User to use for email authentication via Net::SMTP
+email_auth_pass||Password to use for email authentication via Net::SMTP
flatfile_dir|.|Directory to store the flatfile output inside of
host_safety_check||Regex to make sure we don't accidentally run where we should not
isolation_level|repeatable read|Default isolation level: can be serializable or repeatable read