Re: how do you send mail to another user on a local debian machine
- Date: Thu, 29 Mar 2018 23:02:22 -0500
- From: David Wright <deblis@xxxxxxxxxxxxxxxxx>
- Subject: Re: how do you send mail to another user on a local debian machine
On Thu 29 Mar 2018 at 13:50:54 (-0700), Dan Hitt wrote:
> On Thu, Mar 29, 2018 at 1:32 PM, David Wright <deblis@xxxxxxxxxxxxxxxxx> wrote:
> > On Wed 28 Mar 2018 at 22:42:43 (-0700), Dan Hitt wrote:
> >> I thought i'd just do what used to be the usual thing on a unix box:
> >> i compose-mail in emacs (control-x m), and drafted the text, and put
> >> in the other user's name in the To: line.
> > I just write username@localhost instead of username on its own.
> > That should be enough to stop it leaving the system.
> Thanks David for your reply.
> That doesn't seem to work for me, although maybe i'm not doing it
> exactly the way you are --- were you using emacs to manage it?
I just tested it and it worked fine, including the "bogus" message.
It also puts a jokey aside into Message-ID because I have no name
for my domain.
> In emacs, i tried the address otheruser@host, otheruser,
> otheruser@localhost, firstname.lastname@example.org
The third one, otheruser@localhost. There should be a line in
> Here, 'host' is to stand for the hostname of my box, stripped of any
> domain information.
> In all four cases, it opened a new tab in my firefox browser, showing
> gmail, with the message loaded, and the 'To' field populated. (In the
> case of otheruser, it was underlined in red.)
If I type (in emacs) ^H v send-mail-function
it tells me that that variable is set to sendmail-send-it which
probably explains why emacs hands the email off to exim.
Perhaps yours is set to mailclient-send-it? See
> emacs also warned me that the addresses i was using 'might be bogus'.
> However, invoking the 'mail' program directly does work for me, so i
> have a solution (although if i could work it through emacs, without
> having to do any serious configuration, it would be much better).
I haven't looked into how/whether Debian configures emacs according to
which other packages you install (and in what order).