Compare commits

...

4 Commits

Author SHA1 Message Date
58298abe3a * Wed Jan 08 2025 Brian Read <brianr@koozali.org> 1.0-11.sme
- reload-or-restart postfix after pseudonym change [SME: 12863]
2025-01-08 10:20:49 +00:00
72362ffc32 * Sun Dec 29 2024 Brian Read <brianr@koozali.org> 1.0-10.sme
- Quotes round smtp-auth-proxy in templates for main.cf and sasl-passwd [SME: 12836]
2024-12-29 06:42:00 +00:00
8dff3cd3fc * Mon Dec 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-9.sme
- fix virtual  expected format: key whitespace value for empty group [SME: 12834]
2024-12-23 00:33:21 -05:00
23c9a3a595 * Fri Dec 20 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-8.sme
- fix catch-all behaviour [SME: 12382]
  myorigin now is hostname
  in case email sent outside by deamon generic rewrite occurs
2024-12-20 07:24:15 -05:00
8 changed files with 27 additions and 12 deletions

View File

@ -214,6 +214,13 @@ safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/uqpsmtpd
# files(s) to be backed up
#));
#--------------------------------------------------
# actions for pseudonym-{create,delete,modify}
#--------------------------------------------------
foreach $event ( qw(pseudonym-create pseudonym-modify pseudonym-delete) )
{
safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/postfix");
}

View File

@ -11,7 +11,7 @@ smtp_tls_note_starttls_offer = yes
# was issued by a CA that is trusted by the Postfix SMTP client
}smtp_tls_security_level = {
my $smarthost = $SMTPSmartHost || "off";
my $userid = ${smtp-auth-proxy}{'Userid'} || "";
my $userid = ${'smtp-auth-proxy'}{'Userid'} || "";
my $tls_security_level = $postfix{'tls_security_level'} || "may";
$tls_security_level = "encrypt" if ($smarthost ne "off" && $userid ne "");
$OUT = $tls_security_level;

View File

@ -1,9 +1,9 @@
## SME relay outgoing mails to smarthost
{
my $smarthost = $SMTPSmartHost || "off";
my $userid = ${smtp-auth-proxy}{'Userid'} || "";
my $password = ${smtp-auth-proxy}{'Passwd'} || "";
my $port = ${smtp-auth-proxy}{'PeerPort'} || "25";
my $userid = ${'smtp-auth-proxy'}{'Userid'} || "";
my $password = ${'smtp-auth-proxy'}{'Passwd'} || "";
my $port = ${'smtp-auth-proxy'}{'PeerPort'} || "25";
return "#Smarthost disabled" unless $smarthost ne "off";
$OUT = "relayhost = [$smarthost]:$port\n";
if ($userid ne "")

View File

@ -1,9 +1,9 @@
## SME relay outgoing mails to smarthost
{
my $smarthost = $SMTPSmartHost || "off";
my $userid = ${smtp-auth-proxy}{'Userid'} || "";
my $password = ${smtp-auth-proxy}{'Passwd'} || "";
my $port = ${smtp-auth-proxy}{'PeerPort'} || "25";
my $userid = ${'smtp-auth-proxy'}{'Userid'} || "";
my $password = ${'smtp-auth-proxy'}{'Passwd'} || "";
my $port = ${'smtp-auth-proxy'}{'PeerPort'} || "25";
return "#Smarthost disabled" unless $smarthost ne "off";
$OUT = "";
if ($userid ne "")

View File

@ -25,6 +25,6 @@
push @members, $user;
}
my $members = join(' ', @members);
$OUT .= "$acct\t\t\t$members\n";
$OUT .= "$acct\t\t\t$members\n" if $members;
}
}

View File

@ -9,7 +9,6 @@
touch /etc/postfix/sasl_passwd.db
chmod 0600 /etc/postfix/sasl_passwd.db
chown root:root /etc/postfix/sasl_passwd.db
/usr/sbin/postmap /etc/aliases
/usr/sbin/postmap /etc/postfix/virtual
/usr/sbin/postmap /etc/postfix/sasl_passwd
/usr/sbin/postmap /etc/postfix/transport

View File

@ -9,7 +9,7 @@
touch /etc/postfix/sasl_passwd.db
chmod 0600 /etc/postfix/sasl_passwd.db
chown root:root /etc/postfix/sasl_passwd.db
/usr/sbin/postmap /etc/aliases
/usr/libexec/postfix/aliasesdb
/usr/sbin/postmap /etc/postfix/virtual
/usr/sbin/postmap /etc/postfix/sasl_passwd
/usr/sbin/postmap /etc/postfix/transport

View File

@ -1,6 +1,6 @@
%define name smeserver-postfix
%define version 1.0
%define release 7
%define release 11
Summary: This is what smeserver-postfix does.
Name: %{name}
Version: %{version}
@ -24,7 +24,16 @@ AutoReqProv: no
Koozali SME Server wrapper to configure postfix
%changelog
* Fri Dec 20 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-7.sme
* Wed Jan 08 2025 Brian Read <brianr@koozali.org> 1.0-11.sme
- reload-or-restart postfix after pseudonym change [SME: 12863]
* Sun Dec 29 2024 Brian Read <brianr@koozali.org> 1.0-10.sme
- Quotes round smtp-auth-proxy in templates for main.cf and sasl-passwd [SME: 12836]
* Mon Dec 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-9.sme
- fix virtual expected format: key whitespace value for empty group [SME: 12834]
* Fri Dec 20 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-8.sme
- fix catch-all behaviour [SME: 12382]
myorigin now is hostname
in case email sent outside by deamon generic rewrite occurs