Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)?
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.
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.
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.
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.
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.
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)
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?
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.