-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opensmtpd: missing makemap binary #100419
Comments
I marked this as stale due to inactivity. → More info |
It seems that makemap is expected to be supplied with sendmail (or equivalent opensmtpd). Refs :
It's hard to find makemap sources, but a binary ELF can be found at least in the deb package http://archive.ubuntu.com/ubuntu/pool/universe/s/sendmail/sendmail-bin_8.15.2-20_amd64.deb after unarchiving, we get it here sendmail-bin_8.15.2-20_amd64/data.tar/usr/sbin/makemap |
According to https://github.com/OpenSMTPD/OpenSMTPD/#setup-historical-interface it's an “historical interface,” which explains why it's not included by default. That being said, it sounds like we could have it by just adding a symlink to the opensmtpd derivation's build. Does someone want to submit a PR adding it? |
I found the source I guess. it's very last version today should be ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.16.1.tar.gz
|
This should the best solution for opensmtpd to fix this issue. I guess that we could compile makemap from its source in opensmtpd and link the result in the final package of opensmtpd. I may first do that for the sendmail package, since that is what I need. I am just wondering if it makes sense, since the doc states that makemap (in sendmail sources i guess)
|
I think there's a misunderstanding going on. What I mean is that So there should be no need for any additional sources, only to add a symlink to smtpctl from the makemap name. You can check that by running something like |
By adding What does |
No, |
I added
to the opensmtpd derivation. When I install the derivation, executing
I will investigate what is the meaning of this group. |
I think that "smtpq" is a user and a group meant to be created by the opensmtpd module. It seems to me that this user/group (and not the default _smtpq) is coded into the source code of the makemap feature, due to the corresponding configuration flags of the derivation. To get smtpq, one can enable the openstmpd module like this
(NB: It seems that opensmtpd needs at least one action for the configuration file to validate... Let's say this is a kind of noop configuration, for dev purpose. To avoid any conflict with real emails, we listen on Once the module is enabled, installing the opensmtpd package and executing makemap returns now
Adding
Same kind of errors with |
You're right about the group being created by the opensmtpd module, and your changes to the derivation should now be correct! As for the setgid issue, the solution is not to chown inside the derivation build (which cannot happen anyway as all the files will be reset to be owned by root:root, and be setuid/setgid-less at the end of the build, for build sandboxing reasons). The solution would be to add another paragraph similar to the one here to the opensmtpd module, but replacing https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/mail/opensmtpd.nix#L105-L109 |
I did that and I tested with |
I don't have a lot of experience with |
Tried with |
Again, same result with |
Could someone reproduce this or did I make something wrong ? |
Could you submit a PR with your nixpkgs and link it here, ideally copy-pasting your |
I marked this as stale due to inactivity. → More info |
I'd like to give opensmtpd a try on one of my NixOS installs, and stumbled on this issue. Not sure if it's still relevant? I've actually found this while trying to find an answer to the question whether we need to issue newaliases after creating an /etc/mail/aliases file. Maybe someone can shed some light on this too. |
Describe the bug
The
makemap
utility is missing from theopensmtpd
package.Notify maintainers
cc @obadz @Ekleog
Metadata
"x86_64-linux"
Linux 5.8.11, NixOS, 21.03.git.a373d69351a (Okapi)
yes
yes
nix-env (Nix) 2.3.7
"nixos-21.03pre246062.420f89ceb26"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: