generated from smedev/Template-for-SMEServer-Core-Package
- listen only via sockets - use both unix user and virtual users - groups and pseudonyms implemented in virtual maps - support smarthost with and without auth - support global and per domain delegated mail server - support ssl - uses qmail - recipient delimiter in left part of email. - all domains set as local domains in mydestination - message_size_limit - local and remote concurency limit
17 lines
641 B
Plaintext
17 lines
641 B
Plaintext
# SME Primary domain and host: looks up all recipients in /etc/passwd and /etc/aliases
|
|
mydestination = $myhostname $mydomain $myhostname.$mydomain localhost.$mydomain localhost {
|
|
$OUT = " ";
|
|
my $i = 0;
|
|
use esmith::DomainsDB;
|
|
my $ddb = esmith::DomainsDB->open_ro;
|
|
my @domains = map { $_->key } $ddb->get_all_by_prop('type' => 'domain');
|
|
foreach my $domain ( @domains )
|
|
{
|
|
my $d = $ddb->get($domain);
|
|
next if (($d->prop('VirtualMail') || "disabled") eq "enabled");
|
|
next unless (($d->prop('MailServer') || '') eq '');
|
|
next if $domain eq $DomainName;
|
|
$OUT .= "$domain ";
|
|
}
|
|
}
|