parent
60441b6b0e
commit
d6eaa842fe
1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
{ |
||||||
|
if (($qpsmtpd{'Log2Sql'} || 'enabled') eq 'enabled'){ |
||||||
|
my $dbname = $qpsmtpd{'DbName'} || 'mail_log'; |
||||||
|
my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd'; |
||||||
|
my $dbpass = $qpsmtpd{'DbPassword'} || 'secret'; |
||||||
|
|
||||||
|
$OUT .=<<"EOF"; |
||||||
|
# Log to MySQL |
||||||
|
logging/log2sql d $dbname o mysql_socket=/var/lib/mysql/mysql.sock u $dbuser p $dbpass D Yes |
||||||
|
EOF |
||||||
|
} |
||||||
|
else{ |
||||||
|
$OUT .= "# MySQL logging is disabled\n"; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue