I've setup local mail server on Linux Platform,now I'm able to access within LAN, I've purchased domain from GoDaddy, how can I map local mail server in my domain ?
I know that we need to give mail server IP in MX records of the domain but the issue is with my network architecture,once have a look
Static IP Address from ISP---> Net Gear Router--->eth0 of Linux server;from eth1 of Linux server to LAN.
Now we are able to access mail server by using local IP address as
192.168.x.x/webmail or by configuring SMTP details in Thunderbird.
I want to access webmail outside of local network,how can I do this ?
You need to give the mail server a publicly routable address (let it use your ISP-assigned static IP), most likely through Network Address Translation or port forwarding on your router.
How to do that specifically should be documented in the user/administrator guide for your Netgear router, though as a quick warning, SOHO equipment may not be able to handle the number of traffic or connections you'll require for a mail server if you have a respectable volume of mail, so you might run int issues that require a business or enterprise-grade router for this purpose.
(I Rewrote my post after getting your answers, which were: MTA=postfix, linux distro=ubuntu, currently email from outside does not arrive)
To get you started, I leave out all the fancy anti-virus/ anti-spam setup.
If I understand your questions, what you want is:
To receive email from outside you need to
Postfix's default configuration should be ok.
Just change the host and domain names it accepts and the interfaces where postfix listens:
Replace mail.yourdomain.com by your fully qualified domain name and yourdomain.com by your domain.
To access mail from outside via webmailer you need to
To enable SSL for Apache2 on ubuntu (see https://help.ubuntu.com/12.04/serverguide/httpd.html#https-configuration):
This uses self signed test certificates probably issued to localhost or localhost.localdomain. This is good enough to test your setup.
You can create your own self signed certs with e.g. www.your-domain or buy one (which is a waste if you just need encryption IMHO). See Ubuntu-Certificates-Doku for details.