-
PhilVuchetich
troubleshooting question - I am setting up dovecot in a jail. Upon starting the jail, dovecot generates error messages to /var/log/maillog (socket address in use for imap, auth,...), but if I kill the dovecot master process and use "service dovecot start" it works fine. Is there something special about jail startup that might be the issue?
-
rtprio
what error
-
rwp
I am guessing that PhilVuchetich has dovecot running both in a jail and in the host sharing the network.
-
delta0
Sometimes waiting before having the service turn on, is all that is needed to side-step this kind of issue. It could be starting too quickly.
-
ketas
dch: how's the golf? meanwhile i found totally unknown sedcode to trim off empty lines from begin end end of file but nothing for mid line pattern replacement with file... this looks like job for a templating engine and maybe base needs text processor like this either part of something or new tool, who knows
-
ketas
i managed to find/adapt
-
ketas
sed "s/%content%/`sed 's/[\&/]/\\\&/g;s/$/\\\n/' < content-file | tr -d '\n'`/g" < data
-
ketas
but what the actual fuck is this
-
polarian
Hello all, im at an Airbnb and trying to connect to the wifi from freebsd works (it authenticates) but no dhcp address is picked up, ifconfig reports no carrier, and then about a minute later it disconnects, dmesg shows a single error before the interface resets, I get iwn0: null_update_chw: need callback
-
polarian
any ideas?
-
ketas
another horrible wifi bug?
-
polarian
maybe...
-
polarian
Never had wifi issues before :)
-
ketas
did it work before?
-
polarian
Yup, it works on all other networks I have tried and all other airbnbs
-
polarian
never had an issue
-
ketas
maybe the ap got busted there?
-
polarian
works on android
-
polarian
using my phone right now via the same wifi network
-
ketas
i wonder what makes this ap special
-
ketas
freq, mode?
-
polarian
oo I should change the regdomain
-
polarian
that might be a problrm
-
polarian
its currently set to GB
-
polarian
im in Romania xD
-
ketas
that shouldn't affect much
-
ketas
isn't it same reg
-
ketas
i wonder if it's new bug
-
ketas
or where the issue is
-
ketas
there is sizable wifi rework being done right now
-
ketas
what fbsd version?
-
quickrr
wow quick commit, thanks freebsd
-
dch
ketas: there's certainly perl tools in base to do this, but not perl-with-json support
-
dch
long term I will see if I can add json support to flua via libucl which is already in base
-
mane
docs.freebsd.org/en/books/handbook/mail Using DMA to Route Outgoing Mail through Gmail THIS IS NOT WORKING VvV
-
ketas
perl in base?
-
dch
ketas:
reviews.freebsd.org/F107268658$52 is what I ended up with. the quoting is sheer madness
-
dch
ketas: yes perl is in base system
-
mane
i need some assistance in running DMA on my freebsd server
-
ketas
dch: of fbsd 4?
-
ketas
:p
-
ketas
json in json is a hell
-
dch
ketas: actually what am I thinking we do not have perl in base
-
dch
ketas: yes somebody made a poor design choice in virtualbox decades ago and it is still present in oracle's cloud setup today
-
dch
mane: whats not working? I have battled a bit with dma the last couple of weeks
-
dch
not all providers work
-
mane
So Google just won’t work
-
mane
What provider will?
-
ketas
perhaps b64 in json would be acceptable
-
dch
mane: share your config? also compare it against
dragonflybsd.org/docs/howtos/HowTo_dma_gmail
-
dch
I don't have a google acct anymore so can't check it
-
ketas
now i get where your replace code actually went
-
dch
ketas: yep into the bowels of satan
-
dch
the jq version was quite readable really
-
ketas
hopefully you don't need 3 levels of json
-
dch
mane: also when you say "it doesn't work" you can look in /var/spool/dma/ and see exactly what its complaining about
-
dch
IIRC there's a pair of files for each message , one of them is a transcript of the failure
-
mane
uth failure
-
mane
auth failure
-
dch
and finally its possible to run dma in the fogreground directly and you see what its unhappy with
-
dch
mane: did you make an app password? per
myaccount.google.com/apppasswords
-
dch
the standard password will not be accepted via smtp
-
dch
if that works, we should amend the handbook with that info
-
dch
-
mane
dch: :O i didn't know about it!
-
dch
mane: let me know if it works, we can amend the docs
-
mane
dch: (>' .')> IT WORKS!
-
ketas
dch: could sed be changed to have it replace pattern within line with contents of a line?
-
ketas
file
-
dch
probably
-
dch
it may already do this and we just don't know how :D
-
ketas
i looked and i find no feature like this
-
mane
so how would i configure MTA for multiple users?
-
ketas
sed is not only line based thing, otherwise s/a/b/g would fail too
-
dch
mane: I don't believe you can with dma
-
dch
its sole purpose is to fwd local mail to a smart host (aka real mailserver)
-
dch
it might support "sending" mail to local users tho, I never used it
-
dch
-
ketas
i had better stackexchange page on this
-
ketas
but no real solution
-
ketas
nothing in man too
-
ketas
powerful stream editor, can't do this?
-
dch
aah this explains some of my initial issues
pement.org/sed/sedfaq5.html#s5.9
-
mountainman1312
Howdy everyone. Kinda new to FreeBSD. Wondering if it's okay to mix pkg and ports willy-nilly? For example I'm running the pkg version of Emacs but I want to remove it and use the port so I can have xwidgets support. Is that alright or do I need to do some surgery?
-
dch
mountainman1312: welcome. generally its possible but advised against. what tends to happen is stuff gets subtly out of date over time.
-
dch
0
-
dch
feel free to run with this for a while, until you get a bit more comfortable. I highly recommend getting familiar with poudriere, and eventually building your own ports as local packages.
-
dch
this depends a bit on whether your system is big enough to build ports itself, or not.
-
dch
typically in this situation, you'd build your local emacs, then use pkg lock to prevent it being upgraded
-
dch
then, underlying issue is that you run `pkg upgrade ...` and get the dependencies upgraded, but your locally-built port will either lose its custom nature (if unlocked, the upgrade replaces it with the pkg provided on) or wont run properly as the dependencies change
-
dch
-
aic
dma and ssmtp can't do relaying and local /var/spool delivery, but OpenSMTPD from OpenBSD can
-
aic
-
ketas
polarian: are you still there
-
ketas
polarian: because i got number of debug command you could run
-
polarian
ketas: im here but not with my laptop
-
ketas
oh
-
ketas
did you throw it out of the window because it didn't connect?
-
[tj]
polarian: if you join #freebsd-wifi on Efnet Adrian@ would like to debug this
-
mane
dch: thanks for that
-
polarian
[tj]: alright sure
-
polarian
its really hard to type on mobile though
-
polarian
ketas: 14.1-RELEASE (I still need to debug 14.2 as update failed when it released)
-
km
ouch, quarterly pkg upgrade broke my prosody....
-
km
becuase luadbi switched database from sqlite3 to mysql
-
Remilia
km: another point for running poudriere huh
-
Remilia
(I also run prosody but mine uses PostgreSQL as back-end)
-
km
I guess I'll have to use ports
-
km
this was a dramatic change, tbh
-
km
who just swaps database drivers like this?
-
Remilia
km: apparently it is supposed to default to MySQL
-
Remilia
in Oct 2023: databases/luadbi: Update OPTIONS_DEFAULT As MySQL57 is reaching EOL and this port does not support MySQL80 so change the OPTIONS_DEFAULT to SQLITE3 and unbreak.
-
km
yes, but still swapping defaults back and forth is very dramatic
-
Remilia
true
-
Remilia
hmm apparently migrating prosody from sqlite3 to postgresql is somewhat trivial
-
km
sqlite3 is a very nice default driver
-
km
Remilia: luckily, getting sqlite3 driver without using ports is easy enought
-
km
also, luckily, sqlite3 tends to just work :)
-
polarian
km: you could open a ticket and discuss it with the freebsd devs, sqlite is a standalone dependency which doesnt require another daemon running, so indeed a better default...
-
quickrr
anyone using zen4?
-
o0x1eef
sqlite is almost always better default unless the machine is a intended to be a server. Then it's less of an issue. But on a desktop laptop I don't want to run mysql / postgres / etc.
-
that_lurker
You can also easily optimize sqlite
kerkour.com/sqlite-for-servers