Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15252 - SASL2 Config /usr/lib/sasl2/smtpd.conf in config location
Summary: SASL2 Config /usr/lib/sasl2/smtpd.conf in config location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 20:42 UTC by Nahor
Modified: 2003-06-22 18:58 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nahor 2003-02-06 20:42:09 UTC
This is kind of a followup of bug 10650 (notice the similar title ;)). I think
the standard is to have all config files in /etc. When I do an upgrade of sasl2
(or replace), my stmpd.conf is always replaced without any warning. In my case,
the default config doesn't work. I then have to battle to find out why postfix
stopped authenticating which can be hard if I forget about this config file.

What about putting smtpd.conf back in /etc and put a symbolic link in
/usr/lib/sasl2? No patch in sasl, no config silently overridden, and follow the
standard
Comment 1 Nahor 2003-04-19 19:34:44 UTC
I updated my server to postfix-2.0.9 and got bitten by this bug again, my stmpd.conf file was again replaced in my back without any warning. Had to recover the file from the backup
Comment 2 Nahor 2003-04-19 19:38:44 UTC
Marking critical since there is data loss.
Comment 3 Jon Portnoy (RETIRED) gentoo-dev 2003-05-07 13:30:38 UTC
You mail folks able to take this one?
Comment 4 Alex Combas 2003-06-03 01:46:26 UTC
Im not sure if this should be posted here, but im using cyrus-sasl and when i go like this:
/etc/init.d/saslauthd start

it complains that there is not /var/lib/sasl2 and thats because portage installed it into /usr/lib/sasl2 

If i make a symlink from /usr/lib/sasl2 to /var/lib then everything works properly.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-08 01:59:50 UTC
seeing as how old this bug is, I'll look into it
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-13 05:18:55 UTC
please test 2.0.11 and report.  sorry I didn't get it before raker upgraded the thing to *stable*. sheesh.
Comment 7 Nahor 2003-06-13 08:46:16 UTC
Stable? I don't see any new postfix in stable. 2.0.11 is still marked ~x86.
Which bring up this question: how stable is the new version? I have only one gentoo machine and it's the company's server. How likely am I to break it if I test the new package? Going from 2.0.9 to 2.0.11 seems safe enough but I prefer to ask.
Comment 8 Ken Nowack (RETIRED) gentoo-dev 2003-06-13 10:42:57 UTC
I'm not sure how stable postifx-2.0.11 is. I've been running 2.0.3 for months. I'm not upgrading unless I have a really good reason to do so.

I did however talk to lolo today about the ebuild. It's getting fixed shortly. Until then make sure you backup your smtp.conf file. Or better yet, just symlink it into /etc/sasl2.
Comment 9 Richard C 2003-06-13 11:25:37 UTC
Works as it should (file in /etc/sasl, symlink in /usr/lib/sasl2) on a clean install or where this setup ( /etc/sasl, symlink /usr/lib/sasl2) already exists.

In my setup though, it still overwrites my sasl config because I have the real file in /usr/lib/sasl2, and a symlink in /etc/sasl.   Some others might have this setup from the cyrus-sasl bug.

I have my real file in /usr/lib/sasl2 because that is where cyrus looks for it, and that is where it should be.  If I am fooled into thinking it should be in /etc/sasl, and somehow the symlink gets nerfed, I can imagine pulling my hair out wondering why sasl isn't working, when I have all the settings right ;)

Anyway, net result, it works as expected unless you have the symlinks reversed in your existing install.
Comment 10 Richard C 2003-06-13 11:30:42 UTC
Off Topic, but in regards to the postfix version, the patch levels are official releases, and do not change except for bugfixes and for portability fixes.

I like bugfixes, and since Wietse think's it stable I always upgrade (it's now up to r12) to get the bug fixes.

The only thing you have to worry about is anything the ebuild itself might do different between versions, not postfix itself.
Comment 11 Brandon Low (RETIRED) gentoo-dev 2003-06-13 13:10:09 UTC
Ok, so here's my theory, if the user already has a REAL /usr/lib/whatever/conffile then move the new one in /etc to a ._cfg file THEN move their REAL file to /etc and make a link in /usr/lib...
IF they have a real file in BOTH locations display a warning, but overwrite NOTHING, thoughts?
Comment 12 Richard C 2003-06-13 13:19:43 UTC
Sounds good.

Comment 13 Brandon Low (RETIRED) gentoo-dev 2003-06-13 15:32:05 UTC
Ok, I'm now confused... having taken a closer look at this, it looks like it should be OK the way it is... I'm not sure how it's still clobbering any config files...
Comment 14 Richard C 2003-06-13 16:26:04 UTC
I set my system back up again in the original method and installed postfix-2.0.11.ebuild.

There was a twist I didn't notice before, but the results are still the same.

Before Ebuild:
Config file:
   /usr/lib/sasl2/smtpd.conf
Link to it in:
   /etc/sasl2/smtpd.conf
Contents:
   pwcheck_method=saslauthd

After Ebuild
Config file:
   /etc/sasl2/smtpd.conf
Link to it in:
   /etc/sasl2/smtpd.conf
Contents:
   pwcheck_method=pam

---
So, it has messed up my config file - My postfix authentications are now setup for pam, and will fail (I use saslauthd).

Here is the twist I didn't notice - There is a ._cfg0000_smtpd.conf file that has the contents of my old smtpd.conf file (pwcheck_method=saslauthd).

My ebuild is dated Jun 13, 05:21
Comment 15 Brandon Low (RETIRED) gentoo-dev 2003-06-22 18:58:10 UTC
This should be all totally fixored as of late, closing... IF this is not the case feel free to either re-bug me directly OR REOPEN this bug.