Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:email:emailrelay [2022/05/12 13:17] – [Useful commands] stokito | docs:guide-user:services:email:emailrelay [2023/01/28 18:36] – stokito | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| | '' | | '' | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | | '' | ||
| ==== Server ==== | ==== Server ==== | ||
| Line 69: | Line 69: | ||
| option mode ' | option mode ' | ||
| # specify all arguments that should be passed to emailrelay here | # specify all arguments that should be passed to emailrelay here | ||
| - | # see https:// | + | # see http:// |
| option extra_cmdline ' | option extra_cmdline ' | ||
| </ | </ | ||
| ===== Useful options ==== | ===== Useful options ==== | ||
| + | ==== Configure TLS ==== | ||
| + | |||
| + | [[: | ||
| + | Then configure '' | ||
| ==== Mails storage location ==== | ==== Mails storage location ==== | ||
| - | By default mails are stored into ''/ | + | By default mails are stored into ''/ |
| + | Alternatively you can make the ''/ | ||
| ==== Reading email with POP ==== | ==== Reading email with POP ==== | ||
| Line 83: | Line 88: | ||
| Then you must create the ''/ | Then you must create the ''/ | ||
| Please note that if you are going to read emails from internet then you have to configure TLS for security. | Please note that if you are going to read emails from internet then you have to configure TLS for security. | ||
| + | See below how to open a port for internet. | ||
| + | ===== Open ports for internet in Firewall ===== | ||
| + | This is a very bad idea for security and don't do this unless you know what are you doing. | ||
| + | Add to ''/ | ||
| + | < | ||
| + | config rule | ||
| + | option name ' | ||
| + | option target ' | ||
| + | option src ' | ||
| + | option proto ' | ||
| + | option dest_port ' | ||
| + | config rule | ||
| + | option name ' | ||
| + | option target ' | ||
| + | option src ' | ||
| + | option proto ' | ||
| + | option dest_port ' | ||
| + | config rule | ||
| + | option name ' | ||
| + | option target ' | ||
| + | option src ' | ||
| + | option proto ' | ||
| + | option dest_port ' | ||
| + | </ | ||
| + | You can add these rules with command line: | ||
| + | < | ||
| + | uci add firewall rule | ||
| + | uci set firewall.wan_https_turris_rule=rule | ||
| + | uci set firewall.wan_https_turris_rule.name=' | ||
| + | uci set firewall.wan_https_turris_rule.src=' | ||
| + | uci set firewall.wan_https_turris_rule.proto=' | ||
| + | uci set firewall.wan_https_turris_rule.dest_port=' | ||
| + | uci set firewall.wan_https_turris_rule.target=' | ||
| + | |||
| + | uci add firewall rule | ||
| + | uci set firewall.wan_https_turris_rule=rule | ||
| + | uci set firewall.wan_https_turris_rule.name=' | ||
| + | uci set firewall.wan_https_turris_rule.src=' | ||
| + | uci set firewall.wan_https_turris_rule.proto=' | ||
| + | uci set firewall.wan_https_turris_rule.dest_port=' | ||
| + | uci set firewall.wan_https_turris_rule.target=' | ||
| + | |||
| + | |||
| + | uci add firewall rule | ||
| + | uci set firewall.wan_https_turris_rule=rule | ||
| + | uci set firewall.wan_https_turris_rule.name=' | ||
| + | uci set firewall.wan_https_turris_rule.src=' | ||
| + | uci set firewall.wan_https_turris_rule.proto=' | ||
| + | uci set firewall.wan_https_turris_rule.dest_port=' | ||
| + | uci set firewall.wan_https_turris_rule.target=' | ||
| + | |||
| + | uci commit firewall | ||
| + | service firewall restart | ||
| + | </ | ||