For those have problem with ezmlm, first check if exist this files in your system:
/etc/e-smith/templates/var/qmail/users/assign/
30admin
40alias
45shared
50system
60users
70pseudonyms
80groups
90mailinglists
template-begin
template-end
In case you don't have 90mailinglists, investigate why tou lost this file. Here is the content to restore the file. Then make expand-template and restart server, or try post-upgrade event
{
use esmith::config;
use esmith::db;
$OUT = '';
# Generate qmail user assignments for mailing lists. These will be handled
# by ~ezmlm/.qmail-listname and ~ezmlm/.qmail-listname-ext.
my %accounts;
tie %accounts, 'esmith::config', "/home/e-smith/accounts";
my (undef, undef, $uid, $gid, undef, undef, undef, $dir, undef)
= getpwnam("ezmlm");
# It is almost impossible to get Text::Template to output nothing
# on failure. It can be done by removing the newline at the end of
# this file but that is messy. Therefore, we'll simply return an
# error message that will make qmail-newu fail. Also send a
# warning message that will be captured in the logs.
unless (defined $uid && defined $gid && defined $dir)
{
my $msg =
"Failed to obtain user details for \'ezmlm\' "
. "while processing group assignments.";
warn "$msg\n";
$OUT = $msg;
return;
}
my $ezmlm_assign = "ezmlm:${uid}:${gid}:${dir}";
foreach my $listname (db_get(\%accounts))
{
next unless db_get_type(\%accounts, $listname) eq "mailinglist";
# Assign mail for listname@
$OUT .= "=${listname}:${ezmlm_assign}:-:${listname}:\n";
# Assign mail for listname-ext@
$OUT .= "+${listname}-:${ezmlm_assign}:-${listname}-::\n";
}
# Need to remove the final newline character. Blank lines in
# /var/qmail/users/assign are prohibited.
chomp($OUT);
# Failsafe: /var/qmail/users/assign cannot have blank lines.
# Therefore, if $OUT is empty, simply set up an assign for the
# ezmlm user.
$OUT = "=ezmlm:${ezmlm_assign}:::" unless $OUT;
}
Normando Hall