Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A drop-in replacement for gnuhh hhvacation
Ruby
Tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.document
.gitignore
LICENSE
README.md
Rakefile
VERSION
hhvacation.gemspec

README.md

hhvacation

This is a drop-in replacement for the apparently no longer maintained hhvacation program included in the GNU Hosting Helper suite. It only operates on so called "virtual" vacation responders (i.e. they are kept in a MySQL database).

Usage

Change your Postfix' master.cf to include a line like:

vacation  unix  -       n       n       -       -       pipe flags=DRhu user=vacation argv=/usr/bin/hhvacation-ruby /etc/hhvacation.yml

The actual settings may vary depending on your setup. The argument passed to the hhvacation-ruby program which is installed by this gem must point to a YAML formatted config file. It must contain the database connection information (see below for an example). Unless configured otherwise, mails are delivered via the default method of the mail gem (SMTP on localhost port 25 for version 2.2.5).

Example config

database:
  host: localhost
  user: root
  password: s3cr3t
  database: mail

mail:
  method: sendmail
  location: /usr/local/bin/sendmail

The method setting in the mail section may contain whatever method is available in the mail gem. All further keys are directly passed as settings for the method.

Copyright

Copyright (c) 2010 Moritz Heidkamp. See LICENSE for details.

Something went wrong with that request. Please try again.