Code Monkey home page Code Monkey logo

go-autoresponder's Introduction

This is postfix autoresponder is originally written by Charles Hamilton, rewritten by asmpro and now rewritten by me for my purpose.

Installation

Create autoresponder user

useradd -d /var/spool/autoresponder -s $(which nologin) autoresponder

Compile autoresponder

go get git.gurkengewuerz.de/Gurkengewuerz/go-autoresponder

Copy autoresponder binary to /usr/local/sbin

cp ~/gowork/bin/go-autoresponder /usr/local/sbin/autoresponder
chown autoresponder:autoresponder /usr/local/sbin/autoresponder
chmod 6755 /usr/local/sbin/autoresponder

Create response_dir

mkdir -p /var/spool/autoresponder/responses
cp ~/gowork/src/git.gurkengewuerz.de/Gurkengewuerz/go-autoresponder/config.ini.sample /var/spool/autoresponder/config.ini
chown -R autoresponder:autoresponder /var/spool/autoresponder
chmod -R 0770 /var/spool/autoresponder

Create Log Path

touch /var/log/autoresponder.log
chown autoresponder:autoresponder /var/log/autoresponder.log

Edit /etc/postfix/master.cf

Replace line:

smtp inet n - - - - smtpd

with these two lines (second must begin with at least one space or tab):

smtp inet n - - - - smtpd
  -o content_filter=autoresponder:dummy

At the end of file append the following two lines:

autoresponder unix - n n - - pipe
  flags=Fq user=autoresponder argv=/usr/local/sbin/autoresponder -s ${sender} -r ${recipient} -c /var/spool/autoresponder/config.ini -logfile /var/log/autoresponder.log

Set additional postfix parameter

postconf -e 'autoresponder_destination_recipient_limit = 1'

Restart postfix

service postfix restart

go-autoresponder's People

Contributors

asmpro avatar gurkengewuerz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bugoff gunesahmet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.