LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-18-2008, 04:18 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
POP3 and IMAP on same email server?


I have a sendmail server. I was wondering if it's possible to allow both POP3 and IMAP access at the same time (so that some clients continue using POP3 while some use IMAP do access their mail)?
 
Old 08-18-2008, 07:47 PM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Yes, this is possible. You need to properly configure your mail delivery agent (e.g. Dovecot) to support it.
Code:
# Protocols we want to be serving: imap imaps pop3 pop3s
# If you only want to use dovecot-auth, you can set this to "none".
protocols = imap imaps pop3 pop3s
Make sure your firewall has ports open for imap, imaps, pop3 and pop3s.
 
Old 08-18-2008, 08:08 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Sure, you can serve both POP and IMAP on the same server, even with the same server software (courier-imap, dovecot, etc). Clients shouldn't use both at the same time - they should pick one or the other.
 
Old 08-19-2008, 12:57 AM   #4
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Mr. C. View Post
Sure, you can serve both POP and IMAP on the same server, even with the same server software (courier-imap, dovecot, etc). Clients shouldn't use both at the same time - they should pick one or the other.
I'm using sendmail. I will look into the configuration settings for it. Thanks for the tips.
 
Old 08-19-2008, 01:01 AM   #5
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Sendmail isn't your Mail Delivery Agent (MDA), and doesn't speak POP or IMAP - it speaks SMTP. Your MDA will be Dovecot, Courier, Cyrus-IMAP or something similar. Sendmail is the MTA (Mail Transport Agent) that servers use to talk to each other (via SMTP), and MUA's use to send messages. To retrieve/read/download/move messages you need a Mail Delivery Agent - e.g. Dovecot, Courier, Cyrus-IMAP et.al. - and these products speak POP3 and IMAP to the clients.

Hope that helps you
 
Old 08-19-2008, 06:13 PM   #6
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by blacky_5251 View Post
Sendmail isn't your Mail Delivery Agent (MDA), and doesn't speak POP or IMAP - it speaks SMTP. Your MDA will be Dovecot, Courier, Cyrus-IMAP or something similar. Sendmail is the MTA (Mail Transport Agent) that servers use to talk to each other (via SMTP), and MUA's use to send messages. To retrieve/read/download/move messages you need a Mail Delivery Agent - e.g. Dovecot, Courier, Cyrus-IMAP et.al. - and these products speak POP3 and IMAP to the clients.

Hope that helps you
As far as I know, sendmail gets the incoming mail, then sends it through spam-assassin, which sends it to another instance of sendmail which I suppose might send it to the MDA you speak of. I thought sendmail was functioning as MDA in its second instance, but perhaps not (if not, why wouldn't spam assassin send the mail to the MDA directly?) My old boss outlined the situation before I left, but I haven't had a chance to spend much time with this server yet as I've been busy with other things.
 
Old 08-19-2008, 06:25 PM   #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
In any case, sendmail isn't going to act as an imap or pop server. Yes, MTA's can deliver directly or go via a number of mechanisms to deliver mail (eg maildrop, procmail).

This doesn't change your need for a suitable package for serving imap and pop, so a check as to whether you have any of the packages blacky suggests would be a good starting point as they are likely candidates (add uw-imap to that list)
 
Old 08-19-2008, 06:38 PM   #8
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Sendmail is responsible for sending/receiving emails, but users connect to your server via something else to read their emails. I'm a Postfix guy, so I'm not a sendmail expert at all, but Postfix and Sendmail are both MTAs - not MDAs or MUAs. Look here for a basic block diagram of how email works. Sendmail does the server to server stuff using SMTP.

Sendmail will also do all of the SpamAssassin work to cleanse the emails before they are passed to the MDA for delivery to the MUA (whenever it might connect). It can also use RBL and DNSBL to block spam at your front door.

You need to dig a little deeper on your server to see which MDA you are using. Use the command "chkconfig --list" to see what packages your server is running at your current runlevel (usually 3 for text only, or 5 for GUI). You can also use "nmap localhost" to see the open ports on your server now (look for 110 and 995 for pop3 and pop3s, and 143 and 993 for imap and imaps - 25 and 465 are smtp and smtps, but smtps is not typically implemented). Also, use "netstat -lnp" to see the programs that have those ports open. You should see that sendmail has port 25 open, but something else will have 110 or 143 open.

Examples of MDAs include Dovecot, Courier, Cyrus-IMAP and others. Examples of MUAs include Outlook, Thunderbird, Evolution and others. MUAs talk using POP3 or IMAP to the MDA to read/receive mail, and talk using SMTP or SMTPS to the MTA when sending mail.

Let us know how you get on. Also, what distro/version are you using?
 
Old 08-19-2008, 07:36 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
The distinction of MTA/MDA is difficult for new users, especially when a software package provides functionality of both. Eg. Postfix is both an MTA and an MDA (local, virtual, pipe agents are all MDAs). Further confusion abounds with multi-functinonal packages such as Courier, which is an MTA, MDA, and also provides POP and IMAP!
 
Old 08-19-2008, 07:45 PM   #10
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Agreed, email is easy to use, but a complex beast to understand, implement and manage. Hopefully the chkconfig and netstat output will help us find which MDA is actually being using.
 
Old 08-20-2008, 12:18 AM   #11
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by blacky_5251 View Post
Agreed, email is easy to use, but a complex beast to understand, implement and manage. Hopefully the chkconfig and netstat output will help us find which MDA is actually being using.
I will get back to you guys on this (thanks!!) asap, but I have a number of more immediate concerns to address.
 
  


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
email missing in IMAP, but show in POP3 ??? yip623 Linux - General 4 04-17-2008 02:00 AM
What email program can work with email header on pop3 server TruongAn Linux - Software 0 01-13-2005 11:48 AM
email error after changing POP3 to IMAP ryedunn Linux - Newbie 2 10-25-2004 05:25 PM
email . . . choosing between pop3, imap, smtp zthomasz Linux - Newbie 4 07-28-2003 07:23 PM
Redhat Linux 6.2 – Email Delivered to Server but POP3 and IMAP Mailboxes show empty. RCorbet Linux - Software 0 04-14-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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