-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Portable - offline not working (tried 6.0.2p1 and 6.0.3p1) #839
Comments
|
In case it matters, I'm using |
|
For comparison I also tried on OpenBSD - offline works fine there. OpenBSD 6.2 info below, for comparison with Linux above. mutt (error is not really a problem): /var/spool/smtpd: /var/spool/smtpd/offline: After running smtpd -dv, message is queued as expected, and removed from offline. |
|
Think I found the problem, and offline appears fixed on Linux now, with these changes below. I had to do a chmod to add back the set gid flag, after changing the group from root to smtpq on the smtpctl binary: |
|
If permissions on |
|
I don't know how you ended up with smtpctl not being setgid but this is clearly a user error as the smtpctl install Makefile explicitely sets it: https://github.com/OpenSMTPD/OpenSMTPD/blob/portable/mk/smtpctl/Makefile.am#L79 closing |
|
@ poolpOrg I failed to explain the issue properly. The issue is wrong group on smtpctl. After configure, make, make install: Needs to be fixed to be: (the reason I had to set gid again is that after I myself fix group with chgrp, the set gid flag gets lost and I had to add it back. The Makefile problem is group not being set properly) Also see this problem in other distro(s) like Arch Linux where |
|
Now I realize The problem is a Linux distro/packager problem - they don't know that they need to set smtpctl group to May I suggest a big NOTICE printed at the end of the |
|
ok indeed, the initial description made it seem like a local issue with the mode, not the ownership. I don't think this should be solved at the distro level, this is a Makefile bug on our side, I'll re-open the ticket until I have a fix ready. |
|
@poolpOrg thanks! I'm guessing you plan for Makefile to This assumes the packager already has an smtpq group present - I think this is a good assumption. If they don't have this group yet, they'll get an error and they'll know they need to create this group. |
|
there's a configure option to specify a different group, but eitherway we have documented that two users are required and we have a default _smtpq user defined so it will fail to install if packager didn't setup environment correctly. |
|
Totally makes sense thanks! |
|
issue fixed and merged in portable branch |
I'm not able to make offline functionality work on Slackware Linux w/compiled 6.0.3p1, and have also tried Arch Linux w/ its packaged 6.0.2p1 setup. I also looked at how OpenSMTPD is setup on FreeBSD, with no further insights as to the problem. Online email sending via relay works perfect, on several different servers with different relay hosts. No problems with online at all.
Have been at this for about a week, on and off - any hints super welcome, please save me from Postfix :). Have already looked at the man pages, the handful of articles available online, and all of the relevant github and mailing list issues I could find. Nothing helped so far.
Details below, for the Slackware 6.0.3p1 setup.
/etc/passwd contains:
/etc/group contains:
spool directory exactly as created by smtpd command:
The text was updated successfully, but these errors were encountered: