Re: cyradm: perl: symbol lookup error?

2015-09-19 Thread Patrick Goetz
Just a quick note:  IMAP::Admin appears to be broken, at the moment, and 
can't be compiled.  The Debian people submitted a patch 3 months ago 
with no activity, indicating that the Perl module is semi-abandoned.

On 9/17/2015 3:03 PM, Patrick Boutilier wrote:
> On 09/17/2015 04:07 PM, Patrick Goetz wrote:
>> Thanks.  I'm just now getting around to looking at this script.  This
>> creates a mailbox, but don't you also need to set access privileges for
>> the user associated with this mailbox?
>
> Only if you are going to change the default rights. User will have
> access by default.
>
>
>
>
>
>>
>>
>>
>> On 09/16/2015 12:00 PM, Patrick Boutilier wrote:
>>>
>>> We use this simple perl script to add users. Fill in appropriate
>>> username and password.
>>>
>>>
>>>
>>>
>>>
>>> #!/usr/bin/perl -w
>>> #
>>> use File::Basename;
>>> use IMAP::Admin;
>>>
>>> if ( 0 == scalar( @ARGV ) ) {
>>> die( "\n  Usuage: $0 userid\n");
>>> }
>>>
>>>
>>> $mailbox = "user.$ARGV[0]";
>>> $username = "";
>>> $password = "";
>>>
>>> # Set this to the hostname of your IMAP server
>>> $IMAPSERVER = "localhost";
>>> #
>>>
>>> # Main Code
>>> #
>>> # Login to IMAP server
>>> $imap = IMAP::Admin->new('Server' => $IMAPSERVER,
>>>'Login' => $username,
>>>'Password' => $password,) || die "no go $!
>>> !";
>>>
>>> print "Login: " . $imap->error . "\n";
>>>
>>> # Add user
>>> $add = $imap->create("$mailbox");
>>>
>>> if ($add != 0) {
>>>   print "Error: " . $imap->error . "\n";
>>> }
>>> else {
>>>   print "$ARGV[0] added.\n";
>>> }
>>>
>>>
>>> # Close connection
>>> $imap->close;
>>> exit;
>>>
>>>
>>> 
>>> Cyrus Home Page: http://www.cyrusimap.org/
>>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>>> To Unsubscribe:
>>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>>
>> 
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>
>
>
>
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyradm: perl: symbol lookup error?

2015-09-17 Thread Patrick Goetz
Thanks.  I'm just now getting around to looking at this script.  This 
creates a mailbox, but don't you also need to set access privileges for 
the user associated with this mailbox?



On 09/16/2015 12:00 PM, Patrick Boutilier wrote:
>
> We use this simple perl script to add users. Fill in appropriate
> username and password.
>
>
>
>
>
> #!/usr/bin/perl -w
> #
> use File::Basename;
> use IMAP::Admin;
>
> if ( 0 == scalar( @ARGV ) ) {
>die( "\n  Usuage: $0 userid\n");
> }
>
>
> $mailbox = "user.$ARGV[0]";
> $username = "";
> $password = "";
>
> # Set this to the hostname of your IMAP server
> $IMAPSERVER = "localhost";
> #
>
> # Main Code
> #
> # Login to IMAP server
> $imap = IMAP::Admin->new('Server' => $IMAPSERVER,
>   'Login' => $username,
>   'Password' => $password,) || die "no go $! !";
>
> print "Login: " . $imap->error . "\n";
>
> # Add user
> $add = $imap->create("$mailbox");
>
> if ($add != 0) {
>  print "Error: " . $imap->error . "\n";
> }
> else {
>  print "$ARGV[0] added.\n";
> }
>
>
> # Close connection
> $imap->close;
> exit;
>
>
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyradm: perl: symbol lookup error?

2015-09-17 Thread Patrick Boutilier

On 09/17/2015 04:07 PM, Patrick Goetz wrote:

Thanks.  I'm just now getting around to looking at this script.  This
creates a mailbox, but don't you also need to set access privileges for
the user associated with this mailbox?


Only if you are going to change the default rights. User will have 
access by default.










On 09/16/2015 12:00 PM, Patrick Boutilier wrote:


We use this simple perl script to add users. Fill in appropriate
username and password.





#!/usr/bin/perl -w
#
use File::Basename;
use IMAP::Admin;

if ( 0 == scalar( @ARGV ) ) {
die( "\n  Usuage: $0 userid\n");
}


$mailbox = "user.$ARGV[0]";
$username = "";
$password = "";

# Set this to the hostname of your IMAP server
$IMAPSERVER = "localhost";
#

# Main Code
#
# Login to IMAP server
$imap = IMAP::Admin->new('Server' => $IMAPSERVER,
   'Login' => $username,
   'Password' => $password,) || die "no go $! !";

print "Login: " . $imap->error . "\n";

# Add user
$add = $imap->create("$mailbox");

if ($add != 0) {
  print "Error: " . $imap->error . "\n";
}
else {
  print "$ARGV[0] added.\n";
}


# Close connection
$imap->close;
exit;



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



<>
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: cyradm: perl: symbol lookup error?

2015-09-17 Thread Patrick Goetz
Interesting.  When I use cyradm to set up a new account, I always 
execute 2 commands:

   cyradm --user administrator localhost

   localhost> cm user/daffyduck
   localhost> sam user/daffyduck daffyduck write

Does this mean that the second command has been superfluous all along 
and that these are the permissions that are created by default anyway?

I.e. it would be sufficient to just do this?

   localhost> cm user/daffyduck


On 09/17/2015 03:03 PM, Patrick Boutilier wrote:
> On 09/17/2015 04:07 PM, Patrick Goetz wrote:
>> Thanks.  I'm just now getting around to looking at this script.  This
>> creates a mailbox, but don't you also need to set access privileges for
>> the user associated with this mailbox?
>
> Only if you are going to change the default rights. User will have
> access by default.
>
>
>
>
>
>>
>>
>>
>> On 09/16/2015 12:00 PM, Patrick Boutilier wrote:
>>>
>>> We use this simple perl script to add users. Fill in appropriate
>>> username and password.
>>>
>>>
>>>
>>>
>>>
>>> #!/usr/bin/perl -w
>>> #
>>> use File::Basename;
>>> use IMAP::Admin;
>>>
>>> if ( 0 == scalar( @ARGV ) ) {
>>> die( "\n  Usuage: $0 userid\n");
>>> }
>>>
>>>
>>> $mailbox = "user.$ARGV[0]";
>>> $username = "";
>>> $password = "";
>>>
>>> # Set this to the hostname of your IMAP server
>>> $IMAPSERVER = "localhost";
>>> #
>>>
>>> # Main Code
>>> #
>>> # Login to IMAP server
>>> $imap = IMAP::Admin->new('Server' => $IMAPSERVER,
>>>'Login' => $username,
>>>'Password' => $password,) || die "no go $!
>>> !";
>>>
>>> print "Login: " . $imap->error . "\n";
>>>
>>> # Add user
>>> $add = $imap->create("$mailbox");
>>>
>>> if ($add != 0) {
>>>   print "Error: " . $imap->error . "\n";
>>> }
>>> else {
>>>   print "$ARGV[0] added.\n";
>>> }
>>>
>>>
>>> # Close connection
>>> $imap->close;
>>> exit;
>>>
>>>
>>> 
>>> Cyrus Home Page: http://www.cyrusimap.org/
>>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>>> To Unsubscribe:
>>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>>
>> 
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>
>
>
>
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyradm: perl: symbol lookup error?

2015-09-17 Thread Mogens Melander
That could be easily tested with "lam " COMMAND.

On 2015-09-18 03:40, Patrick Goetz wrote:
> Interesting.  When I use cyradm to set up a new account, I always
> execute 2 commands:
> 
>cyradm --user administrator localhost
> 
>localhost> cm user/daffyduck

  localhost> lam user/daffyduck

>localhost> sam user/daffyduck daffyduck write
> 
> Does this mean that the second command has been superfluous all along
> and that these are the permissions that are created by default anyway?
> 
> I.e. it would be sufficient to just do this?
> 
>localhost> cm user/daffyduck
> 
> 
> On 09/17/2015 03:03 PM, Patrick Boutilier wrote:
>> On 09/17/2015 04:07 PM, Patrick Goetz wrote:
>>> Thanks.  I'm just now getting around to looking at this script.  This
>>> creates a mailbox, but don't you also need to set access privileges 
>>> for
>>> the user associated with this mailbox?
>> 
>> Only if you are going to change the default rights. User will have
>> access by default.
>> 
>> 
>> 
>> 
>> 
>>> 
>>> 
>>> 
>>> On 09/16/2015 12:00 PM, Patrick Boutilier wrote:
 
 We use this simple perl script to add users. Fill in appropriate
 username and password.
 
 
 
 
 
 #!/usr/bin/perl -w
 #
 use File::Basename;
 use IMAP::Admin;
 
 if ( 0 == scalar( @ARGV ) ) {
 die( "\n  Usuage: $0 userid\n");
 }
 
 
 $mailbox = "user.$ARGV[0]";
 $username = "";
 $password = "";
 
 # Set this to the hostname of your IMAP server
 $IMAPSERVER = "localhost";
 #
 
 # Main Code
 #
 # Login to IMAP server
 $imap = IMAP::Admin->new('Server' => $IMAPSERVER,
'Login' => $username,
'Password' => $password,) || die "no go 
 $!
 !";
 
 print "Login: " . $imap->error . "\n";
 
 # Add user
 $add = $imap->create("$mailbox");
 
 if ($add != 0) {
   print "Error: " . $imap->error . "\n";
 }
 else {
   print "$ARGV[0] added.\n";
 }
 
 
 # Close connection
 $imap->close;
 exit;
 
 
 
 Cyrus Home Page: http://www.cyrusimap.org/
 List Archives/Info: 
 http://lists.andrew.cmu.edu/pipermail/info-cyrus/
 To Unsubscribe:
 https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
 
>>> 
>>> Cyrus Home Page: http://www.cyrusimap.org/
>>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>>> To Unsubscribe:
>>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>> 
>> 
>> 
>> 
>> 
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>> 
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

-- 
Mogens
+66 8701 33224


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyradm: perl: symbol lookup error?

2015-09-16 Thread Miguel Mucio Santos Moreira
Patrick,

About question 3, is possible to use a php script or even a python script to 
manage users.
Would be possible but I don't know if would be to you,install a new machine 
with a standard operational system just to manager these users.



-- 
Miguel Mucio Santos Moreira
 Analista - LPIC 1 Linux Professional Institute Certified
 GRE - Gerência de Redes
 (31)3339-1401
 PRODEMGE - Companhia de Tecnologia da Informação do Estado de Minas Gerais 

Aviso:
 Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é 
dirigida, podendo conter informação confidencial e legalmente protegida.
 Se você não for destinatário dela, desde já fica notificado de 
abster-se a divulgar, copiar, distribuir, examinar ou, de qualquer 
forma, utilizar a informação contida nesta mensagem, por ser ilegal. 
Caso você tenha recebido por engano, pedimos que responda essa mensagem 
informando o acontecido.



Em 16/09/2015 13:33:42, Patrick Goetz escreveu:
> So, I've been happily avoiding upgrading cyrus imap because everything 
has been working and I'm generally in the "if it ain't broke, don't fix 
it" category.

   Cyrus version: 2.4.17
   Perl version:  5.22.0


However, this morning I tried to create a new user using cyradm and got 
a perl error message:


pgoetz@www:~$ cyradm --user administrator localhost
perl: symbol lookup error: 
/usr/lib/perl5/site_perl/auto/Cyrus/IMAP/IMAP.so: undefined symbol: 
Perl_xs_apiversion_bootcheck


I'm running Arch linux, which aggressively updates software packages. 
Apparently some Perl upgrade broke cyradm?

3 questions:


1. Does this mean I need to bite the bullet and upgrade my cyrus installs?

2. Is upgrading to 2.5.6 painless?  Should I just wait for 3.0?

3. Is there a workaround for cyradm not working for adding users?  I've 
only ever used cyradm and have no idea how to add users otherwise.


Cyrus Home Page: > http://www.cyrusimap.org/> 
List Archives/Info: > http://lists.andrew.cmu.edu/pipermail/info-cyrus/> 
To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus> 




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: cyradm: perl: symbol lookup error?

2015-09-16 Thread Patrick Boutilier

On 09/16/2015 01:33 PM, Patrick Goetz wrote:

So, I've been happily avoiding upgrading cyrus imap because everything
has been working and I'm generally in the "if it ain't broke, don't fix
it" category.

Cyrus version: 2.4.17
Perl version:  5.22.0


However, this morning I tried to create a new user using cyradm and got
a perl error message:


pgoetz@www:~$ cyradm --user administrator localhost
perl: symbol lookup error:
/usr/lib/perl5/site_perl/auto/Cyrus/IMAP/IMAP.so: undefined symbol:
Perl_xs_apiversion_bootcheck


I'm running Arch linux, which aggressively updates software packages.
Apparently some Perl upgrade broke cyradm?

3 questions:


1. Does this mean I need to bite the bullet and upgrade my cyrus installs?

2. Is upgrading to 2.5.6 painless?  Should I just wait for 3.0?

3. Is there a workaround for cyradm not working for adding users?  I've
only ever used cyradm and have no idea how to add users otherwise.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus






We use this simple perl script to add users. Fill in appropriate 
username and password.






#!/usr/bin/perl -w
#
use File::Basename;
use IMAP::Admin;

if ( 0 == scalar( @ARGV ) ) {
  die( "\n  Usuage: $0 userid\n");
}


$mailbox = "user.$ARGV[0]";
$username = "";
$password = "";

# Set this to the hostname of your IMAP server
$IMAPSERVER = "localhost";
#

# Main Code
#
# Login to IMAP server
$imap = IMAP::Admin->new('Server' => $IMAPSERVER,
 'Login' => $username,
 'Password' => $password,) || die "no go $! !";

print "Login: " . $imap->error . "\n";

# Add user
$add = $imap->create("$mailbox");

if ($add != 0) {
print "Error: " . $imap->error . "\n";
}
else {
print "$ARGV[0] added.\n";
}


# Close connection
$imap->close;
exit;
<>
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

cyradm: perl: symbol lookup error?

2015-09-16 Thread Patrick Goetz
So, I've been happily avoiding upgrading cyrus imap because everything 
has been working and I'm generally in the "if it ain't broke, don't fix 
it" category.

   Cyrus version: 2.4.17
   Perl version:  5.22.0


However, this morning I tried to create a new user using cyradm and got 
a perl error message:


pgoetz@www:~$ cyradm --user administrator localhost
perl: symbol lookup error: 
/usr/lib/perl5/site_perl/auto/Cyrus/IMAP/IMAP.so: undefined symbol: 
Perl_xs_apiversion_bootcheck


I'm running Arch linux, which aggressively updates software packages. 
Apparently some Perl upgrade broke cyradm?

3 questions:


1. Does this mean I need to bite the bullet and upgrade my cyrus installs?

2. Is upgrading to 2.5.6 painless?  Should I just wait for 3.0?

3. Is there a workaround for cyradm not working for adding users?  I've 
only ever used cyradm and have no idea how to add users otherwise.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: cyradm: perl: symbol lookup error?

2015-09-16 Thread Robert Norris
On Thu, 17 Sep 2015, at 02:33 AM, Patrick Goetz wrote:
> pgoetz@www:~$ cyradm --user administrator localhost perl: symbol
> lookup error: /usr/lib/perl5/site_perl/auto/Cyrus/IMAP/IMAP.so:
> undefined symbol: Perl_xs_apiversion_bootcheck
>
>
> I'm running Arch linux, which aggressively updates software packages.
> Apparently some Perl upgrade broke cyradm?

Perl modules aren't binary-compatible across major releases (the second
number, 22 in your case - Perl versioning is a little odd). If you
recompile Cyrus::IMAP against the new Perl it should all just come back
to life. I haven't done that in isolation before but perl/imap/README
looks correct from what I know of Cyrus and Perl. Give it a try.

Rob N.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus