1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
|
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3B.f">
<TITLE>The Answer Guy 50: Installing a POP Daemon on Red Hat Linux</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H4>"The Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By James T. Dennis,
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a><BR>
LinuxCare,
<A HREF="http://www.linuxcare.com/">http://www.linuxcare.com/</A>
</H4>
</center>
<p><hr><p>
<!-- endcut ======================================================= -->
<!-- begin 48 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Installing a POP Daemon on Red Hat Linux</H3>
<p><strong>From Hongwei Li on Sat, 22 Jan 2000
</strong></p>
<!-- ::
Installing a POP Daemon on <A HREF="http://www.redhat.com/">Red Hat</A> Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I recently installed RedHat 6.0 and 6.1 on two machines,
respectively. Everything looks working except that users can not
access their e-mail accounts on these two servers from PC Windows
using Netscape Mail or MS Outlook Express although they can access
the e-mails using telnet, pine. Apparently, POP3 daemon is not
working on these two RH Linux boxes.
</STRONG></P>
<P><STRONG>
Somebody said I can retrieve POP3 daemon from IMAP package. But,
I don't know where it is and how to do it. Could you help me?
How to check the system if POP3 daemon is installed and working?
Where can I get IMAP package and retrieve POP3 daemon, then
installed it and let it run? or should I get something else?
</STRONG></P>
<P><STRONG>
I would greatly appreciate your help!
</STRONG></P>
<P><STRONG>
Hongwei Li
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Your "somebody" is a smart cookie. You sould listen
to him or her. However, you might ask him (or her) for
a wee bit more detail.
</BLOCKQUOTE>
<BLOCKQUOTE>
Red Hat inexplicably puts their POP and IMAP daemons
in the same file. You can install them using
something like the following procedure:
</BLOCKQUOTE>
<BLOCKQUOTE>
1) Mount your RH Linux CD (disc #1?) using
a command like:
</BLOCKQUOTE>
<BLOCKQUOTE><BlockQuote><Code>
mount /mnt/cdrom
</Code></BlockQuote></BLOCKQUOTE>
<BLOCKQUOTE>
2) Go to RPM directory using something like:
</BLOCKQUOTE>
<BLOCKQUOTE><BlockQuote><Code>
cd /mnt/cdrom/Redhat/RPMS
</Code></BlockQuote></BLOCKQUOTE>
<BLOCKQUOTE>
3) Install the imap....rpm package using a
command like:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
rpm -Uvh imap*
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
... or:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
rpm -i imap*
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
That's basically all there is to it. You can
test for POP installlation/accessibility using a
command like:
</BLOCKQUOTE>
<BLOCKQUOTE><BlockQuote><Code>
telnet $TARGET 110
</Code></BlockQuote></BLOCKQUOTE>
<BLOCKQUOTE>
... where $TARGET is replaced with the hostname or
IP address of the system on which you hope to find
a POP server.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you get a "connection refused" or a "connection
closed by remote host" then you don't have POP installed
properly on the $TARGET system (or you have a firewall,
packet filter, or <TT>/etc/hosts.deny</TT> rule between your client
and the server).
</BLOCKQUOTE>
<BLOCKQUOTE>
Otherwise you should get something a little like this:
</BLOCKQUOTE>
<blockquote><pre>Trying 123.45.67.8...
Connected to popserver.wherever.not.
Escape character is '^]'.
+OK <13260.948530011@popserver.wherever.not>
USER nobody
+OK
PASS somedumbpassword
+OK Mailbox open, 4294967295 messages
QUIT
</pre></blockquote>
<BLOCKQUOTE>
The USER, PASS and QUIT commands were typed by me. There
are additional POP 3 protocol commands you could use to play
with the server manually, but this is enough to verify that
the server is running, that the user name and password are
valid and that the POP server isn't having trouble opening
the user's mail spool.
</BLOCKQUOTE>
<BLOCKQUOTE>
NOTE: The PASS command is simply transmitting and
displaying your password. Don't do this over an insecure
network or with a bad person looking over your shoulder!
</BLOCKQUOTE>
<BLOCKQUOTE>
(Also note: The number of messages that the POP daemon
reports as being in your inbox had better be alot less
then what I show in this example: 2^32 - 1).
</BLOCKQUOTE>
<BLOCKQUOTE>
As for you question about whether you should get something
else (something other than the POP daemon that Red Hat
packages in their IMAP RPM file): That's entirely up to you.
</BLOCKQUOTE>
<BLOCKQUOTE>
I did dig up a page where Cameron Laird started
collecting notes for a comparison of POP daemons
(<A HREF="http://starbase.neosoft.com/~claird/comp.mail.misc/POP_comparison.html"
>http://starbase.neosoft.com/~claird/comp.mail.misc/POP_comparison.html</A>)
</BLOCKQUOTE>
<BLOCKQUOTE>
It doesn't offer much commentary nor comparison, yet.
However, it does offer links to over a dozen POP servers.
Surprisingly I couldn't find any other online articles
that offer a comparison or summary of POP daemons and
server.
</BLOCKQUOTE>
<BLOCKQUOTE>
One of the most popular POP daemons is QPopper
(<A HREF="http://www.eudora.com/freeware/qpop.html"
>http://www.eudora.com/freeware/qpop.html</A>). This is
a (relatively) free package from the publishers of
the Eudora mail client software for Macs and MS Windows.
One of the principle advantages of this package is
its support for changing passwords through it's own
client/server protocol. To enable this you have to
install the poppasswd daemon in addition to the
qpopper daemon.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you replace your MTA (mail transport agent) with
qmail then you'll want to switch to the qmail-pop3d
daemon (which comes with qmail). You can find out more
than you wanted to know about that and many addons,
and optional packages and patches related to it by
searching the Qmail home page (<A HREF="http://www.qmail.org"
>http://www.qmail.org</A>)
on the term "POP."
</BLOCKQUOTE>
<BLOCKQUOTE>
It's a pity there isn't more info to guide users
in selecting a POP daemon. Then again, basic POP
is a pretty protocol with only a very focussed purpose.
Any of them should do the basic job at hand.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you're allowing POP from outside of your network
(beyond your organization's firewall or packet filters)
then you should require APOP authentication or you should
ensure that your outside clients are connecting through
a secure channel (like <A HREF="http://www.xs4all.nl/~freeswan/">FreeS/WAN</A> <A HREF="http://www.xs4all.nl/~freeswan"
>http://www.xs4all.nl/~freeswan</A>
or an ssh tunnel).
</BLOCKQUOTE>
<BLOCKQUOTE>
APOP is an extension to the POP protocol that uses a
challenge-response exchange to perform the authentication
(there's also a KPOP variation for sites using Kerberos).
What is remarkable is that I don't see options in any of
the software that I've looked at to DISABLE plain text
passwords (so that you can enforce a policy that your
external users MUST use APOP).
</BLOCKQUOTE>
<BLOCKQUOTE>
It doesn't sound like this will be a problem for you,
but if it is (and for the benefit of my other readers)
here's a couple of links to information about POP over
ssh, and how to configure a system to allow POP and/or
IMAP over SSL (secure socket layer).
</BLOCKQUOTE>
<BLOCKQUOTE><DL><DT>
Secure POP via SSH mini-HOWTO
<DD><A HREF="http://www.linuxdoc.org/HOWTO/mini/Secure-POP%2BSSH.html"
>http://www.linuxdoc.org/HOWTO/mini/Secure-POP%2BSSH.html</A>
<dt>
linuxsec: [linux-security] Re: POP secure access??
<dd><A HREF="http://www-uxsup.csx.cam.ac.uk/lists/linuxsec/0104.html"
>http://www-uxsup.csx.cam.ac.uk/lists/linuxsec/0104.html</A>
</DL></BLOCKQUOTE>
<BLOCKQUOTE>
Hope all that helps.
</BLOCKQUOTE>
<!-- sig -->
<!-- end 48 -->
<hr width="40%" align="center">
<!-- begin 2 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>IMAP/POP daemon on RH 6.0 and 6.1</H3>
<p><strong>From Randall Gellens on Sun, 30 Jan 2000
</strong></p>
<P><STRONG><FONT COLOR="#000066"><EM>
One of the most popular POP daemons is QPopper
(<A HREF="http://www.eudora.com/freeware/qpop.html"
>http://www.eudora.com/freeware/qpop.html</A>). This is
a (relatively) free package from the publishers of
the Eudora mail client software for Macs and MS Windows.
</EM></FONT></STRONG></P>
<P><STRONG>
Why do you say "relatively"?
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I was under the misconception that Qualcomm was imposing
some restrictions on the distribution of qpopper
derivatives. However, I copied you so that you could
clear that up for me. (I see that it's not listed
as "non-free" by my <A HREF="http://www.debian.org/">Debian</A> package lister and now
I see that it appears to be a BSDish license.
</BLOCKQUOTE>
<BLOCKQUOTE>
So, I was wrong to qualify it this way. Qpopper is a
free package.
</BLOCKQUOTE>
<P><STRONG><FONT COLOR="#000066"><EM><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
If you replace your MTA (mail transport agent) with
qmail then you'll want to switch to the qmail-pop3d
daemon (which comes with qmail). You can find out more
than you wanted to know about that and many addons,
and optional packages and patches related to it by
searching the Qmail home page (<A HREF="http://www.qmail.org"
>http://www.qmail.org</A>)
on the term "POP."
</EM></FONT></STRONG></P>
<P><STRONG>
Many people use Qpopper and Qmail together. There is a <TT>./configure</TT>
option for Qpopper to use Qmail's home dir mail spool.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Glad to hear it. I obviously haven't been using qpopper
recently. I should probably switch.
</BLOCKQUOTE>
<P><STRONG><FONT COLOR="#000066"><EM><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
APOP is an extension to the POP protocol that uses a
challenge-response exchange to perform the authentication
(there's also a KPOP variation for sites using Kerberos).
What is remarkable is that I don't see options in any of
the software that I've looked at to DISABLE plain text
passwords (so that you can enforce a policy that your
external users MUST use APOP).
</EM></FONT></STRONG></P>
<P><STRONG>
By default, Qpopper does not permit users to log in with plain text
passwords if they are enabled for APOP (or SCRAM).
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Maybe the FAQ or README should clarify that. Maybe
I missed it. That's one of the reasons that I try to
copy the "right" people when I'm doing my "Answer Guy"
responses. I learn from my mistakes that way.
</BLOCKQUOTE>
<BLOCKQUOTE>
Is SCRAM some variant of the CRAM-MD5? (challenge/response
authentication mechanism: RFC 2095 and 2195?)
</BLOCKQUOTE>
<BLOCKQUOTE>
Does that get around the need to store the POP user's
cleartext password on the server? I read through these
RFCs and didn't quite get the part about storing
"contexts" rather than copies of the cleartext passwords.
(I didn't spend long on it, but I think I'm missing
some detail here --- I should probably read some source
code to an implementation to see what I missed).
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Randall Gellens
<em><br>Opinions are personal; facts are suspect; I speak for myself only
<br>--- randomly selected quote ---
<br>A child of five would understand this. Send somebody to
fetch a child of five. --Groucho Marx, _Duck Soup_
</em></STRONG></P>
<!-- sig -->
<!-- end 2 -->
<!--startcut ======================================================= -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 2000, James T. Dennis
<BR>Published in <I>The Linux Gazette</I> Issue 50 February 2000</H5>
<H6 ALIGN="center">HTML transformation by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<P> <hr> <P>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<TABLE WIDTH="95%"><TR VALIGN="center" ALIGN="center">
<TD colspan="2" rowspan="2"><A
HREF="../lg_answer50.html"
><IMG SRC="../../gx/dennis/answernew.gif"
ALT="[ Answer Guy Current Index ]"></A>
<TD colspan="2" rowspan="2"><A
HREF="../../tag/kb.html"
><IMG SRC="../../gx/dennis/answertoc.gif"
ALT="[ Index of Past Answers ]"></A></td>
<TD WIDTH="11%"><A HREF="../lg_answer50.html#greeting"><img
src="../../gx/dennis/smily.gif" alt="greetings" border="0"></A></TD>
<TD WIDTH="11%"><A HREF="1.html">1</A></TD>
<TD WIDTH="11%"><A HREF="2.html">2</A></TD>
<TD WIDTH="11%"><A HREF="3.html">3</A></TD>
<TD WIDTH="11%"><A HREF="4.html">5</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="11%"><A HREF="5.html">5</A></TD>
<TD WIDTH="11%"><A HREF="6.html">6</A></TD>
<TD WIDTH="11%"><A HREF="7.html">7</A></TD>
<TD WIDTH="11%"><A HREF="8.html">8</A></TD>
<TD WIDTH="11%"><A HREF="9.html">9</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="10.html">10</A></TD>
<TD WIDTH="10%"><A HREF="11.html">11</A></TD>
<TD WIDTH="10%"> </TD>
<TD WIDTH="10%"><A HREF="13.html">13</A></TD>
<TD WIDTH="11%"><A HREF="14.html">14</A></TD>
<TD WIDTH="11%"><A HREF="15.html">15</A></TD>
<TD WIDTH="11%"><A HREF="16.html">16</A></TD>
<TD WIDTH="11%"><A HREF="17.html">17</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="18.html">18</A></TD>
<TD WIDTH="10%"><A HREF="19.html">19</A></TD>
<TD WIDTH="10%"><A HREF="20.html">20</A></TD>
<TD WIDTH="10%"><A HREF="21.html">21</A></TD>
<TD WIDTH="11%"><A HREF="22.html">22</A></TD>
<TD WIDTH="11%"><A HREF="23.html">23</A></TD>
<TD WIDTH="11%"><A HREF="24.html">24</A></TD>
<TD WIDTH="11%"> </TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="26.html">26</A></TD>
<TD WIDTH="10%"><A HREF="27.html">27</A></TD>
<TD WIDTH="10%"><A HREF="28.html">28</A></TD>
<TD WIDTH="10%"><A HREF="29.html">29</A></TD>
<TD WIDTH="11%"><A HREF="30.html">30</A></TD>
<TD WIDTH="11%"><A HREF="31.html">31</A></TD>
<TD WIDTH="11%"><A HREF="32.html">32</A></TD>
<TD WIDTH="11%"><A HREF="33.html">33</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="34.html">34</A></TD>
<TD WIDTH="10%"> </TD>
<TD WIDTH="10%"><A HREF="36.html">36</A></TD>
<TD WIDTH="10%"><A HREF="37.html">37</A></TD>
<TD WIDTH="11%"><A HREF="38.html">38</A></TD>
<TD WIDTH="11%"><A HREF="39.html">39</A></TD>
<TD WIDTH="11%"><A HREF="40.html">42</A></TD>
<TD WIDTH="11%"><A HREF="41.html">41</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="42.html">42</A></TD>
<TD WIDTH="10%"><A HREF="43.html">43</A></TD>
<TD WIDTH="10%"><A HREF="44.html">44</A></TD>
<TD WIDTH="10%"><A HREF="45.html">45</A></TD>
<TD WIDTH="11%"><A HREF="46.html">46</A></TD>
<TD WIDTH="11%"><A HREF="47.html">47</A></TD>
<TD WIDTH="11%"><A HREF="48.html">48</A></TD>
</TR></TABLE>
</TR><TR VALIGN="center" ALIGN="center">
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<P> <hr> <P>
<!-- begin lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<A HREF="../index.html"
><IMG SRC="../../gx/indexnew.gif" ALT="[ Table Of Contents ]"></A>
<A HREF="../../index.html"
><IMG SRC="../../gx/homenew.gif" ALT="[ Front Page ]"></A>
<A HREF="../lg_bytes50.html"
><IMG SRC="../../gx/back2.gif" ALT="[ Previous Section ]"></A>
<A HREF="../../faq/index.html"
><IMG SRC="../../gx/dennis/faq.gif"
ALT="[ Linux Gazette FAQ ]"></A>
<A HREF="../lg_tips50.html"
><IMG SRC="../../gx/fwd.gif" ALT="[ Next Section ]"></A>
<!-- end lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
</BODY></HTML>
<!--endcut ========================================================= -->
|