Re: Xrandr.7.0 not found at packages install
> Is it a common problem of "syncronization" for packages? If so, I can > wait for another snapshot. If someone doesn't update the X sets after a shlib crank, I update them as soon as I notice the problem. A new amd64 snap is 1 hour away, i386 a bit longer, etc etc
Re: OpenBSD on AMD Embedded G-Series T40E APU?
> Hey folks, > > The website does not seem to have a lot of info on what CPUs are > supported. I'm looking at this box for a home firewall with OpenBSD > > http://www.corpshadow.biz/bizstore/apu1d-red-combo-kit-p-345.html?cPath=51 All of them work.
OpenBSD on AMD Embedded G-Series T40E APU?
Hey folks, The website does not seem to have a lot of info on what CPUs are supported. I'm looking at this box for a home firewall with OpenBSD http://www.corpshadow.biz/bizstore/apu1d-red-combo-kit-p-345.html?cPath=51 thanks, -Alan -- "You should sit in nature for 20 minutes a day. Unless you are busy, then you should sit for an hour" - Zen Proverb
Re: openbsd on an ibm power 5
On Sun, Mar 06, 2016 at 09:43:20PM +0100, Maciej Jan Broniarz wrote: > Hi, > > I have an IBM INTELLISTATION 285 POWER 5+ and i was thinkig about running > OpenBSD on it. Has anyone tried it before and would so kind as to share his > experience? POWER systems are not supported by OpenBSD. -- Juan Francisco Cantero Hurtado http://juanfra.info
Re: openbsd on an ibm power 5
Maciej Jan Broniarz wrote: > I have an IBM INTELLISTATION 285 POWER 5+ and i was thinkig about > running OpenBSD on it. Has anyone tried it before and would so kind as > to share his experience? I think we only support Apple PowerPC machines (the macppc port). I've often wondered how easily this could be ported to more recent POWER machines, but I seriously doubt it'd run out of the box.
Re: BGPD not adding routes
On Sat, Mar 05, 2016 at 10:10:37PM -0500, Matt Schwartz wrote: > Hello @misc, > > I am running OpenBSD 5.8 release and I am finding that BGPD is not adding > routes. When I type bgpctl show rib, I don't see any routes added. Did I > goof up this configuration? Below are my bgpd.conf files. I do not even see > any routes added when I run route -T1 show. I have no problems with my OSPF > and LDPD setup. > > /etc/bgpd.conf > router-id 10.254.254.1 > AS 65001 > rdomain 1 { > descr CUSTOMER1 > rd 65001:1 > import-target rt 65001:1 > export-target rt 65001:1 > network inet connected > network 0.0.0.0/0 > } > group ibgp { > announce IPv4 unicast > announce IPv4 vpn > remote-as 65001 > depend on mpe0 > local-address 10.254.254.1 > neighbor 10.254.254.2 { > descr PE2 > } > } You should move the "depend on mpe0" into the rdomain specification. Make sure with bgpctl show nei that the session is up and running. Also check with bgpctl show fib and bgpctl show fib table 1 if routes are picked up. > > /etc/bgpd.conf > router-id 10.254.254.2 > AS 65001 > rdomain 1 { > descr CUSTOMER1 > rd 65001:1 > import-target rt 65001:1 > export-target rt 65001:1 > network inet connected > } > group ibgp { > announce IPv4 unicast > announce IPv4 vpn > remote-as 65001 > depend on mpe0 > local-address 10.254.254.2 > neighbor 10.254.254.1 { > descr PE1 > } > } > > Thanks much, > Matt > -- :wq Claudio
openbsd on an ibm power 5
Hi, I have an IBM INTELLISTATION 285 POWER 5+ and i was thinkig about running OpenBSD on it. Has anyone tried it before and would so kind as to share his experience? All best, mjb
Xrandr.7.0 not found at packages install
Hello, I am using a snapshot #1902 for amd64 downloaded from ftp2.eu.openbsd.org, dated March 6, 2016. The install works fine, i selected all sets for install, but whenever i try to install some packages after that i get the following message: Can't install because of libraries | library Xrandr.7.0 not found | not found anywhere Is it a common problem of "syncronization" for packages? If so, I can wait for another snapshot. Dmesg with the first 2 lines removed (they are from an old snapshot): real mem = 8029429760 (7657MB) avail mem = 7781957632 (7421MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeebc0 (57 entries) bios0: vendor LENOVO version "9VKT33AUS" date 09/11/2013 bios0: LENOVO 1990RZ2 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC TCPA MCFG SLIC MCFG HPET SSDT acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2K(S3) PS2M(S3) P0PC(S4) PE20(S4) PE21(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) II X2 B26 Processor, 3194.57 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,M \ MX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,L \ AHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NO \ DEID,ITSC cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: AMD erratum 721 detected and fixed cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 199MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Athlon(tm) II X2 B26 Processor, 3192.02 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,M \ MX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,L \ AHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NO \ DEID,ITSC cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu1: AMD erratum 721 detected and fixed cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 3 pa 0xfec0, version 21, 24 pins acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpimcfg1 at acpi0 addr 0xe000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiprt2 at acpi0: bus -1 (PCE2) acpiprt3 at acpi0: bus -1 (PCE3) acpiprt4 at acpi0: bus -1 (PCE4) acpiprt5 at acpi0: bus -1 (PCE5) acpiprt6 at acpi0: bus -1 (PCE6) acpiprt7 at acpi0: bus -1 (PCE7) acpiprt8 at acpi0: bus -1 (PCE9) acpiprt9 at acpi0: bus -1 (PCEA) acpiprt10 at acpi0: bus 2 (P0PC) acpiprt11 at acpi0: bus 3 (PE20) acpiprt12 at acpi0: bus -1 (PE21) acpiprt13 at acpi0: bus -1 (PE22) acpiprt14 at acpi0: bus 4 (PE23) acpicpu0 at acpi0: C1(@1 halt!), PSS acpicpu1 at acpi0: C1(@1 halt!), PSS acpibtn0 at acpi0: PWRB cpu0: 3194 MHz: speeds: 3200 2500 1900 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "AMD RS880 Host" rev 0x00 ppb0 at pci0 dev 1 function 0 unknown vendor 0x17aa product 0x9602 rev 0x00 pci1 at ppb0 bus 1 radeondrm0 at pci1 dev 5 function 0 "ATI Radeon HD 4250" rev 0x00 drm0 at radeondrm0 radeondrm0: apic 3 int 18 ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 3 int 19, AHCI 1.2 ahci0: port 0: 3.0Gb/s ahci0: port 1: 1.5Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0:SCSI3 0/direct fixed naa.50014ee1018094dc sd0: 305245MB, 512 bytes/sector, 625142448 sectors cd0 at scsibus1 targ 1 lun 0: ATAPI 5/cdrom removable ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1 ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1 piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling iic0 at piixpm0 spdmem0 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600 spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600 azalia0 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16 azalia0: codecs: Realtek
Re: iMac computer. Which architecture. macppc?
On Sun, Mar 06, 2016 at 04:36:02PM +0100, Otto Moerbeek wrote: > On Sun, Mar 06, 2016 at 07:34:18AM -0600, Chris Bennett wrote: > > > A friend found one outside at an apartment complex. > > The display is messed up but it boots cleanly to whatever OS it has. > > I didn't care, could see enough on screen to be sure it works. > > It's a one piece system. > > I assume I just need to get a display port adaptor. > > I'm going to bring it here in about a week or two. > > > > Which 5.9 -current should I download? > > > > Thanks, > > Chris Bennett > > Just look up the model number on the case and google it. It is not > hard, and better than us guessing. > > -Otto > I will. I was extremely rushed to get to Mexico to bring my Dad his heart medicines. Just hoping that there was an obvious answer, I didn't have time to do a tenth of the things I had to do. Thanks for the help. Will see when I get back. I would like to add macppc for testing. Chris Bennett
Re: Supermicro AOC-SG-I2 (two ports Intel 82575EB) hwfeatures
Hi, Here is the output from Linux[0] and FreeBSD[1]. It seems that hwfeatures (CSUM_TCPv4,CSUM_UDPv4,VLAN_HWTAGGING and even more) are working. My doubt for hardware problem is no more. Do you have any thoughts? Shall I send a report to bugs@? [0] Linux ubuntu 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux # ethtool enp2s0f0 Settings for enp2s0f0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: on (auto) Supports Wake-on: pumbg Wake-on: g Current message level: 0x0007 (7) drv probe link Link detected: yes # ethtool -k enp2s0f0 Features for enp2s0f0: rx-checksumming: on tx-checksumming: on tx-checksum-ipv4: on tx-checksum-ip-generic: off [fixed] tx-checksum-ipv6: on tx-checksum-fcoe-crc: off [fixed] tx-checksum-sctp: off [fixed] scatter-gather: on tx-scatter-gather: on tx-scatter-gather-fraglist: off [fixed] tcp-segmentation-offload: on tx-tcp-segmentation: on tx-tcp-ecn-segmentation: off [fixed] tx-tcp6-segmentation: on udp-fragmentation-offload: off [fixed] generic-segmentation-offload: on generic-receive-offload: on large-receive-offload: off [fixed] rx-vlan-offload: on tx-vlan-offload: on ntuple-filters: off [fixed] receive-hashing: on highdma: on [fixed] rx-vlan-filter: on [fixed] vlan-challenged: off [fixed] tx-lockless: off [fixed] netns-local: off [fixed] tx-gso-robust: off [fixed] tx-fcoe-segmentation: off [fixed] tx-gre-segmentation: off [fixed] tx-ipip-segmentation: off [fixed] tx-sit-segmentation: off [fixed] tx-udp_tnl-segmentation: off [fixed] fcoe-mtu: off [fixed] tx-nocache-copy: off loopback: off [fixed] rx-fcs: off [fixed] rx-all: off tx-vlan-stag-hw-insert: off [fixed] rx-vlan-stag-hw-parse: off [fixed] rx-vlan-stag-filter: off [fixed] l2-fwd-offload: off [fixed] busy-poll: off [fixed] NIC statistics: rx_packets: 2794435 tx_packets: 2794311 rx_bytes: 285057480 tx_bytes: 285025784 rx_broadcast: 289 tx_broadcast: 17 rx_multicast: 300 tx_multicast: 196 multicast: 300 collisions: 0 rx_crc_errors: 196 rx_no_buffer_count: 0 rx_missed_errors: 0 tx_aborted_errors: 0 tx_carrier_errors: 0 tx_window_errors: 0 tx_abort_late_coll: 0 tx_deferred_ok: 0 tx_single_coll_ok: 0 tx_multi_coll_ok: 0 tx_timeout_count: 0 rx_long_length_errors: 0 rx_short_length_errors: 0 rx_align_errors: 0 tx_tcp_seg_good: 0 tx_tcp_seg_failed: 0 rx_flow_control_xon: 0 rx_flow_control_xoff: 0 tx_flow_control_xon: 0 tx_flow_control_xoff: 0 rx_long_byte_count: 285057480 tx_dma_out_of_sync: 0 tx_smbus: 0 rx_smbus: 0 dropped_smbus: 0 os2bmc_rx_by_bmc: 0 os2bmc_tx_by_bmc: 0 os2bmc_tx_by_host: 0 os2bmc_rx_by_host: 0 tx_hwtstamp_timeouts: 0 rx_hwtstamp_cleared: 0 rx_errors: 357 tx_errors: 0 tx_dropped: 0 rx_length_errors: 0 rx_over_errors: 0 rx_frame_errors: 0 rx_fifo_errors: 0 tx_fifo_errors: 0 tx_heartbeat_errors: 0 tx_queue_0_packets: 69 tx_queue_0_bytes: 5189 tx_queue_0_restart: 0 tx_queue_1_packets: 2794091 tx_queue_1_bytes: 273827770 tx_queue_1_restart: 0 tx_queue_2_packets: 118 tx_queue_2_bytes: 12713 tx_queue_2_restart: 0 tx_queue_3_packets: 33 tx_queue_3_bytes: 1900 tx_queue_3_restart: 0 rx_queue_0_packets: 412 rx_queue_0_bytes: 47167 rx_queue_0_drops: 0 rx_queue_0_csum_err: 0 rx_queue_0_alloc_failed: 0 rx_queue_1_packets: 191 rx_queue_1_bytes: 26850 rx_queue_1_drops: 0 rx_queue_1_csum_err: 0 rx_queue_1_alloc_failed: 0 rx_queue_2_packets: 2793730 rx_queue_2_bytes: 273785540 rx_queue_2_drops: 0 rx_queue_2_csum_err: 0 rx_queue_2_alloc_failed: 0 rx_queue_3_packets: 102 rx_queue_3_bytes: 20387 rx_queue_3_drops: 0 rx_queue_3_csum_err: 0 rx_queue_3_alloc_failed: 0 [1] FreeBSD-current # ifconfig igb0: flags=8843metric 0 mtu 1500 options=403bb ether
Re: root partition is 105%, what will happen if I just leave it?
I eventually found the culprit after a 'du -h /dev' ..found a file '/dev/sd2' there with 937M! No idea how or what I had done to create it, but my guess is it was whilst learning how to properly mount devices. Anyway, I deleted it. All fine and back to normal. System working fine. Original Message Subject: Re: root partition is 105%, what will happen if I just leave it? Local Time: March 6, 2016 11:47 AM UTC Time: March 6, 2016 11:47 AM From: es...@nerim.net To: s...@protonmail.com CC: misc@openbsd.org On Sat, Mar 05, 2016 at 11:49:37AM -0500, Nick wrote: > Hello, > > I used the default partition layout when I set up this system (5.8 - CD > release) a few weeks ago.. > > Just realised after a 'du -h' that the root partition is at 105%.. Now, I > know that OpenBSD has a safeguard in place of 5% of partition capacity for > scenarios like these and I of course have hit thatmax extra 5%.. question is, > what happens if I were to not try to expand the partition - what problems > might I start facing? i.e. Could I afford to be lazy until 5.9 is sent out. Did you get some kind of crash ? the simplest culprit is lost+found.
Re: iMac computer. Which architecture. macppc?
On Sun, Mar 06, 2016 at 07:34:18AM -0600, Chris Bennett wrote: > A friend found one outside at an apartment complex. > The display is messed up but it boots cleanly to whatever OS it has. > I didn't care, could see enough on screen to be sure it works. > It's a one piece system. > I assume I just need to get a display port adaptor. > I'm going to bring it here in about a week or two. > > Which 5.9 -current should I download? > > Thanks, > Chris Bennett Just look up the model number on the case and google it. It is not hard, and better than us guessing. -Otto
Re: iMac computer. Which architecture. macppc?
On Sun, Mar 6, 2016 at 7:36 AM, Jean-Daniel Dupaswrote: > If it has a display port, I think it must be amd64. I’m not sure PPC mac had > something else than DVI. PPC iMacs were dead by the time DisplayPort was conceptualized. Brandon Vincent
Re: updating src with cvs
On 03/06/16 00:18, Philip Guenther wrote: On Sun, Feb 28, 2016 at 1:39 PM, Edgar Pettijohnwrote: I've noticed a lot of my source files seem to get globbed up. Below is an example: ... What could cause this? Source files expect your viewer/editor to have tabstops on 8 character boundaries. Files that have spaces before tabs can confuse some viewers, causing them to misalign output. Philip Guenther That was it. I forgot I had changed tabstop in .vimrc
Re: root partition is 105%, what will happen if I just leave it?
On March 5, 2016 8:24:23 PM GMT+01:00, Nick Hollandwrote: >On 03/05/16 11:49, Nick wrote: >> Hello, >> >> I used the default partition layout when I set up this system (5.8 - >> CD release) a few weeks ago.. >> >> Just realised after a 'du -h' that the root partition is at 105%.. >> Now, I know that OpenBSD has a safeguard in place of 5% of partition >> capacity for scenarios like these and I of course have hit thatmax >> extra 5%.. question is, what happens if I were to not try to expand >> the partition - what problems might I start facing? i.e. Could I >> afford to be lazy until 5.9 is sent out. > >1) note that you are at 105%, not 104%...so most likely, you have >already run out of space and lost some data somewhere. Well, it's not 5% extra but 5% less, and 1/0.95 = 1.0526... So, depending on how the calculation is done, he could be crazy lucky so far. ;-) That said, waiting for disaster when you could have fixed it beforehands, you'll get what you deserve. Also, unless your disk is really small, you really shouldn't have anything filling up your root partition... /Alexander > >2) if you have anything resembling a healthy partitioning scheme, you >shouldn't be at this point. So either your partitioning is really bad >or you have some other error taking place (i.e., lost data "under" a >mount, storing data in /etc, /dev, /root or some other root partition >directory). > >3) The only way this gets easier with time is getting hit by a bus so >you don't have to deal with it. > >Thus... I'd suggest fixing it now. Depending on the error, it might be >an easy fix. > >"du" is your friend. > >Nick.
Re: iMac computer. Which architecture. macppc?
If it has a display port, I think it must be amd64. I’m not sure PPC mac had something else than DVI. > Le 6 mars 2016 à 14:59, Bryan Everlya écrit : > > Depends on the age. If it is basically "all screen" and indicates G5 > on the back then macppc. If not a G5, then amd64. If it is a crt or > the one that looks like a desk lamp, macppc. > > Thanks, > Bryan > >> On Mar 6, 2016, at 8:52 AM, Chris Bennett wrote: >> >> A friend found one outside at an apartment complex. >> The display is messed up but it boots cleanly to whatever OS it has. >> I didn't care, could see enough on screen to be sure it works. >> It's a one piece system. >> I assume I just need to get a display port adaptor. >> I'm going to bring it here in about a week or two. >> >> Which 5.9 -current should I download? >> >> Thanks, >> Chris Bennett
Re: iMac computer. Which architecture. macppc?
Depends on the age. If it is basically "all screen" and indicates G5 on the back then macppc. If not a G5, then amd64. If it is a crt or the one that looks like a desk lamp, macppc. Thanks, Bryan > On Mar 6, 2016, at 8:52 AM, Chris Bennett >wrote: > > A friend found one outside at an apartment complex. > The display is messed up but it boots cleanly to whatever OS it has. > I didn't care, could see enough on screen to be sure it works. > It's a one piece system. > I assume I just need to get a display port adaptor. > I'm going to bring it here in about a week or two. > > Which 5.9 -current should I download? > > Thanks, > Chris Bennett
iMac computer. Which architecture. macppc?
A friend found one outside at an apartment complex. The display is messed up but it boots cleanly to whatever OS it has. I didn't care, could see enough on screen to be sure it works. It's a one piece system. I assume I just need to get a display port adaptor. I'm going to bring it here in about a week or two. Which 5.9 -current should I download? Thanks, Chris Bennett
Re: root partition is 105%, what will happen if I just leave it?
On Sat, Mar 05, 2016 at 11:49:37AM -0500, Nick wrote: > Hello, > > I used the default partition layout when I set up this system (5.8 - CD > release) a few weeks ago.. > > Just realised after a 'du -h' that the root partition is at 105%.. Now, I > know that OpenBSD has a safeguard in place of 5% of partition capacity for > scenarios like these and I of course have hit thatmax extra 5%.. question is, > what happens if I were to not try to expand the partition - what problems > might I start facing? i.e. Could I afford to be lazy until 5.9 is sent out. Did you get some kind of crash ? the simplest culprit is lost+found.
Re: OT: Looking for email host with qmail like minus-addressing for custom domain
2016-03-06 11:21 GMT+01:00 Stuart Henderson: > On 2016/03/06 09:07, ludovic coues wrote: >> 2016-03-05 22:56 GMT+01:00 Stuart Henderson : >> > >> > For OpenSMTPD I haven't tried it but I suspect you may be able to do >> > this with a virtual map using a python script via table-python (in >> > ooensmtpd-extras in ports) but there isn't much documentation for >> > this. Though actually a quick search for "opensmtpd table-python" >> > throws up https://gist.github.com/unconfigured/e72a18f3dd12f7c4fc5c >> > which looks pretty much like what you need there. >> > >> >> OpenSMTPD in base 5.8 support sqlite table which might be enough. > > The mapping would need to be something like 'foo-...@example.com' -> 'foo' > or 'foo-...@example.com' -> 'example', I don't see how to do this with the > string handling functions available in sqlite. (And in 5.9+ the sqlite > table is in opensmtpd-extras as well). > I might be missing some corner-case but "instr" look like a good fit. sqlite > create table user (username text, uid int, gid int, home text); sqlite > insert into user values ("foo", 1000, 10, "/home/foo"); sqlite > insert into user values ("bar", 1001, 10, "/home/bar"); sqlite > select * from user where instr("foo-...@exemple.com", username) = 1; foo I assume it would work roughly the same for alias. In the end, it's a matter of personal preference, even more if support for sqlite is dropped from base. -- Cordialement, Coues Ludovic +336 148 743 42
Re: OT: Looking for email host with qmail like minus-addressing for custom domain
On 2016/03/06 09:07, ludovic coues wrote: > 2016-03-05 22:56 GMT+01:00 Stuart Henderson: > > > > For OpenSMTPD I haven't tried it but I suspect you may be able to do > > this with a virtual map using a python script via table-python (in > > ooensmtpd-extras in ports) but there isn't much documentation for > > this. Though actually a quick search for "opensmtpd table-python" > > throws up https://gist.github.com/unconfigured/e72a18f3dd12f7c4fc5c > > which looks pretty much like what you need there. > > > > OpenSMTPD in base 5.8 support sqlite table which might be enough. The mapping would need to be something like 'foo-...@example.com' -> 'foo' or 'foo-...@example.com' -> 'example', I don't see how to do this with the string handling functions available in sqlite. (And in 5.9+ the sqlite table is in opensmtpd-extras as well).
Re: OT: Looking for email host with qmail like minus-addressing for custom domain
2016-03-05 22:56 GMT+01:00 Stuart Henderson: > > For OpenSMTPD I haven't tried it but I suspect you may be able to do > this with a virtual map using a python script via table-python (in > ooensmtpd-extras in ports) but there isn't much documentation for > this. Though actually a quick search for "opensmtpd table-python" > throws up https://gist.github.com/unconfigured/e72a18f3dd12f7c4fc5c > which looks pretty much like what you need there. > OpenSMTPD in base 5.8 support sqlite table which might be enough. -- Cordialement, Coues Ludovic +336 148 743 42