User Tools

Site Tools


networking:router:mikrotik_mail

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:router:mikrotik_mail [2017/07/06 15:44]
gcooper
networking:router:mikrotik_mail [2018/05/25 09:35] (current)
gcooper
Line 1: Line 1:
-====== Mikrotik Routers and Mail Issues ======+====== Mikrotik Routers Solving Mail Issues ======
  
   - **Define list of spam filter servers**   - **Define list of spam filter servers**
Line 10: Line 10:
 <note tip>These are the **MSP Mail** (MaxMail) IP address ranges.</note> <note tip>These are the **MSP Mail** (MaxMail) IP address ranges.</note>
  
-In this example:+===== Example Configuration =====
  
 ^192.168.51.8    |Internal Mail Server IP address | ^192.168.51.8    |Internal Mail Server IP address |
Line 16: Line 16:
 ^123.123.123.123 |External (Public) IP Address    | ^123.123.123.123 |External (Public) IP Address    |
  
-:!: You must **adjust as necessary**.+FIXME You can use hostnames in newer versions of RouterOS. 
 + 
 +:!: You must **adjust as necessary** (copy->edit->paste).
  
 <file> <file>
 /ip firewall address-list /ip firewall address-list
-  add address=5.10.67.0/24 list=spamfilter +add address=5.10.67.0/24 list=spamfilter 
-  add address=94.186.192.0/24 list=spamfilter +add address=94.186.192.0/24 list=spamfilter 
-  add address=174.36.154.0/24 list=spamfilter +add address=174.36.154.0/24 list=spamfilter 
-  add address=192.69.16.0/24 list=spamfilter +add address=192.69.16.0/24 list=spamfilter 
-  add address=192.69.17.0/24 list=spamfilter +add address=192.69.17.0/24 list=spamfilter 
-  add address=192.69.18.0/24 list=spamfilter +add address=192.69.18.0/24 list=spamfilter 
-  add address=192.69.19.0/24 list=spamfilter +add address=192.69.19.0/24 list=spamfilter 
-  add address=208.43.37.0/24 list=spamfilter +add address=208.43.37.0/24 list=spamfilter 
-  add address=208.70.88.0/24 list=spamfilter +add address=208.70.88.0/24 list=spamfilter 
-  add address=208.70.89.0/24 list=spamfilter +add address=208.70.89.0/24 list=spamfilter 
-  add address=208.70.90.0/24 list=spamfilter +add address=208.70.90.0/24 list=spamfilter 
-  add address=208.70.91.0/24 list=spamfilter+add address=208.70.91.0/24 list=spamfilter
  
 /ip firewall filter /ip firewall filter
-  add action=drop chain=forward comment="Drop Outbound SMTP Except From Mail Server" dst-port=25 \+add action=drop chain=forward comment="Drop Outbound SMTP Except From Mail Server" dst-port=25 \
   out-interface=ether1 protocol=tcp src-address=!192.168.51.8   out-interface=ether1 protocol=tcp src-address=!192.168.51.8
  
 /ip firewall nat /ip firewall nat
-  add action=dst-nat chain=dstnat comment="Forward SMTP to Mail Server" dst-address=70.167.217.44 +add action=dst-nat chain=dstnat comment="Forward SMTP to Mail Server" dst-address=123.123.123.123 
-  dst-port=25 in-interface=ether1 log=yes log-prefix=NORMAL: protocol=tcp src-address-list=spamfilter to-addresses=192.168.51.8 +  dst-port=25 in-interface=ether1 protocol=tcp src-address-list=spamfilter to-addresses=192.168.51.8
-add action=dst-nat chain=dstnat comment="Forward TCP Ports to CEISBSSVR" dst-address=70.167.217.44 dst-port=\ +
-    80,110,143,443,587,993,995 in-interface=ether1 protocol=tcp to-addresses=192.168.51.8 +
-add action=masquerade chain=srcnat comment="Masquerade - Last Rule" out-interface=ether1 +
- +
 </file> </file>
networking/router/mikrotik_mail.1499377489.txt.gz · Last modified: 2017/07/06 15:44 by gcooper