Vboxadm: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
K (x)
 
K (x)
Zeile 1: Zeile 1:
== Patches ==
VBoxAdm is a web based management GUI for Mailservers running e.g. Postfix and Dovecot. http://http://www.vboxadm.net<br>


=== vboxadm-sa ===
<br>


exclude 'lost+found' from /etc/cron.d/vboxadm-sa
<br>
 
== Patches/Info/Changes  ==
 
=== change maildir to /srv/vmail (not /var/vmail)  ===
 
<source lang="">#/etc/dovecot/dovecot-sql.conf
 
user_query = /* dovecot-sql.conf user_query */ \
        SELECT '/srv/vmail/%d/%n' AS home,...
 
password_query = /* dovecot-sql.conf password_query */ \
        SELECT '/srv/vmail/%d/%n' AS userdb_home,...</source>
 
=== add systemuser vmail with uid=150 and gid=150<br>  ===
 
<source lang="bash">adduser --uid 150 --gid=150 --system --home /srv/vmail --no-create-home --group --disabled-password vmail (untested!!)</source>
 
or you will have to change uids/gids in /etc/dovecot/dovecot-sql.conf<br>
 
=== dovecot: Error userdb lookup<br>  ===
 
<source lang="bash">Sep 23 21:06:37 server dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=112(vmail) egid=119(vmail) missing +r perm: /var/run/dovecot/auth-userdb, UNIX perms appear ok (ACL/MAC wrong?))</source><br>
 
Solution:
 
<source lang="">#/etc/postfix/main.cf
#see http://wiki2.dovecot.org/LDA#multipleuids
virtual_transport = lmtp:unix:private/dovecot-lmtp</source>
 
=== Run vboxadm in a sub-dir  ===
 
<source lang="apache"># url of script is /member/cgi-bin/vboxadm.pl
# css, images... are in /member/vboxadm
 
        ScriptAlias /member/cgi-bin/ /var/lib/vboxadm/cgi-bin/
        Alias /member/vboxadm/icons/fffsilk/ /usr/share/icons/famfamfam/silk/
        Alias /member/vboxadm /var/lib/vwebadm/htdocs/
 
        <Directory "/var/lib/vboxadm/cgi-bin/">
                AllowOverride AuthConfig
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        <Directory "/usr/share/icons/famfamfam/silk/">
                Order allow,deny
                Allow from all
        </Directory>
 
        <Directory "/var/lib/vwebadm/htdocs">
                Order allow,deny
                Allow from all
        </Directory></source>
 
and the config
 
<source lang="bash">#/etc/vboxadm/vboxadm.conf
# config for webfrontend
 
[cgi]
base_url=/member/cgi-bin/vboxadm.pl
media_prefix=/member/vboxadm</source>
 
=== vboxadm-sa  ===
 
exclude 'lost+found' from /etc/cron.d/vboxadm-sa  


<source lang="bash"># Remove any spamassasin temp files which are older than one hour
<source lang="bash"># Remove any spamassasin temp files which are older than one hour
# exclude directory lost+found (access denied)
# exclude directory lost+found (access denied)
0 *    * * *  vboxadm        find /tmp -name ".spamassassin.*" ! -name lost+found -mmin +60 -exec rm {} \;</source>
0 *    * * *  vboxadm        find /tmp -name ".spamassassin.*" ! -name lost+found -mmin +60 -exec rm {} \;</source>
 
<br>
 
== Links<br>  ==
 
*http://www.vboxadm.net/doc/ispmail-vboxadm-squeeze/<br>
*[http://workaround.org/ispmail/ ISPMail]
 
<br>
 
<br>  


[[Kategorie:Datenbank]]
[[Category:Datenbank]] [[Category:MySQL]] [[Category:Linux]] [[Category:Ubuntu]] [[Category:Mail]] [[Category:Apache]]
[[Kategorie:MySQL]]
[[Kategorie:Linux]]
[[Kategorie:Ubuntu]]
[[Kategorie:Mail]]
[[Kategorie:Apache]]

Version vom 24. September 2012, 20:57 Uhr

VBoxAdm is a web based management GUI for Mailservers running e.g. Postfix and Dovecot. http://http://www.vboxadm.net



Patches/Info/Changes

change maildir to /srv/vmail (not /var/vmail)

#/etc/dovecot/dovecot-sql.conf

user_query = /* dovecot-sql.conf user_query */ \
        SELECT '/srv/vmail/%d/%n' AS home,...

password_query = /* dovecot-sql.conf password_query */ \
        SELECT '/srv/vmail/%d/%n' AS userdb_home,...

add systemuser vmail with uid=150 and gid=150

adduser --uid 150 --gid=150 --system --home /srv/vmail --no-create-home --group --disabled-password vmail (untested!!)

or you will have to change uids/gids in /etc/dovecot/dovecot-sql.conf

dovecot: Error userdb lookup

Sep 23 21:06:37 server dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=112(vmail) egid=119(vmail) missing +r perm: /var/run/dovecot/auth-userdb, UNIX perms appear ok (ACL/MAC wrong?))


Solution:

#/etc/postfix/main.cf
#see http://wiki2.dovecot.org/LDA#multipleuids
virtual_transport = lmtp:unix:private/dovecot-lmtp

Run vboxadm in a sub-dir

# url of script is /member/cgi-bin/vboxadm.pl
# css, images... are in /member/vboxadm

        ScriptAlias /member/cgi-bin/ /var/lib/vboxadm/cgi-bin/
        Alias /member/vboxadm/icons/fffsilk/ /usr/share/icons/famfamfam/silk/
        Alias /member/vboxadm /var/lib/vwebadm/htdocs/

        <Directory "/var/lib/vboxadm/cgi-bin/">
                AllowOverride AuthConfig
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        <Directory "/usr/share/icons/famfamfam/silk/">
                Order allow,deny
                Allow from all
        </Directory>

        <Directory "/var/lib/vwebadm/htdocs">
                Order allow,deny
                Allow from all
        </Directory>

and the config

#/etc/vboxadm/vboxadm.conf
# config for webfrontend

[cgi]
base_url=/member/cgi-bin/vboxadm.pl
media_prefix=/member/vboxadm

vboxadm-sa

exclude 'lost+found' from /etc/cron.d/vboxadm-sa

# Remove any spamassasin temp files which are older than one hour
# exclude directory lost+found (access denied)
0 *     * * *   vboxadm         find /tmp -name ".spamassassin.*" ! -name lost+found -mmin +60 -exec rm {} \;


Links