PostfixAdmin Autoresponder (Ubuntu 16.04): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 2: Zeile 2:




==== Allgemein ====
== Allgemein ==


Die Installation ist in der Datei [[Medium:INSTALL.TXT|/var/www/postfixadmin/VIRTUAL_VACATION/INSTALL.TXT]] beschrieben.
Die Installation ist in der Datei [[Medium:INSTALL.TXT|/var/www/postfixadmin/VIRTUAL_VACATION/INSTALL.TXT]] beschrieben.


==== Installation ====
== Installation ==


===== Pakete installieren =====
=== Pakete installieren ===


Laut <code>/var/www/postfixadmin/VIRTUAL_VACATION/vacation.pl</code> sind folgende zusätzliche Pakete notwendig:
Laut <code>/var/www/postfixadmin/VIRTUAL_VACATION/vacation.pl</code> sind folgende zusätzliche Pakete notwendig:
Zeile 19: Zeile 19:
</pre>
</pre>


===== Script =====
=== Script ===


Da der Mailinhalt möglicherweise gefährlich sein kann, wird ein lokaler Benutzer <code>vacation</code> dafür angelegt:
Da der Mailinhalt möglicherweise gefährlich sein kann, wird ein lokaler Benutzer <code>vacation</code> dafür angelegt:
Zeile 42: Zeile 42:
</pre>
</pre>


==== config.local.php ====
== config.local.php ==


Die Datei config.local.php editieren
Die Datei config.local.php editieren
Zeile 64: Zeile 64:
</pre>
</pre>


==== Links ====
==Links ==


[http://craigballinger.com/blog/2009/08/postfix-vacation-autoresponder/ http://craigballinger.com/blog/2009/08/postfix-vacation-autoresponder/]
[http://craigballinger.com/blog/2009/08/postfix-vacation-autoresponder/ http://craigballinger.com/blog/2009/08/postfix-vacation-autoresponder/]

Version vom 17. März 2018, 19:09 Uhr

Noch in Bearbeitung


Allgemein

Die Installation ist in der Datei /var/www/postfixadmin/VIRTUAL_VACATION/INSTALL.TXT beschrieben.

Installation

Pakete installieren

Laut /var/www/postfixadmin/VIRTUAL_VACATION/vacation.pl sind folgende zusätzliche Pakete notwendig:

sudo apt-get install libmail-sender-perl libdbd-pg-perl \
    libemail-valid-perl libmime-perl liblog-log4perl-perl \
    liblog-dispatch-perl libgetopt-argvfile-perl \
    libmime-charset-perl libmime-encwords-perl 

Script

Da der Mailinhalt möglicherweise gefährlich sein kann, wird ein lokaler Benutzer vacation dafür angelegt:

sudo addgroup --system --no-create-home --disabled-login --gid 65000 vacation
sudo adduser --system --no-create-home --disabled-login --uid 65000 --ingroup vacation vacation

Das Skript vacation.pl kopieren und für den Benutzer vacationausführbar machen:

sudo mkdir /usr/lib/postfixadmin
sudo cp /var/www/postfixadmin/VIRTUAL_VACATION/vacation.pl /usr/lib/postfixadmin/vacation.pl
sudo chown -R root:vacation /usr/lib/postfixadmin
sudo chmod 750 /usr/lib/postfixadmin/ /usr/lib/postfixadmin/vacation.pl


/etc/postfix/master.cf

config.local.php

Die Datei config.local.php editieren

sudo vi /var/www/postfixadmin/config.local.php

und am Ende folgende Zeilen hinzufügen:

// If you want to use virtual vacation for you mailbox users set this to 'YES'.
// NOTE: Make sure that you install the vacation module. (See VIRTUAL-VACATION/)
$CONF['vacation'] = 'YES';

// This is the autoreply domain that you will need to set in your Postfix
// transport maps to handle virtual vacations. It does not need to be a
// real domain (i.e. you don't need to setup DNS for it).
// This domain must exclusively be used for vacation. Do NOT use it for "normal" mail addresses.
$CONF['vacation_domain'] = 'autoreply.kirner.or.at';

Links

http://craigballinger.com/blog/2009/08/postfix-vacation-autoresponder/


Zurück zu PostfixAdmin