LinuxQuestions.org
Help answer threads with 0 replies.
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 12-29-2009, 08:21 AM   #1
sv452
LQ Newbie
 
Registered: Sep 2006
Posts: 14

Rep: Reputation: 0
[SOLVED] - Local Mail server


Good Day Everyone,

quick question - i hope -

i would like to setup a local mail server for our office. at the moment we have a fedora server that is hosted and all mail goes there and we pop it straight from there and when sending ALL email it goes directly to a web provider smtp address even if it is internal.

what i would like to do is setup my local server to fetch mail from the server and deliver it to the local user account which will be POPed instead of the main server.

then any email sent to a local user should be deliverd to their local account instead of taking a joyride accross the net.

and then lastly any email that is outbound should be sent by the server using the smtp server we use now from the isp.

now:
i have managed to setup fetchmail and it is working nicely.
i have also installed dovecot and i can pop the local server with my email client.

the last part i am stuck with is how can i setup my server to be the smtp for the mail clients so that local mail stays local and anything else get's sent out like it should.

i have looked at a good few example and tutorials but they are rather dated and/or does more than what i want.

if someone could kindly point me in the right direction it would be really apreciated.

thank you.

----

ok I manged to sort myself out ... ... so i went with the postfix route and it is working perfectly the way i want it ... local mail stays local and anything else goes out via the isp.

thanx guys -

Last edited by sv452; 01-04-2010 at 02:16 AM.
 
Old 12-29-2009, 04:31 PM   #2
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
Try to use postfix is no complex configuration for local network.
 
Old 12-29-2009, 08:18 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Why do you want to have your own SMTP server if your ISP provides one? I have often been thinking of installing one myself as well (because it is fun), but I don't see any advantages for the company. Except that local mail remains local, but is that an issue?

The advantage of using your ISP's mail server is that he has to deal with security and hijacking and you don't. Setting up Postfix is not difficult, bit setting it up securely is more complicated. And you keep your ISP mail services anyway because of the POP boxes.

As for your question, Postfix is easy to setup, I have one running at home, doing nothing after I tested it.

BTW, now you have a mail server on your LAN I would consider IMAP server/clients. I do the same as you at our company, using fetchmail to POP e-mail off my ISP's server and drop them in Dovecot. IMAP is a real blessing if you have more than one computer for e-mail.

jlinkels
 
Old 12-30-2009, 01:15 AM   #4
sv452
LQ Newbie
 
Registered: Sep 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlinkels View Post
Why do you want to have your own SMTP server if your ISP provides one? I have often been thinking of installing one myself as well (because it is fun), but I don't see any advantages for the company. Except that local mail remains local, but is that an issue?

The advantage of using your ISP's mail server is that he has to deal with security and hijacking and you don't. Setting up Postfix is not difficult, bit setting it up securely is more complicated. And you keep your ISP mail services anyway because of the POP boxes.

As for your question, Postfix is easy to setup, I have one running at home, doing nothing after I tested it.

BTW, now you have a mail server on your LAN I would consider IMAP server/clients. I do the same as you at our company, using fetchmail to POP e-mail off my ISP's server and drop them in Dovecot. IMAP is a real blessing if you have more than one computer for e-mail.

jlinkels
thanx for the reply ... it all makes sense, quick one our main server is where our email goes and we pop it and not from the ISP.

I was thinking to have the best of both worlds by making that local email stay local and then any email that needs to go out will be sent out as normal to the ISP's smtp so they can worry about the rest but by the server and not the user. does this make sense??

so i really dont want to do anything fancy, i just want the server to pass the mail on to the isp smtp as normal and then keep local email local.

i will give postfix a read and see what it does altogether.

- thanx for the time you took to reply.

---

just had a thought ... dont i want to technically do a smtp relay of outgoing email except for that which is local ?

besides my local box is not accessible from the outside ... so security is not that big a worry ...

Last edited by sv452; 12-30-2009 at 02:37 AM. Reason: had a thought ...
 
  


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
Forward certain local mail to an external mail server marciano Linux - Server 1 05-11-2009 11:08 AM
install a Local mail server malan_in Linux - Server 4 09-06-2007 02:14 PM
local mail to kerio mail server rros Linux - Newbie 1 10-03-2004 12:37 PM
Which Mail Server for Local use only? cli_man Linux - Software 1 07-12-2004 11: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 04:37 AM.

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