LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2008, 11:05 PM   #1
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Rep: Reputation: 15
i'm looking for a 'for newbies' answer on setting up a mail server


hi,

i'm using a kubuntu desktop / ubuntu desktop on top of an ubuntu server installation. it's a development envi for my lamp setup.

what i with to setup next is :

an email client that would receive email messages from an email server
all on that same pc.

(i'm still not perfectly sure, but can i create a virtual domain for the email adds? like mymail.com for email addresses
test01@mymail.com and test02@mymail.com?)

currently, from what i've browsed, i need the email server app and the email client app.

the ubuntu server has postfix, from the initial installation,
and for the client, i'm not sure i've read it could be dovecot / courier or whatever?

from there, i'd ask what do i need to configure, or anything else i need to add for the setup?




i hope we're qualified to ask obvious questions here, it's a newbie section right?


this one's optional, but, is it ridiculously difficult to set this up from source?
i've been able to setup LAMP with the development tools PDT and mysql gui on a debian distro... or is it a different level altogether?
 
Old 11-05-2008, 11:40 PM   #2
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
Are you wanting to setup an email server that can receive emails sent to test01@mymail.com? You will need to purchase this domain name is that is the case. If you just want your server to download email from an already existing account then you can use fetchmail. Dovecot will work in letting you download mail to a client using pop3. Basic dovecot really doesn't require much initial setup. Make sure port 110 is open on your server and start dovecot.
 
Old 11-05-2008, 11:48 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Dovecot isn't a client, its a server itself - an imap or pop server. Postfix is a mail transfer agent (or MTA) - effectively an smtp server. A client is something like Evolution/Thunderbirs/Outlook/KMail etc.

If you don't want to be able to access the domain from outside, you can use example.com (which cannot be assigned) or myserver.home, but be careful you don't select a "real" name, even though it probably won't make any difference.
 
Old 11-06-2008, 12:07 AM   #4
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
ok, let me get this straight,
Quote:
Are you wanting to setup an email server that can receive emails sent to test01@mymail.com? You will need to purchase this domain name is that is the case
this means i absolutely can't setup a virtual email add? i was really wishing i'd be able to do it, like setting up virtual hosts in apache

Quote:
Dovecot isn't a client, its a server itself - an imap or pop server. Postfix is a mail transfer agent (or MTA) - effectively an smtp server. A client is something like Evolution/Thunderbirs/Outlook/KMail etc.
this means all i would need is postfix, and thunderbird / KMail for my setup?
 
Old 11-06-2008, 12:11 AM   #5
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
Quote:
Originally Posted by parf View Post
ok, let me get this straight,

this means i absolutely can't setup a virtual email add? i was really wishing i'd be able to do it, like setting up virtual hosts in apache
You can setup a virtual email if you only want to send emails internally.

Quote:
Originally Posted by parf View Post
this means all i would need is postfix, and thunderbird / KMail for my setup?
If you only want to send/recieve emails internally and use a client to download mail then you will need postfix, an email client(tunderbird / Kmail), and dovecot. Dovecot allows you to download the emails using pop3.
 
Old 11-06-2008, 12:18 AM   #6
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
alrightee, thanks

that's a start,

would i be correct in assuming that provided i already have the postfix from my initial ubuntu server installation, i just need to apt-get for kmail/thunderbird and dovecot
and dive into configurations?
 
Old 11-06-2008, 12:33 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You probably won't need to configure dovecot - it tends to work out of the box

Configuring kmail, etc is simple. I'd connect dovecot as an imap server rather than pop though and leave the emails on the server.

As centos said - you can use any domain name you want so long as you aren't trying to use the name externally.

Is postfix working OK already?
 
Old 11-06-2008, 01:09 AM   #8
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
postfix seems to work fine, i'm sorry, i'm dumb as a box of hammers on this

i just found a tutorial thing that tests it on commandline and i was able to check the mail on commandline


and thanks to you guys, i really just wanted a good overview on this... which i have no success of finding browsing through tons of stuff
 
Old 11-06-2008, 01:23 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It's pretty simple, but tough to find a good overview - no problems.

Fire dovecot up, and try setting up an imap account in kmail or whatever, and see how you go. Let us know.
 
Old 11-10-2008, 03:55 AM   #10
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
hi again,

it took a while for me to get to it...

i now have a working postfix installation, and i've tested it on the cli with this :
created local user account user01

telnet localhost 25
...
rcpt to:user01@localhost
...

and using mail, i was able to see the mail, great!

is it now possible to view user01's mail using kmail/thunderbird?
i can't seem to set it up right

pop account
accountname user01
login user01
password password
host localhost
port 110

transport:smtp
name user01
host localhost
port 25



result : using cli to check mail, i see the sent mails, i've created with kmail, using settings above

but when i try to fetch these emails via kmail :
cannot connect to localhost



i'm missing something / a lot probably, i hope someone can provide me with a piece of enlightenment?
 
Old 11-10-2008, 04:02 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you trying to connect from a different machine? if so, it's probably a firewall issue.

Otherwise, are you seeing anything in your logs (logs should always be one of the first things to look at)?

Edit - oops -just saw the localhost part above. Go the logs.

Try connecting as an imap client first. Note that dovecot won't be looking for a login name or password.

Last edited by billymayday; 11-10-2008 at 04:13 AM.
 
Old 11-10-2008, 04:16 AM   #12
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
sorry i don't have dovecot on this setup, i did try IMAP however and ended up with the same result... could not connect to localhost
 
Old 11-10-2008, 04:40 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You've confused me. Dovecot is an imap and pop server, are you saying you have ho imap or pop server running? If so, of course kmail can't get mail by pop (or imap)
 
Old 11-10-2008, 05:28 AM   #14
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
oh man, i'm very sorry, i missed that, i ruined the server setup with dovecot, and was just now testing the desktop installation with postfix recently acquired via apt-get

alright, it just worked with the dovecot pop

Last edited by parf; 11-10-2008 at 05:35 AM.
 
Old 11-12-2008, 06:42 AM   #15
parf
Member
 
Registered: Nov 2007
Distribution: debian
Posts: 39

Original Poster
Rep: Reputation: 15
not sure if this is noteworthy, i got delayed just trying to reinstall / reconfig my server system... just because there's this funny button on the lower-left corner of evolution (default with gnome) that turns on and off the synching of mail...

i thought it was something wrong with my new ubuntu-desktop on top of ubuntu-server
 
  


Reply

Tags
email, postfix, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setting up a mail server gauthamk Linux - Server 1 10-04-2007 04:31 AM
setting up a mail server: unable to recieve mail Valkyrie_of_valhalla Linux - Networking 3 09-15-2006 01:29 PM
Setting up mail server gslater Linux - Newbie 2 05-16-2004 09:42 AM
Xterm question (simple for non-newbies to answer) dhrivnak Linux - General 6 11-04-2003 05:45 PM
best mail server for newbies lucastic Linux - Networking 4 08-16-2003 01:50 PM


All times are GMT -5. The time now is 04:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration