NAME
Sympa::Aliases::Template - Alias management: Aliases file based on template
SYNOPSIS
use Sympa::Aliases;
my $aliases = Sympa::Aliases->new('Template',
[ file => '/path/to/file' ] );
$aliases->check('listname', 'domain');
$aliases->add($list);
$aliases->del($list);
DESCRIPTION
Sympa::Aliases::Template manages list aliases based on template
list_aliases.tt2
.
Methods
-
check ( $listname, $domain )
- add ( $list )
-
del ( $list )
Adds or removes aliases of list $list.
If constructor was called with
file
option, it will be used as aliases file andsympa_newaliases
utility will not be executed. Otherwise, value ofsendmail_aliases
parameter will be used as aliases file andsympa_newaliases
utility will be executed to update alias database. Ifsendmail_aliases
parameter is set tonone
, aliases will never be updated.
Configuration parameters
-
return_path_suffix
Suffix of list return address.
-
sendmail_aliases
Path of the file that contains all list related aliases.
-
tmpdir
A directory temporary files are placed.
FILES
$SYSCONFDIR/_domain name_/list_aliases.tt2
$SYSCONFDIR/list_aliases.tt2
-
$DEFAULTDIR/list_aliases.tt2
Template of aliases: Specific to a domain, global context and the default.
-
$SENDMAIL_ALIASES
Default location of aliases file.
-
$SBINDIR/sympa_newaliases
Auxiliary program to update alias database.
SEE ALSO
Sympa::Aliases, Sympa::Aliases::CheckSMTP, sympa_newaliases(1).
HISTORY
alias_manager.pl
to manage aliases using template appeared on
Sympa 3.1b.13.
Sympa::Aliases::Template module appeared on Sympa 6.2.23b,
and it obsoleted alias_manager(8)
.