ARAGOI
/usr/loca/aragoi/
にaragoi.zipをコピー
tar -xf aragoi.zip
で解凍されます。
それぞれのcgi-binディレクトリにシンボリックリンクをはってください。
ln -s /usr/local/aragoi/aragoi.exe .
最後の点はここにの意味です。
ls -lで実行ファイルになっているか確認してください。
aragoiによるAuthentification
Patch to Postfix lookuptable for arago for internet
READMEARGI
Thid document is how to patch postfix for aragoi.
This patch file patch neccesary files and creates dict_argi.c and
dict_argi.h.
Before you start , prepare user account and groups;
vipw adds to /etc/passwd:
postfix:*:12345:12345:postfix:/no/where:/no/shell
vi /etc/group add next lines
postfix:*:12345:
postdrop:*:54321:
vi /etc/aliases add next line
postfix: root
copy postfixargi.patch to the directory where you tar the tar file of
postfix.
Make sure postfix tar file;s version number in patch file.
In the directory where you tared.
patch < postfixargi.patch
then
go to tar created postfix directory
make tidy
make -f Makefile.init makefiles 'CCARGS=-DHAS_ARGI'
make
make install
U can check
postconf -m to shows argi available
U have to make symbolic link of aragoi.exe in to /usr/sbin/ where
postfix binary are installed
Here asum you have installed aragoi.exe in to /usr/local/aragoi/
ln -s /usr/local/aragoi/aragoi.exe .
In postfix conf file
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmaildir
change like this;
virtual_mailbox_maps = argi:/usr/local/etc/postfix/vmaildir.prg
virtual_mailbox_maps is used to find mail account's mailbox directory.
In the program vmaildir.prg which will be executed by aragoi looks like
this
*********vmaildir.prg
use /usr/local/postfix/etc/vmaildir.dbf inde vmail.ndx
&&need specify the location of dbf and index files
&&vmail.ndx is indexed on key field
value = getarg(2)
if seek(value)
output(mailbox) &&if found, return result
value
else
output("") &&if not found, return blank !
endif
use
************************************
vmail.dbf
mailacnt char 50
mailbox char 80
vmail.ndx is indexed on mailacnt
How to check
postmap -q serachstring argi:/directory/abc.prg
if success
it return target string
if failes
return nothing
postfixargi.patch
Dovecot向けのPatchをそのうち公開します。