Your access-list entry is incorrect. Should be:
access-list ACL_OUT extended permit tcp any interface outside eq imap4
Main Topics
Browse All TopicsI cant seem to get imap to forward through an ASA-5505, I keep getting the following error recorded in the log:
"Deny tcp src outside:208.64.252.230/597
here is the running config:
: Saved
:
ASA Version 7.2(2)
!
hostname organic-asa
domain-name domain.com
enable password QVreAjmZpZMBqeE5 encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address 76.164.123.123 255.255.255.0
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
passwd Up01ckO5qoo5pbet encrypted
banner login This is a private network.
banner login Only authorized access is allowed.
banner login If you are not authorized, exit immediately.
banner login Violators will be Prosecuted.
banner login ==========================
banner login
ftp mode passive
clock timezone PDT -8
clock summer-time PDT recurring 1 Sun Apr 2:00 last Sun Oct 2:00
dns server-group DefaultDNS
domain-name domain.com
object-group network group1
network-object host 173.43.45.34
access-list ACL_OUT extended permit tcp any interface outside eq smtp
access-list ACL_OUT extended permit tcp any interface outside eq www
access-list ACL_OUT extended permit tcp any interface outside eq https
access-list ACL_OUT extended permit tcp any interface outside eq 4125
access-list ACL_OUT extended permit tcp object-group group1 interface outside eq 3389
access-list ACL_OUT extended permit tcp any host 76.164.123.123 eq https
access-list ACL_OUT extended permit tcp any interface outside eq pop3
access-list ACL_OUT extended permit tcp any eq imap4 interface outside eq imap4
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-522.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 192.168.1.0 255.255.255.0
static (inside,outside) tcp interface smtp 192.168.1.2 smtp netmask 255.255.255.255
static (inside,outside) tcp interface www 192.168.1.2 www netmask 255.255.255.255
static (inside,outside) tcp interface https 192.168.1.2 https netmask 255.255.255.255
static (inside,outside) tcp interface 3389 192.168.1.2 3389 netmask 255.255.255.255
static (inside,outside) tcp interface 4125 192.168.1.2 4125 netmask 255.255.255.255
static (inside,outside) tcp interface pop3 192.168.1.2 pop3 netmask 255.255.255.255
static (inside,outside) tcp interface imap4 192.168.1.2 imap4 netmask 255.255.255.255
static (inside,outside) 76.164.123.123 192.168.1.3 netmask 255.255.255.255
access-group ACL_OUT in interface outside
route outside 0.0.0.0 0.0.0.0 76.164.23.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
http server enable 334
http 69.30.123.123 255.255.255.224 outside
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
ssh 69.30.123.123 255.255.255.224 outside
ssh timeout 5
console timeout 5
management-access inside
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
!
service-policy global_policy global
ntp server 192.168.1.2 source inside prefer
prompt hostname context
Cryptochecksum:10c004e2eaf
: end
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
access-list ACL_OUT extended permit tcp any eq imap4 interface outside eq imap4
The problem is this. In your ACL you are specify that the SOURCE and DESTINATION port is 143. The destination port is correct, but you don't care what the source port is and that is why it is not matching your ACL.
You have this:
access-list ACL_OUT extended permit tcp any eq imap4 interface outside eq imap4
Do this instead:
access-list ACL_OUT extended permit tcp any interface outside eq imap4
Business Accounts
Answer for Membership
by: PeteLongPosted on 2009-10-12 at 08:35:22ID: 25552119
Im guessing that RPC on the server is the problem rather than IMAP - it replies on random ports that will be blocked by the ASA - what are you trying to connect to what?
is this an outlook client trying to talk to exchange?