2024-03-22 04:54:28 +01:00
|
|
|
% layout 'default', title => "Sme server 2 - emailsettings";
|
|
|
|
|
|
|
|
% content_for 'module' => begin
|
2024-10-18 12:46:27 +02:00
|
|
|
|
|
|
|
% use constant FALSE => 0;
|
|
|
|
% use constant TRUE => 1;
|
|
|
|
|
2024-03-22 04:54:28 +01:00
|
|
|
<div id='module' class='module emailsettings-panel'>
|
|
|
|
|
2024-10-18 12:46:27 +02:00
|
|
|
% if ($config->{debug} == TRUE) {
|
2024-03-22 04:54:28 +01:00
|
|
|
<p>
|
|
|
|
%= dumper $c->current_route
|
|
|
|
%= dumper $mai_datas
|
|
|
|
</p>
|
|
|
|
% }
|
|
|
|
|
|
|
|
% if ( stash 'error' ) {
|
|
|
|
<br><div class=sme-error>
|
|
|
|
%= $c->render_to_string(inline => stash 'error')
|
|
|
|
</div>
|
|
|
|
%}
|
|
|
|
|
|
|
|
<h1><%= $title%></h1>
|
|
|
|
|
|
|
|
%= form_for 'emailsettings' => (method => 'POST') => begin
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_POP_ACCESS_CONTROL'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_current_pop3_access( TRUE )
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_IMAP_ACCESS_CONTROL'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_current_imap_access( TRUE )
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_WEBMAIL'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_current_webmail_status( TRUE )
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
% my $btn = l('mai_DESC_STATE_ACCESS_BUTTON');
|
|
|
|
<div class='center'>
|
|
|
|
%= submit_button "$btn", class => 'action'
|
|
|
|
</div>
|
|
|
|
|
|
|
|
%= hidden_field 'trt' => 'ACC'
|
|
|
|
% end
|
|
|
|
|
|
|
|
<hr class="sectionbar" />
|
|
|
|
|
|
|
|
%= form_for 'emailsettings' => (method => 'POST') => begin
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_VIRUS_SCAN'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_virus_status(TRUE)
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_SPAM_SCAN'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_spam_status(TRUE)
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_BLOCK_EXECUTABLE_CONTENT'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_patterns_status(TRUE)
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
% my $btn = l('mai_DESC_STATE_FILTERING_BUTTON');
|
|
|
|
<div class='center'>
|
|
|
|
%= submit_button "$btn", class => 'action'
|
|
|
|
</div>
|
|
|
|
|
|
|
|
%= hidden_field 'trt' => 'FIL'
|
|
|
|
% end
|
|
|
|
|
|
|
|
<hr class="sectionbar" />
|
|
|
|
|
|
|
|
%= form_for 'emailsettings' => (method => 'POST') => begin
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_MODE'
|
|
|
|
</span><span class=data2>
|
|
|
|
%= $mai_datas->{fetchmailmethod}
|
|
|
|
</span></p>
|
|
|
|
|
2024-10-18 12:46:27 +02:00
|
|
|
% my $smtp_mesg=l('SMTP port %u allow client to authenticate:');
|
|
|
|
<p><span class=label>
|
|
|
|
%= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25));
|
|
|
|
</span><span class=data2>
|
|
|
|
%= $c->get_current_smtp_auth( TRUE )
|
|
|
|
</span></p>
|
|
|
|
|
|
|
|
% my $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:');
|
|
|
|
<p><span class=label>
|
|
|
|
%= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465));
|
|
|
|
</span><span class=data2>
|
|
|
|
%= $c->get_current_smtp_ssl_auth( TRUE, 's', FALSE )
|
|
|
|
</span></p>
|
|
|
|
|
|
|
|
%my $smtp_mesg=l 'Submission port %u status:';
|
2024-03-22 04:54:28 +01:00
|
|
|
<p><span class=label>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587));
|
2024-03-22 04:54:28 +01:00
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_current_smtp_ssl_auth( TRUE,'u', FALSE )
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
2024-10-18 12:46:27 +02:00
|
|
|
<br />
|
2024-03-22 04:54:28 +01:00
|
|
|
|
|
|
|
% my $btn = l('mai_DESC_STATE_RECEPTION_BUTTON');
|
|
|
|
<div class='center'>
|
|
|
|
%= submit_button "$btn", class => 'action'
|
|
|
|
</div>
|
|
|
|
|
|
|
|
%= hidden_field 'trt' => 'REC'
|
|
|
|
% end
|
|
|
|
|
|
|
|
<hr class="sectionbar" />
|
|
|
|
|
|
|
|
%= form_for 'emailsettings' => (method => 'POST') => begin
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_UNKNOWN'
|
|
|
|
</span><span class=data2>
|
2024-10-18 12:46:27 +02:00
|
|
|
%= $c->get_emailunknownuser_status( TRUE )
|
2024-03-22 04:54:28 +01:00
|
|
|
</span></p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_DELEGATE'
|
|
|
|
</span><span class=data2>
|
|
|
|
%= $c->get_value('DelegateMailServer')
|
|
|
|
</span></p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l 'mai_LABEL_SMARTHOST'
|
|
|
|
</span><span class=data2>
|
|
|
|
%= $c->get_value('SMTPSmartHost')
|
|
|
|
</span></p>
|
|
|
|
|
|
|
|
% my $btn = l('mai_DESC_STATE_DELIVERY_BUTTON');
|
|
|
|
<div class='center'>
|
|
|
|
%= submit_button "$btn", class => 'action'
|
|
|
|
</div>
|
|
|
|
|
|
|
|
%= hidden_field 'trt' => 'DEL'
|
|
|
|
% end
|
|
|
|
|
|
|
|
</div>
|
2024-10-18 12:46:27 +02:00
|
|
|
%end
|