LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-14-2012, 01:06 AM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Query related to IMAP and SMTP.


Hi Friends,

I am learning to configure mail server setup and I am confused on the following part:

Suppose john@domain1server.com sends mail to jane@domain2server.com. Now, my doubt is, should domain2server.com (the destination of the mail) have both SMTP and IMAP/Pop3 running on the same server?. If yes, then fine.
If no, please let me know a basic idea how this will work. because, jane@domain2server.com will have an email account in domain2server.com and cannot be ( I believe ) having the same account on another server. Also, the mbox/Maildir of users will be in domain2server.com. But, I see that while configuring email client in our Desktops we give smtp.somemail.com and imap.somemail.com. This is the reason I am confused and prompted me to ask this question.

Expecting your valuable inputs.
Thanks
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-14-2012, 01:14 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
POP/IMAP is for receiving mail.
SMTP is for sending mail.

If domain2server.com is never going to send mail then it doesn't require SMTP to be running..

I would say in most cases (the exception being a extremely large number of clients), SMTP would be running on the same server as POP/IMAP)
Although there is no reason you cant split IMAP/POP and SMTP into separate servers, and use DNS to create a simple (from the clients perspective) process, where pop and imap.domain.tld would resolve to x.x.x.10, and smtp.domain.tld would resolve to x.x.x.2, for example
 
1 members found this post helpful.
Old 01-14-2012, 05:52 AM   #3
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
Quote:
Originally Posted by fukawi1 View Post
POP/IMAP is for receiving mail.
SMTP is for sending mail.

If domain2server.com is never going to send mail then it doesn't require SMTP to be running..
I think this should be clarified:
Yes, SMTP is for sending mail. But of course, domain2server.com also needs SMTP running, else it could not receive mail from anything (server or client) sending mails to it.

In short: SMTP is used for sending mail between mailservers as well as from a mail client to the mailserver (mailserver in the role of the MTA - mail transfer agent, while the mail client is called MUA - mail user agent).
To get mails from a mailserver to the client, POP and/or IMAP are used (here: mailserver in the role of MDA - mail delivery agent).
MTA (for SMTP) and MDA (for POP/IMAP) are often complete separate daemons running on the same machine, e.g. postfix as MTA and dovecot as MDA.
You may search the web for the M*A keywords, there's a lot of information on how they play together.
 
2 members found this post helpful.
Old 01-14-2012, 05:54 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by ricstirato View Post
I think this should be clarified:
Good point, duly noted.
 
1 members found this post helpful.
Old 01-14-2012, 08:35 AM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
Hi fukawi1, Thanks for your quick reply and clarification. Ricstirato, yours is the best explanation I have seen recently (short, but tells everything) for a mail server! Thank you. So, Friends, please clarify my following doubt too.

Correct me if wrong regarding this scenario....
Code:
Server1:  exampledomain.com      = running Postfix as the SMTP
Server2:  imap.exampledomain.com = running Postfix as the SMTP
                                   also Dovecot as the IMAP/MDA.
Now, suppose a mail is sent to jane@exampledomain.com from someone, the mail will reach the server exampledomain.com. Now, jane, on her Desktop machine, has outlook express/Thunderbird as email client software and has configured the smtp settings as exampledomain.com and to receive mails she has configured imap.exampledomain.com in her outlookexpress/Thunderbird email client.
In this scenario, how will the imap.exampledomain.com server get the mailbox details of jane whose details are in exampledomain.com:/home/jane/Maildir ( hope I am correct) so that jane can download her Inbox mail from imap.exampledomain.com ?

Thanks a lot again for your valuable information.

Last edited by saagar; 01-14-2012 at 09:07 AM.
 
Old 01-15-2012, 09:21 PM   #6
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
Hi, can the above configuration be done with the relay concept of Postfix?, I have just read about that...

Last edited by saagar; 01-16-2012 at 05:32 AM.
 
  


Reply


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
query related to alias IP Neelabha Banerjee Linux - Networking 1 11-07-2011 12:40 PM
FSCK related query tuxianD Solaris / OpenSolaris 1 02-28-2011 06:23 AM
Query related to syslog? your_shadow03 Linux - Newbie 5 05-15-2009 11:32 AM
Query related to sudo? your_shadow03 Linux - Newbie 2 04-22-2009 01:21 AM
shell related query !!!!!!!!!!! iacharyya Linux - General 10 06-09-2008 07:39 PM


All times are GMT -5. The time now is 06:28 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