Web lists-archives.com

Re: how do you send mail to another user on a local debian machine

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.
> Cheers,
> David.

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?

In emacs, i tried the address otheruser@host, otheruser,
otheruser@localhost, otheruser@host.local

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.)

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).

Thanks for the idea, though!