Current time: 04-19-2024, 09:00 PM Hello There, Guest! (LoginRegister)


Post Reply 
[solved] saslpasswd2 Memoryaccesserror
Author Message
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #1
[solved] saslpasswd2 Memoryaccesserror
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.
(This post was last modified: 05-14-2009 08:42 AM by WolFree.)
05-07-2009 10:37 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: [FAST] saslpasswd2 Memoryaccesserror
All the sasl passwords are stored (encrypted) in the database, so you should be able to restore them with a custom-made script...
05-07-2009 10:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #3
RE: [FAST] saslpasswd2 Memoryaccesserror
any idea how to create this script? or do you have one ?
05-07-2009 11:09 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: [FAST] saslpasswd2 Memoryaccesserror
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
(This post was last modified: 05-07-2009 11:38 PM by kilburn.)
05-07-2009 11:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #5
RE: [FAST] saslpasswd2 Memoryaccesserror
i cannot access to saslpasswd2, thats the problem.
05-07-2009 11:43 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: [FAST] saslpasswd2 Memoryaccesserror
saslpasswd2 is an executable, try reinstalling the package...
05-08-2009 12:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #7
RE: [FAST] saslpasswd2 Memoryaccesserror
doesn't work
05-08-2009 01:27 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: [FAST] saslpasswd2 Memoryaccesserror
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
05-08-2009 04:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #9
RE: [FAST] saslpasswd2 Memoryaccesserror
sry for posting late, it is solved by downgrading to stable.
05-14-2009 08:42 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #10
RE: [solved] saslpasswd2 Memoryaccesserror
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...ug=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
05-15-2009 02:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)