> Linux > Linux Security
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Linux Security



Linux Security - "Re: How to allow root to use POP3 from local network?" in Linux


Old 10-09-2003   #1
..rt..
 
Default Re: How to allow root to use POP3 from local network?

Fritz Whittington wrote:
[...]
Quote:
Quote:
Perhaps my original post was not completely clear. (I'm using sendmail,
BTW, but I don't think that matters.) And *local* mail delivery isn't
the issue either.

I have spent quite a few hours RTFM, BTW also. And the question has to
do with why I can't use Mozilla running on a Windows machine to connect
to the POP3 server running on the Linux machine on the LAN and read mail
that has been sent to root (mostly the output of cron jobs, since the
entire domain is not known outside my house). Now, I can connect to the
POP3 server and read mail for any ordinary Linux user, just not root.
There are very good reasons why the 'root' user doesn't work for you.
Note that also for good reasons, the home directory for root isn't even
in /home! Now... Sounds like you need to do some further reading of
guides to realise _why_...


An easy (and sensible) fix is:

In /etc/postfix/aliases:

# Person who should get root's mail. This alias
# must exist.
# CHANGE THIS LINE to an account of a HUMAN
root: fritz

# Note to the user: You must create the alias above!
# The root alias *must* exist under postfix because
# postfix runs as a non-privileged user and cannot
# touch a spool file which is UID/GID root
# The mapping to the postfix user is to ensure that root's mail
# doesn't get lost on a system installed out of the box.


Then, once you've corrected the above, as root issue the commands:
newaliases
postfix reload


just as the helpful comments suggest!
#
# After any changes, use the 'newaliases' command to regenerate the .db
# index
# and then 'postfix reload' to pick up the changes
#


Another good command to use is:
postfix check

and then sort out any messages. If there is no output, then all is good
and well (:-))


Welcome to the many various ways for doing the same thing for good or
bad in Linux. Also note that Linux is _not_ the sloppy shoddy overhyped
and overmarketed ways of MS Windows.


Good luck,
Martin



--
----------
- Martin -
- 53N 1W -
----------

 

« iptables logging | - »
Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0