Which key shortcuts are safe to bind and some Q:s about history and OS diffs Re: Ctrl+4 means SIGQUIT+coredump, where is this documented, what more shortcuts are there?

2018-10-31 Thread Tinker
On Thursday, November 1, 2018 2:15 AM, Christian Weisgerber wrote: > On 2018-10-31, Stuart Henderson s...@spacehopper.org wrote: > > > No idea how ^4 is mapped to ^\, but for some reason it is, > > This goes back to the VT220, if not older terminals. Ctrl-3 for > ESC aka ^[ is particularly handy

Re: smtpd new "relay as" syntax?

2018-10-31 Thread Paul B. Henson
On Wed, Oct 31, 2018 at 08:07:09PM -0400, TronDD wrote: > Mail-from in the action options, I believe. Ah, yes; that seems to work, thanks. The previous implementation was documented as: If the as parameter is specified, smtpd(8) will rewrite the sender advertised in the SMTP session. address ma

Re: smtpd new "relay as" syntax?

2018-10-31 Thread TronDD
On October 31, 2018 5:31:44 PM EDT, "Paul B. Henson" wrote: >I just upgraded to OpenBSD 6.4, and I'm trying to figure out how to do >this with the new syntax: > >accept from local for any relay via smtp://smtp.domain.com as >"@domain.com" > >This would rewrite the outbound message to masquerade

smtpd new "relay as" syntax?

2018-10-31 Thread Paul B. Henson
I just upgraded to OpenBSD 6.4, and I'm trying to figure out how to do this with the new syntax: accept from local for any relay via smtp://smtp.domain.com as "@domain.com" This would rewrite the outbound message to masquerade as being from the TLD rather than a specific machine. Right now I've g

Re: spamd and google smtp ips

2018-10-31 Thread Mario Theodoridis
On 31.10.2018 17:09, Kevin Chadwick wrote: On 10/30/18 8:05 PM, Mario Theodoridis wrote: I ran into this problem as well. I ended up writing a script that parses the SPF entries out of the greylist and if reasonable, whitelists those ranges and removes the grey list entries. It runs every 15 m

Re: Ctrl+4 means SIGQUIT+coredump, where is this documented, what more shortcuts are there?

2018-10-31 Thread Aner Perez
On 10/31/18 2:15 PM, Christian Weisgerber wrote: On 2018-10-31, Stuart Henderson wrote: No idea how ^4 is mapped to ^\, but for some reason it is, This goes back to the VT220, if not older terminals. Ctrl-3 for ESC aka ^[ is particularly handy if the Esc key is in some inconvenient place as

Re: Ctrl+4 means SIGQUIT+coredump, where is this documented, what more shortcuts are there?

2018-10-31 Thread Christian Weisgerber
On 2018-10-31, Stuart Henderson wrote: > No idea how ^4 is mapped to ^\, but for some reason it is, This goes back to the VT220, if not older terminals. Ctrl-3 for ESC aka ^[ is particularly handy if the Esc key is in some inconvenient place as on most PC keyboards. See "Table 3-5 Keys Used to

Re: Ctrl+4 means SIGQUIT+coredump, where is this documented, what more shortcuts are there?

2018-10-31 Thread Aner Perez
On 10/31/18 10:54 AM, Stuart Henderson wrote: On 2018-10-31, Tinker wrote: Hi, When in "cat" or "dd if=/dev/zero of=/dev/zero" or "gzip < /dev/zero > /dev/zero", if I press ctrl+4, the program coredumps. Doing it in ksh or sh has no effect though. This is in OpenBSD 6.4 AMD64 from Putty on W

Re: syntax error and doas.conf

2018-10-31 Thread Allan Streib
Stuart Henderson writes: > If you aren't sure about a change you're about to make, keep a spare > root shell open (or at least keep the editor open - save the file > but don't exit - and test on another terminal). I would add that this is not really OpenBSD-specific. Yes there's no direct analog

Re: syntax error and doas.conf

2018-10-31 Thread Solene Rapenne
Stuart Henderson wrote: > On 2018-10-31, Markus Rosjat wrote: > > just something I notice while trying out stuff with doas and my python > > scripts. If you do a mistake and have a syntax error in the doas.conf > > file you can easily look you self out from root privilages  :( > > If you aren'

Re: syntax error and doas.conf

2018-10-31 Thread Kim Zeitler
On 10/31/18 10:42 AM, Markus Rosjat wrote: ... doas vi /etc/doas.conf # Edit in vi :w :! doas -C % You don't even have to leave your editor smime.p7s Description: S/MIME Cryptographic Signature

Re: Bluetooth Support

2018-10-31 Thread Kevin Chadwick
On 10/31/18 9:42 AM, Marco Menne wrote: > Bluetooth I never liked. :-) Especially when the Bluetooth spec, specified ecdh without following the security requirements of must validate the curves as clearly laid out by GECC (guide to ECC). I guess Linux and some Intel products did the same or copie

Re: spamd and google smtp ips

2018-10-31 Thread Kevin Chadwick
On 10/30/18 8:05 PM, Mario Theodoridis wrote: > I ran into this problem as well. > I ended up writing a script that parses the SPF entries out of the greylist > and > if reasonable, whitelists those ranges and removes the grey > list entries. It runs every 15 minutes. smtpctl now has an spf walk

Re: Why&how do "sh" and "ksh" differ in behavior e.g. PS1 presentation, while their binaries are equal?

2018-10-31 Thread Joseph Mayer
On Wednesday, October 31, 2018 10:19 PM, Joseph Mayer wrote: > On Tuesday, October 30, 2018 4:33 PM, Sebastien Marie sema...@online.fr wrote: > > > On Tue, Oct 30, 2018 at 08:11:24AM +, Joseph Mayer wrote: > > > > > On a quick sourcecode check I didn't see any code paths e.g. > > > "if (argv

Re: syntax error and doas.conf

2018-10-31 Thread Stuart Henderson
On 2018-10-31, Markus Rosjat wrote: > just something I notice while trying out stuff with doas and my python > scripts. If you do a mistake and have a syntax error in the doas.conf > file you can easily look you self out from root privilages  :( If you aren't sure about a change you're about to

Re: Ctrl+4 means SIGQUIT+coredump, where is this documented, what more shortcuts are there?

2018-10-31 Thread Stuart Henderson
On 2018-10-31, Tinker wrote: > Hi, > > When in "cat" or "dd if=/dev/zero of=/dev/zero" or "gzip < /dev/zero > > /dev/zero", if I press ctrl+4, the program coredumps. > > Doing it in ksh or sh has no effect though. > > This is in OpenBSD 6.4 AMD64 from Putty on Windows. > > The console interaction

Re: Why&how do "sh" and "ksh" differ in behavior e.g. PS1 presentation, while their binaries are equal?

2018-10-31 Thread Joseph Mayer
On Tuesday, October 30, 2018 4:33 PM, Sebastien Marie wrote: > On Tue, Oct 30, 2018 at 08:11:24AM +, Joseph Mayer wrote: > > > On a quick sourcecode check I didn't see any code paths e.g. > > "if (argv[0] matches "ksh") { something } else { something else }" > > however I presume I missed some

Ctrl+4 means SIGQUIT+coredump, where is this documented, what more shortcuts are there?

2018-10-31 Thread Tinker
Hi, When in "cat" or "dd if=/dev/zero of=/dev/zero" or "gzip < /dev/zero > /dev/zero", if I press ctrl+4, the program coredumps. Doing it in ksh or sh has no effect though. This is in OpenBSD 6.4 AMD64 from Putty on Windows. The console interaction looks like this: $ cat ^\Quit (core dumped)

Re: spamd and google smtp ips

2018-10-31 Thread Mario Theodoridis
On 30.10.2018 20:46, Chris Narkiewicz wrote: W dniu 30/10/2018 o 19:31, Peter N. M. Hansteen pisze: yes, a well-known problem, and it's what nospamd (hinted at in the spamd man pages) is for. To some extent it helps to whitelist IP addresses and networks that domains list in their SPF info.

Re: syntax error and doas.conf

2018-10-31 Thread Markus Rosjat
Hi Bruno, Am 31.10.2018 um 12:23 schrieb Bruno Flueckiger: On 31.10.18 10:42, Markus Rosjat wrote: Losing ten minutes time because of a mistake you've made all by yourself made you write this useles mail. Imagine how many times you could have read the man page of doas(8) and find out that there

Re: ikev2 and road warriors setup

2018-10-31 Thread Kim Zeitler
On 10/28/18 3:04 PM, Radek wrote: Hello, I really need your help. I am still trying to configure Ikev2 VPN Gateway (A.B.C.77/23) for road warriors clients (Windows). The problem is that it works ONLY if clients are in the same subnet as VPN Gateway (A.B.C.0/23). Clients from out of the gateway'

Re: spamd and google smtp ips

2018-10-31 Thread Thuban
* Stuart Henderson le [30-10-2018 23:39:23 +]: > On 2018-10-30, Chris Narkiewicz wrote: > > Hi, > > > > I'm configuring spamd and I noticed that when I send an e-mail from > > GMail, each time the e-mail is submitted by a different IP address. > > > > Here is spamdb output after sending a te

Re: syntax error and doas.conf

2018-10-31 Thread Bruno Flueckiger
On 31.10.18 10:42, Markus Rosjat wrote: > Hi all, > > just something I notice while trying out stuff with doas and my python > scripts. If you do a mistake and have a syntax error in the doas.conf > file you can easily look you self out from root privilages  :( > > consider a a case where your

Re: spamd and google smtp ips

2018-10-31 Thread Craig Skinner
On Tue, 30 Oct 2018 18:54:43 + Chris Narkiewicz wrote: > Are there any solutions get around this problem? Ideally I'd like > to just whitelist reputable mail providers ... Yes Chris, see: http://web.Britvault.Co.UK/products/ungrey-robins/ Cheers, -- Craig Skinner | http://linkd.in/yGqkv7

Re: syntax error and doas.conf

2018-10-31 Thread Markus Rosjat
Hi Am 31.10.2018 um 10:52 schrieb Consus: Well, that's why we have sudoedit. With doas your are forced to $ doas cp -p /etc/doas.conf /etc/doas.conf.new $ doas vi /etc/doas.conf.new $ doas -C /etc/doas.conf.new $ doas mv /etc/doas.conf.new /etc/doas.conf yeah a

Re: syntax error and doas.conf

2018-10-31 Thread Consus
On 10:42 Wed 31 Oct, Markus Rosjat wrote: > Hi all, > > just something I notice while trying out stuff with doas and my python > scripts. If you do a mistake and have a syntax error in the doas.conf file > you can easily look you self out from root privilages  :( > > consider a a case where your

syntax error and doas.conf

2018-10-31 Thread Markus Rosjat
Hi all, just something I notice while trying out stuff with doas and my python scripts. If you do a mistake and have a syntax error in the doas.conf file you can easily look you self out from root privilages  :( consider a a case where your root has no pw, you are the guy in the wheel group

Re: Bluetooth Support

2018-10-31 Thread Marco Menne
Thanks for your help, but this does not work. The Bluetooth keyboard is not recognized from the system. As I wrote before, I closed this issue and use an USB-keyboard. Bluetooth I never liked. :-) On Tue, Oct 30, 2018 at 07:36:40PM -0400, mar...@martinbrandenburg.com wrote: > > From s...@spacehopp

Re: migrate python script from sudo to doas

2018-10-31 Thread Markus Rosjat
Hi Vincent Am 30.10.2018 um 16:03 schrieb Vincent Legoll: Maybe you should try like the following: cmd = ['doas', 'useradd', '-u', user_id, '-g', '=uid', '-s', '/sbin/nologin', '-d', mb_parent_dir, user_name] exit = subprocess.check_call(cmd) this doesn't solve the problem, i