Claudio Saavedra V. | 2 Oct 00:43 2004
Picon

forcing server to send the BYE message.

Hi all.

I am writing a client for the cyrus-imap server, and i am dealing with
the autologout feature of the client, so to run my test cases i need the
server to logout and send the

* BYE idle for too long

message faster than the default and minimun 30 minutes (because if
running a test case each 30 minutes, i will finish coding next year).

How can i *force* the server to send that message?

Many thanks, 

Claudio

PD: if anyone care about a cyrus administrative client,
http://gyrus.gnome.cl <-

--

-- 
Claudio Saavedra V. <csaavedra <at> alumnos.utalca.cl>
Ken Murchison | 2 Oct 01:53 2004

Re: forcing server to send the BYE message.

Claudio Saavedra V. wrote:
> Hi all.
> 
> I am writing a client for the cyrus-imap server, and i am dealing with
> the autologout feature of the client, so to run my test cases i need the
> server to logout and send the
> 
> * BYE idle for too long
> 
> message faster than the default and minimun 30 minutes (because if
> running a test case each 30 minutes, i will finish coding next year).
> 
> How can i *force* the server to send that message?

Create a <configdir>/msg/shutdown file with some text.  As soon as a 
non-admin logs in they will get a * BYE [ALERT]

--

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Claudio Saavedra V. | 2 Oct 02:33 2004
Picon

Re: forcing server to send the BYE message.

On Fri, 2004-10-01 at 19:53, Ken Murchison wrote:
> Claudio Saavedra V. wrote:
> > Hi all.
> > 
> > I am writing a client for the cyrus-imap server, and i am dealing with
> > the autologout feature of the client, so to run my test cases i need the
> > server to logout and send the
> > 
> > * BYE idle for too long
> > 
> > message faster than the default and minimun 30 minutes (because if
> > running a test case each 30 minutes, i will finish coding next year).
> > 
> > How can i *force* the server to send that message?
> 
> Create a <configdir>/msg/shutdown file with some text.  As soon as a 
> non-admin logs in they will get a * BYE [ALERT]

Yeah, i already try that (but with a admin user, because thats what i
need) but didn't work. Now i understand why.

Is there any other way to do it, but logging out admins?

> 
info-cyrus | 2 Oct 03:02 2004

I have no INBOX!


Hello.

I'm setting up an email server for a friend, using Postfix, Cyrus-IMAP,
MySQL, Cyrus-SASL and Web-CyrAdm.  (I read the HowTo)

Mostly everything works right, but I needed mailboxes to be created
automatically, so I patched Cyrus-Imap with the AutoCreate patch, and set
the needed config files.  I can now use SMTP/POP3/IMAP to access the
virtual accounts in MySQL.  I can even use my IMAP client (Opera) to
create folders... however, SquirrelMail can't.

SquirrelMail is configured for Cyrus with the 'usehierarchysep: yes'
option.

So I fired up imtest to see if this is a Squirrel problem or an IMAP
problem:

imtest -u azz.domain.com -a azz.domain.com localhost

After putting in my password, I list my mailboxes...

. list * *
* LIST (\HasNoChildren) "."" "user.azz^domain^com"
. OK Completed (0.000 secs 2 calls)

But I can't do this (what Squirrel is trying to do)...

. select "INBOX"
. NO Invalid mailbox name
(Continue reading)

Aristotelis | 2 Oct 11:33 2004
Picon

Re: I have no INBOX!

On Fri, 1 Oct 2004 info-cyrus <at> stephenamadei.com wrote:

> Hello.

    Hi!

   Which version of cyrus are you using?

> imtest -u azz.domain.com -a azz.domain.com localhost

   Your username is azz.domain.com ??

>
> After putting in my password, I list my mailboxes...
>
> . list * *
> * LIST (\HasNoChildren) "."" "user.azz^domain^com"
> . OK Completed (0.000 secs 2 calls)

  Could you do the same while using telnet localhost 143
and then the list command.

    Actually this is strange. If you had unixhiersep
enabled in cyrus the inbox should be user/azz.domain.com
in the list output. However the internal format should
be user.azz^domain^com.

   Furthermore you could also paste the log lines from
the logfile during the execution of autocreate patch
in order to see what autocreate patch is creating.
(Continue reading)

Simon Matter | 2 Oct 14:32 2004

Re: Cyrus fails delivery after over quota

> Simon,
> After changing to the recommended lmtp socket, the same problem still
> occurs when a user in the alias is over quota ...

I was searching some archives for this problem and it seems to be a known
postfix problem.
First one correction to my previous post. If you want to use sinlge
instance store, you have to use
local_transport = lmtp:unix:/var/lib/imap/socket/lmtp
in postfix main.cf. This will however disable alias processing.
Now your problem comes from the way how postfix processes aliases. See
http://www.irbs.net/internet/postfix/0307/1304.html
Looks like you have to use virtual aliases for this to work.

Simon

>
>
> Sep 30 16:42:57 chipmunk lmtpunix[18325]: append_check() of
> 'user.kyriakos' failed (Over quota)
> Sep 30 16:42:58 chipmunk postfix/lmtp[18326]: 5FAF549C01A:
> to=<kyriakos <at> cabm.rutgers.edu>, orig_to=<all_cabm <at> cabm.rutgers.edu>,
> relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=8,
> status=deferred (host /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]
> said: 452 4.2.2 Over quota (in reply to RCPT TO command))
> Sep 30 16:43:02 chipmunk master[18330]: about to exec
> /usr/lib/cyrus-imapd/imapd
> Sep 30 16:43:02 chipmunk imaps[18161]: accepted connection
> Sep 30 16:43:02 chipmunk imaps[18330]: executed
>
(Continue reading)

Ken Murchison | 2 Oct 15:26 2004

Re: forcing server to send the BYE message.

Claudio Saavedra V. wrote:

> On Fri, 2004-10-01 at 19:53, Ken Murchison wrote:
> 
>>Claudio Saavedra V. wrote:
>>
>>>Hi all.
>>>
>>>I am writing a client for the cyrus-imap server, and i am dealing with
>>>the autologout feature of the client, so to run my test cases i need the
>>>server to logout and send the
>>>
>>>* BYE idle for too long
>>>
>>>message faster than the default and minimun 30 minutes (because if
>>>running a test case each 30 minutes, i will finish coding next year).
>>>
>>>How can i *force* the server to send that message?
>>
>>Create a <configdir>/msg/shutdown file with some text.  As soon as a 
>>non-admin logs in they will get a * BYE [ALERT]
> 
> 
> Yeah, i already try that (but with a admin user, because thats what i
> need) but didn't work. Now i understand why.
> 
> Is there any other way to do it, but logging out admins?

If you *have* to do this as an admin, then edit out the admin check 
where we checkl for a shutdown file at the top of cmdloop().
(Continue reading)

EISELE Pascal | 2 Oct 16:05 2004

Bug or problem with alias+forward thourght lmtp

Hi,

I'm using postfix+cyrus+ldap. I've created a mail adress "test <at> mydomain" 
which is forwared another <at> anotherdomain.
When I send a mail to test <at> mydomain, there is no problem.
When I setup an alias (/etc/aliases) :
corailtest: testuser, admin, peisele
Then I send a mail to corailtest <at> mydomain. The mail is recevied by admin 
(not forwared) and peisele (not forwared) but not by another <at> anotherdomain.
Here is the logs :

Oct  1 16:05:04 localhost postfix/smtpd[6532]: connect from 
unknown[192.168.0.59]
Oct  1 16:05:04 localhost postfix/smtpd[6532]: 81AF1439A5: 
client=unknown[192.168.0.59], sasl_method=PLAIN, 
sasl_username=peisele <at> corail.appligos.com
Oct  1 16:05:04 localhost postfix/cleanup[6544]: 81AF1439A5: 
message-id=<415D640F.8080505 <at> appligos.com>
Oct  1 16:05:04 localhost postfix/smtpd[6532]: disconnect from 
unknown[192.168.0.59]
Oct  1 16:05:04 localhost amavis[6041]: (06041-10) ESMTP::10024 
/var/lib/amavis/amavis-20041001T150955-06041: <peisele <at> appligos.com> -> 
<corailtest <at> appligos.com> Received: SIZE=10969 from corail.appligos.com 
([127.0.0.1]) by localhost (corail [127.0.0.1]) (amavisd-new, port 
10024) with ESMTP id 06041-10 for <corailtest <at> appligos.com>; Fri,  1 Oct 
2004 16:05:04 +0200 (CEST)
Oct  1 16:05:04 localhost amavis[6041]: (06041-10) Checking: 
<peisele <at> appligos.com> -> <corailtest <at> appligos.com>
Oct  1 16:05:04 localhost amavis[6041]: (06041-10) Clam Antivirus-clamd 
FAILED - unknown status: 
(Continue reading)

info-cyrus | 3 Oct 01:32 2004

Re: I have no INBOX!

On Sat, 2 Oct 2004, Aristotelis wrote:

>    Which version of cyrus are you using?

Cyrus: 2.2.8 with the autocreate patch 0.2 for 2.2.7.  (Its supposed to be
good for 2.2.8, and it patched without errors).

> > imtest -u azz.domain.com -a azz.domain.com localhost
>
>    Your username is azz.domain.com ??

No, not really, I just changed the domain in this email to protect the
innocent.  In real life, I am testing with the correct domain.

However, the test users are things like azz, asd, zxc, qwe... quick to
type.

We need virtual domains with virtual users... all users are in MySQL.

> >
> > After putting in my password, I list my mailboxes...
> >
> > . list * *
> > * LIST (\HasNoChildren) "."" "user.azz^domain^com"
> > . OK Completed (0.000 secs 2 calls)
>
>   Could you do the same while using telnet localhost 143
> and then the list command.

Yep.  Same thing.
(Continue reading)

Aristotelis | 3 Oct 02:37 2004
Picon

Re: I have no INBOX!

On Sat, 2 Oct 2004 info-cyrus <at> stephenamadei.com wrote:

> Doing the list with this new user actually gave me 4 subfolders, as my
> config is designed... oddly, when I created the INBOX for 'azz' via POP
> last night, it only created one root mailbox.
>
> Still looking for any ideas.

   Ok you said the magic word. POP :))). Actually there is a small bug
on the pop autocreate patch that has to do with unixhiersep and 
usernames having '.' in them. Someone else had this problem and I
have already a patch that fixes this (hopefully) and I have sent
it over to him to do some more testing on his own environment, and
I'm still waiting the final ok (that nothing else is broken for
example) so i haven't yet released it. (Actually I don't think that
the patch causes any other problems, but as usual I'm waiting from
some feedback from testing on another environment).
   Anyhow, I would be glad to sent you this version of the autocreate
patch so that you can use it. Just email me and I'll do it 2morrow
morning

   Best regards
    Aristotelis
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Gmane