imapext-2007
diff APOPtools/pop3-record.postfix @ 4:d741b3ecc917
imapext-2007f
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 30 Oct 2014 00:03:05 +0900 |
parents | 28a55bc1110c |
children |
line diff
1.1 --- a/APOPtools/pop3-record.postfix Mon Sep 14 19:23:11 2009 +0900 1.2 +++ b/APOPtools/pop3-record.postfix Thu Oct 30 00:03:05 2014 +0900 1.3 @@ -27,3 +27,32 @@ 1.4 esac 1.5 touch $OKCLIENT.1 $OKCLIENT.2 1.6 cat $OKCLIENT.1 $OKCLIENT.2 | postmap -r -i hash:$CLIENTACCESS 1.7 +#!/bin/sh - 1.8 +# A sample "POP before SMTP"-enabler script for Postfix 1.9 +# This script should be installed in /usr/local/etc. 1.10 +# This script assumes 1.11 +# 1.12 +POSTFIXDIR=/etc/postfix 1.13 +POSTFIXBIN=/usr/libexec/postfix 1.14 +PATH=$POSTFIXBIN\:$PATH 1.15 +OKDIR=/var/log 1.16 +OKCLIENT=$OKDIR/ATMP 1.17 +CLIENTACCESS=$POSTFIXDIR/client_access 1.18 + 1.19 +case $0 in 1.20 + *record) 1.21 + echo "$RELAYCLIENT OK" >> $OKCLIENT.1 1.22 + ;; 1.23 + *age) 1.24 + rm -f $OKCLIENT.2 1.25 + [ -f $OKCLIENT.1 ] && mv -f $OKCLIENT.1 $OKCLIENT.2 1.26 + echo '' > $CLIENTACCESS 1.27 + # rm -f $CLIENTACCESS.db 1.28 + postmap hash:$CLIENTACCESS 1.29 + ;; 1.30 + *) 1.31 + # else generate master client_access.db 1.32 + ;; 1.33 +esac 1.34 +touch $OKCLIENT.1 $OKCLIENT.2 1.35 +cat $OKCLIENT.1 $OKCLIENT.2 | postmap -r -i hash:$CLIENTACCESS