diff --git a/README.md b/README.md index b4d4483..fcfa677 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Koozali SME Server wrapper to configure postfix ## Development and testing ``` mkdir -p /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local}/90queue-qmail-queue - echo 'return "queue/postfix-queue";' > /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local}/90queue-qmail-queue + echo 'queue/postfix-queue' > /etc/e-smith/templates-custom/var/service/{qpsmtpd,sqpsmtpd,uqpsmtpd}/config/peers/{0,local}/90queue-qmail-queue config setprop qmail status disabled systemctl stop qmail signal-event email-update diff --git a/root/etc/e-smith/events/actions/conf-postfix b/root/etc/e-smith/events/actions/conf-postfix new file mode 100755 index 0000000..1042359 --- /dev/null +++ b/root/etc/e-smith/events/actions/conf-postfix @@ -0,0 +1,8 @@ +#!/bin/bash + +#first we set postfix sendmail as default one +/usr/sbin/alternatives --set mta /usr/sbin/sendmail.postfix + +# we add qpsmtpd to the group to allow to send email to postfix sockets +/usr/sbin/usermod -a -G postdrop qpsmtpd + diff --git a/smeserver-postfix.spec b/smeserver-postfix.spec index 1705167..40eff37 100644 --- a/smeserver-postfix.spec +++ b/smeserver-postfix.spec @@ -1,6 +1,6 @@ %define name smeserver-postfix %define version 1.0 -%define release 2 +%define release 3 Summary: This is what smeserver-postfix does. Name: %{name} Version: %{version} @@ -13,6 +13,9 @@ Prefix: %{_prefix} BuildArchitectures: noarch BuildRequires: e-smith-devtools Requires: e-smith-release >= 10.0 +Requires: postfix +Requires: postfix-perl-scripts +Requires: postfix-pcre Requires: zsh AutoReqProv: no @@ -20,6 +23,10 @@ AutoReqProv: no Koozali SME Server wrapper to configure postfix %changelog +* Tue Nov 19 2024 Jean-Philippe Pialasse 1.0-3.sme +- add requirements [SME: 12737] +- add conf-postfix + * Sun Nov 17 2024 1.0-2.sme - listen only via sockets - use both unix user and virtual users