Skip to content

Commit

Permalink
Always load the postfix module #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed May 29, 2024
1 parent b1d4926 commit 6084741
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtualmin-mailman-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
eval "use WebminCore;";
&init_config();
&foreign_require("virtual-server", "virtual-server-lib.pl");
if (&foreign_check("postfix")) {
&foreign_require("postfix");
}

my %pconfig = &foreign_config("postfix");
my $postfix_dir;
Expand Down Expand Up @@ -159,7 +162,6 @@ sub mailman_check
return &text('feat_efile', "<tt>$maillist_file</tt>")
if (!-r $maillist_file);
return $text{'feat_epostfix'} if ($vconfig{'mail_system'} != 0);
&foreign_require("postfix", "postfix-lib.pl");
my @files = &postfix::get_maps_files(
&postfix::get_real_value($transport_map));
return $text{'feat_etransport'} if (!@files);
Expand Down Expand Up @@ -259,7 +261,6 @@ sub create_list

if (&get_mailman_version() >= 3) {
# Setup Postfix to use Mailman LMTP
&foreign_require("postfix");
&postfix::lock_postfix_files();
my $lmtp = "hash:".$lmtp_map;
my $domains = "hash:".$domains_map;
Expand Down

0 comments on commit 6084741

Please sign in to comment.