2xsaiko

joined 1 year ago
[–] [email protected] 7 points 1 week ago (2 children)

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

[–] [email protected] 1 points 1 week ago (2 children)

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.

[–] [email protected] 1 points 1 week ago (5 children)

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.

[–] [email protected] 2 points 1 week ago (2 children)

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).

[–] [email protected] 4 points 1 week ago (4 children)

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.

[–] [email protected] 8 points 1 week ago* (last edited 1 week ago) (10 children)

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).

[–] [email protected] 6 points 2 weeks ago

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

[–] [email protected] 22 points 2 weeks ago (2 children)

Every time I read something about Enlightenment I have to think about this post: https://what.thedailywtf.com/topic/15001/enlightened

[–] [email protected] 1 points 2 weeks ago

Everyone knows. There’s nothing to “find out”.

[–] [email protected] 1 points 2 weeks ago (1 children)

You have NixOS, it’s easy to give it a custom session path for that.

Also I would use systemd-cat so the output goes into the journal instead of nowhere.

[–] [email protected] 2 points 2 weeks ago (1 children)

Most computers with (at least) two network interfaces will do. If it's something too crappy your throughput will be limited by CPU speed but I can't tell you exact recommendations here. Here's OPNsense's hardware recommendations for example, they're not high at all. Off-the-shelf devices that allow you to do this should probably be fine too.

I'd put Linux on it and use nftables but BSD PF seems to be very popular for firewalls (OPNsense/pfSense are built on this) which I have never used so consider that too.

[–] [email protected] 2 points 2 weeks ago (7 children)

Not a professional networking guy either but here's my opinion.

What I would do is use the ISP router as is, open all ports on it (except to itself, hopefully it doesn't do that...), and put a firewall in between the router and everything else that controls the actual access to everything behind it (in bridge mode between the two network interfaces of the firewall, so you only have the one network).

Could a potential second router also assign addresses to devices in that globally routable space directly?

Devices in IPv6 assign addresses themselves via SLAAC, you just need one device advertising the prefix which the ISP router should already do. The firewall should be able to just purely be there for packet filtering. If you need fixed addresses for public facing servers I would just assign them manually to the respective boxes as you likely also need to add them to public DNS manually anyway.

view more: ‹ prev next ›