From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <8dd4e651db2f5fe19ce37dd53ad473d2@hamnavoe.com> References: <8dd4e651db2f5fe19ce37dd53ad473d2@hamnavoe.com> Date: Fri, 31 Oct 2014 22:53:30 +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: 2275d63c-ead9-11e9-9d60-3106f5b1d025 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 > > > > >