LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-11-2010, 09:02 AM   #1
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
mail server for local and internet use


Hello Friends,

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 ?

please help me out.

Thanks
 
Old 06-11-2010, 09:54 AM   #2
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
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.
 
Old 06-11-2010, 07:25 PM   #3
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Quote:
Originally Posted by tsg View Post
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.
 
Old 06-12-2010, 06:16 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Original Poster
Rep: Reputation: 113Reputation: 113
Hi ComputerErik,

I have static ip with my own DNS server.

internal users does't have internet access. so i want setup mail server which is used to send mail to internal domain users as well as internet users.

I was read for fetchmail it is use to fetch mail from remote domain.

I am bit confuse about fetchmail it will work for me or not?

regards,
 
Old 06-12-2010, 07:19 AM   #5
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
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.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail wont send to the internet. Local mail ok. themrrobert Linux - Newbie 8 05-22-2009 08:29 AM
Forward certain local mail to an external mail server marciano Linux - Server 1 05-11-2009 11:08 AM
can send and recieve local mail, but not mail from internet Caine101022 Linux - Software 2 09-09-2005 01:35 PM
local mail to kerio mail server rros Linux - Newbie 1 10-03-2004 12:37 PM
I can't send mail by using local mail server hus Linux - Software 0 05-10-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration