2025-04-04 18:02:23 +01:00
|
|
|
{
|
|
|
|
PackageName: 'Mailstats',
|
|
|
|
prefix: 'mst',
|
|
|
|
MenuHeading: 'Investigation',
|
|
|
|
MenuDescription: 'Mailstats',
|
|
|
|
MenuNavigation: '4000 700',
|
|
|
|
firstPanel: 'TABLE',
|
|
|
|
signalEvent: 'smeserver-mailstats-update',
|
|
|
|
html: [
|
|
|
|
{Name: 'Table',
|
|
|
|
route: 'TABLE',
|
|
|
|
Group1: 'class=inline-buttons',
|
|
|
|
Link1: {
|
|
|
|
Type: 'Link',
|
|
|
|
href: 'mailstatsd?trt=CONFIG',
|
|
|
|
title: 'Configure Mailstats'
|
|
|
|
},
|
|
|
|
Endgroup1: '',
|
|
|
|
SubHeader1: 'Table of email status',
|
|
|
|
Paragraph1: 'Descriptive paragraph',
|
|
|
|
Input1: {
|
|
|
|
Name: 'StatsDate',
|
|
|
|
Type: 'Select',
|
|
|
|
Label: 'Date for Stats display',
|
|
|
|
Value: '',
|
|
|
|
Options: [{'Value':'$c->get_StatsDate()',
|
|
|
|
'Text':'$c->get_StatsDate()'}]
|
|
|
|
},
|
|
|
|
Input2:{
|
|
|
|
Name:'StatsTable',
|
|
|
|
Type:'object',
|
|
|
|
url:'mailstats/$c->stash("url")'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{Name: 'Configuration',
|
|
|
|
route: 'CONFIG',
|
|
|
|
Input4:{
|
|
|
|
Name:'TextorHTML',
|
|
|
|
Type:'Select',
|
2025-04-06 07:58:24 +01:00
|
|
|
Label: 'Specify if you would like to receive email in text or HTML form',
|
2025-04-04 18:02:23 +01:00
|
|
|
Options: [
|
|
|
|
{
|
|
|
|
'Value': 'HTML',
|
|
|
|
'Text': 'HTML'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'Value': 'Text',
|
|
|
|
'Text': 'Text'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'Value': 'Both',
|
|
|
|
'Text': 'Both'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'Value': 'Neither',
|
|
|
|
'Text': 'Neither'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
Group1:'class=emailwanted',
|
|
|
|
SubHeader:'Email details',
|
|
|
|
Input3:{
|
|
|
|
Name:'Email',
|
|
|
|
Type:'Email',
|
|
|
|
Label:'Email for stats'
|
|
|
|
},
|
|
|
|
Input5:{
|
|
|
|
Name:'EmailHost',
|
2025-04-06 07:58:24 +01:00
|
|
|
Label:'Host name for email server',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Text',
|
|
|
|
Value:'localhost'
|
|
|
|
},
|
|
|
|
Input6:{
|
|
|
|
Name:'EmailPort',
|
|
|
|
Label:'Port number for email server',
|
|
|
|
Type:'Number',
|
|
|
|
Value:'25'
|
|
|
|
},
|
|
|
|
Input7:{
|
|
|
|
Name:'EmailUser',
|
|
|
|
Type:'Text',
|
|
|
|
Label:'User name for email sending',
|
|
|
|
Value:'admin'
|
|
|
|
},
|
|
|
|
Input8:{
|
|
|
|
Name:'EmailPassword',
|
|
|
|
Type:'Password',
|
|
|
|
Label:'User Password for email sending',
|
|
|
|
Value:''
|
|
|
|
},
|
|
|
|
Endgroup1: '',
|
|
|
|
Input9:{
|
|
|
|
Name:'DBSave',
|
|
|
|
Label:'Would you like to save data in the DB?',
|
|
|
|
Type:'Select',
|
|
|
|
Options: [
|
|
|
|
{
|
|
|
|
'Value': 'yes',
|
|
|
|
'Text': 'yes'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'Value': 'no',
|
|
|
|
'Text': 'no'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
Group2:'class=dbwanted',
|
|
|
|
SubHeader2:'Details for connection to database for saving email status',
|
|
|
|
Input10:{
|
|
|
|
Name:'DBHost',
|
2025-04-06 07:58:24 +01:00
|
|
|
Label:'Host name for DB server',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Text',
|
|
|
|
Value:'localhost'
|
|
|
|
},
|
|
|
|
Input11:{
|
|
|
|
Name:'DBPort',
|
|
|
|
Label:'Port number for DB server',
|
|
|
|
Type:'Number',
|
|
|
|
Value:'25'
|
|
|
|
},
|
|
|
|
Input12:{
|
|
|
|
Name:'DBUser',
|
|
|
|
Type:'Text',
|
|
|
|
Label:'User name for DB sending',
|
|
|
|
Value:'admin'
|
|
|
|
},
|
|
|
|
Input13:{
|
|
|
|
Name:'DBPassword',
|
|
|
|
Type:'Password',
|
|
|
|
Label:'User Password for DB sending',
|
|
|
|
Value:''
|
|
|
|
},
|
|
|
|
Endgroup2: '',
|
|
|
|
SubHeader3: 'Email filtering / exclusion',
|
|
|
|
Input14:{
|
|
|
|
Name:'CountrySelect',
|
|
|
|
Label:'Select the countries you would like to reject',
|
2025-04-06 07:58:24 +01:00
|
|
|
Type:'MultiSelect',
|
2025-04-04 18:02:23 +01:00
|
|
|
Options:[{'Value':'$c->get_CountryCodes()',
|
|
|
|
'Text':'$c->get_CountryCodes()'}]
|
|
|
|
},
|
|
|
|
Input15:{
|
|
|
|
Name:'AccumCountryCodes',
|
|
|
|
Type:'Text',
|
2025-04-06 07:58:24 +01:00
|
|
|
Label:'Accumulated country codes (editable)',
|
2025-04-04 18:02:23 +01:00
|
|
|
Value:''
|
|
|
|
},
|
|
|
|
Input16:{
|
|
|
|
Name:'EnableRHSBL',
|
|
|
|
Label:'Enable RHSBL checking',
|
|
|
|
Type:'Select',
|
|
|
|
Options: [
|
|
|
|
{
|
2025-04-06 07:58:24 +01:00
|
|
|
'Value': 'enabled',
|
2025-04-04 18:02:23 +01:00
|
|
|
'Text': 'yes'
|
|
|
|
},
|
|
|
|
{
|
2025-04-06 07:58:24 +01:00
|
|
|
'Value': 'disabled',
|
2025-04-04 18:02:23 +01:00
|
|
|
'Text': 'no'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
Input17:{
|
|
|
|
Name:'EnableDNSBL',
|
|
|
|
Label:'Enable DNSBL checking',
|
|
|
|
Type:'Select',
|
|
|
|
Options: [
|
|
|
|
{
|
2025-04-06 07:58:24 +01:00
|
|
|
'Value': 'enabled',
|
2025-04-04 18:02:23 +01:00
|
|
|
'Text': 'yes'
|
|
|
|
},
|
|
|
|
{
|
2025-04-06 07:58:24 +01:00
|
|
|
'Value': 'disabled',
|
|
|
|
'Text': 'no'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
Input24:{
|
|
|
|
Name:'EnableURIBL',
|
|
|
|
Label:'Enable URIBL checking',
|
|
|
|
Type:'Select',
|
|
|
|
Options: [
|
|
|
|
{
|
|
|
|
'Value': 'enabled',
|
|
|
|
'Text': 'yes'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'Value': 'disabled',
|
2025-04-04 18:02:23 +01:00
|
|
|
'Text': 'no'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
Input18:{
|
2025-04-06 07:58:24 +01:00
|
|
|
Name:'RBLList',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Text',
|
|
|
|
Label:'RBL Servers to use',
|
|
|
|
Value:''
|
|
|
|
},
|
|
|
|
Input19:{
|
2025-04-06 07:58:24 +01:00
|
|
|
Name:'SBLList',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Text',
|
|
|
|
Label:'SBL Servers to use',
|
|
|
|
Value:''
|
|
|
|
},
|
|
|
|
Input20:{
|
2025-04-06 07:58:24 +01:00
|
|
|
Name:'UBLList',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Text',
|
|
|
|
Label:'UBL Servers to use',
|
|
|
|
Value:''
|
|
|
|
},
|
2025-04-06 07:58:24 +01:00
|
|
|
SubHeader4:'Spamassassin scores - tag and reject levels',
|
|
|
|
Input21:{
|
2025-04-04 18:02:23 +01:00
|
|
|
Name:'RejectLevel',
|
2025-04-06 07:58:24 +01:00
|
|
|
Label:'Score to fully reject emmail',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Number',
|
|
|
|
Value:'12'
|
|
|
|
},
|
2025-04-06 07:58:24 +01:00
|
|
|
Input22:{
|
2025-04-04 18:02:23 +01:00
|
|
|
Name:'TagLevel',
|
2025-04-06 07:58:24 +01:00
|
|
|
Label:'Score for tagging as spam, but queued',
|
2025-04-04 18:02:23 +01:00
|
|
|
Type:'Number',
|
|
|
|
Value:'4'
|
2025-04-06 07:58:24 +01:00
|
|
|
},
|
|
|
|
Input23: {
|
|
|
|
Type: 'Submit',
|
|
|
|
Value: 'Save',
|
|
|
|
Name: 'Save',
|
|
|
|
Label: null
|
2025-04-04 18:02:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|