initial commit of file from CVS for smeserver-sendmail-wrapper on Sat Sep 7 21:04:04 AEST 2024
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
|
||||
return ";sendmail-wrapper.pl disabled to enable do: config setprop php sendmail enabled" if ($php{sendmail} || 'enabled') eq "disabled" ;
|
||||
my $mailog = $phpcur->prop(MailLog) || $php{"MailLog"} || "disabled";
|
||||
|
||||
$OUT= "# smeserver-sendmail-wrapper contrib\n";
|
||||
$OUT= "mail.log= \"/var/log/sendmail/mail.log\"\n" if $mailog eq "disabled";
|
||||
|
||||
$OUT= "sendmail_path= \"/usr/bin/sendmail-wrapper.pl\"\n";
|
||||
|
||||
}
|
10
root/etc/logrotate.d/sendmail-wrapper
Normal file
10
root/etc/logrotate.d/sendmail-wrapper
Normal file
@@ -0,0 +1,10 @@
|
||||
/var/log/sendmail/*.log {
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
weekly
|
||||
rotate 5
|
||||
create 0640 www www
|
||||
su www www
|
||||
}
|
||||
|
Reference in New Issue
Block a user