generated from smedev/Template-for-SMEServer-Core-Package
* Sun Dec 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-4.sme
- add mini-qmail as Message delivery agent [SME: 12737] few other fixes TODO migrate old qmail properties and change in template TODO catch all non existing recipient / check BCC working
This commit is contained in:
parent
f2b33f4260
commit
0cec86dcb7
1
root/etc/e-smith/templates/etc/postfix/main.cf/05compat
Normal file
1
root/etc/e-smith/templates/etc/postfix/main.cf/05compat
Normal file
@ -0,0 +1 @@
|
||||
compatibility_level=2
|
22
root/etc/e-smith/templates/etc/postfix/main.cf/80qmail
Normal file
22
root/etc/e-smith/templates/etc/postfix/main.cf/80qmail
Normal file
@ -0,0 +1,22 @@
|
||||
# qmail local delivery{
|
||||
|
||||
## alternatively we could set a db with per user delivery
|
||||
|
||||
# mailbox_command_maps = hash:/etc/postfix/mailbox_commands
|
||||
|
||||
## in /etc/postfix/mailbox_commands
|
||||
# # These users need qmail-local delivery.
|
||||
# johndoe /usr/local/libexec/postqmail-local
|
||||
# janedoe /usr/local/libexec/postqmail-local
|
||||
|
||||
###########################################
|
||||
# alternatively we could ask dovecot to handle the delivery
|
||||
#mailbox_command = /usr/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT" -d "$USER"
|
||||
# then sieve rules are needed
|
||||
|
||||
# maildrop or procmail could do to ....
|
||||
}
|
||||
prepend_delivered_header = file, forward
|
||||
mailbox_command = /usr/bin/postqmail-local
|
||||
# qmail needs to forward to qmqpd
|
||||
qmqpd_authorized_clients = 127.0.0.1
|
@ -1,5 +1,3 @@
|
||||
#2525 inet n - n - - smtpd
|
||||
# :25 is in use by qpsmtpd
|
||||
#smtp inet n - n - - smtpd
|
||||
#smtp inet n - n - 1 postscreen
|
||||
#smtpd pass - - n - - smtpd
|
||||
|
1
root/etc/e-smith/templates/etc/postfix/master.cf/34qmqpd
Normal file
1
root/etc/e-smith/templates/etc/postfix/master.cf/34qmqpd
Normal file
@ -0,0 +1 @@
|
||||
628 inet n - n - - qmqpd
|
@ -1,4 +1,3 @@
|
||||
#628 inet n - n - - qmqpd
|
||||
pickup unix n - n 60 1 pickup
|
||||
cleanup unix n - n - 0 cleanup
|
||||
qmgr unix n - n 300 1 qmgr
|
||||
|
4
root/etc/e-smith/templates/etc/postfix/master.cf/36qmail
Normal file
4
root/etc/e-smith/templates/etc/postfix/master.cf/36qmail
Normal file
@ -0,0 +1,4 @@
|
||||
# qmail need to test for virtual boxes
|
||||
qmail-local unix - n n - - pipe
|
||||
user=$USER argv=/usr/bin/sudo -u $user -H /usr/bin/postqmail-local ${mailbox} ${extension} ${nexthop} ${sender}
|
||||
|
@ -7,7 +7,7 @@ dotqm=${DOTQMAIL:-.qmail}
|
||||
DQHOME=${DQHOME:-$HOME}
|
||||
cd $DQHOME
|
||||
DEFAULTSPOOL=./Maildir/
|
||||
PATH=${PATH}:/usr/sbin:/usr/lib; export PATH
|
||||
PATH=${PATH}:/usr/sbin:/usr/lib:/var/qmail/bin; export PATH
|
||||
if [ -s $DQHOME/.dotqmailexts ]; then
|
||||
while IFS=: read ext home; do
|
||||
home=${home/\~\//$HOME/}
|
||||
|
@ -5,9 +5,8 @@
|
||||
# $3 = $DOMAIN
|
||||
# $4 = $SENDER
|
||||
export PATH=$PATH:/usr/local/bin:/var/qmail/bin
|
||||
tail +2 | seekablepipe qmail-local -- \
|
||||
"$USER" "$HOME" "$LOCAL" "${EXTENSION:+-}" "$EXTENSION"
|
||||
"$DOMAIN""$SENDER" ./Maildir/
|
||||
tail -n +2 | /usr/local/bin/seekablepipe qmail-local -- \
|
||||
"$USER" "$HOME" "$LOCAL" "${EXTENSION:+-}" "$EXTENSION" "$DOMAIN" "$SENDER" ./Maildir/
|
||||
e=$?
|
||||
(($e == 111)) && exit 75
|
||||
(($e == 100)) && exit 77
|
||||
|
@ -1,6 +1,8 @@
|
||||
[Service]
|
||||
ExecStartPre=-/usr/sbin/postmap /etc/postfix/virtual
|
||||
ExecStartPre=/sbin/e-smith/service-status postfix
|
||||
ExecStartPre=/sbin/e-smith/systemd/postfix-pre
|
||||
ExecReload=
|
||||
ExecReload=/sbin/e-smith/systemd/postfix-reload
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
7
root/usr/local/bin/seekablepipe
Normal file
7
root/usr/local/bin/seekablepipe
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
tmp=/var/tmp/seekable.$$
|
||||
exec 3<&0 4<&1 >$tmp <$tmp
|
||||
rm $tmp
|
||||
cat <&3
|
||||
exec ${1+"$@"} 1<&4 3>&- 4>&-
|
@ -1,6 +1,6 @@
|
||||
%define name smeserver-postfix
|
||||
%define version 1.0
|
||||
%define release 3
|
||||
%define release 4
|
||||
Summary: This is what smeserver-postfix does.
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
@ -17,12 +17,19 @@ Requires: postfix
|
||||
Requires: postfix-perl-scripts
|
||||
Requires: postfix-pcre
|
||||
Requires: zsh
|
||||
Requires: smeserver-mini-qmail
|
||||
AutoReqProv: no
|
||||
|
||||
%description
|
||||
Koozali SME Server wrapper to configure postfix
|
||||
|
||||
%changelog
|
||||
* Sun Dec 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-4.sme
|
||||
- add mini-qmail as Message delivery agent [SME: 12737]
|
||||
few other fixes
|
||||
TODO migrate old qmail properties and change in template
|
||||
TODO catch all non existing recipient / check BCC working
|
||||
|
||||
* Tue Nov 19 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.0-3.sme
|
||||
- add requirements [SME: 12737]
|
||||
- add conf-postfix
|
||||
|
Loading…
Reference in New Issue
Block a user