generated from smedev/Template-for-SMEServer-Core-Package
Compare commits
4 Commits
1_0-8_el8_
...
1_0-12_el8
| Author | SHA1 | Date | |
|---|---|---|---|
| bebb9a4bc8 | |||
| 58298abe3a | |||
| 72362ffc32 | |||
| 8dff3cd3fc |
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
104
root/etc/e-smith/templates/etc/aliases/00header
Normal file
104
root/etc/e-smith/templates/etc/aliases/00header
Normal file
@@ -0,0 +1,104 @@
|
||||
#
|
||||
# Aliases in this file will NOT be expanded in the header from
|
||||
# Mail, but WILL be visible over networks or from /bin/mail.
|
||||
#
|
||||
# >>>>>>>>>> The program "newaliases" must be run after
|
||||
# >> NOTE >> this file is updated for any changes to
|
||||
# >>>>>>>>>> show through to sendmail.
|
||||
#
|
||||
{
|
||||
%aliases = (
|
||||
# SME aliases
|
||||
'root'=> admin,
|
||||
|
||||
# Basic system aliases -- these MUST be present.
|
||||
'mailer-daemon'=> postmaster,
|
||||
'postmaster'=> admin, # for SME, EL default would be root
|
||||
|
||||
# General redirections for pseudo accounts.
|
||||
'bin'=> root,
|
||||
'daemon'=> root,
|
||||
'adm'=> root,
|
||||
'lp'=> root,
|
||||
'sync'=> root,
|
||||
'shutdown'=> root,
|
||||
'halt'=> root,
|
||||
'mail'=> root,
|
||||
'news'=> root,
|
||||
'uucp'=> root,
|
||||
'operator'=> root,
|
||||
'games'=> root,
|
||||
'gopher'=> root,
|
||||
'ftp'=> root,
|
||||
'nobody'=> root,
|
||||
'radiusd'=> root,
|
||||
'nut'=> root,
|
||||
'dbus'=> root,
|
||||
'vcsa'=> root,
|
||||
'canna'=> root,
|
||||
'wnn'=> root,
|
||||
'rpm'=> root,
|
||||
'nscd'=> root,
|
||||
'pcap'=> root,
|
||||
'apache'=> root,
|
||||
'webalizer'=> root,
|
||||
'dovecot'=> root,
|
||||
'fax'=> root,
|
||||
'quagga'=> root,
|
||||
'radvd'=> root,
|
||||
'pvm'=> root,
|
||||
'amandabackup'=> root,
|
||||
'privoxy'=> root,
|
||||
'ident'=> root,
|
||||
'named'=> root,
|
||||
'xfs'=> root,
|
||||
'gdm'=> root,
|
||||
'mailnull'=> root,
|
||||
'postgres'=> root,
|
||||
'sshd'=> root,
|
||||
'smmsp'=> root,
|
||||
'postfix'=> root,
|
||||
'netdump'=> root,
|
||||
'ldap'=> root,
|
||||
'squid'=> root,
|
||||
'ntp'=> root,
|
||||
'mysql'=> root,
|
||||
'desktop'=> root,
|
||||
'rpcuser'=> root,
|
||||
'rpc'=> root,
|
||||
'nfsnobody'=> root,
|
||||
'pcp'=> root,
|
||||
|
||||
'ingres'=> root,
|
||||
'system'=> root,
|
||||
'toor'=> root,
|
||||
'manager'=> root,
|
||||
'dumper'=> root,
|
||||
'abuse'=> root,
|
||||
|
||||
'newsadm'=> news,
|
||||
'newsadmin'=> news,
|
||||
'usenet'=> news,
|
||||
'ftpadm'=> ftp,
|
||||
'ftpadmin'=> ftp,
|
||||
'ftp-adm'=> ftp,
|
||||
'ftp-admin'=> ftp,
|
||||
'www'=> webmaster,
|
||||
'webmaster'=> root,
|
||||
'noc'=> root,
|
||||
'security'=> root,
|
||||
'hostmaster'=> root,
|
||||
'info'=> postmaster,
|
||||
'marketing'=> postmaster,
|
||||
'sales'=> postmaster,
|
||||
'support'=> postmaster,
|
||||
|
||||
|
||||
# trap decode to catch security attacks
|
||||
'decode'=> root,
|
||||
|
||||
# Person who should get root,'s mail
|
||||
#'root'=> marc
|
||||
);
|
||||
$OUT ="";
|
||||
}
|
||||
16
root/etc/e-smith/templates/etc/aliases/10aliases
Normal file
16
root/etc/e-smith/templates/etc/aliases/10aliases
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
use esmith::AccountsDB;
|
||||
my $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB";
|
||||
#$hum=$adb->users;
|
||||
my @users= map { $_->{key} } ( $adb->users,$adb->pseudonyms,$adb->groups,$adb->get_all_by_prop(type=>"system"),$adb->get_all_by_prop(type=>"ibay") );
|
||||
# do we want ibays, reserved, url, printers ?
|
||||
#$OUT .= join(", ", @users), "\n";
|
||||
|
||||
my @sorted_keys = sort keys %aliases;
|
||||
foreach my $key (@sorted_keys) {
|
||||
$OUT .= "# $key in SME Server accounts db, ignoring " if (grep { $_ eq $key } @users); #if (grep { /$key/ } @users);
|
||||
$OUT .= "$key: $aliases{$key}\n";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
my $DelayWarningTime = $postfix{'DelayWarningTime'} || "0h";
|
||||
$OUT = "delay_warning_time = $DelayWarningTime\n";
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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 "")
|
||||
|
||||
@@ -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 "")
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%define name smeserver-postfix
|
||||
%define version 1.0
|
||||
%define release 8
|
||||
%define release 12
|
||||
Summary: This is what smeserver-postfix does.
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
@@ -24,6 +24,19 @@ AutoReqProv: no
|
||||
Koozali SME Server wrapper to configure postfix
|
||||
|
||||
%changelog
|
||||
* Sun Nov 02 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-12.sme
|
||||
- template /etc/aliases [SME: 13262]
|
||||
- implement postfix delayed delivery notifications [SME: 12854]
|
||||
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user