Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 29th November 2012, 12:11
enmi enmi is offline
Junior Member
Join Date: Nov 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connecting to imap/pop3 available inside LAN not over Internet

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 "example.com"

I get the following result when i dig @ns1.loopia.se example.com MX
 ; <<>> DiG 9.3.2 <<>> @ns1.loopia.se olandicum.se 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
 ;example.com.			IN	MX
 example.com.		600	IN	MX	10 mail.example.com.
 ;; Query time: 43 msec
 ;; WHEN: Thu Nov 29 10:16:44 2012
 ;; MSG SIZE  rcvd: 51
the ns1.loopia.se 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 	example.com. 	0 	
	A 	www 	0 	
	MX 	example.com. 	mail.example.com. 	10 	
	NS 	example.com. 	ns1.example.com 	0 	
	NS 	example.com. 	ns2.loopia.se. 	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 "mail.example.com" 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/master.cf 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

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure-ftpd: Connection refused when connecting from outside of LAN zabersoft Installation/Configuration 1 1st October 2010 17:04
Internet & LAN (Dual IP) sutuy Installation/Configuration 1 14th August 2009 12:39
[PowerDNS] Return Different IP's for lan then internet xeross Server Operation 5 30th June 2009 16:09
Advice on how to setup Lintrack As A LAN Gateway And An OpenVPN Bridge eddiequek HOWTO-Related Questions 0 12th July 2007 11:38
Trouble connecting to domain on LAN but okay from internet most4tune8 Installation/Configuration 5 10th May 2006 16:12

All times are GMT +2. The time now is 06:34.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.