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


Groups > linux.debian.user > #178738

Re: How to restart root sending emails?

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: How to restart root sending emails?
Date Mon, 13 Mar 2017 04:10:01 +0100
Message-ID <tkowV-2th-1@gated-at.bofh.it> (permalink)
References <tk9od-ms-1@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Mon Mar 13 03:06:00 2017
Old-Return-Path <andy@strugglers.net>
X-Amavis-Spam-Status No, score=-9.3 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
X-Policyd-Weight DYN_NJABL=ERR(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=ERR(-1.5) CL_IP_EQ_FROM_MX=-3.1; rate: -6.1
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bitfolk.com; s=alpha; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=b901V61tVm7xD5WcuRI52kJ3SZyLMClR+5rXL1D1qEY=; b=nH+WtIw1wQ4zZPYqvARkBlxQoZO00hIGlO55DhLVJdBQn2RfImgcZMXxueY7tDuSqBHIt4ZpnySBTGxQgvCFIXSNOJYvExK+t1vPD7pNbGTzA6EIyEJuL60pcLFPWD9wI2vsIOA5tWjD4qhZc0BU4L574wlROakcrAtRUaJkl5cEMsLhN20eeHoQaUpFN27+jmPrC5KRAJ3dxRlB0Su+8/BRZhUfZC2UdR+8hh3O5efybmEgbThwlhEt0I6edwgngEXULiQ1mDmOd/vtq1hwc/Ieq5dSLJNoinHf9Npgk93j8hhOBJPtfOPIHNs8XsYQVmnRPb+jUaprLFC3dMbgYg==;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
Openpgp id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc
X-URL http://strugglers.net/wiki/User:Andy
User-Agent Mutt/1.5.20 (2009-06-14)
X-Sa-Exim-Connect-IP <locally generated>
X-Sa-Exim-Mail-From andy@strugglers.net
X-Sa-Exim-Scanned No (on mail.bitfolk.com); SAEximRunCond expanded to false
X-Mailing-List <debian-user@lists.debian.org> archive/latest/718348
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/20170313030531.GJ4349@bitfolk.com
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 13 Mar 2017 03:05:31 +0000
X-Original-Message-ID <20170313030531.GJ4349@bitfolk.com>
X-Original-References <87efy24vee.fsf@skimble.plus.com>
Xref csiph.com linux.debian.user:178738

Show key headers only | View raw


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.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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