DOKK / manpages / debian 12 / sympa / Sympa::Aliases::External.3sympa.en
Sympa::Aliases::External(3Sympa) sympa 6.2.70 Sympa::Aliases::External(3Sympa)

Sympa::Aliases::External - Alias management: Updating aliases by external program

  use Sympa::Aliases;
  
  my $aliases = Sympa::Aliases->new('/path/to/program',
      [ file => 'file' ] );
  # or,
  my $aliases = Sympa::Aliases->new('External',
      program => '/path/to/program', [ file => 'file' ] );
  
  $aliases->check('listname', 'domain');
  $aliases->add($list);
  $aliases->del($list);

Sympa::Aliases::External manages list aliases using external program.

See Sympa::Aliases::CheckSMTP.
Invokes program with command line arguments:

  /path/to/program add | del listname domain [ file ]
    

If processing succeed, program should exit with status 0. Otherwise it may exit with non-zero status (see also "Constants").

Exit status

Configuration file has errors.
Incorrect call to program.
Unable to append to alias.
Unable to run newaliases command.
Unable to read existing aliases.
Could not create temporary file.
Some of list aliases already exist.
Can not lock resource.
The parser returned empty aliases.

Sympa::Aliases, Sympa::Aliases::CheckSMTP.

Sympa::Aliases::External module appeared on Sympa 6.2.23b.

2023-01-26 6.2.70