<To Do's>
1) Replace /etc/httpd/conf/toaster.conf in RPM for CentOS 7/Apache 2.4 with below: <toaster.conf> Define aclnet "all" # Examples for more security: # Define aclnet "192.168.20.0/24 127.0.0.1 69.144.11.118" <IfModule mod_alias.c> ScriptAlias /mail/ /usr/share/toaster/cgi-bin/ Alias /admin-toaster /usr/share/toaster/htdocs/admin/ Alias /stats-toaster/ /usr/share/toaster/htdocs/mrtg/ Alias /images-toaster/ /usr/share/toaster/htdocs/images/ Alias /scripts/ /usr/share/toaster/htdocs/scripts/ Alias /qmailadmin /usr/share/qmailadmin/ </IfModule> <Directory /usr/share/qmailadmin> AddHandler cgi-script .cgi AddHandler cgi-script qmailadmin DirectoryIndex index.cgi qmailadmin index.html Options +Indexes +FollowSymLinks +ExecCGI <RequireAll> Require ip ${aclnet} </RequireAll> </Directory> <Directory /usr/share/toaster/htdocs> Options -Indexes +FollowSymLinks +MultiViews AllowOverride All <RequireAll> Require ip ${aclnet} </RequireAll> </Directory> <Directory /usr/share/toaster/htdocs/admin> <RequireAll> AuthType Basic AuthName "Qmail Toaster v. 1.3 Admin" AuthUserFile /usr/share/toaster/include/admin.htpasswd Require valid-user Require ip ${aclnet} </RequireAll> </Directory> <Directory /usr/share/toaster/htdocs/mrtg> AllowOverride All <RequireAll> AuthType Basic AuthName "Qmail Toaster v. 1.3 Admin" AuthUserFile /usr/share/toaster/include/admin.htpasswd Require valid-user Require ip ${aclnet} </RequireAll> </Directory> <Directory /usr/share/toaster/cgi-bin/vqadmin> AllowOverride All Options ExecCGI <RequireAll> AuthType Basic AuthName "Qmail Toaster v. 1.3 Admin" AuthUserFile /usr/share/toaster/include/admin.htpasswd require valid-user Require ip ${aclnet} </RequireAll> </Directory> <Directory /usr/share/toaster/cgi-bin> AllowOverride All Options ExecCGI <RequireAll> Require ip ${aclnet} </RequireAll> </Directory> </toaster.conf>
</To Do's>
<Dovecot LDA - QMT, Added 04-26-2016> In order to *replace vpopmail's delivery agent (vdelivermail) with Dovecot's local delivery agent (LDA) do the following: 1) Replace the existing line (a) in /home/vpopmail/domains/yourdomain.tld/.qmail-default with the following line (b): (a) | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox (b) |/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o postmaster_address=postmaster@yourdomain.tld I added the -o (override) option because when running virtual domains I want the errors for each domain to go to the postmaster for that domain. You can certainly remove the override and add this option to dovecot.conf, toaster.conf, or local.conf so that all errors go to a single email address. Logging options 2a/2b 2a) Add the following lines to /etc/dovecot/local.conf: protocol lda { log_path = /var/log/dovecot-lda/dovecot-lda-errors.log info_log_path = /var/log/dovecot-lda/dovecot-lda.log } Create and change the permissions on the directory /var/log/dovecot-lda # mkdir /var/log/dovecot-lda # chmod 770 /var/log/dovecot-lda # chown vpopmail.vchkpw /var/log/dovecot-lda Add /etc/logrotate.d/dovecot-lda and settings appropriate Or 2b) Change permissions on /var/log/dovecot.log # chown root.vchkpw /var/log/dovecot.log # chmod 660 /var/log/dovecot.log Change /etc/logrotate.d/dovecot add 'create 660 root vchkpw' *Note: As of this writing this has only been implemented in my own test environment, however, it is on the Dovecot wiki (http://wiki.dovecot.org/LDA/Qmail) as a legitimate production option. </Dovecot LDA - QMT>