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:
@@ -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>&-
|
Reference in New Issue
Block a user