From: sirjofri+ml-9front@sirjofri.de
To: 9front@9front.org
Subject: Re: [9front] /mail/lib: cleanup proposal
Date: Mon, 5 Oct 2020 05:15:15 +0000 (UTC) [thread overview]
Message-ID: <3066e7d9-bac5-4952-aad8-8260b6668da2@sirjofri.de> (raw)
In-Reply-To: <8B0E324EB486017F84E81FD02A1C4D2D@eigenstate.org>
Hey ori,
> I've also rewritten remotemail, so that it uses factotum to figure
> out where to send to. That means that configuring mail is adding
>
> upasname=user@server.com
>
> to your environment, and adding an 'email=user@server.com' to your
> smtp factotum key so we can decide which smtp server to use:
>
> echo 'key proto=pass server=server.com ' \
> 'service=smtp user=user >>email=user@server.com<< !password=12345'
>
> Here's the rewritten remotemail:
>
> #!/bin/rc
>
> # allow users to do their own mail setup
> if(test -x $home/lib/mail/remotemail)
> exec $home/mail/lib/remotemail
>
> sender=$2
> svcpat='[ ]service=smtp[ ]'
> addrpat='[ ]email='$2'[ ]'
> config=`{grep -e $svcpat -e $addrpat /mnt/factotum/ctl}
> if(~ $#config 0)
> exit 'no server'
> for(kv in $config){
> parts=`'='{echo -n $kv}
> switch($parts(1)){
> case server; server=$parts(2)
> case user; login=$parts(2)
> }
> }
>
> exec /bin/upas/smtp -as -u $login $server $addr $sender $*(4-)
I like the changes. Also may I suggest that you add my patch for smtp?
Then unrecognized certificates during smtp can be ignored using a flag
resulting in encrypted mails. Modern providers like this, although it
makes mails somewhat unsecure (mails are encrypted which is more secure,
but no one can ensure you're talking to the right server). Otherwise we
need to handle certificates better (maybe trust on first use?)
Also since my patch provides a flag server admins can choose which
security feature they want.
sirjofri
next prev parent reply other threads:[~2020-10-05 5:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-20 18:05 ori
2020-09-20 19:01 ` [9front] " Kurt H Maier
2020-09-20 20:19 ` hiro
2020-09-20 21:27 ` Stanley Lieber
2020-09-21 4:48 ` ori
2020-10-04 23:35 ` ori
2020-10-05 5:15 ` sirjofri+ml-9front [this message]
2020-09-21 17:53 ` Lyndon Nerenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3066e7d9-bac5-4952-aad8-8260b6668da2@sirjofri.de \
--to=sirjofri+ml-9front@sirjofri.de \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).