Re: how do you send mail to another user on a local debian machine
- Date: Thu, 29 Mar 2018 21:08:05 -0700
- From: Dan Hitt <dan.hitt@xxxxxxxxx>
- Subject: Re: how do you send mail to another user on a local debian machine
On Thu, Mar 29, 2018 at 9:02 PM, David Wright <deblis@xxxxxxxxxxxxxxxxx> wrote:
> 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, email@example.com
> The third one, otheruser@localhost. There should be a line in
> /etc/hosts reading
> 127.0.0.1 localhost
>> 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).