| Server IP : 167.99.254.82 / Your IP : 216.73.216.188 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/sendmail/ |
Upload File : |
#!/usr/bin/perl
# Delete several mailers
require './sendmail-lib.pl';
require './mailers-lib.pl';
&ReadParse();
&error_setup($text{'mdelete_err'});
$access{'mailers'} || &error($text{'mailers_cannot'});
$conf = &get_sendmailcf();
$vfile = &mailers_file($conf);
($vdbm, $vdbmtype) = &mailers_dbm($conf);
# Find and validate
@d = split(/\0/, $in{'d'});
@d || &error($text{'adelete_enone'});
@virts = &list_mailers($vfile);
foreach $d (@d) {
($virt) = grep { $_->{'domain'} eq $d } @virts;
if ($virt) {
push(@delvirts, $virt);
}
}
# Delete the aliases
&lock_file($vfile);
foreach $virt (@delvirts) {
&delete_mailer($virt, $vfile, $vdbm, $vdbmtype);
}
&unlock_file($vfile);
&webmin_log("delete", "mailers", scalar(@delvirts));
&redirect("list_mailers.cgi");