Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #178773

Re: How to restart root sending emails?

From Sharon Kimble <boudiccas@skimble.plus.com>
Newsgroups linux.debian.user
Subject Re: How to restart root sending emails?
Date 2017-03-13 19:50 +0100
Message-ID <tkDcB-4C4-17@gated-at.bofh.it> (permalink)
References <tk9od-ms-1@gated-at.bofh.it> <tkowV-2th-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Andy Smith <andy@strugglers.net> writes:

> Hi Sharon,
>
> On Sun, Mar 12, 2017 at 10:55:05AM +0000, Sharon Kimble wrote:
>> In an effort to get gnus to read root emails I've chowned
>> /var/mail/mail, added myself to the 'mail' group, changed the
>> permissions of /var/mail/mail, and generally frigged around with it.
>
> That is not a good way to go about achieving this.
>
> A better way to achieve the goal of being able to read emails to
> root would be to edit /etc/aliases so that it contains something
> like:
>
> root: sharon
>
> where "sharon" is your local user name.
>
> That would cause email for root to be redirected to your username
> where you could read it with your usual mail reading software. If
> you don't read email locally then you could probably instead send it
> to the email address you have used here:
>
> root: boudiccas@skimble.plus.com
>
>> So how do I restart root sending logwatch etc again please?
>
> I would start by putting the correct ownership and permissions back
> on /var/mail/mail. It is normally owned by mail:mail with mode 0600.
>
> If that doesn't help, try looking at the logs of your mail server
> when you expect the emails to be sent. If using exim, that would be
> /var/log/exim4/mainlog and /var/log/exim4/paniclog.
>

Already done thanks Andy, and now that '/etc/alias' is changed I'm
getting all roots emails.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = http://www.drugfacts.org.uk  
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to restart root sending emails? Sharon Kimble <boudiccas@skimble.plus.com> - 2017-03-12 12:00 +0100
  Re: How to restart root sending emails? Andy Smith <andy@strugglers.net> - 2017-03-13 04:10 +0100
    Re: How to restart root sending emails? David Wright <deblis@lionunicorn.co.uk> - 2017-03-13 05:00 +0100
      Re: How to restart root sending emails? Andy Smith <andy@strugglers.net> - 2017-03-13 20:30 +0100
    Re: How to restart root sending emails? rhkramer@gmail.com - 2017-03-13 19:30 +0100
    Re: How to restart root sending emails? Sharon Kimble <boudiccas@skimble.plus.com> - 2017-03-13 19:50 +0100

csiph-web