Hi list! I'm writing because of an issue I'm having with my Postfix-Dovecot installation. Everything's working fine but when an IMAP client is idle for some time, Dovecot automatically logs it out. Jul 26 14:01:16 mail dovecot: imap(nicolas at devels.es): Disconnected: Logged out bytes=1271/7439 This entails errors when trying to send e-mails after this auto logout, such as: host devels.es[91.215.158.237] said: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message. Which result in a very annoying and continuous proccess of restarting my mail client. Is there a way to avoid this auto-logout, or at least configure the time after I want idle clients to auto-logout? Thank you very much! Nicol?s
Am 26.07.2012 15:58, schrieb Nicol?s:> Hi list! > > I'm writing because of an issue I'm having with my Postfix-Dovecot installation. Everything's working fine but when > an IMAP client is idle for some time, Dovecot automatically logs it out. > > Jul 26 14:01:16 mail dovecot: imap(nicolas at devels.es): Disconnected: Logged out bytes=1271/7439 > > This entails errors when trying to send e-mails after this auto logout, such as: > > host devels.es[91.215.158.237] said: > 550-Please turn on SMTP Authentication in your mail client, or login to the > 550-IMAP/POP3 server before sending your message. > > Which result in a very annoying and continuous proccess of restarting my mail client.errors while send messages have really nothing to do with any imap-timeout/logout, these are completly different things! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20120726/db0bda5a/attachment-0004.bin>
FIRST: do not top-post and NOT reply off-list (no i refuse to repair the thread) if he would know that these are different things hewould not write "This entails errors when trying to send e-mails after this auto logout" NO, NO and NO - this entails NOT sending errors! Am 26.07.2012 16:41, schrieb Hans J Albertsson:> Mr Reindl > > Of course Nicolas knows these are different issues! > He wants to know how to avoid the first issue, and merely points out why he desperately wants that fix. > > Skickat fr?n min Samsung Mobil > > Reindl Harald <h.reindl at thelounge.net> skrev: > > > Am 26.07.2012 15:58, schrieb Nicol?s: >> Hi list! >> >> I'm writing because of an issue I'm having with my Postfix-Dovecot installation. Everything's working fine but when >> an IMAP client is idle for some time, Dovecot automatically logs it out. >> >> Jul 26 14:01:16 mail dovecot: imap(nicolas at devels.es): Disconnected: Logged out bytes=1271/7439 >> >> This entails errors when trying to send e-mails after this auto logout, such as: >> >> host devels.es[91.215.158.237] said: >> 550-Please turn on SMTP Authentication in your mail client, or login to the >> 550-IMAP/POP3 server before sending your message. >> >> Which result in a very annoying and continuous proccess of restarting my mail client. > > errors while send messages have really nothing to do with > any imap-timeout/logout, these are completly different > things! >-- Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / CISO / Software-Development p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20120726/b6e8a284/attachment-0004.bin>
El 26/07/2012 15:22, lists-dovecot escribi?:> > ------------ Original Message ------------ >> Date: Thursday, July 26, 2012 02:58:12 PM +0100 >> From: Nicol?s <nicolas at devels.es> >> To: dovecot at dovecot.org >> Subject: [Dovecot] Auto logging-out client >> >> Hi list! >> >> I'm writing because of an issue I'm having with my Postfix-Dovecot >> installation. Everything's working fine but when an IMAP client is >> idle for some time, Dovecot automatically logs it out. >> >> Jul 26 14:01:16 mail dovecot: imap(nicolas at devels.es): >> Disconnected: Logged out bytes=1271/7439 >> >> This entails errors when trying to send e-mails after this auto >> logout, such as: >> >> host devels.es[91.215.158.237] said: >> 550-Please turn on SMTP Authentication in your mail client, >> or login to the >> 550-IMAP/POP3 server before sending your message. >> >> Which result in a very annoying and continuous proccess of >> restarting my mail client. >> >> Is there a way to avoid this auto-logout, or at least configure >> the time after I want idle clients to auto-logout? >> >> Thank you very much! >> >> Nicol?s >> >> >> > I would suggest that you configure the smtp submission port facility > on your mail server and set your imap/pop clients to send that way. > The "pop before sending" approach is a fairly old and broken hack > (including submitting via port 25, which is frequently blocked by > connectivity providers). > > With sendmail the submission port option is basically configured by > default. I don't know about postfix, but I suspect it is there too. > > > > - Richard > > >Thanks for your responses! I just tried configuring the submission port on postfix but the problem persists even sending by port 587. About what Harald said, I guess I initially missed the point of the problem, it was just my conclusion because that error happens always after the logout message appears, and SMTP authentication is set on my client, so I deduced the problem had something to do with the logout thing. The curious thing is it just happens with SMTP, not with POP3/IMAP protocols. Thanks again! Nicol?s
El 27/07/2012 13:37, lists-dovecot escribi?:> > ------------ Original Message ------------ >> Date: Friday, July 27, 2012 12:53:16 PM +0100 >> From: Nicol?s <nicolas at devels.es> >> To: dovecot at dovecot.org >> Subject: Re: [Dovecot] Auto logging-out client >> >> El 26/07/2012 15:22, lists-dovecot escribi?: >>> ------------ Original Message ------------ >>>> Date: Thursday, July 26, 2012 02:58:12 PM +0100 >>>> From: Nicol?s <nicolas at devels.es> >>>> To: dovecot at dovecot.org >>>> Subject: [Dovecot] Auto logging-out client >>>> >>>> Hi list! >>>> >>>> I'm writing because of an issue I'm having with my >>>> Postfix-Dovecot installation. Everything's working fine but when >>>> an IMAP client is idle for some time, Dovecot automatically logs >>>> it out. >>>> >>>> Jul 26 14:01:16 mail dovecot: imap(nicolas at devels.es): >>>> Disconnected: Logged out bytes=1271/7439 >>>> >>>> This entails errors when trying to send e-mails after this auto >>>> logout, such as: >>>> >>>> host devels.es[91.215.158.237] said: >>>> 550-Please turn on SMTP Authentication in your mail client, >>>> or login to the >>>> 550-IMAP/POP3 server before sending your message. >>>> >>>> Which result in a very annoying and continuous proccess of >>>> restarting my mail client. >>>> >>>> Is there a way to avoid this auto-logout, or at least configure >>>> the time after I want idle clients to auto-logout? >>>> >>>> Thank you very much! >>>> >>>> Nicol?s >>>> >>>> >>>> >>> I would suggest that you configure the smtp submission port >>> facility on your mail server and set your imap/pop clients to >>> send that way. The "pop before sending" approach is a fairly old >>> and broken hack (including submitting via port 25, which is >>> frequently blocked by connectivity providers). >>> >>> With sendmail the submission port option is basically configured >>> by default. I don't know about postfix, but I suspect it is there >>> too. >>> >>> >>> >>> - Richard >>> >>> >> Thanks for your responses! >> >> I just tried configuring the submission port on postfix but the >> problem persists even sending by port 587. >> >> About what Harald said, I guess I initially missed the point of >> the problem, it was just my conclusion because that error happens >> always after the logout message appears, and SMTP authentication >> is set on my client, so I deduced the problem had something to do >> with the logout thing. The curious thing is it just happens with >> SMTP, not with POP3/IMAP protocols. >> >> Thanks again! >> >> Nicol?s > You indicate that you configured the submission port, but did you > configure the imap/pop client to use it? I.e., explicitly set/change > the send options on the client, including having it use port 587 and > explicitly giving it the id/pw for authenticating against that > service? > > - Richard > >Hi, Yes, I've changed the config on the client too, but now I'm not 100% sure it's working well. I've just configured a client with SMTP port 587, but the line in the log shows still be using port 25: Jul 27 13:53:31 mail postfix/smtp[27598]: B16EF1008D0: to=<postfixtries at gmail.com>, relay=*devels.es[91.215.158.237]:25*, delay=0.7, delays=0.11/0.08/0.3/0.21, dsn=2.0.0, status=sent (250 OK id=1Suk2y-0003P3-Tq) Is that the correct behavior? Any additional ideas of why could this problem be happening? Thanks so much for your help! Nicol?s
On 26.7.2012, at 16.58, Nicol?s wrote:> I'm writing because of an issue I'm having with my Postfix-Dovecot installation. Everything's working fine but when an IMAP client is idle for some time, Dovecot automatically logs it out. > > Jul 26 14:01:16 mail dovecot: imap(nicolas at devels.es): Disconnected: Logged out bytes=1271/7439IMAP client logs out. Dovecot doesn't automatically do anything. There's no way (even theoretically) to prevent this from Dovecot's side.> This entails errors when trying to send e-mails after this auto logout, such as: > > host devels.es[91.215.158.237] said: > 550-Please turn on SMTP Authentication in your mail client, or login to the > 550-IMAP/POP3 server before sending your message.Your server supports pop3/imap-before-smtp kludge. I'd remove that entirely and require SMTP AUTH always.