summaryrefslogtreecommitdiff
path: root/FS/FS/part_export/postfix.pm
blob: c24cf19a3809714ff7d7dccd9c17c983c5f2fdc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package FS::part_export::postfix;

use vars qw(@ISA %info);
use Tie::IxHash;
use FS::part_export::null;

@ISA = qw(FS::part_export::null);

tie my %options, 'Tie::IxHash',
  'user'    => { label=>'Remote username',       default=>'root' },
  'aliases' => { label=>'aliases file location', default=>'/etc/aliases' },
  'virtual' => { label=>'virtual file location', default=>'/etc/postfix/virtual' },
  'mydomain' => { label=>'local domain', default=>'' },
;

%info = (
  'svc'     => 'svc_forward',
  'desc'    => 'Postfix text files',
  'options' => \%options,
  'notes'   => <<'END'
Batch export of Postfix aliases and virtual files.
<a href="http://search.cpan.org/dist/File-Rsync">File::Rsync</a>
must be installed.  Run bin/postfix.export to export the files.
END
);

1;