Casco Bucci | 1 Dec 14:53 2011
Picon
Picon

Re: transferring folder subscriptions?

On Mon, 28 Nov 2011 11:25:47 +0100
oni-neko <at> gmx.net wrote:

> Good Day!
> 
> I'm sorry, if this is written somewhere else already, if so, please just point me in the direction =)
> 
> My problem is this: I have a working squirrelmail 1.4.20 on an Ubuntu 10.04.3 LTS, imap is working nicely,
imapsync (to transfer all the old stuff from the old server) is working nicely as well. But when i log in, all
the Folders are unsubscribed. =(
> is there a way to transfer, which folders a user has subscribed in their squirrelmail? 
> the only files i found (on the old server), that were not mails or folders for mails, were cyrus.cache,
cyrus.header and cyrus.index.
> on the new server, when i log in and subscribe, a file called subscriptions is generated, so yeah, that's
rather clear. 
> 

Good day.

Not sure which version of IMAPSync you're using.  However, newer
versions do synchronize the subscribed status of cloned folders
(unless you tell it not to).

Latest IS version is 1.468.

--

-- 
Casco

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
(Continue reading)

Tomas Kuliavas | 2 Dec 05:31 2011
Picon
Picon

Re: Address Book not working - LDAP & Active Directory

2011.11.30 00:13 Deee Veeee rašė:
> Hello, and thanks in advance for looking at this for me.
>  
> I have two configurations, one unsecure and the other encrypting LDAP
> traffic between my email and Active Directory servers using SASL and TLS. 
> The issue I'm experiencing is occurring with the secure server in regard
> to the Address Book.  I am attempting to connect to an Active Directory
> server to perform address lookups, but it appears as though the request is
> not being sent from the server.  I am capturing packets between my secure
> server and my Active Directory server, and when I log into Squirrelmail I
> see the authentication packets between my servers, but when I attempt to
> search for addresses no packets are being transmitted.  I have performed
> an ldapsearch from the secure server to the Active Directory server and
> everything works perfectly, and since I can log into squirrelmail using
> Active Directory accounts I know both servers are configured correctly. 
> My only assumption is the configuration of my Address Book is not proper. 
> If I
>  perform the same lookup using the unsecured server lookups run properly
> and I see packets transmitted between the servers.

SquirrelMail 1.4.x does not check ldap connectivity in configtest.

See ldap connectivity test script in
http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/contrib/test_ldap.phps?view=log
or use sample from http://www.php.net/ldap.examples-basic

Check if LDAP address book is listed when you search for address. You
can't see LDAP address book entries in main address book listing. They are
displayed only when user searches for something.

(Continue reading)

Grant | 8 Dec 01:59 2011
Picon

smtps 465 works, submission 587 does not

Squirrelmail runs on the same machine as postfix and sends mail fine
when postfix is configured for smtps 465.  I read smtps is deprecated
so I switched postfix to submission 587 and changed the port in
squirrelmail's config but squirrelmail will no longer send mail.
Thunderbird sends mail fine over port 465 or 587.  In squirrelmail I
get:

ERROR:
Message not sent. Server replied:
0 Can't open SMTP stream.

In the postfix log I get:

[postfix/smtpd] connect from localhost[127.0.0.1]
[postfix/smtpd] lost connection after UNKNOWN from localhost[127.0.0.1]
[postfix/smtpd] disconnect from localhost[127.0.0.1]

Does anyone know how to fix this?

- Grant

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
(Continue reading)

Noel Butler | 8 Dec 02:15 2011
Picon

Re: smtps 465 works, submission 587 does not

On Wed, 2011-12-07 at 16:59 -0800, Grant wrote:
Squirrelmail runs on the same machine as postfix and sends mail fine when postfix is configured for smtps 465. I read smtps is deprecated so I switched postfix to submission 587 and changed the port in squirrelmail's config but squirrelmail will no longer send mail. Thunderbird sends mail fine over port 465 or 587. In squirrelmail I get: ERROR: Message not sent. Server replied: 0 Can't open SMTP stream. In the postfix log I get: [postfix/smtpd] connect from localhost[127.0.0.1] [postfix/smtpd] lost connection after UNKNOWN from localhost[127.0.0.1] [postfix/smtpd] disconnect from localhost[127.0.0.1] Does anyone know how to fix this?

You haven't shown us much information... What are your settings for SMTP?
Are you using TLS?  If so, have you verified thunderbird (postfix) works with TLS or is actually really only working in plain.
What are your requirements for 587 in postfix, in smtpd_recipient_restrictions?


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Grant | 8 Dec 02:59 2011
Picon

Re: smtps 465 works, submission 587 does not

> Squirrelmail runs on the same machine as postfix and sends mail fine
> when postfix is configured for smtps 465.  I read smtps is deprecated
> so I switched postfix to submission 587 and changed the port in
> squirrelmail's config but squirrelmail will no longer send mail.
> Thunderbird sends mail fine over port 465 or 587.  In squirrelmail I
> get:
>
> ERROR:
> Message not sent. Server replied:
> 0 Can't open SMTP stream.
>
> In the postfix log I get:
>
> [postfix/smtpd] connect from localhost[127.0.0.1]
> [postfix/smtpd] lost connection after UNKNOWN from localhost[127.0.0.1]
> [postfix/smtpd] disconnect from localhost[127.0.0.1]
>
> Does anyone know how to fix this?

I just read that squirrelmail doesn't work with STARTTLS.  Is
deprecated SSL port 465 the only way to connect securely to a mail
server with squirrelmail?

> You haven't shown us much information... What are your settings for SMTP?

Here are my postfix settings.

master.cf:

submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

main.cf

smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =

smtpd_recipient_restrictions =
       permit_sasl_authenticated,
       permit_mynetworks,
       reject_unauth_destination,
       permit

postscreen_greet_action = enforce
postscreen_pipelining_enable = yes
postscreen_pipelining_action = enforce
postscreen_non_smtp_command_enable = yes
postscreen_non_smtp_command_action = enforce
postscreen_bare_newline_enable = yes
postscreen_bare_newline_action = enforce

smtpd_tls_security_level = may
smtpd_tls_auth_only = yes

> Are you using TLS?  If so, have you verified thunderbird (postfix) works
> with TLS or is actually really only working in plain.

I have thunderbird set to "Port: 587" and "Connection Security: STARTTLS".

If I set "Secure SMTP (TLS) : false" in squirrelmail, I get:

Authentication required
530 5.7.0 Must issue a STARTTLS command first

If I change port 587 to 25 in squirrelmail I get:

Bad sequence of commands
503 5.5.1 Error: authentication not enabled

- Grant

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Paul Lesniewski | 8 Dec 05:43 2011

Re: smtps 465 works, submission 587 does not

On Wed, Dec 7, 2011 at 5:59 PM, Grant <emailgrant <at> gmail.com> wrote:
>> Squirrelmail runs on the same machine as postfix and sends mail fine

Is there any reason you need an encrypted connection when sending mail
on the localhost?  This just creates unnecessary overhead and is
usually avoided if the connection is not over public networks.  It's
trivial to add a secondary listener to Postfix's master.cf that
accepts SquirrelMail/localhost-only email submissions unencrypted on
another port.

>> when postfix is configured for smtps 465.  I read smtps is deprecated
>> so I switched postfix to submission 587 and changed the port in
>> squirrelmail's config but squirrelmail will no longer send mail.
>> Thunderbird sends mail fine over port 465 or 587.  In squirrelmail I
>> get:
>>
>> ERROR:
>> Message not sent. Server replied:
>> 0 Can't open SMTP stream.
>>
>> In the postfix log I get:
>>
>> [postfix/smtpd] connect from localhost[127.0.0.1]
>> [postfix/smtpd] lost connection after UNKNOWN from localhost[127.0.0.1]
>> [postfix/smtpd] disconnect from localhost[127.0.0.1]
>>
>> Does anyone know how to fix this?
>
> I just read that squirrelmail doesn't work with STARTTLS.  Is

If you really need it, SquirrelMail version 1.5.2 supports it.

> deprecated SSL port 465 the only way to connect securely to a mail
> server with squirrelmail?

FWIW, although port 465 is deprecated, I'm not sure it (postfix's
smtps service) is going anywhere anytime soon.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Grant | 8 Dec 16:50 2011
Picon

Re: smtps 465 works, submission 587 does not

>>> Squirrelmail runs on the same machine as postfix and sends mail fine
>
> Is there any reason you need an encrypted connection when sending mail
> on the localhost?  This just creates unnecessary overhead and is
> usually avoided if the connection is not over public networks.  It's
> trivial to add a secondary listener to Postfix's master.cf that
> accepts SquirrelMail/localhost-only email submissions unencrypted on
> another port.

Could you show me how to do that?

>>> when postfix is configured for smtps 465.  I read smtps is deprecated
>>> so I switched postfix to submission 587 and changed the port in
>>> squirrelmail's config but squirrelmail will no longer send mail.
>>> Thunderbird sends mail fine over port 465 or 587.  In squirrelmail I
>>> get:
>>>
>>> ERROR:
>>> Message not sent. Server replied:
>>> 0 Can't open SMTP stream.
>>>
>>> In the postfix log I get:
>>>
>>> [postfix/smtpd] connect from localhost[127.0.0.1]
>>> [postfix/smtpd] lost connection after UNKNOWN from localhost[127.0.0.1]
>>> [postfix/smtpd] disconnect from localhost[127.0.0.1]
>>>
>>> Does anyone know how to fix this?
>>
>> I just read that squirrelmail doesn't work with STARTTLS.  Is
>
> If you really need it, SquirrelMail version 1.5.2 supports it.

Got it.  I'm using 1.4.22.

>> deprecated SSL port 465 the only way to connect securely to a mail
>> server with squirrelmail?
>
> FWIW, although port 465 is deprecated, I'm not sure it (postfix's
> smtps service) is going anywhere anytime soon.

Just trying to stay ahead of the sunset. :)

- Grant

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Deee Veeee | 8 Dec 17:05 2011
Picon

Re: Address Book not working - LDAP & Active Directory

Thanks for the response.  I determined the problem was due to php not being configured with ldap.  I'm not sure how that happened as I am using a clone of a virtual machine snapshot I took from the functional email server, but it's working now so all is good.
 
--
 
Dave

From: Tomas Kuliavas <tokul <at> users.sourceforge.net>
To: Deee Veeee <profpcsvcs <at> yahoo.com>; squirrelmail-users <at> lists.sourceforge.net
Sent: Thursday, December 1, 2011 9:31 PM
Subject: Re: [SM-USERS] Address Book not working - LDAP & Active Directory

2011.11.30 00:13 Deee Veeee rašė:
> Hello, and thanks in advance for looking at this for me.
>  
> I have two configurations, one unsecure and the other encrypting LDAP
> traffic between my email and Active Directory servers using SASL and TLS. 
> The issue I'm experiencing is occurring with the secure server in regard
> to the Address Book.  I am attempting to connect to an Active Directory
> server to perform address lookups, but it appears as though the request is
> not being sent from the server.  I am capturing packets between my secure
> server and my Active Directory server, and when I log into Squirrelmail I
> see the authentication packets between my servers, but when I attempt to
> search for addresses no packets are being transmitted.  I have performed
> an ldapsearch from the secure server to the Active Directory server and
> everything works perfectly, and since I can log into squirrelmail using
> Active Directory accounts I know both servers are configured correctly. 
> My only assumption is the configuration of my Address Book is not proper. 
> If I
>  perform the same lookup using the unsecured server lookups run properly
> and I see packets transmitted between the servers.

SquirrelMail 1.4.x does not check ldap connectivity in configtest.

See ldap connectivity test script in
http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/contrib/test_ldap.phps?view=log
or use sample from http://www.php.net/ldap.examples-basic

Check if LDAP address book is listed when you search for address. You
can't see LDAP address book entries in main address book listing. They are
displayed only when user searches for something.

--
Tomas




------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Grant | 8 Dec 17:33 2011
Picon

Attachment directory ownership/permissions

I just ran configtest.php and got:

ERROR: You have configured PHP not to allow short tags
(short_open_tag=off). This shouldn't be a problem with SquirrelMail or
any plugin coded coded according to the SquirrelMail Coding
Guidelines, but if you experience problems with PHP code being
displayed in some of the pages and changing setting to "on" solves the
problem, please file a bug report against the failing plugin. The
correct contact information is most likely to be found in the plugin
documentation.

ERROR: Attachment dir (/var/local/squirrelmail/attach/) does not exist!

Should I bother to change short_open_tag?  It sounds like it's OK.

I'm thinking I should create the attachment directory.  What ownership
and permissions should it have?

- Grant

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Frank Chan | 8 Dec 19:23 2011

Re: Attachment directory ownership/permissions

Check to see if you have spelled the directory path correctly. Also go 
the directory and do a "pwd" to make sure. I mis-spelled it once & got 
that error once.
The permissions should be drwxr-sr-x and the owner should be the same as 
the webserver's.

I hope this helps,
Frank

On 08-12-2011 08:33, Grant wrote:
> I just ran configtest.php and got:
>
> ERROR: You have configured PHP not to allow short tags
> (short_open_tag=off). This shouldn't be a problem with SquirrelMail or
> any plugin coded coded according to the SquirrelMail Coding
> Guidelines, but if you experience problems with PHP code being
> displayed in some of the pages and changing setting to "on" solves the
> problem, please file a bug report against the failing plugin. The
> correct contact information is most likely to be found in the plugin
> documentation.
>
> ERROR: Attachment dir (/var/local/squirrelmail/attach/) does not exist!
>
> Should I bother to change short_open_tag?  It sounds like it's OK.
>
> I'm thinking I should create the attachment directory.  What ownership
> and permissions should it have?
>
> - Grant
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> -----
> squirrelmail-users mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-users <at> lists.sourceforge.net
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
> List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>
>

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Gmane