-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. added checkrecipient-ezmlm Pluggable Address Module for qmail-smtpd recipient extension
- Loading branch information
Showing
13 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ Makevars. | |
PKGBUILD | ||
ezmlm.changes | ||
install | ||
checkrecipient-ezmlm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
d:::755::: | ||
c:::755:/:checkrecipient-ezmlm: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# This is a Pluggable Address Module for qmail-smtpd | ||
# recipients extension | ||
# This module reads an address from descriptor 3 | ||
# if addr is an address configured in ezmlm/ezmlm-idx | ||
# It needs to be called using the qmail-smtpd recipient | ||
# extension in SYSCONFDIR/control/recipients | ||
# like this | ||
# | ||
# @domain|LIBEXEC/ezmlm/checkrecipient-ezmlm | ||
# or | ||
# user|LIBEXEC/ezmlm/checkrecipient-ezmlm | ||
# | ||
exec 0<&3 | ||
read addr | ||
|
||
domain=$(echo $addr|cut -d@ -f2) | ||
if [ -z "$domain" ] ; then # mail to local user | ||
user=$addr | ||
# get the user's home directory | ||
dir=$(getent passwd $user | awk -F: '{print $6}') | ||
else | ||
# check if this is one of our domains | ||
grep $domain SYSCONFDIR/control/rcpthosts >/dev/null 2>&1 | ||
[ $? -ne 0 ] && exit 1 | ||
user=$(echo $addr | cut -d@ -f1) | ||
# get the domain directory | ||
dir=$(grep "+""$domain""-" SYSCONFDIR/users/assign | awk -F: '{print $5}' 2>/dev/null) | ||
fi | ||
|
||
# check if ezmlm list exists | ||
[ -n "$dir" -a -d "$dir/$user" ] && exit 0 || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/libexec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0 | ||
1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
usr/bin /usr | ||
usr/sbin /usr | ||
usr/share/man /usr/share | ||
usr/bin /usr | ||
usr/sbin /usr | ||
usr/share/man /usr/share | ||
usr/libexec/ezmlm /usr/libexec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters