You’ll have to fix the DHCP for whatever you want… but the rest should basically be working.
/interface ethernet
set [ find default-name=ether1 ] name=WAN
set [ find default-name=ether3 ] master-port=ether2
set [ find default-name=ether4 ] master-port=ether2
set [ find default-name=ether5 ] master-port=ether2
/interface vlan
add interface=ether2 l2mtu=1594 name=Vlan1 vlan-id=1
add interface=ether2 l2mtu=1594 name=Vlan200 vlan-id=200
add interface=ether2 l2mtu=1594 name=Vlan300 vlan-id=300
add interface=ether2 l2mtu=1594 name=Vlan400 vlan-id=400
add interface=ether2 l2mtu=1594 name=Vlan501 vlan-id=501
add interface=ether2 l2mtu=1594 name=Vlan801 vlan-id=801
add interface=ether2 l2mtu=1594 name=Vlan901 vlan-id=901
/ip pool
add name=vlan200-pool ranges=10.1.150.31-10.1.150.239
/ip dhcp-server
add address-pool=vlan200-pool interface=ether2 name=vlan200-dhcp
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=WAN
/ip dhcp-relay
add dhcp-server=10.1.150.1 disabled=no interface=MediaLAN name=relay1
/ip dhcp-server network
add address=10.1.150.0/24 dns-server=10.1.150.250,10.1.150.1 domain=preissner.us gateway=10.1.150.254 netmask=24
ntp-server=10.1.150.1
/interface ethernet switch port
add vlan-id=1 switch=switch1 ports=ether2,ether4,cpu
add vlan-id=200 switch=switch1 ports=ether3,cpu
add vlan-id=300 switch=switch1 ports=ether3,cpu
add vlan-id=400 switch=switch1 ports=ether3,cpu
add vlan-id=501 switch=switch1 ports=ether4,ether5,cpu
add vlan-id=801 switch=switch1 ports=ether4,cpu
add vlan-id=901 switch=switch1 ports=ether4,cpu
/interface ethernet switch vlan
set ether2 vlan-mode=secure vlan-header=add-if-missing
set ether3 vlan-mode=secure vlan-header=always-strip default-vlan-id=200
set ether4 vlan-mode=secure vlan-header=add-if-missing
set ether5 vlan-mode=secure vlan-header=always-strip default-vlan-id=501
/ip address
add address=172.16.0.0/28 interface=Vlan1 network=172.16.0.0
add address=10.1.150.0/24 interface=Vlan200 network=10.1.150.0
add address=172.31.252.0/29 interface=Vlan300 network=172.31.252.0
add address=10.22.35.64/28 interface=Vlan400 network=10.22.35.64
add address=172.18.0.16/28 interface=Vlan501 network=172.18.0.16
add address=10.1.168.0/28 interface=Vlan801 network=10.1.168.0
add address=192.168.15.0/27 interface=Vlan901 network=192.168.15.0
/ip firewall filter
add chain=input protocol=icmp
add chain=input connection-state=established
add chain=input connection-state=related
add action=drop chain=input in-interface=WAN
add chain=forward connection-state=established
add chain=forward connection-state=related
add action=drop chain=forward connection-state=invalid
/ip firewall nat
add action=masquerade chain=srcnat comment=“default configuration” out-interface=WAN
add action=dst-nat chain=dstnat dst-port=80 in-interface=WAN protocol=tcp to-addresses=10.1.150.10 to-ports=80
add action=dst-nat chain=dstnat dst-port=443 in-interface=WAN protocol=tcp to-addresses=10.1.150.10 to-ports=443
add action=dst-nat chain=dstnat dst-port=25 in-interface=WAN protocol=tcp to-addresses=10.1.150.249 to-ports=25
add action=dst-nat chain=dstnat dst-port=465 in-interface=WAN protocol=tcp to-addresses=10.1.150.249 to-ports=465
add action=dst-nat chain=dstnat dst-port=587 in-interface=WAN protocol=tcp to-addresses=10.1.150.249 to-ports=587
add action=dst-nat chain=dstnat dst-port=993 in-interface=WAN protocol=tcp to-addresses=10.1.150.249 to-ports=993