From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20110811195500.2034be49@zinc.9fans.fr> References: <20110811195500.2034be49@zinc.9fans.fr> Date: Sun, 28 Aug 2011 16:09:05 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] mail client; general question web vs command Topicbox-Message-UUID: 167cbfaa-ead7-11e9-9d60-3106f5b1d025 Hello, On 11 August 2011 19:55, David du Colombier <0intro@gmail.com> wrote: >> But what about sending mail? I've only ever configured Plan 9 to act >> as its own smtp server, have never done anything with p9p or a remove >> server. > > It's pretty much the same as on Plan 9. > > See $PLAN9/mail/lib/rewrite. I must say that now I have spent about 5 hours trying to make sending email from p9p work, but so far without success. [Perhaps it is often much more instructive to write down 10 lines to explain than just write that it is much the same as somewhere else...] After reading quite a few man pages, I've tried to simplify my attempts. Now I have a simple file 'q' with the email I want to send (I put 'cat >q' instead of 'qmail...' into 'rewrite'): >------- ;cat q >>From ruda Sun Aug 28 14:52:01 CES 2011 remote from bluestar To: rsykora@cern.ch Date: Sun, 28 Aug 2011 14:52:01 +0200 From: ruda MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit aahahha ; <------- now when I try (74.125.39.108 should be smtp.gmail.com): cat q | upas/smtp -a -d -h a.com 74.125.39.108 rudolf.sykora@gmail.com rsykora@cern.ch I get: mxlookup returns nothing 220 mx.google.com ESMTP u18sm633897fah.41 EHLO bluestar.ch 250-mx.google.com at your service, [128.141.146.177] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES Sun Aug 28 15:33:22 CES 2011 connect to 74.125.39.108: 250-mx.google.com at your service, [128.141.146.177] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES QUIT 221 2.0.0 closing connection u18sm633897fah.41 If anybody could suggest what I should do to be able to send... (E.g. I don't understand why I need any '-h a.com' or what should really be there. Further, I do not know if I have to have an entry in factotum before the try or if factotum would ask when neccessary [as it does in the imap case, i.e. when I just read the email].) (I on purpose try to bypass all those upas/qer, upas/runq, ... stuff; I believe a simple line like above should first succeed before any such stuff is needed. Also, when I tried to use the queues, sth kept on bringing qmail script to life each few seconds [and I was not able to tell what], the file log/mail/smtp.fail was steadily growing and I could not stop it [finally I renamed qmail to stop it].) Thank you! (I just so much want to get rid of the web browsers...) Ruda