generated from smedev/Template-for-SMEServer-Core-Package
Jean-Philippe Pialasse
0cec86dcb7
- 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
14 lines
377 B
Bash
14 lines
377 B
Bash
#!/bin/sh
|
|
#credit Ron Bickers <rbickers@logicetc.com>
|
|
# $1 = $LOCAL
|
|
# $2 = $EXTENSION
|
|
# $3 = $DOMAIN
|
|
# $4 = $SENDER
|
|
export PATH=$PATH:/usr/local/bin:/var/qmail/bin
|
|
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
|
|
exit $e
|