% layout 'default', title => "Sme server 2 - emailsettings"; % content_for 'module' => begin % use constant FALSE => 0; % use constant TRUE => 1;
% if ($config->{debug} == TRUE) {

%= dumper $c->current_route %= dumper $mai_datas

% } % if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

<%= $title%>

%= form_for 'emailsettings' => (method => 'POST') => begin

%=l 'mai_LABEL_POP_ACCESS_CONTROL' %= $c->get_current_pop3_access( TRUE )

%=l 'mai_LABEL_IMAP_ACCESS_CONTROL' %= $c->get_current_imap_access( TRUE )

%=l 'mai_LABEL_WEBMAIL' %= $c->get_current_webmail_status( TRUE )

% my $btn = l('mai_DESC_STATE_ACCESS_BUTTON');
%= submit_button "$btn", class => 'action'
%= hidden_field 'trt' => 'ACC' % end
%= form_for 'emailsettings' => (method => 'POST') => begin

%=l 'mai_LABEL_VIRUS_SCAN' %= $c->get_virus_status(TRUE)

%=l 'mai_LABEL_SPAM_SCAN' %= $c->get_spam_status(TRUE)

%=l 'mai_LABEL_BLOCK_EXECUTABLE_CONTENT' %= $c->get_patterns_status(TRUE)

% my $btn = l('mai_DESC_STATE_FILTERING_BUTTON');
%= submit_button "$btn", class => 'action'
%= hidden_field 'trt' => 'FIL' % end
%= form_for 'emailsettings' => (method => 'POST') => begin

%=l 'mai_LABEL_MODE' %= $mai_datas->{fetchmailmethod}

% my $smtp_mesg=l('SMTP port %u allow client to authenticate:');

%= sprintf($smtp_mesg,$c->get_db_prop('qpsmtpd','TCPPort',25)); %= $c->get_current_smtp_auth( TRUE )

% my $smtp_mesg=l('SMTPS SSL/TLS auth: port %u status:');

%= sprintf($smtp_mesg,$c->get_db_prop('sqpsmtpd','TCPPort',465)); %= $c->get_current_smtp_ssl_auth( TRUE, 's', FALSE )

%my $smtp_mesg=l 'Submission port %u status:';

%= sprintf($smtp_mesg,$c->get_db_prop('uqpsmtpd','TCPPort',587)); %= $c->get_current_smtp_ssl_auth( TRUE,'u', FALSE )


% my $btn = l('mai_DESC_STATE_RECEPTION_BUTTON');
%= submit_button "$btn", class => 'action'
%= hidden_field 'trt' => 'REC' % end
%= form_for 'emailsettings' => (method => 'POST') => begin

%=l 'mai_LABEL_UNKNOWN' %= $c->get_emailunknownuser_status( TRUE )

%=l 'mai_LABEL_DELEGATE' %= $c->get_value('DelegateMailServer')

%=l 'mai_LABEL_SMARTHOST' %= $c->get_value('SMTPSmartHost')

% my $btn = l('mai_DESC_STATE_DELIVERY_BUTTON');
%= submit_button "$btn", class => 'action'
%= hidden_field 'trt' => 'DEL' % end
%end