diff --git a/README.md b/README.md index 246e61a..416b9e1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Fork of Postfix Admin 2.1.0 (released in 2007) Database needed to use SQL with OpenSMTPD - ``` + CREATE DATABASE IF NOT EXISTS `opensmtpd` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `opensmtpd`; @@ -51,21 +51,18 @@ Database needed to use SQL with OpenSMTPD `action` varchar(255) NOT NULL DEFAULT '', `data` varchar(255) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='OpenSMTPD Admin - Log'; - ``` + Config for OpenSMTPTD, MySQL/MariaDB example: - ``` # cat /etc/mail/smtpd.conf table credentials mysql:/etc/mail/sql.conf table domains mysql:/etc/mail/sql.conf table userinfo mysql:/etc/mail/sql.conf table virtuals mysql:/etc/mail/sql.conf - ``` Connecting the database to smtpd: - ``` # cat /etc/mail/sql.conf host localhost username opensmtpd @@ -76,4 +73,3 @@ Connecting the database to smtpd: query_credentials SELECT username, password FROM mailbox WHERE username=? AND active='1'; query_domain SELECT domain FROM domain WHERE domain=? AND active='1'; query_userinfo SELECT 501, 501, maildir FROM mailbox WHERE username=? AND active='1'; - ``` diff --git a/VIRTUAL_VACATION/README.md b/VIRTUAL_VACATION/README.md index e09f323..e1ca56e 100644 --- a/VIRTUAL_VACATION/README.md +++ b/VIRTUAL_VACATION/README.md @@ -5,17 +5,13 @@ It provides OOO, Auto Response, Vacation capabilities to virtual users. To invoke vacation.pl add the following to your /etc/mail/smtpd.conf: - ``` filter filter-from proc-exec "vacation.pl" - ``` When `vacation.pl` is located in: `/usr/local/libexec/smtpd` It requires the following libraries to be installed for MariaDB: - ``` pkg_add p5-DBI p5-DBD-MariaDB - ``` You can run vacation.pl with the following flags: