creeping666
Technical User
Hi, based on the config below (correct me if its wrong) we currently port forward all SMTP extended traffic from any IP address only if it is addressed to our email server.
hardware: cisco 877 ADSL router
IOS: C870-ADVIPSERVICESK9-M, Version 12.4(15)T9
On the side questions:
1. In the MAIL_SERVER access list, should I have the private IP address of the email server or the public MX record email is coming to?
eg. 192.168.30.160 or mail.domain-name.com (202.45.65.2)
2. Is the MAIL_SERVER access list even necessary... as email traffic only comes in on a port and its not addressed to any specific internal IP address?
Next issue, now we have all of our email spam filtered through an external email hosting company and they forward it to us on port 25.
We would like to secure our email server by only allowing email sent from their servers so other people cannot sent email to us directly.
I have come up with the following and have no idea if it is right or if there is a better / more elegant way of doing it. We do not have a domain or network we can test on so I want to get it right first.
Again in the TRAFFIC_FROM_EXT_EMAIL_SERVERS access list do I put the internal IP address of the email server, the MX record (mail.domain-name.com), or do I not even need it?
Any better way? is that right?
Thanks.
hardware: cisco 877 ADSL router
IOS: C870-ADVIPSERVICESK9-M, Version 12.4(15)T9
Code:
ip nat inside source static tcp 192.168.30.160 25 interface Dialer0 25
ip access-list extended MAIL_SERVER
permit ip any host 192.168.30.160
class-map type inspect match-any MAIL_SERVER-PROTOS
match protocol smtp extended
class-map type inspect match-all MAIL_SERVER-TRAFFIC
match class-map MAIL_SERVER-PROTOS
match access-group name MAIL_SERVER
policy-map type inspect INTERNET-TO-VLAN1
class type inspect MAIL_SERVER-TRAFFIC
inspect
On the side questions:
1. In the MAIL_SERVER access list, should I have the private IP address of the email server or the public MX record email is coming to?
eg. 192.168.30.160 or mail.domain-name.com (202.45.65.2)
2. Is the MAIL_SERVER access list even necessary... as email traffic only comes in on a port and its not addressed to any specific internal IP address?
Next issue, now we have all of our email spam filtered through an external email hosting company and they forward it to us on port 25.
We would like to secure our email server by only allowing email sent from their servers so other people cannot sent email to us directly.
I have come up with the following and have no idea if it is right or if there is a better / more elegant way of doing it. We do not have a domain or network we can test on so I want to get it right first.
Code:
ip nat inside source static tcp 192.168.30.160 25 interface Dialer0 25
object-group network EXT_EMAIL_SERVERS
range 1.1.1.1 2.2.2.2
range 3.3.3.3 4.4.4.4
exit
ip access-list extended MAIL_SERVER
permit ip any host 192.168.30.160
ip access-list extended TRAFFIC_FROM_EXT_EMAIL_SERVERS
permit ip object-group EXT_EMAIL_SERVERS host 192.168.30.160
class-map type inspect match-any MAIL_SERVER-PROTOS
match protocol smtp extended
class-map type inspect match-all MAIL_SERVER-TRAFFIC
match class-map MAIL_SERVER-PROTOS
match access-group name TRAFFIC_FROM_EXT_EMAIL_SERVERS
policy-map type inspect INTERNET-TO-VLAN1
class type inspect MAIL_SERVER-TRAFFIC
inspect
Again in the TRAFFIC_FROM_EXT_EMAIL_SERVERS access list do I put the internal IP address of the email server, the MX record (mail.domain-name.com), or do I not even need it?
Any better way? is that right?
Thanks.