[SOLVED] small question about mail clients on same network as mail server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
small question about mail clients on same network as mail server
i have postfix/courier-imap running on a local server on my home network. it is behind a router which has a static IP registered with the domainname for which the mail server operates. normally, i would just configure mail clients to use domain.com for the SMTP & IMAP servers, which resolves to this network's external address. since i've forwarded the right ports, this works everywhere in the world, except for on this network, which IS the domain.com network.
the end result is that I have to reconfigure all of my mail clients to use the local email server's IP, and change it back to domain.com whenever I leave here. i've looked around in thunderbird, iOS mail and the android mail client; all of them can use multiple SMTP servers which solves this problem (domain.com as the first, local server IP as the second), but none of them can do this with IMAP.
this seems like it should be easy to get around, maybe by having the local DNS server return a different domain.com MX record ONLY for clients on the LAN that points to the local mail server? or playing with iptables on the router?
correct. i actually went ahead and tried to just add "domain.com IN A MAILSERVERNAME" into my local zone file (the domainname locally is actually "domain.site") and BIND complained about it being "out-of-zone data".... so presumably i'm gonna have to create a new zone called "domain.com" on my server for this.... i would imagine i would need to copy the SOA from my DNS registrar.... idk if that sounds like it would work