generated from smedev/Template-for-SMEServer-Core-Package
* Sun Dec 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-5.sme
- add mini-qmail as Message delivery agent [SME: 12737] few other fixes; +x on needed executable files migrate old qmail properties used in postfix catch all non existing recipient / check BCC working
This commit is contained in:
parent
0e6e82c9a1
commit
df66a327cc
@ -1 +1,2 @@
|
||||
myorigin = $mydomain
|
||||
append_at_myorigin = yes
|
||||
|
@ -4,7 +4,7 @@
|
||||
my $display = 0;
|
||||
use esmith::DomainsDB;
|
||||
my $domainsdb = esmith::DomainsDB->open_ro();
|
||||
for my $domain ($domainsdb->domains)
|
||||
for my $domain ($domainsdb->get_all)
|
||||
{
|
||||
my $mail_server = $domain->prop('MailServer')
|
||||
|| $DelegateMailServer
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
# we use the value of EmailUnknownUser (default to returntosender)
|
||||
return "# we bounce all unknown address $EmailUnknownUser not set or equal to returntosender " unless (defined $EmailUnknownUser and $EmailUnknownUser ne 'returntosender');
|
||||
$OUT ="luser_relay = $EmailUnknownUser";
|
||||
|
||||
}
|
||||
# we use the value of EmailUnknownUser (default to returntosender)
|
||||
# this option night ignore all virtual_maps entries... like pseudonyms and groups in case of virtual domain
|
||||
# see /etc/e-smith/templates//etc/postfix/virtual/95unknownusers
|
||||
#return "# we bounce all unknown address $EmailUnknownUser not set or equal to returntosender " unless (defined $EmailUnknownUser and $EmailUnknownUser ne 'returntosender');
|
||||
#$OUT ="luser_relay = $EmailUnknownUser";
|
||||
}# if enabled, we catch all unknown users in virtual
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
|
||||
for my $domain ($domainsdb->domains)
|
||||
for my $domain ($domainsdb->get_all)
|
||||
{
|
||||
|
||||
my $mail_server = $domain->prop('MailServer')
|
||||
|
@ -1,3 +1,2 @@
|
||||
# SME users
|
||||
# not needed postfix will map all system users directly
|
||||
|
||||
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
# as we might have virtualdomains we prefer this over luser_relay
|
||||
return "# we bounce all unknown address $EmailUnknownUser not set or equal to returntosender " unless (defined $EmailUnknownUser and $EmailUnknownUser ne 'returntosender');
|
||||
$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 '');
|
||||
$OUT .= "\@$domain $EmailUnknownUser\n";
|
||||
}
|
||||
}
|
@ -3,6 +3,7 @@ ExecStartPre=/sbin/e-smith/service-status postfix
|
||||
ExecStartPre=/sbin/e-smith/systemd/postfix-pre
|
||||
ExecReload=
|
||||
ExecReload=/sbin/e-smith/systemd/postfix-reload
|
||||
SyslogIdentifier=postfix
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
Loading…
Reference in New Issue
Block a user