initial commit of file from CVS for e-smith-pop3 on Wed 12 Jul 09:03:33 BST 2023
This commit is contained in:
1
root/etc/e-smith/db/configuration/defaults/pop3/TCPPort
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3/TCPPort
Normal file
@@ -0,0 +1 @@
|
||||
110
|
1
root/etc/e-smith/db/configuration/defaults/pop3/access
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3/access
Normal file
@@ -0,0 +1 @@
|
||||
private
|
1
root/etc/e-smith/db/configuration/defaults/pop3/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/pop3/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
1
root/etc/e-smith/db/configuration/defaults/pop3s/TCPPort
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3s/TCPPort
Normal file
@@ -0,0 +1 @@
|
||||
995
|
1
root/etc/e-smith/db/configuration/defaults/pop3s/access
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3s/access
Normal file
@@ -0,0 +1 @@
|
||||
private
|
1
root/etc/e-smith/db/configuration/defaults/pop3s/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3s/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/pop3s/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/pop3s/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
PERMS=use esmith::ConfigDB; (esmith::ConfigDB->open_ro->get('pop3')->prop('access') eq "private") ? "000" : "0644"
|
@@ -0,0 +1 @@
|
||||
PERMS=use esmith::ConfigDB; (esmith::ConfigDB->open_ro->get('pop3')->prop('status') eq "enabled") ? "0644" : "0000"
|
@@ -0,0 +1 @@
|
||||
PERMS=use esmith::ConfigDB; (esmith::ConfigDB->open_ro->get('pop3s')->prop('access') eq "private") ? "000" : "0644"
|
@@ -0,0 +1 @@
|
||||
PERMS=use esmith::ConfigDB; (esmith::ConfigDB->open_ro->get('pop3s')->prop('status') eq "enabled") ? "0644" : "0000"
|
3
root/etc/e-smith/templates/etc/hosts.allow/pop3s
Normal file
3
root/etc/e-smith/templates/etc/hosts.allow/pop3s
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
$DB->hosts_allow_spec('pop3s', 'pop3s');
|
||||
}
|
3
root/etc/e-smith/templates/etc/hosts.allow/qmail-popup
Normal file
3
root/etc/e-smith/templates/etc/hosts.allow/qmail-popup
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
$DB->hosts_allow_spec('pop3', 'qmail-popup');
|
||||
}
|
@@ -0,0 +1 @@
|
||||
auth required pam_listfile.so item=user sense=allow file=/etc/e-smith/pam/accounts.allow onerr=fail
|
3
root/etc/e-smith/templates/etc/pam.d/pop3/20auth
Normal file
3
root/etc/e-smith/templates/etc/pam.d/pop3/20auth
Normal file
@@ -0,0 +1,3 @@
|
||||
auth { -f "/lib/security/pam_pwdb.so" ||
|
||||
-f "/lib64/security/pam_pwdb.so" ? "required pam_stack.so service=system-auth" :
|
||||
"include system-auth" }
|
3
root/etc/e-smith/templates/etc/pam.d/pop3/30account
Normal file
3
root/etc/e-smith/templates/etc/pam.d/pop3/30account
Normal file
@@ -0,0 +1,3 @@
|
||||
account { -f "/lib/security/pam_pwdb.so" ||
|
||||
-f "/lib64/security/pam_pwdb.so" ? "required pam_stack.so service=system-auth" :
|
||||
"include system-auth" }
|
3
root/etc/e-smith/templates/etc/pam.d/pop3/40session
Normal file
3
root/etc/e-smith/templates/etc/pam.d/pop3/40session
Normal file
@@ -0,0 +1,3 @@
|
||||
session { -f "/lib/security/pam_pwdb.so" ||
|
||||
-f "/lib64/security/pam_pwdb.so" ? "required pam_stack.so service=system-auth" :
|
||||
"include system-auth" }
|
1
root/etc/e-smith/templates/etc/pam.d/pop3/template-begin
Symbolic link
1
root/etc/e-smith/templates/etc/pam.d/pop3/template-begin
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/e-smith/templates-default/template-begin-pam
|
@@ -0,0 +1 @@
|
||||
FQDN={ $SystemName . '.' . $DomainName }
|
@@ -0,0 +1,2 @@
|
||||
PER_IP_INSTANCES={ $pop3{ConcurrencyLimitPerIP} || '4' }
|
||||
CONCURRENCYREMOTE={ $pop3{ConcurrencyLimit} || '40' }
|
9
root/etc/e-smith/templates/var/service/pop3/runenv/20Mem
Normal file
9
root/etc/e-smith/templates/var/service/pop3/runenv/20Mem
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
# memory limit to catch any memory leak before it kills the system
|
||||
my $MIN_MEMORY_LIMIT = 40000000;
|
||||
|
||||
# The MIN_MEMORY_LIMIT is returned unless the DB variable is defined and greater than MIN_MEMORY_LIMIT
|
||||
my $limit = $pop3{MemLimit} || $MIN_MEMORY_LIMIT;
|
||||
$limit = $MIN_MEMORY_LIMIT if $limit < $MIN_MEMORY_LIMIT;
|
||||
$OUT = "MEM=$limit";
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
LISTENIP={ $pop3{ListenIP} || '0' }
|
||||
PORT={ $pop3{TCPPort} || '110' }
|
@@ -0,0 +1 @@
|
||||
FQDN={ $SystemName . '.' . $DomainName }
|
@@ -0,0 +1,2 @@
|
||||
PER_IP_INSTANCES={ $pop3s{ConcurrencyLimitPerIP} || '4' }
|
||||
CONCURRENCYREMOTE={ $pop3s{ConcurrencyLimit} || '40' }
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
# memory limit to catch any memory leak before it kills the system
|
||||
my $MIN_MEMORY_LIMIT = 80000000;
|
||||
|
||||
# The MIN_MEMORY_LIMIT is returned unless the DB variable is defined and greater than MIN_MEMORY_LIMIT
|
||||
my $limit = $pop3s{MemLimit} || $MIN_MEMORY_LIMIT;
|
||||
$limit = $MIN_MEMORY_LIMIT if $limit < $MIN_MEMORY_LIMIT;
|
||||
$OUT = "MEM=$limit";
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
LISTENIP={ $pop3s{ListenIP} || '0' }
|
||||
PORT={ $pop3s{TCPPort} || '110' }
|
@@ -0,0 +1,11 @@
|
||||
cert = /service/imap/ssl/imapd.pem
|
||||
sslVersion = all
|
||||
{
|
||||
|
||||
$OUT .= "# SSL protocols can be set with DB props SSLv2, SSLv3 and TLSv1\n";
|
||||
$OUT .= "options = NO_SSLv2\n" unless ($pop3s{SSLv2} || 'disabled') eq 'enabled';
|
||||
$OUT .= "options = NO_SSLv3\n" unless ($pop3s{SSLv3} || 'disabled') eq 'enabled';
|
||||
$OUT .= "options = NO_TLSv1\n" unless ($pop3s{TLSv1} || 'enabled') eq 'enabled';
|
||||
|
||||
}
|
||||
fips = no
|
@@ -0,0 +1 @@
|
||||
foreground = yes
|
@@ -0,0 +1 @@
|
||||
service = pop3s
|
@@ -0,0 +1,2 @@
|
||||
exec = /var/qmail/bin/qmail-popup
|
||||
execargs = qmail-popup {$SystemName}.{$DomainName} checkpassword-pam -s pop3 /var/qmail/bin/qmail-pop3d Maildir
|
Reference in New Issue
Block a user