diff --git a/INSTALL b/INSTALL index fe32ee55b..956407e91 100644 --- a/INSTALL +++ b/INSTALL @@ -1,4 +1,3 @@ -:q Installation ============ @@ -163,6 +162,10 @@ Then, create new map files with the following content:: hosts = 127.0.0.1 query = SELECT full_address, autoreply_address FROM postfix_autoreply_alias WHERE full_address='%s' +Finally, edit the shell script 'autoreply' located inside the +'scripts' directory and change the value of BASEDIR. (just put absolute path +of the directory where mailng is installed) + NB: auto-reply messages are just sent one time per sender for a pre-defined time period. By default, this period is equal to 1 day (86400s), you can adjust this value by modifying the AUTOREPLY_TIMEOUT diff --git a/scripts/autoreply b/scripts/autoreply index 7975c43d7..559dbfe6c 100755 --- a/scripts/autoreply +++ b/scripts/autoreply @@ -1,7 +1,8 @@ #!/bin/sh -BASEDIR=/home/tonio +BASEDIR=/var/www export PYTHONPATH=$BASEDIR export DJANGO_SETTINGS_MODULE=mailng.settings +#export PYTHON_EGG_CACHE=/tmp $BASEDIR/mailng/scripts/autoreply.py $1 $2