ispCP - Board - Support
[solved] saslpasswd2 Memoryaccesserror - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [solved] saslpasswd2 Memoryaccesserror (/thread-6662.html)



[solved] saslpasswd2 Memoryaccesserror - WolFree - 05-07-2009 10:37 PM

Hi Guys,

I need quick help. The file "saslpasswd2" has a memoryaccesserror. Our mailserver is down. Need fast help.

ISP Debugerror:

sys_command() | ERROR: External command '/bin/echo "xxx" | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u xxx.xx xx.xx && /bin/cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2' returned '139' status !
I'm gonna die. Don't write anything tux... :S

Can be closed. Datas are lost.


RE: [FAST] saslpasswd2 Memoryaccesserror - kilburn - 05-07-2009 10:58 PM

All the sasl passwords are stored (encrypted) in the database, so you should be able to restore them with a custom-made script...


RE: [FAST] saslpasswd2 Memoryaccesserror - WolFree - 05-07-2009 11:09 PM

any idea how to create this script? or do you have one ?


RE: [FAST] saslpasswd2 Memoryaccesserror - kilburn - 05-07-2009 11:37 PM

No, I don't have it. By the way, it should be something like (this is pseudocode! you can implement it in perl/php/whatever):
Code:
select mail_addr,mail_pass from ispcp.mail_users;
foreach user
     pass <- decrypt(mail_pass)
     echo pass | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u mail_addr
endforeach
cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2
/etc/init.d/saslauthd reload



RE: [FAST] saslpasswd2 Memoryaccesserror - WolFree - 05-07-2009 11:43 PM

i cannot access to saslpasswd2, thats the problem.


RE: [FAST] saslpasswd2 Memoryaccesserror - kilburn - 05-08-2009 12:09 AM

saslpasswd2 is an executable, try reinstalling the package...


RE: [FAST] saslpasswd2 Memoryaccesserror - WolFree - 05-08-2009 01:27 AM

doesn't work


RE: [FAST] saslpasswd2 Memoryaccesserror - joximu - 05-08-2009 04:17 PM

Normal ongoing when seeing such "command xxx returned yyy" messages:

Can you execute the command from above manually?
Code:
/bin/echo "xxx" | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u xxx.xx xx.xx && /bin/cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2

What does it show on the screen? (more details to error 139 - I hope)

******

There is a post in the forum with a script to decode/decrypt all mail passwords.
I think you also should be able to set all mail_user entries to status "change" and run the request manager.

But this works only if the saslpasswd things are working correctly.

/J


RE: [FAST] saslpasswd2 Memoryaccesserror - WolFree - 05-14-2009 08:42 AM

sry for posting late, it is solved by downgrading to stable.


RE: [solved] saslpasswd2 Memoryaccesserror - sci2tech - 05-15-2009 02:58 AM

Hit same error. After some digging, it seems that problem is caused by saslpasswd2 being compiled with libdb4.7 headers while is linked with libdb4.6. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527161.
My solution:
Code:
cat >> /etc/apt/preferences <<eof
Package: sasl2-bin
Pin: version 2.1.22.dfsg1-23
Pin-Priority: 700

Package: libsasl2-2
Pin: version 2.1.22.dfsg1-23
Pin-Priority: 700

Package: libsasl2-modules
Pin: version 2.1.22.dfsg1-23
Pin-Priority: 700
eof