|
|
@ -3,10 +3,11 @@ if (($qpsmtpd{'Log2Sql'} || 'enabled') eq 'enabled'){ |
|
|
|
my $dbname = $qpsmtpd{'DbName'} || 'smtp_log'; |
|
|
|
my $dbname = $qpsmtpd{'DbName'} || 'smtp_log'; |
|
|
|
my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd'; |
|
|
|
my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd'; |
|
|
|
my $dbpass = $qpsmtpd{'DbPassword'} || 'secret'; |
|
|
|
my $dbpass = $qpsmtpd{'DbPassword'} || 'secret'; |
|
|
|
|
|
|
|
my $dbhost = $qpsmtpd{'DbHost'} || 'localhost'; |
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
$OUT .=<<"EOF"; |
|
|
|
# Log to MySQL |
|
|
|
# Log to MySQL |
|
|
|
logging/log2sql d $dbname o mysql_socket=/var/lib/mysql/mysql.sock u $dbuser p $dbpass D Yes |
|
|
|
logging/log2sql d $dbname h $dbhost u $dbuser p $dbpass D Yes |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|