Skip to content
Permalink
Browse files

Merge pull request #62 from smpita/master

Configure DB port
  • Loading branch information...
techsneeze committed Mar 30, 2019
2 parents 5408005 + f6fea74 commit b25a093b36932f2376683a5e21b1a6e8a6a477d2
Showing with 3 additions and 2 deletions.
  1. +1 −0 dmarcts-report-parser.conf.sample
  2. +2 −2 dmarcts-report-parser.pl
@@ -12,6 +12,7 @@ $dbname = 'dmarc';
$dbuser = 'dmarc';
$dbpass = 'xxx';
$dbhost = ''; # Set the hostname if we can't connect to the local socket.
$dbport = '3306';

$imapserver = 'mail.example.com:143';
$imapuser = 'dmarcreports';
@@ -115,7 +115,7 @@ sub show_usage {

# Define all possible configuration options.
our ($debug, $delete_reports, $delete_failed, $reports_replace, $maxsize_xml, $compress_xml,
$dbname, $dbuser, $dbpass, $dbhost,
$dbname, $dbuser, $dbpass, $dbhost, $dbport,
$imapserver, $imapuser, $imappass, $imapignoreerror, $imapssl, $imaptls, $imapmovefolder, $imapreadfolder, $imapopt, $tlsverify);

# defaults
@@ -207,7 +207,7 @@ sub show_usage {


# Setup connection to database server.
my $dbh = DBI->connect("DBI:mysql:database=$dbname;host=$dbhost",
my $dbh = DBI->connect("DBI:mysql:database=$dbname;host=$dbhost;port=$dbport",
$dbuser, $dbpass)
or die "Cannot connect to database\n";
checkDatabase($dbh);

0 comments on commit b25a093

Please sign in to comment.
You can’t perform that action at this time.