Live data from Hacker News

OpenBSD 5.1 released

openbsd.org

31–40 of 42 posts

Re: OpenBSD 5.1 released

#31

I wish I could go back to using it but I currently have to do some GWT dev and they only officially support linux. I tried running a vm and dual boot but that was too much hustle... as soon as I'm done with this project I'll go back to this distro. :)

The BSDs do not have "distros". That's a Linux-ism.

Re: OpenBSD 5.1 released

#32
post #26

one thing to definitely watch in OpenBSD is their new mail daemon, OpenSMTPD. It has a configuration syntax that is about 100x easier to setup and understand than anything else out there, although they are still working to get it up to par feature wise. The code is also written with a heavy focus on security, correctness, and simplicity. Its definitely something to watch for all those hackers that want an alternative…

I don't think configuring e.g. postfix is that difficult: # # /etc/postfix/main.cf # # disable diff service biff = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # disable…

I agree it's not that difficult and prior to OpenSMTPD I've been a user of Postfix for 10 years, so I know the software is good and far easier to setup than the big S. ;-)

However, here's a better example of a configuration that is simple with OpenSMTPD and slightly more complex on others:

    listen on em0 tls cert "mycert" enable auth
    map "vmap" { source plain "/etc/mail/virtual" }
    accept from all for virtual "vmap" deliver to maildir
    accept for all relay
This will have the daemon listen on all addresses of interface em0 (both IPv4 and IPv6), it will enable STARTTLS using certificate "mycert" and activating authentication for system users (no pop-before-smtp, no cyrus-sasl and whatnot). It will accept mail from anywhere for all virtual domains in the mapping "vmap" and deliver to maildirs, while relaying mails from local users to the world.

That is a fairly basic setup that quite a lot of people use, yet the effort required to achieve similar setup on other software can range from just "slightly irritating" to "extremely painful". Here it's done with 4 lines that are almost readable by someone who has never used the software.

Some other features like relaying through remote MX that require auth; tagging; forcing secure channels; allow more complex setups while retaining the same simple syntax.

/!\ warning: as a major contributor to OpenSMTPD, I'm biased ;-) /!\

Re: OpenBSD 5.1 released

#33
post #7

I love OpenBSD and have 5.0 installed on a router. But man they are old-school. Just looking at the upgrade instructions[1] brings me back to the time before package managers and makes my long for a nice "apt-get update && apt-get dist-upgrade". [1] http://www.openbsd.org/faq/upgrade51.html

The last successful ubuntu upgrade I did was 10.04 (9.10 on my laptop), I think. 10.04 - 11.10 all broke (on multiple computers, in different ways) eventually requiring a liveboot and significant skill. (I'm now running arch, with significantly better results - but not perfect.) I've never had an openbsd upgrade break, even when I do it the ninja way (which I often do, being a reckless fool). Despite the longer setup…

Note that apt-get isn't a supported way to upgrade in Ubuntu. You are supposed to use "do-release-upgrade" (or "Update Manager" in the GUI).

Re: OpenBSD 5.1 released

#34
post #22

Earlier quoted context omitted.

FreeBSD is the one you should run. It has the best performance and hardware/software compatibility of the three. It's the easiest to get off the ground with for a beginner as well, so it's also a good starting point. NetBSD is the one whose source you should study. The emphasis is on correctness and portability. The book Code Reading by Diomidis Spinellis used mainly examples from NetBSD even though he is a FreeBSD d…

NetBSD is the one whose source you should study. Why not OpenBSD?

Because NetBSD's first priority is clean and correct code and it is often used for exactly this purpose.

Re: OpenBSD 5.1 released

#35

one thing to definitely watch in OpenBSD is their new mail daemon, OpenSMTPD. It has a configuration syntax that is about 100x easier to setup and understand than anything else out there, although they are still working to get it up to par feature wise. The code is also written with a heavy focus on security, correctness, and simplicity. Its definitely something to watch for all those hackers that want an alternative…

Let's hope that it does not end like: http://www.opencvs.org

The folks working on it are making pretty good progress and took in some donation money early in its existence.

Re: OpenBSD 5.1 released

#36
post #26

Earlier quoted context omitted.

I don't think configuring e.g. postfix is that difficult: # # /etc/postfix/main.cf # # disable diff service biff = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # disable…

Two nitpicks: you don't need to set myhostname; many mailservers will think you less spammy if your hostname is mail.$mydomain.

Thank you, but I set it, because myhostname is "fulla.localdomain" if I don't set it.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=214741

Re: OpenBSD 5.1 released

#37
post #26

Earlier quoted context omitted.

I don't think configuring e.g. postfix is that difficult: # # /etc/postfix/main.cf # # disable diff service biff = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # disable…

I agree it's not that difficult and prior to OpenSMTPD I've been a user of Postfix for 10 years, so I know the software is good and far easier to setup than the big S. ;-) However, here's a better example of a configuration that is simple with OpenSMTPD and slightly more complex on others: listen on em0 tls cert "mycert" enable auth map "vmap" { source plain "/etc/mail/virtual" } accept from all for virtual "vmap" de…

Thank you. That is indeed easier to set up on OpenSMTPD than on Postfix.

Re: OpenBSD 5.1 released

#38
post #36

Earlier quoted context omitted.

Two nitpicks: you don't need to set myhostname; many mailservers will think you less spammy if your hostname is mail.$mydomain.

Thank you, but I set it, because myhostname is "fulla.localdomain" if I don't set it. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=214741

Which goes to show that you can still get it wrong after verifying locally (hostname typically does return a FQDN on OpenBSD)...

Re: OpenBSD 5.1 released

#39
post #22

Earlier quoted context omitted.

NetBSD is the one whose source you should study. Why not OpenBSD?

Because NetBSD's first priority is clean and correct code and it is often used for exactly this purpose.

Have you seen OpenBSD code? It's no less cleaner, and maybe even better in this regard.

Re: OpenBSD 5.1 released

#40

I love OpenBSD and have 5.0 installed on a router. But man they are old-school. Just looking at the upgrade instructions[1] brings me back to the time before package managers and makes my long for a nice "apt-get update && apt-get dist-upgrade". [1] http://www.openbsd.org/faq/upgrade51.html

I think Theo actually encourages clean installs. It's no surprise the upgrade procedure would leave something to be desired.
Post reply on HN