- remove base_dir-directive from dovecot.conf as we use the default value anyway, fixes #311
- added pure-ftp configuration-template for Gentoo
This commit is contained in:
@@ -288,6 +288,26 @@ milter_default_action = accept" >> /etc/postfix/main.cf'
|
||||
'/etc/init.d/proftpd restart'
|
||||
)
|
||||
),
|
||||
'pureftpd' => Array(
|
||||
'label' => 'PureFTPD',
|
||||
'commands_1' => Array(
|
||||
'emerge pure-ftpd'
|
||||
),
|
||||
'files' => Array(
|
||||
'etc_conf.d_pure-ftpd' => '/etc/conf.d/pure-ftpd',
|
||||
'etc_pureftpd-mysql.conf' => '/etc/pureftpd-mysql.conf'
|
||||
),
|
||||
'commands_2' => Array(
|
||||
'chown root:0 /etc/conf.d/pure-ftpd',
|
||||
'chmod 0644 /etc/conf.d/pure-ftpd',
|
||||
'chown root:0 /etc/pureftpd-mysql.conf',
|
||||
'chmod 0600 /etc/pureftpd-mysql.conf'
|
||||
),
|
||||
'restart' => Array(
|
||||
'rc-update add pure-ftpd default',
|
||||
'/etc/init.d/pure-ftpd restart'
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
'etc' => Array(
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
base_dir = /var/run/dovecot
|
||||
protocols = imap pop3 <SSLPROTOCOLS>
|
||||
listen = *
|
||||
mail_access_groups = vmail
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
base_dir = /var/run/dovecot
|
||||
protocols = imap pop3 <SSLPROTOCOLS>
|
||||
listen = *
|
||||
mail_access_groups = vmail
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# Config file for /etc/init.d/pure-ftpd
|
||||
# Configuration-template by Froxlor
|
||||
|
||||
IS_CONFIGURED="yes"
|
||||
|
||||
# Server/Port
|
||||
SERVER="-S 21"
|
||||
|
||||
## Number of simultaneous connections in total, and per IP ##
|
||||
MAX_CONN="-c 30"
|
||||
MAX_CONN_IP="-C 10"
|
||||
|
||||
## Start daemonized in background ##
|
||||
DAEMON="-B"
|
||||
|
||||
## Don't allow uploads if the partition is more full then this var ##
|
||||
DISK_FULL="-k 90%"
|
||||
|
||||
## Authentication mechanism
|
||||
AUTH="-l mysql:/etc/pureftpd-mysql.conf"
|
||||
|
||||
## Misc. Others ##
|
||||
MISC_OTHER="-A -x -j -Z"
|
||||
@@ -0,0 +1,11 @@
|
||||
MYSQLServer <SQL_HOST>
|
||||
#MYSQLPort 3306
|
||||
MYSQLSocket /var/run/mysqld/mysqld.sock
|
||||
MYSQLUser <SQL_UNPRIVILEGED_USER>
|
||||
MYSQLPassword <SQL_UNPRIVILEGED_PASSWORD>
|
||||
MYSQLDatabase <SQL_DB>
|
||||
MYSQLCrypt Crypt
|
||||
MYSQLGetPW SELECT password FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MYSQLGetUID SELECT uid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MYSQLGetGID SELECT gid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
@@ -1,4 +1,3 @@
|
||||
base_dir = /var/run/dovecot
|
||||
protocols = imap pop3 <SSLPROTOCOLS>
|
||||
listen = *
|
||||
mail_access_groups = vmail
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Some general options
|
||||
protocols = imap pop3 imaps pop3s managesieve
|
||||
protocols = imap pop3 <SSLPROTOCOLS> managesieve
|
||||
mail_access_groups = vmail
|
||||
## allow Plaintext Logins from foreign IP if the Connection doesn't use TLS
|
||||
disable_plaintext_auth = no
|
||||
|
||||
Reference in New Issue
Block a user