Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:email:emailrelay [2023/01/28 18:29] – [Configure TLS] stokitodocs:guide-user:services:email:emailrelay [2023/01/28 18:36] stokito
Line 94: Line 94:
 Add to ''/etc/config/firewall'': Add to ''/etc/config/firewall'':
 <code> <code>
-config rule                                      +config rule 
-        option name 'Allow-WAN-SMTP'                 +        option name 'Allow-WAN-SMTP' 
-        option target 'ACCEPT'                   +        option target 'ACCEPT' 
-        option src 'wan'                         +        option src 'wan' 
-        option proto 'tcp'                       +        option proto 'tcp' 
-        option dest_port '25'                    +        option dest_port '25' 
-                                                 +config rule 
-config rule                                      +        option name 'Allow-WAN-SMTP-Submission' 
-        option name 'Allow-WAN-POP'                  +        option target 'ACCEPT' 
-        option target 'ACCEPT'                   +        option src 'wan' 
-        option src 'wan'                         +        option proto 'tcp' 
-        option proto 'tcp'                       +        option dest_port '587'   
-        option dest_port '110'                  +config rule 
 +        option name 'Allow-WAN-POP' 
 +        option target 'ACCEPT' 
 +        option src 'wan' 
 +        option proto 'tcp' 
 +        option dest_port '110'
 </code> </code>
  
Line 119: Line 124:
 uci set firewall.wan_https_turris_rule.dest_port='25' uci set firewall.wan_https_turris_rule.dest_port='25'
 uci set firewall.wan_https_turris_rule.target='ACCEPT' uci set firewall.wan_https_turris_rule.target='ACCEPT'
 +
 +uci add firewall rule
 +uci set firewall.wan_https_turris_rule=rule
 +uci set firewall.wan_https_turris_rule.name='Allow-WAN-SMTP-Submission'
 +uci set firewall.wan_https_turris_rule.src='wan'
 +uci set firewall.wan_https_turris_rule.proto='tcp'
 +uci set firewall.wan_https_turris_rule.dest_port='587'
 +uci set firewall.wan_https_turris_rule.target='ACCEPT'
 +
  
 uci add firewall rule uci add firewall rule
  • Last modified: 2023/01/29 19:40
  • by stokito