Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to setup mail server in my network which is connected to local network as well as internet.
In local network client machine doesn't have internet access.
user can send or receive mail internally (i know it is possible and i done before)
now my questions are
can user send mail on other domain like yahoo,gmail etc...
if i send mail from other domain like yahoo, gmail to internal user, can user able to receive mail ?
Is it possible ? if yes then how can i do this ?
which mail server suitable for that ?
Sendmail and Postfix will both do what you're looking for. For outgoing mail, as long as the machine the mail server is running on is configured correctly for internet access, it should be pretty straight forward. For incoming mail, you just have to make sure you have an MX record in your DNS that points to the mail server so external mail servers know where to send it.
Sendmail and Postfix will both do what you're looking for. For outgoing mail, as long as the machine the mail server is running on is configured correctly for internet access, it should be pretty straight forward. For incoming mail, you just have to make sure you have an MX record in your DNS that points to the mail server so external mail servers know where to send it.
Not is simple as that, there are some other considerations to think about. Such as does your ISP allow you to run a mail server (many who don't will block port 25)? Do you have a static IP and PTR setup for the IP your mail server will use (public IP that is)? Some services will reject mail unless it is coming from a host that can resolve both forward and reverse to the same domain. Also if you are on a DHCP range (or have an ISP with a poor reputation) you might find yourself on a blacklist.
I don't see why you would need it, just setup Sendmail or Postfix (or any mail server of choice) on the server you have locally. Point all client machines at that server to send and receive all mail, setup an MX record pointing to your public IP, setup a reverse DNS record (PTR), and make a rule in your firewall allowing traffic destined for port 25 to pass to the server.
When someone outside of your network sends an email bound for your domain public DNS will resolve your MX record and deliver mail to your server. When your clients use some mail client and connect to your server over the LAN they will download the mail. When someone inside sends an email your internal server will accept it and forward to the remote server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.