dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on May 05, 2016, 07:43:56 AM

Title: Server: Autoresponder for webmaster
Post by: Chip on May 05, 2016, 07:43:56 AM
vacation installed from the PUIAS rpm.

http://comments.gmane.org/gmane.linux.centos.general/139752:
http://www.ducea.com/2008/11/05/howto-setup-vacation-using-postfix-on-debian-etch/
https://docs.oracle.com/cd/E19120-01/open.solaris/819-1634/mailrefer-39/index.html

For a local setup (no virtual mail users), install vacation-1.2.7.0-7.puias6.x86_64

EXTRA, undocumented but needed for centOS6 repository: create /etc/repos.d/puias-client

[puias-client]
name=PUIAS Client
baseurl=http://puias.math.ias.edu/data/puias/6/x86_64/os/Addons/
enabled=1
gpgcheck=0

then on the right user:

-create database:

# vacation -I -t 0<--- this is undocumented but set the time for autoREesponding to 0.

- create a file called .vacation.msg in the home of the user; for example this might look like:

Subject: Re: $SUBJECT

*body of email goes here* eg.:

Code: [Select]
Subject: Re: $SUBJECT

WARNING - "webmaster" is an unattended user mailbox but may occasionally send you an email.

You may have tried to reply to a 'PM Notification' email and if so, your reply will never be seen by the PM's recipient.

Instead, login to the forum and open your Notification email via "Messages" (or try to take the link in the email).

Do NOT reply to this email either.

Please address all regular correspondence to the smfadmin user mailbox instead.

- Finally you need to trigger the activation of the vacation auto-reply when an email is received by the user. This can be done in different ways, using a .forward file or procmail, etc so create a file called .forward to keep one copy of the email local and to pipe it also to vacation you would need to create the file (replace username with the actual user name):

\webmaster, "|/usr/bin/vacation webmaster"
SimplePortal 2.3.6 © 2008-2014, SimplePortal