Re: scim input method not show up

2021-08-12 Thread 费思凡
On August 13, 2021 2:08:13 AM UTC, Werner Boninsegna  wrote:
>Hello Stefano,
>
>when I was using scim I had to add a line such as "scim -d" in my 
>.xsession file to get the panel shpw up, it is similar to what I am doing 
>with fcitx.
>
>I cannot see where you are lauching scim from your .xession file, maybe 
>that part got removed? Or are you launching scim from other scripts?
>
>Werner
>
>On 8/13/21 9:57 AM, 费思凡 wrote:
>
>On August 12, 2021 2:51:31 PM UTC, Werner Boninsegna  
>wrote: 
>
>Hello Stefano, I was never able to get SCIM working well, so I eventually 
>switched to FCTIX which has been working fine in 6.8 and 6.9, so maybe you 
>want to give it a try. 
>
> thank you for your suggestion but i think i first try to understand why 
>scim is not working and i need some help to find out if it is something 
>wrong with my configuration or if something is suddenly broken in the 
>package. anyway, thank you stefano 
>
> Here's my .xession setup: -- LANG=en_US.UTF-8 export 
>LANG # GTK_IM_MODULE=fcitx export GTK_IM_MODULE # QT_IM_MODULE=fcitx export 
>QT_IM_MODULE # XMODIFIERS=@im=fcitx export XMODIFIERS # fcitx -r -d 
>-- Werner https://www.dewrico.com On 8/12/21 9:00 PM, 
>费思凡 wrote: Hi, i hope i'm writing in the right list. After installing the 
>6.9 the scim input method package is not show up and i can't find a reason. 
>There is nothing different in the configuration and in the past always work 
>like a charm. the .xsession file is following the pkg-readmes instruction. 
>Any suggestions is very appreciated. stefano 
>==dmesg= OpenBSD 
>6.9 (GENERIC.MP) #3: Mon Jun 7 08:21:26 MDT 2021 
>r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8451125248 (8059MB) avail mem = 8179613696 (7800MB) random: 
>good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets 
>mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 
>entries) bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011 
>bios0: LENOVO 4291DG4 acpi0 at bios0: ACPI 4.0 acpi0: sleep states S0 S3 S4 
>S5 acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT SSDT HPET APIC MCFG ECDT 
>ASF! TCPA SSDT SSDT DMAR UEFI UEFI UEFI acpi0: wakeup devices LID_(S3) 
>SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) EHC2(S3) HDEF(S4) acpitimer0 
>at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at 
>acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot 
>processor) cpu0: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.99 MHz, 
>06-2a-07 cpu0: 
>FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> 
>cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: 
>Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock 
>running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE 
>cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) 
>i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07 cpu1: 
>FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> 
>cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 1, core 0, package 0 cpu2 at 
>mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM) i5-2540M 
>CPU @ 2.60GHz, 2591.59 MHz, 06-2a-07 cpu2: 
>FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> 
>cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 1, package 0 cpu3 at 
>mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i5-2540M 
>CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07 cpu3: 
>FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> 
>cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 
>at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpimcfg0 at acpi0 
>acpimcfg0: addr 0xf800, bus 0-63 acpiec0 at acpi0 acpiprt0 at acpi0: 
>bus 0 (PCI0) 

Re: scim input method not show up

2021-08-12 Thread 费思凡
On August 12, 2021 2:51:31 PM UTC, Werner Boninsegna  wrote:
>Hello Stefano,
>
>I was never able to get SCIM working well, so I eventually switched to
>FCTIX which has been working fine in 6.8 and 6.9, so maybe you want to
>give it a try.

thank you for your suggestion but i think i first try to understand why scim is 
not working and i need some help to find out if it is something wrong with my 
configuration or if something is suddenly broken in the package.

anyway, thank you

stefano

>
>Here's my .xession setup:
>
>--
>LANG=en_US.UTF-8
>export LANG
>#
>GTK_IM_MODULE=fcitx
>export GTK_IM_MODULE
>#
>QT_IM_MODULE=fcitx
>export QT_IM_MODULE
>#
>XMODIFIERS=@im=fcitx
>export XMODIFIERS
>#
>fcitx -r -d
>--
>
>Werner
>https://www.dewrico.com
>
>On 8/12/21 9:00 PM, 费思凡 wrote:
>
>  Hi, i hope i'm writing in the right list.
>  After installing the 6.9 the scim input method package is not show up and i 
> can't find a reason. 
>  There is nothing different in the configuration and in the past always work 
> like a charm.
>  the .xsession file is following the pkg-readmes instruction.
>  Any suggestions is very appreciated.
>  
>  stefano
>  
>  ==dmesg=
>  OpenBSD 6.9 (GENERIC.MP) #3: Mon Jun  7 08:21:26 MDT 2021
>
> r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP 
>  real mem = 8451125248 (8059MB)
>  avail mem = 8179613696 (7800MB)
>  random: good seed from bootblocks
>  mpath0 at root
>  scsibus0 at mpath0: 256 targets
>  mainbus0 at root
>  bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
>  bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011
>  bios0: LENOVO 4291DG4
>  acpi0 at bios0: ACPI 4.0
>  acpi0: sleep states S0 S3 S4 S5
>  acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! 
> TCPA SSDT SSDT DMAR UEFI UEFI UEFI
>  acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) 
> EHC2(S3) HDEF(S4)
>  acpitimer0 at acpi0: 3579545 Hz, 24 bits
>  acpihpet0 at acpi0: 14318179 Hz
>  acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
>  cpu0 at mainbus0: apid 0 (boot processor)
>  cpu0: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.99 MHz, 06-2a-07
>  cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
>  cpu0: 256KB 64b/line 8-way L2 cache
>  cpu0: smt 0, core 0, package 0
>  mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
>  cpu0: apic clock running at 99MHz
>  cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
>  cpu1 at mainbus0: apid 1 (application processor)
>  cpu1: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07
>  cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
>  cpu1: 256KB 64b/line 8-way L2 cache
>  cpu1: smt 1, core 0, package 0
>  cpu2 at mainbus0: apid 2 (application processor)
>  cpu2: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.59 MHz, 06-2a-07
>  cpu2: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
>  cpu2: 256KB 64b/line 8-way L2 cache
>  cpu2: smt 0, core 1, package 0
>  cpu3 at mainbus0: apid 3 (application processor)
>  cpu3: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07
>  cpu3: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
>  cpu3: 256KB 64b/line 8-way L2 cache
>  cpu3: smt 1, core 1, package 0
>  ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
>  acpimcfg0 at acpi0
>  acpimcfg0: addr 0xf800, bus 0-63
>  acpiec0 at acpi0
>  acpiprt0 at acpi0: bus 0 (PCI0)
>  acpiprt1 at acpi0: bus -1 (PEG_)
>  acpiprt2 at acpi0: bus 2 (EXP1)
>  acpiprt3 at acpi0: bus 3 (EXP2)
>  acpiprt4 at acpi0: bus 5 (EXP4)
>  acpiprt5 at acpi0: bus 13 (EXP5)
>  acpiprt6 at acpi0: bus -1 (EXP7)
>  acpibtn0 at acpi0: LID_
>  acpibtn1 at acpi0: SLPB
>  acpipci0 at acpi0 PCI0: 0x 

Re: smtpd only Mail Server

2021-08-12 Thread latincom
> Am 10.08.21 13:29 schrieb latin...@vcn.bc.ca:

>> >> > If you want help with a mail config,
>> >> > you need to show your mail config.
>> >> >
>> >>
>> >> No problem:
>> >> I am used to use only the base system.
>> >>
>> >> #       $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles
>> >> Exp $
>> >>
>> >> # This is the smtpd server system-wide configuration file.
>> >> # See smtpd.conf(5) for more information.
>> >>
>> >> table aliases file:/etc/mail/aliases
>> >>
>> >> listen on socket
>> >>
>> >> # To accept external mail, replace with: listen on all
>> >> #
>> >> listen on all filter "dkimsign"
>> >>
>> >> action "local_mail" mbox alias 
>> >> action "outbound" relay
>> >>
>> >> # Uncomment the following to accept external mail for domain
>> >> "example.org"
>> >> #
>> >> # match from any for domain "example.org" action "local_mail"
>> >> match from any for domain "agroena.org" action "local_mail"
>> >> match from local for local action "local_mail"
>> >> match from local for any action "outbound"
>> >>
>> >> # dkim
>> >> filter "dkimsign" proc-exec "filter-dkimsign -d agroena.org -s s1 -k
>> >> /etc/mail/dkim/private.key" user _dkimsign group _dkimsign
>> >>
>> >>
>> > So assuming that you actually installed opensmtpd-filter-dkimsign and
>> > everything starts okay, you haven't put the public key in the DNS like
>> > you claimed in your original e-mail.
>> > $ dig +short txt s1._domainkey.agroena.org
>> > $
>> >
>>
>> I am not sure if it is a problem, but the selector is: mail.
>>
>> $ dig +short txt mail._domainkey.agroena.org
>> "k=rsa; t=s; h=sha256;
>> p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOGOPbZVPidt2KCGqb38+OOD/cIZZnkpMY67oUPAfjVzP7vjJnxeTUOYtuQPTYv3whE6dwRSDwdw96DELKTjbaJ8DMEDFxbeqZxFl4EivuxuIwRSJVZQ36ed+TnfrPxLQowcno3kIh9je3t2VQ7GfD4WJfPD2GzfVljcTmJP3gNQIDAQAB"
>>
>>
> First you should match the selectors name.
> Either by telling the filter to use the key in selector "mail"
> or by changing the selectors name in DNS to "s1"
> Then you can debug further (e.g. your public key in DNS should match
> /etc/mail/dkim/private.key)
>

Thanks to take the time to respond Michael Hekeler, i am going to test it.




Re: OpenSMTPD + rspamd to sign mail.

2021-08-12 Thread latincom
> On 8/12/21 5:09 AM, latin...@vcn.bc.ca wrote:
>> Hello
>>
>> After:
>> # pkg_add redis rspamd opensmtpd-filter-rspamd successfully
>>
>> i got:
>> # rcctl start rspamd
>> rspamd(failed)
>>
>> then I did:
>> # rspamd -d
>> 2021-08-12 09:23:41 #0(main) ; main; detect_priv: cannot run
>> rspamd workers as root user, please add -u and -g options to select a
>> proper unprivilleged user or specify --insecure flag
>>
>> How to interpret it please?
>>
>> I did # chown R spamd:_rspamd /etc/mail/dkim but it fails, then i did
>>   # chown -R root:_spamd /etc/mail/dkim and it worked; anyway i suppose
>> i
>> should do  rspamd:_rspamd to change -u and -g
>>
>> thanks for your attention.
>>
> What is the contents of your /etc/rc.d/rspamd file? It should include
> lines like:
>
>     daemon="/usr/local/bin/rspamd"
>     daemon_flags="-u _rspamd -g _rspamd"


#!/bin/ksh
#
# $OpenBSD: rspamd.rc,v 1.4 2019/10/29 22:50:14 sthen Exp $

daemon="/usr/local/bin/rspamd"
daemon_flags="-u _rspamd -g _rspamd"

. /etc/rc.d/rc.subr

pexp="rspamd: main process.*"

rc_pre() {
install -d /var/run/rspamd
}

rc_cmd $1


>
> Also, did you remember to enable the service with "rcctl enable rspamd"
>

Yes, i did it:

rcctl enable redis
rcctl enable rspamd

rcctl start redis
rcctl start rspamd

Thanks to respond.



Re: scim input method not show up

2021-08-12 Thread Werner Boninsegna
Hello Stefano,

I was never able to get SCIM working well, so I eventually switched to
FCTIX which has been working fine in 6.8 and 6.9, so maybe you want to
give it a try.

Here's my .xession setup:

--
LANG=en_US.UTF-8
export LANG
#
GTK_IM_MODULE=fcitx
export GTK_IM_MODULE
#
QT_IM_MODULE=fcitx
export QT_IM_MODULE
#
XMODIFIERS=@im=fcitx
export XMODIFIERS
#
fcitx -r -d
--

Werner
https://www.dewrico.com

On 8/12/21 9:00 PM, 费思凡 wrote:

  Hi, i hope i'm writing in the right list.
  After installing the 6.9 the scim input method package is not show up and i 
can't find a reason. 
  There is nothing different in the configuration and in the past always work 
like a charm.
  the .xsession file is following the pkg-readmes instruction.
  Any suggestions is very appreciated.
  
  stefano
  
  ==dmesg=
  OpenBSD 6.9 (GENERIC.MP) #3: Mon Jun  7 08:21:26 MDT 2021

r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP  
real mem = 8451125248 (8059MB)
  avail mem = 8179613696 (7800MB)
  random: good seed from bootblocks
  mpath0 at root
  scsibus0 at mpath0: 256 targets
  mainbus0 at root
  bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
  bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011
  bios0: LENOVO 4291DG4
  acpi0 at bios0: ACPI 4.0
  acpi0: sleep states S0 S3 S4 S5
  acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! 
TCPA SSDT SSDT DMAR UEFI UEFI UEFI
  acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) 
EHC2(S3) HDEF(S4)
  acpitimer0 at acpi0: 3579545 Hz, 24 bits
  acpihpet0 at acpi0: 14318179 Hz
  acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
  cpu0 at mainbus0: apid 0 (boot processor)
  cpu0: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.99 MHz, 06-2a-07
  cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
  cpu0: 256KB 64b/line 8-way L2 cache
  cpu0: smt 0, core 0, package 0
  mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
  cpu0: apic clock running at 99MHz
  cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
  cpu1 at mainbus0: apid 1 (application processor)
  cpu1: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07
  cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
  cpu1: 256KB 64b/line 8-way L2 cache
  cpu1: smt 1, core 0, package 0
  cpu2 at mainbus0: apid 2 (application processor)
  cpu2: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.59 MHz, 06-2a-07
  cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
  cpu2: 256KB 64b/line 8-way L2 cache
  cpu2: smt 0, core 1, package 0
  cpu3 at mainbus0: apid 3 (application processor)
  cpu3: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07
  cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
  cpu3: 256KB 64b/line 8-way L2 cache
  cpu3: smt 1, core 1, package 0
  ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
  acpimcfg0 at acpi0
  acpimcfg0: addr 0xf800, bus 0-63
  acpiec0 at acpi0
  acpiprt0 at acpi0: bus 0 (PCI0)
  acpiprt1 at acpi0: bus -1 (PEG_)
  acpiprt2 at acpi0: bus 2 (EXP1)
  acpiprt3 at acpi0: bus 3 (EXP2)
  acpiprt4 at acpi0: bus 5 (EXP4)
  acpiprt5 at acpi0: bus 13 (EXP5)
  acpiprt6 at acpi0: bus -1 (EXP7)
  acpibtn0 at acpi0: LID_
  acpibtn1 at acpi0: SLPB
  acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001
  acpicmos0 at acpi0
  tpm0 at acpi0 TPM_ addr 0xfed4/0x5000, device 0x104a rev 0x4e
  acpibat0 at acpi0: BAT0 model "42T4829" serial42 type LION oem "SANYO"
  acpiac0 at acpi0: AC unit online
  acpithinkpad0 at acpi0: version 1.0
  "PNP0C14" at acpi0 not configured
  "PNP0C14" at acpi0 not configured
  acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
  acpicpu1 at acpi0: 

Re: smtpd only Mail Server

2021-08-12 Thread Michael Hekeler
Am 10.08.21 13:29 schrieb latin...@vcn.bc.ca:
> > On Tue, 2021-08-10 at 04:32 -0700, latin...@vcn.bc.ca wrote:
> >> > On Aug 10 01:52:57, latin...@vcn.bc.ca wrote:
> >> > > > - smtpd had its first commit in 2008 and back then was far from
> >> > > >   production ready: So are you using base smtpd, or sendmail, or
> >> > > >   something else?
> >> > >
> >> > > Yes, 2000 it was sendmail, nginx, apache, smtpd if i remember
> >> correctly;
> >> > > but my question is:
> >> > >
> >> > > "Could someone please point me to specific openbsd place to look for
> >> > > it?"
> >> >
> >> > To look for what? smtpd documentation? man smtpd, man spmtpd.conf,
> >> > there's a dkim example right there.
> >>
> >> Jay in this case it looks out of context, because it is a question after
> >> the explanation! Look for understandable (my level) information related
> >> to
> >> dkim, dmarc, and spf! My field is agriculture!
> >>
> >> >
> >> > > > - I assume it's related to outbound mail, but even that is not
> >> > > >   completely clear to me.
> >> > >
> >> > > No, it is the complete behaviour of dkim, dmarc, and spf. i got 0/10
> >> at
> >> > > this page: https://www.mail-tester.com/ and yes, i can receive
> >> mail, but
> >> > > mine is considered spam!
> >> >
> >> > The fact that and arbitrary third site "tester" gives you this score
> >> > or another can mean a lot of things. Nobody has seen your DNS or a
> >> > single line of your conig yet, so it's hard to help you really.
> >> >
> >>
> >> Well, i never said that it is the last word! I am asking for clear
> >> information for dkim, dmarc, spf, and now dkimproxy and anything related
> >> to send mail correctly; where correctly means "NO qualify my mail as
> >> spam"
> >>
> >> > > > - Did you just put a dkim txt record in DNS without any additional
> >> > > >   configuration on your mailserver?
> >> > >
> >> > > ok: i have 2 servers: 1. managed by nsd, which obtained 9.7/10 at
> >> the
> >> > > same
> >> > > web page, not a problem; 2. vultr managed by their dns app, here i
> >> am
> >> > > not
> >> > > able to make it work correctly. What should be the additional
> >> > > configuration on the mail server please?
> >> >
> >> > What mail server?
> >> > What "additional" configuration?
> >>
> >> This server:
> >> > > > - Did you just put a dkim txt record in DNS without any additional
> >> > > >   configuration on your mailserver?
> >>
> >> >
> >> > If you want help with a mail config,
> >> > you need to show your mail config.
> >> >
> >>
> >> No problem:
> >> I am used to use only the base system.
> >>
> >> #       $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles
> >> Exp $
> >>
> >> # This is the smtpd server system-wide configuration file.
> >> # See smtpd.conf(5) for more information.
> >>
> >> table aliases file:/etc/mail/aliases
> >>
> >> listen on socket
> >>
> >> # To accept external mail, replace with: listen on all
> >> #
> >> listen on all filter "dkimsign"
> >>
> >> action "local_mail" mbox alias 
> >> action "outbound" relay
> >>
> >> # Uncomment the following to accept external mail for domain
> >> "example.org"
> >> #
> >> # match from any for domain "example.org" action "local_mail"
> >> match from any for domain "agroena.org" action "local_mail"
> >> match from local for local action "local_mail"
> >> match from local for any action "outbound"
> >>
> >> # dkim
> >> filter "dkimsign" proc-exec "filter-dkimsign -d agroena.org -s s1 -k
> >> /etc/mail/dkim/private.key" user _dkimsign group _dkimsign
> >>
> >>
> > So assuming that you actually installed opensmtpd-filter-dkimsign and
> > everything starts okay, you haven't put the public key in the DNS like
> > you claimed in your original e-mail.
> > $ dig +short txt s1._domainkey.agroena.org
> > $
> >
> 
> I am not sure if it is a problem, but the selector is: mail.
> 
> $ dig +short txt mail._domainkey.agroena.org
> "k=rsa; t=s; h=sha256;
> p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOGOPbZVPidt2KCGqb38+OOD/cIZZnkpMY67oUPAfjVzP7vjJnxeTUOYtuQPTYv3whE6dwRSDwdw96DELKTjbaJ8DMEDFxbeqZxFl4EivuxuIwRSJVZQ36ed+TnfrPxLQowcno3kIh9je3t2VQ7GfD4WJfPD2GzfVljcTmJP3gNQIDAQAB"
> 
> 
First you should match the selectors name.
Either by telling the filter to use the key in selector "mail"
or by changing the selectors name in DNS to "s1"
Then you can debug further (e.g. your public key in DNS should match
/etc/mail/dkim/private.key)



scim input method not show up

2021-08-12 Thread 费思凡
Hi, i hope i'm writing in the right list.
After installing the 6.9 the scim input method package is not show up and i 
can't find a reason. 
There is nothing different in the configuration and in the past always work 
like a charm.
the .xsession file is following the pkg-readmes instruction.
Any suggestions is very appreciated.

stefano

==dmesg=
OpenBSD 6.9 (GENERIC.MP) #3: Mon Jun  7 08:21:26 MDT 2021

r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8451125248 (8059MB)
avail mem = 8179613696 (7800MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011
bios0: LENOVO 4291DG4
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA 
SSDT SSDT DMAR UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) 
EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.99 MHz, 06-2a-07
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.59 MHz, 06-2a-07
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2591.58 MHz, 06-2a-07
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 5 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpiprt6 at acpi0: bus -1 (EXP7)
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001
acpicmos0 at acpi0
tpm0 at acpi0 TPM_ addr 0xfed4/0x5000, device 0x104a rev 0x4e
acpibat0 at acpi0: BAT0 model "42T4829" serial42 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0: version 1.0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 99 degC
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: LCD0
acpivideo1 at acpi0: VID_
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2591 MHz: speeds: 2601, 2600, 2400, 2200, 2000, 1800, 
1600, 1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" 

Re: OpenSMTPD + rspamd to sign mail.

2021-08-12 Thread Chris Eidem

On 8/12/21 5:09 AM, latin...@vcn.bc.ca wrote:

Hello

After:
# pkg_add redis rspamd opensmtpd-filter-rspamd successfully

i got:
# rcctl start rspamd
rspamd(failed)

then I did:
# rspamd -d
2021-08-12 09:23:41 #0(main) ; main; detect_priv: cannot run
rspamd workers as root user, please add -u and -g options to select a
proper unprivilleged user or specify --insecure flag

How to interpret it please?

I did # chown R spamd:_rspamd /etc/mail/dkim but it fails, then i did
  # chown -R root:_spamd /etc/mail/dkim and it worked; anyway i suppose i
should do  rspamd:_rspamd to change -u and -g

thanks for your attention.

What is the contents of your /etc/rc.d/rspamd file? It should include 
lines like:


   daemon="/usr/local/bin/rspamd"
   daemon_flags="-u _rspamd -g _rspamd"

Also, did you remember to enable the service with "rcctl enable rspamd"



mpii0: mpii_scsi_cmd_tmo on Dell T140 with Dell HBA330 non-raid controller

2021-08-12 Thread Jérémy Dubois
Hi,

I have a Dell T140 server that displays the error "mpii0:
mpii_scsi_cmd_tmo" when there is writing to a disk.

# dmesg | grep mpii
mpii0 at pci1 dev 0 function 0 "Symbios Logic SAS3008" rev 0x02: msi
mpii0: Dell HBA330 Adp, firmware 16.0.11.0, MPI 2.5
scsibus1 at mpii0: 544 targets

The server has 2 disks. The error originally occurred with a soft RAID
configuration, and I reinstalled without RAID to test. The error always
occurs with a simple "dd" on the second disk partition, but not on the
first disk partition. The error occurs after OpenBSD has just been
installed, without any configuration.

This is not a hardware failure since the problem does not occur under
Debian, and I have several of the same Dell T140s that all reproduce the
error under OpenBSD.

The BIOS and the firmware of the controller are up to date.

Here is the dmesg output :

OpenBSD 6.9 (GENERIC.MP) #4: Tue Aug 10 08:12:23 MDT 2021

r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8411709440 (8022MB)
avail mem = 8141398016 (7764MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.1 @ 0x78804000 (50 entries)
bios0: vendor Dell Inc. version "2.5.1" date 04/16/2021
bios0: Dell Inc. PowerEdge T140
acpi0 at bios0: ACPI 6.1
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT TPM2 WD__ SLIC HPET APIC MCFG SSDT 
LPIT WSMT SSDT DBGP DBG2 DMAR HEST BERT ERST EINJ
acpi0: wakeup devices PEG0(S0) PEG1(S0) PEG2(S0) XHC_(S0) XDCI(S0) RP01(S0) 
RP02(S0) RP03(S0) RP04(S0) RP05(S0) RP06(S0) RP07(S0) RP08(S0) RP09(S0) 
RP10(S0) RP11(S0) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) Gold G5420 CPU @ 3.80GHz, 3793.34 MHz, 06-9e-0a
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,INVPCID,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Pentium(R) Gold G5420 CPU @ 3.80GHz, 3791.17 MHz, 06-9e-0a
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,INVPCID,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Pentium(R) Gold G5420 CPU @ 3.80GHz, 3791.17 MHz, 06-9e-0a
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,INVPCID,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Pentium(R) Gold G5420 CPU @ 3.80GHz, 3791.17 MHz, 06-9e-0a
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,INVPCID,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0x8000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEG0)
acpiprt2 at acpi0: bus 2 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 3 (RP01)
acpiprt5 at acpi0: bus 5 (RP02)
acpiprt6 at acpi0: bus -1 (RP03)
acpiprt7 at 

man page correctness query re. man 4 vga

2021-08-12 Thread ropers
Privyet,

On man 4 vga, it says:

"This is the standard VGA text mode with 80 columns and 25 rows. (...)
 Characters are 8 x 16 pixels large (...)."

To my understanding, that is borderline technically correct, but misleading:

A naïve calculation of the screen's pixel resolution from these data
would yield 640x400px.  However, AFAIK, the VGA adapter still treats
text mode like the MDA adapter did[0], which means that though each
character's matrix is an eight pixel-wide bitmap (sometimes only seven
pixels are actually used), the adapter itself always renders a ninth
pixel for each text mode character (and scanline).  Usually that pixel
is blank, but for characters C0h–DFh, it is a copy of what was in the
eighth pixel.  This special-casing of characters C0h through DFh
(where horizontal box-drawing characters and the like are usually
located) can be turned off in VGA adapters[1], but is hardwired into
MDA cards.  The long and short of it is that with a total of nine
pixel-columns being rendered for each character-column, the
pixel-resolution of the standard VGA text mode is 720x400, not
640x400, as some have naïvely calculated.

Why am I making noise about this, when the description on vga(4) is
TECHNICALLY correct?
Because I have noticed that ever since this edit[2], OpenBSD has been
cited at Wikipedia as evidence for the incorrect assertion that the
default VGA text mode was 640x400px.  Evidently the editor in question
has made exactly the naïve (mis)calculation noted above.  (By this
edit[3], the error had been propagated to the article's main text
modes table, leaving it further entrenched.)

I don't intend to get involved in correcting this at Wikipedia (which
would probably lead to a life force-sucking edit war), but it bothers
me that OpenBSD's man page appears to be misleading on this point.
Though the page actually cited is from OpenBSD 3.9, the same wording
is still present in 6.9 and -current, with minor differences in
formatting.



Would people here be able to confirm that I'm not myself mistaken in
what I'm saying?  And could anyone suggest how to word an edit so as
to concisely clarify the point and make the vga(4) man page less
misleading?  I'm not always good at being concise myself.



* I think the 80x25 & 80x25bf, as well as the 80x50 & 80x50bf modes
all are 720x400px.  If the 80x25 mode in particular is not 720x400px,
then it is not the standard VGA text mode (as is claimed).

* The 80x40 & 80x40bf modes confuse me.  It's unclear to me if they
render a ninth pixel-column and thus whether their screen width is 640
or 720.  Arithmetically, 8x10px characters with an 80x40 text mode
ought to yield 640x400px, but the only information I could find is
here[4], and it suggests a display resolution of 640x480, which is
neither here nor there.  It would make sense with two extra blank
scanlines per line of text, but then again, 480 instead of 400 could
be a typo.  I'm also confused by these modes because I'm much more
familiar with 80x43 text modes and I'm low-key wondering whether 40
instead of 43 is an error.  This page[5] makes no mention of an 80x40
text mode.  I realise that is an altogether different project, but
still.
Second thought, I did find this[6], which suggests an 8x12px font for
an 80x40 text mode, but then, this is again an altogether different
project and may be nothing to do with OpenBSD's 80x40 text modes.  I'm
just wondering how VGA-typical are those?

* If the only difference of the 80x24 & 80x24bf modes from their
25-line counterparts is the omission of the last row of text, then
maybe these are 720x384px?  I really don't know though.

* I think the "bf" in the *bf modes is for "big font" or "bigger
font", but I could not find confirmation of that.  Also, if I'm
reading this right, then it says under BUGS that these modes have not
been tested and won't work with a monochrome monitor.  (It's a little
unclear to me how that's meant.)


I have tried looking at source code, but I don't really know where to
look, and at least in /src/sys/dev/ic/vga.c, I've not been able to
identify anything that specifies the correct size of the actual
default 720x400 VGA text mode, or that would account for the 9th
pixel-column in each character.  I've not been able to use the source
to answer my own questions.

Any help or clarifications would be great appreciated.

Thanks and regards,
Ian

(Ian Ropers)


PS: Btw., can anyone elucidate the etymology of the "ic" in
/src/sys/dev/ic/?  Is it because these devices all have integrated
circuits, or does the "ic" stand for something else?


[0] http://www.seasip.info/VintagePC/mda.html#memmap

[1] "LGA - Line Graphics Enable
 This field is used in 9 bit wide character modes to provide continuity
 for the horizontal line characters in the range C0h-DFh. If this field
 is set to 0, then the 9th 

OpenSMTPD + rspamd to sign mail.

2021-08-12 Thread latincom
Hello

After:
# pkg_add redis rspamd opensmtpd-filter-rspamd successfully

i got:
# rcctl start rspamd
rspamd(failed)

then I did:
# rspamd -d
2021-08-12 09:23:41 #0(main) ; main; detect_priv: cannot run
rspamd workers as root user, please add -u and -g options to select a
proper unprivilleged user or specify --insecure flag

How to interpret it please?

I did # chown R spamd:_rspamd /etc/mail/dkim but it fails, then i did
 # chown -R root:_spamd /etc/mail/dkim and it worked; anyway i suppose i
should do  rspamd:_rspamd to change -u and -g

thanks for your attention.