Hi, I'm testing Dovecot to migrate from my old Courier IMAP/POP server. It work fine but I have some problems to start the sieve server "pysieved" from Neale Pickett in PAM auth, I got the message: Traceback (most recent call last): File "/usr/share/pysieved/pysieved.py", line 97, in <module> main() File "/usr/share/pysieved/pysieved.py", line 60, in main None, None, True) File "/usr/share/pysieved/auth/pam.py", line 22, in <module> import PAM ImportError: No module named PAM What's wrong ? Thanks in advance for your help. Sam. -- Ce message a ?t? v?rifi? par MailScanner pour des virus ou des polluriels et rien de suspect n'a ?t? trouv?.
Hi, On Sat, Jul 21, 2007 at 11:21:53PM +0200, Sam Przyswa wrote:> File "/usr/share/pysieved/auth/pam.py", line 22, in <module> > import PAM > ImportError: No module named PAM > > What's wrong ?You need a PAM module for python. On a debian like system try: apt-get install python-pam However, this question would be better adressed to a python mailinglist. bye, DaTa
On 23:21:53 2007-07-21 Sam Przyswa <samp at arial-concept.com> wrote:> Hi, > > I'm testing Dovecot to migrate from my old Courier IMAP/POP server. It > work fine but I have some problems to start the sieve server "pysieved" > from Neale Pickett in PAM auth, I got the message: > > Traceback (most recent call last): > File "/usr/share/pysieved/pysieved.py", line 97, in <module> > main() > File "/usr/share/pysieved/pysieved.py", line 60, in main > None, None, True) > File "/usr/share/pysieved/auth/pam.py", line 22, in <module> > import PAM > ImportError: No module named PAM > > What's wrong ? > > Thanks in advance for your help. > > Sam. >Or just use the managesieve patch which works great and doesn't have the python overhead ;) -- Andra? "ruskie" Levstik Source Mage GNU/Linux Games grimoire guru Geek/Hacker/Tinker Hacker FAQ: http://www.plethora.net/%7eseebs/faqs/hacker.html Be sure brain is in gear before engaging mouth. Key id = F4C1F89C Key fingerprint = 6FF2 8F20 4C9D DB36 B5B6 F134 884D 72CC F4C1 F89C
Sam Przyswa wrote:> Hi, > > I'm testing Dovecot to migrate from my old Courier IMAP/POP server. It > work fine but I have some problems to start the sieve server "pysieved" > from Neale Pickett in PAM auth, I got the message: > > Traceback (most recent call last): > File "/usr/share/pysieved/pysieved.py", line 97, in <module> > main() > File "/usr/share/pysieved/pysieved.py", line 60, in main > None, None, True) > File "/usr/share/pysieved/auth/pam.py", line 22, in <module> > import PAM > ImportError: No module named PAM > > What's wrong ?I presume your on a BSD system? If so it's your lucky day ;) I just worked on this the other day. I wound up having to give up on PAM because the PAM module the author used uses Linux specific add-ons to PAM and won't work on BSD. I'm already using Dovecot SASL for postfix so I just pointed pysieved at the same socket postfix uses and told it to use dovecot for auth and storage and passwd for userdb. If you do this though there are a couple of patches to apply as well. http://woozle.org/list-archives/pysieved/msg00057.html If this is for a FreeBSD system I was considering wrapping it up into an actual port and submitting it, if you would use it I might actually get around to doing it. Hope this helps, Jonathan