Connecting to imap/pop3 available inside LAN not over Internet

Discussion in 'Installation/Configuration' started by enmi, Nov 29, 2012.

  1. enmi

    enmi New Member

    Hi, i have the following setup, A ispconfig server located behind a pfsense router. I have port forwarded the following ports from the wan to the ispconfig server:

    tcp 80
    tcp 21
    tcp 143
    tcp 110
    tcp 465
    tcp 443
    tcp 53 (tcp/udp)
    tcp 993
    tcp 995

    My webpage shows but my email-client cant retrieve emails when I'm "mobile" only when I'm on the LAN,

    In the text i have replaced my actual domain name with ""

    I get the following result when i dig MX
     ; <<>> DiG 9.3.2 <<>> MX
     ; (1 server found)
     ;; global options:  printcmd
     ;; Got answer:
     ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35337
     ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
     ;			IN	MX
     ;; ANSWER SECTION:		600	IN	MX	10
     ;; Query time: 43 msec
     ;; SERVER:
     ;; WHEN: Thu Nov 29 10:16:44 2012
     ;; MSG SIZE  rcvd: 51
    the is the nameserver of my domain name provider

    so it seems the mx record is ok, and the portforwarding is ok. the firewalls both on Wan and the ispconfig server have the right ports open.

    The dns setup on the ispconfig server is:
     	A 	mail 	0 	
    	A 	ns1 	0 	
    	A 	0 	
    	A 	www 	0 	
    	MX 	10 	
    	NS 	0 	
    	NS 	0
    An idea i got was about the setup of the LAN dhcp and the pfsense nameserver.

    so for my ispconfig server the ifcfg-eth0 is:

    NAME="System eth0"
    and the dhcp server leases addresses where dns-server and is specified.

    when i try to connect to "" from my smartphone, its not available.

    So for starters i cant retrieve mail from my server either by imap or pop3, when im outside the firewall/router LAN. I also cant send by smtp, (this is probably because my ISP only allows its own stmp-server on port 25 so i will test running smtp/s at port 465 instead, is it enough to edit /etc/postfix/ and uncommenting the following line:

    smtps inet n - n - - smtpd

    and do a postfix reload or do i have to make any other changes in the setup?

    Hope you understand my dilemma, my priority is the imap/pop3 retrival.

    by the way where do you check if the ssl is activated for pop3/s or imap/s or smtp/s i get a "no valid certificate sometimes even do i haven't specified that a certificate should be used.

    Best regards


Share This Page