From: Christophe C. <chr...@pu...> - 2004-09-30 15:52:29
|
Jamie Cameron wrote: > The 2.10 version of Virtualmin (...) > > As always, let me know about any bugs you find or new features About the new email clash detection added in 2.00 that caused problems if a new virtual alias (ex webmaster@vhost) matches a system alias from /etc/aliases (ex webmaster), there is a new check in 2.10 apparently solving that by a new test about $config{'alias_clash'}. See below for part of the 'diff -u' between 2.00 and 2.10 in feature-mail.pl. I guess it means a new option should appear in virtualmin config but I cant find it. Is my guess right? I'm interested, because setting it to false or not defining it solve the above problem. Should I put in /etc/webmin/virtual-server/config a line like 'alias_clash=0' ? Is it the way it's supposed to work? -- Christophe From diff -u between 2.00 and 2.10 for feature-mail.pl: elsif ($config{'mail_system'} == 0) { local @aliases = &postfix::list_aliases($postfix_afiles); local $an = $_[0] ? "$_[0]-$_[1]" : "default-$_[1]"; - ($clash) = grep { $_[0] && $_->{'name'} eq $_[0] || + ($clash) = grep { ($config{'alias_clash'} && + $_[0] && $_->{'name'} eq $_[0]) || $_->{'name'} eq $an } @aliases; return 2 if ($clash); } |