[-] 2xsaiko@discuss.tchncs.de 1 points 5 minutes ago

At the very least you can see it in dmesg.

[-] 2xsaiko@discuss.tchncs.de 2 points 12 hours ago

Now that I think about it, dovecot drops permissions for security reasons (login runs as the "dovenull" user). It's probably not a good idea to try to circumvent that actually.

[-] 2xsaiko@discuss.tchncs.de 7 points 13 hours ago* (last edited 12 hours ago)

What do you mean by “more powerful” wrt CMake?

CMake is a turing-complete language with some APIs that Meson either doesn't have an equivalent yet because it's comparatively new (for example, until 2023, there was no built in way to get a relative path from two paths, and if you wanted that you had to shell out to an external program), or they aren't going to add because it doesn't fit their design.

Meson is (intentionally) limited in terms of extensibility, instead it tries to come with everything built in that you need, even down to specific library support like Qt, from what it seems like to me. For example, you cannot define your own functions, it ships builtin modules but does not allow other packages to provide their own (for example like KDE's Extra CMake Modules), to name a few that I'm familiar with and why I was put off using it so far.

I have yet to see how actually limiting that is, going to try to move the project I've been working on for years that relies on some of these CMake features to Meson soon and see how it fares. But considering that big projects like GNOME use it all over the place it's probably workable in practice, I'll just have to rethink the existing approach a bit.

Is that considered bait?

Wasn't it? Go's build system is very much not what I would call an example of good design (exhibit A: load-bearing comments and file names).

[-] 2xsaiko@discuss.tchncs.de 2 points 13 hours ago* (last edited 13 hours ago)

I meant that for my one IP address, I set it to have a PTR to multiple domain names.

Don't do that, yeah. If set it should always point to one domain name, the canonical name for that host, and the domain name should resolve back to that IP.

See https://serverfault.com/questions/618700/why-multiple-ptr-records-in-dns-is-not-recommended

[-] 2xsaiko@discuss.tchncs.de 7 points 13 hours ago

Try Meson first, it should support compiling GNU assembly via the C compiler from what I can find. I've been using CMake for years because it is more powerful (finally trying out Meson though for a new project) but in contrary to Meson it is easy to use the wrong way if you don't know what you're doing. Meson is very clean in comparison, and also very easy to get started with. (And both these are absolutely better than autotools)

(If only c++ build systems caught up to Golang lol)

Terrible bait

[-] 2xsaiko@discuss.tchncs.de 1 points 15 hours ago

Try this I suppose

userdb {
  args = username_format=%n /etc/passwd
  driver = passwd-file
}

And maybe similar with passdb and /etc/shadow?

What do you have your passdb set to if you don’t mind me asking?

The defaults. Doesn't show up in doveconf -n.

[-] 2xsaiko@discuss.tchncs.de 1 points 15 hours ago

Currently I have multiple PTR records for all the subdomains I’m using, which hasn’t caused problems yet…

Wait, what? PTR is set on an IP address, not on a domain name. It should resolve to the canonical domain name of the host behind that IP.

[-] 2xsaiko@discuss.tchncs.de 2 points 15 hours ago

Your postfix is set to deliver to lmtp:unix:private/dovecot-lmtp so you need to create the socket there:

 service lmtp {
-  unix_listener lmtp {
+  unix_listener /var/spool/postfix/private/dovecot-lmtp {
     group = postfix
     mode = 0600
     user = postfix
   }
 }

(though for me the path is /var/lib/postfix/queue/private/dovecot-lmtp. YMMV)

What would you suggest I set the PTR record to?

Set system hostname, PTR, and myhostname to NAME.domain.com where NAME is a unique name that you made up (e.g. I have 'polaris.dblsaiko.net'). This also makes adding more hosts later less awkward (as opposed to having the hostname be domain.com).

[-] 2xsaiko@discuss.tchncs.de 4 points 17 hours ago

For the IMAP login issue, I'm pretty sure this is the cause looking at the "unknown user" error:

userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
}

Have you set up the users in that file (/etc/dovecot/users) if you even want to do that instead of just using passwd? Also note %u is the full user string including domain. Not sure how that plays together with auth_username_format=%n which is just the user name.

Personally I just have

userdb {
  driver = passwd
}

so I don't have anything further to go off of.

[-] 2xsaiko@discuss.tchncs.de 8 points 17 hours ago* (last edited 17 hours ago)

Okay, there are two different issues here. First, the mail delivery.

You have

mydomain = domain.com
myhostname = mail.domain.com

and getting

Relay access denied (in reply to RCPT TO command)

This means that received mail is addressed to a domain that is not configured for local delivery, and the mail server is not accepting it to be relayed to the actual target server. This is a good thing, you do not want to have a public relay under any circumstances because it would mean people could make your server launch spam anywhere.

As for why it's not configured to accept that domain for local delivery, you need to look at the mydestination setting:

mydestination (default: $myhostname, localhost.$mydomain, localhost)

The list of domains that are delivered via the $local_transport mail delivery transport. [...]

(from postconf(5).)

You left it at the default value, so it will accept mail addressed to mail.domain.com, localhost.domain.com, and localhost. You'll probably want to set that to additionally contain $mydomain (at least that is how mine is configured).


Also, something else:

My server’s hostname is domain.com not mail.domain.com (mail.domain.com is what my MX record points to), but this shouldn’t really matter as I configured postfix with:

You'll want those to match up, system hostname and postfix's myhostname, since you'll need to set the PTR record of your IP to match the hostname your SMTP server identifies itself as, and otherwise your server's IP resolves to mail.domain.com while the canonical hostname is domain.com. It will work for mail, it'll just not be nice when your server's IP resolves to mail.domain.com for stuff that isn't mail and that isn't the canonical hostname. I recommend giving it some other hostname (or just setting both to mail.domain.com if the system just handles mail).

[-] 2xsaiko@discuss.tchncs.de 6 points 2 days ago

I think in this case I would translate “Lager” as “warehouse”

30

I wanted something like GIMP for iOS with which I can stitch together/overlay/crop images, add text, blank out parts, draw on the image, and so on. Nothing in the app store looked appealing, most of what I could find seems to be geared towards photo post processing, so I had the idea of trying Freeform for this, because well, it lets you place various objects on a canvas. And it works pretty well!

Create a new board with the image inside, set it to no rounded corners and no shadow, and then do whatever you want to it with Freeform’s tools.

Then, when you’re done, select Export to PDF and convert it to an image. You can use this share sheet shortcut which I made which makes an image out of it and also cuts away the white frame it generates around the PDF: https://www.icloud.com/shortcuts/fa5e2386588742b2a1f5d41401f2238e

There you go, straight forward basic image editing with a free stock app.

It unfortunately doesn’t preserve the original resolution of the image but it’s definitely good enough for me.

29

I'm looking for something like GitHub's user activity indicator that gathers information from a list of git repositories regardless of where they are hosted (as long as they are public), that I can put on my webpage, kind of as a thing to show what I'm working on at the moment.

Is this a thing that already exists? I'd started writing one a while ago but instead of reviving that it would be great if there's something that already exists and I can just use :^)

19
29
submitted 10 months ago by 2xsaiko@discuss.tchncs.de to c/linux@lemmy.ml

According to this Phoronix article, Linux should support the birth time attribute in the NFS server since 5.18. However, it doesn't show up in the stat output when looking at the file through the NFS mount, or elsewhere (at least, the Dolphin file browser and also a macOS client):

% stat file
  File: file
  Size: 0               Blocks: 0          IO Block: 1048576 regular empty file
Device: 0,70    Inode: 103416894   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   saiko)   Gid: (  100/   users)
Access: 2023-12-17 03:22:45.368950609 +0100
Modify: 2023-12-17 03:22:45.368950609 +0100
Change: 2023-12-17 03:22:45.368950609 +0100
 Birth: -

What gives? Running stat on the server directly, it shows the attribute. The backing file system is ext4, kernel 6.5.12. The client is using kernel 6.1.63.

view more: next ›

2xsaiko

joined 1 year ago