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

%= 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( 1 )

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

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

% 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(1)

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

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

% 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}

%=l 'mai_LABEL_SMTP_AUTH_CONTROL' %= $c->get_current_smtp_auth( 1 )

% 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( 1 )

%=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