Ajout des logs pour les mails venant de l'extérieur

tags/0.0.1 0.0.1
Daniel Berteaud 12 years ago
parent 60441b6b0e
commit d6eaa842fe
  1. 15
      root/etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/03log2sql

@ -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…
Cancel
Save