From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <8dd4e651db2f5fe19ce37dd53ad473d2@hamnavoe.com> Date: Mon, 3 Nov 2014 09:54:26 +0100 Message-ID: From: Mats Olsson To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Setting up Mail in Acme on the Raspberry Pi. Topicbox-Message-UUID: 22bc9ed2-ead9-11e9-9d60-3106f5b1d025 Hi all! I can't get through to any gmail account however I try but I got through to another account but the mail was not containing anything. I must be doing something wrong. I've tried like this: term % acme -f /lib/font/bit/lucidasans/latin1.10.font (I like this font in acme) Detete the last column so that I only have one large. Middleclicking on NEW so I get a new window. Then I type my message in the new window. Type the line: ;upas/smtp -d -a -h localhost.localdomain net!smtp.spray.se plan9.meo@gmail xxx@spray.se Mark this line and middleclick on it to execute. To this e-mail address (substituted with xxx) I get error messages but an empty mail get through. If someone could point out what I'm doing wrong I'd very grateful. Kind Greetings and thanks for all the help I've been given so far, Mats PS I've changed all the settings in my installation of plan 9 on the Raspberry Pi according to the way Richard Miller suggested DS 2014-10-31 22:53 GMT+01:00, Mats Olsson : > Hi again Richard! > > Thanks a lot for your advise! Will try it out ASAP. > > Yours Sincerely, > Mats > > 2014-10-31 22:14 GMT+01:00, Richard Miller <9fans@hamnavoe.com>: >> To send mail from acme on native Plan 9 via gmail, this is what just >> worked for me: >> >> - make sure the last line of /mail/lib/rewrite is >> >> ([^!]*)!(.*) | "/mail/lib/qmail '\s' 'net!$smtp'" "'\2@\1'" >> >> - change /mail/lib/remotemail to add the '-a' flag to smtp >> >> exec /bin/upas/smtp -a -d -h $fd $addr $sender $* >> >> - define $smtp for my local network in /lib/ndb/local >> >> ipnet=localnet >> ip=192.168.0.0 ipmask=255.255.0.0 >> smtp=smtp.gmail.com >> ntp=pool.ntp.org >> ... >> >> - give factotum the password for my gmail account >> >> auth/factotum -g 'proto=pass service=smtp server=smtp.gmail.com user? >> !password?' >> >> - add a tls thumbprint for the gmail server to /sys/lib/tls/smtp >> >> x509 sha1=9C0ACC931DE7513790616BA11828679554C569A8 server=smtp.gmail.com >> >> (I found the hash by trying to send once, then looking in /sys/log/smtp) >> >> - finally, after receiving a "Google Account: sign-in attempt blocked" >> email from google, followed their suggestion to: >> >> "change your settings at >> https://www.google.com/settings/security/lesssecureapps so that your >> account is no longer protected by modern security standards." >> >> I guess upas/smtp is considered a less secure app. >> >> BTW, when having trouble sending email it's often useful to look >> in /sys/log/smtp and /sys/log/smtp.fail >> >> >> >> >> >