The qpopper list archive ending on 18 Aug 2016


Topics covered in this issue include:

  1. qpopper mysql "sql query fetch row failed ()"
       Fred Krug <fkrug at hpo dot net>
       Tue, 14 Sep 2010 19:41:12 +0900
  2. qpopper mysql -- "sql query fetch row failed ()"
       Fred Krug <fkrug at hpo dot net>
       Tue, 21 Sep 2010 14:45:41 +0900
  3. 
       
       
  4. 
       
       
  5. access contemporaneous
       "Salvatore" <sasa at shoponweb dot it>
       Thu, 26 May 2011 10:12:26 +0200
  6. Re: access contemporaneous
       Randall Gellens <randy at qualcomm dot com>
       Thu, 26 May 2011 15:11:43 -0700
  7. RE: access contemporaneous
       "Salvatore" <sasa at shoponweb dot it>
       Fri, 27 May 2011 10:32:27 +0200
  8. Qpopper 4.1 (released) available
       Randall Gellens <randy at qualcomm dot com>
       Wed, 1 Jun 2011 13:55:15 -0700
  9. Qpopper 4.1 (released) available
       Randall Gellens <randy at qualcomm dot com>
       Wed, 1 Jun 2011 13:55:15 -0700
 10. RE: access contemporaneous
       Randall Gellens <randy at qualcomm dot com>
       Wed, 1 Jun 2011 13:59:13 -0700
 11. Call for Testers
       Doug Hardie <bc979 at lafn dot org>
       Thu, 9 Jun 2011 01:10:49 -0700
 12. ERR SYS/PERM Unable to process From lines
       Keith Christian <keith1christian at gmail dot com>
       Thu, 18 Oct 2012 16:21:33 -0600
 13. Re: ERR SYS/PERM Unable to process From lines
       Randall Gellens <randy at qti dot qualcomm dot com>
       Thu, 18 Oct 2012 21:43:00 -0700
 14. Re: ERR SYS/PERM Unable to process From lines
       Keith Christian <keith1christian at gmail dot com>
       Fri, 19 Oct 2012 09:47:49 -0600
 15. Re: ERR SYS/PERM Unable to process From lines
       Randall Gellens <randy at qti dot qualcomm dot com>
       Fri, 19 Oct 2012 09:52:04 -0700
 16. Re: ERR SYS/PERM Unable to process From lines
       Keith Christian <keith1christian at gmail dot com>
       Fri, 19 Oct 2012 12:13:17 -0600
 17. Re: ERR SYS/PERM Unable to process From lines
       Randall Gellens <randy at qti dot qualcomm dot com>
       Fri, 19 Oct 2012 14:59:19 -0700
 18. Re: ERR SYS/PERM Unable to process From lines
       Keith Christian <keith1christian at gmail dot com>
       Sat, 20 Oct 2012 09:23:03 -0600
 19. Qpopper and IMAP
       Walter Ian Kaye <qpopper-list at natural-innovations dot com>
       Mon, 10 Dec 2012 18:20:40 -0800
 20. Re: Qpopper and IMAP
       jnemeth at victoria dot tc dot ca (John Nemeth)
       Mon, 10 Dec 2012 19:36:56 -0800
 21. Re: Qpopper and IMAP
       Randall Gellens <randy at qti dot qualcomm dot com>
       Wed, 12 Dec 2012 09:48:10 -0800
 22. Best practice to launch standalone?
       Walter Ian Kaye <qpopper-list at natural-innovations dot com>
       Thu, 9 Jan 2014 13:51:59 -0800
 23. Re: Best practice to launch standalone?
       Randall Gellens <randy at qti dot qualcomm dot com>
       Mon, 3 Feb 2014 11:19:15 -0800
 24. APOP works from Mac/Eudora but not iPhone/nPOP
       Walter Ian Kaye <qpopper-list at natural-innovations dot com>
       Thu, 3 Jul 2014 14:13:54 -0700
 25. Re: APOP works from Mac/Eudora but not iPhone/nPOP
       Randall Gellens <randy at qti dot qualcomm dot com>
       Sat, 5 Jul 2014 21:47:18 -0700
 26. TLS negotiation fails
       Walter Ian Kaye <qpopper-list at natural-innovations dot com>
       Thu, 18 Aug 2016 15:06:11 -0700

Date: Tue, 14 Sep 2010 19:41:12 +0900
From: Fred Krug <fkrug at hpo dot net>
Subject: qpopper mysql "sql query fetch row failed ()"

  I have just installed qpopper with the mysql patch on my CentOS server 
and am having a problem querying the database. I've had this working on 
various other linux servers without any problem. If I query the default 
database it works but if I query one of the virtual database it fails.

Qpopper version 4.0.18-mysql-0.16 (standalone)

When I telnet to the default database it works:
telnet localhost 110
popper[26256]: (v4.0.18-mysql-0.16) Servicing request from 
"server.domain.com" at 127.0.0.1+OK ready
User exampleuser
+OK Password required for exampleuser.
Pass examplepass
+OK exampleuser has 0 visible messages (0 hidden) in 0 octets

However, if I telnet to a virtual database it fails:
telnet localhost 110
popper[26256]: (v4.0.18-mysql-0.16) Servicing request from 
"server.domain.com" at 127.0.0.1+OK ready
User exampleuser@differentdomain.com 
<mailto:exampleuser@differentdomain.com>
<21>Sep 14 13:59:54 popper[25647]: exampleuse@differentdomain.com 
<mailto:exampleuse@differentdomain.com>: ERROR: sql query fetch row 
failed (). User may not exist+OK Password required for exampleuse.

The query seems to chop off the last letter of the UserId when I use 
@domain.com

Any advice would much be appreciated.

All the best
Fred

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


Date: Tue, 21 Sep 2010 14:45:41 +0900
From: Fred Krug <fkrug at hpo dot net>
Subject: qpopper mysql -- "sql query fetch row failed ()"

  I have just installed qpopper with the mysql patch on my CentOS 5.5 
server and am having a problem querying the database. I've had this 
working on various other linux servers without any problem. If I query 
the default database it works but if I query one of the virtual database 
it fails.

When I telnet to the default database it works:
telnet localhost 110
popper[26256]: (v4.0.18-mysql-0.16) Servicing request from 
"server.domain.com" at 127.0.0.1+OK ready
User exampleuser
+OK Password required for exampleuser.
Pass examplepass
+OK exampleuser has 0 visible messages (0 hidden) in 0 octets

However, if I telnet to a virtual database it fails:
telnet localhost 110
popper[26256]: (v4.0.18-mysql-0.16) Servicing request from 
"server.domain.com" at 127.0.0.1+OK ready
User exampleuser@differentdomain.com
<21>Sep 14 13:59:54 popper[25647]: exampleuse@differentdomain.com: 
ERROR: sql query fetch row failed () User may not exist+OK Password 
required forexampleuse.
NOTE:Missing letter "r" at the end of UserID.

The query seems to chop off the last letter of the UserId when I use 
@domain.com

**********************************************

Additional information regarding the set up.

-Mysql 5.1.50 tarball
./configure \
--prefix=/usr/local/mysql \
--disable-maintainer-mode \
--with-mysqld-user=mysql \
--with-unix-socket-path=/tmp/mysql.sock \
--without-comment \
--without-debug \
--without-bench

This is the same database that I've been using for years and earlier 
versions of qpopper have always worked.

I inserted a test user/domain.

[QUOTE]mysql> INSERT INTO radcheck (id, UserName, attribute, value, uid, 
gid,domain, alias, is_alias, net_id) VALUES ('999', 'exampleuser', '', 
'test','500', '12', 'differentdomain.com', '', 'no', 'exampleuser');
Query OK, 1 row affected (0.03 sec)[/QUOTE]

When I log on to the database all looks fine:
mysql> select * from radcheck where net_id = 'exampleuser';
+-----+----------+-----------+-------+-----+-----+-------------+-------+----------+---------+
| id  | UserName | attribute | value | uid | gid | domain      | alias | 
is_alias | net_id  |
+-----+----------+-----------+-------+-----+-----+-------------+-------+----------+---------+
| 999 | exampleuser  |               | test  | 500 |  12 | 
differentdomain.com |       | no       | exampleuser |
+-----+----------+-----------+-------+-----+-----+-------------+-------+----------+---------+
1 row in set (0.00 sec)

I granted mailadmin full permission.

[QUOTE]> grant all privileges on radius.* to 'mailadmin'@'localhost' 
identified by 'secret';

 >flush privileges;[/QUOTE]



I download Qpopper qpopper4.0.19.tar.gz (this is the version mysql patch 
was written for) and the patch qpopper3.1.2-mysql-0.1.patch. I patched 
it (no errors) and compiled/made it (no errors).

./configure  \
--with-mysqlconfig=/etc/mysql-popper.conf  \
--enable-mysql  \
--with-mysqllibpath=/usr/local/mysql/lib/mysql  \
--with-mysqlincludepath=/usr/local/mysql/include/mysql  \
--enable-standalone  \
--enable-shy  \
--enable-servermode

This is a copy of mysql-popper.conf
[QUOTE]MysqlAuthHost localhost
MyslAuthPort 3306
MysqlAuthDb radius
MysqlAuthTable radcheck
MysqlAuthUsername mailadmin
MysqlAuthPassword secret
MysqlAuthUsernameField username
MysqlAuthPasswordField value
MysqlAuthDomainField domain
MysqlAuthAliasField alias
AliasField is_alias
MysqlAuthAliasNo no
MysqlAuthPasswordMethod both
MysqlAuthDefaultDomain domain.com
MysqlAuthUIDField uid
MysqlAuthGIDField gid
MysqlAuthUID mail
MysqlAuthGID mail
POP_MAILDIR /var/spool/virtual_mail[/QUOTE]

This set up has always worked for me in the past but it isn't working 
with the new qpopper/patch. As I mentioned, it is chopping the last 
letter off the UserID. I've dug through the logs but couldn't find 
anything that would point me in the right direction. Any advice on how 
to solve this would be greatly appreciated.

All the best
Fred

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






From: "Salvatore" <sasa at shoponweb dot it>
Subject: access contemporaneous
Date: Thu, 26 May 2011 10:12:26 +0200

Hello, on more accounts I have problem because there are log-on contemporary
(ie from PC and from Blackberry), I have this error:

May 24 13:53:59 mail popper[15553]: xxxx at x.x.x.x (x.x.x.x): -ERR [IN-USE]
/var/mail/.xxxx.pop lock busy!  Is another session active? (11)

Is possible resolve this problem ?
Regards.



-
 Salvatore.



Date: Thu, 26 May 2011 15:11:43 -0700
From: Randall Gellens <randy at qualcomm dot com>
Subject: Re: access contemporaneous

At 10:12 AM +0200 5/26/11, Salvatore wrote:

>  Hello, on more accounts I have problem because there are log-on contemporary
>  (ie from PC and from Blackberry), I have this error:
>
>  May 24 13:53:59 mail popper[15553]: xxxx at x.x.x.x (x.x.x.x): -ERR [IN-USE]
>  /var/mail/.xxxx.pop lock busy!  Is another session active? (11)
>
>  Is possible resolve this problem ?
>  Regards.

Hi Salvatore,

Are you using server mode?  That reduces the lock time, which can 
reduce the frequency of getting this error.  But, even when the error 
does occur, the client getting the error should retry and be able to 
get in then because the other client has exited.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
  "I am not a number!
   I am a free numeric variable!"

From: "Salvatore" <sasa at shoponweb dot it>
Subject: RE: access contemporaneous
Date: Fri, 27 May 2011 10:32:27 +0200

"Randall Gellens" wrote:

> Are you using server mode?  That reduces the lock time, which can
> reduce the frequency of getting this error.  But, even when the error
> does occur, the client getting the error should retry and be able to
> get in then because the other client has exited.

Yes, I use qpopper in server mode and not in standalone mode.
How I can reduce further the frequency error ?
Thanks in advance.



-
 Salvatore.






Date: Wed, 1 Jun 2011 13:55:15 -0700
From: Randall Gellens <randy at qualcomm dot com>
Subject: Qpopper 4.1 (released) available

Qpopper 4.1.0 is available at 
<ftp://ftp.qualcomm.com/eudora/servers/unix/popper/>.

The full list of changes is in the distribution.

I apologize for the extended delay in releasing 4.1 and wish to give 
special thanks to all those who contributed and helped.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
A long-forgotten loved one will appear soon.  Buy the negatives
at any price.

Date: Wed, 1 Jun 2011 13:55:15 -0700
From: Randall Gellens <randy at qualcomm dot com>
Subject: Qpopper 4.1 (released) available

Qpopper 4.1.0 is available at 
<ftp://ftp.qualcomm.com/eudora/servers/unix/popper/>.

The full list of changes is in the distribution.

I apologize for the extended delay in releasing 4.1 and wish to give 
special thanks to all those who contributed and helped.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
A long-forgotten loved one will appear soon.  Buy the negatives
at any price.

Date: Wed, 1 Jun 2011 13:59:13 -0700
From: Randall Gellens <randy at qualcomm dot com>
Subject: RE: access contemporaneous

At 10:32 AM +0200 5/27/11, Salvatore wrote:

>  Yes, I use qpopper in server mode and not in standalone mode.
>  How I can reduce further the frequency error ?
>  Thanks in advance.

Hi Salvatore,

Is it the case that only some of your users are getting this error? 
You might want to see how large their mail spools are; larger files 
take more time to process.

Also, are you using caches?  Caches further reduce the time it takes 
Qpopper to initially process the spool.

Finally, when these errors occur, how frequent are they?  I am 
wondering if you might have users who have set their mail client to 
check mail every 60 or 90 seconds or something like that.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
There's only one corner of the universe you can be certain of
improving that's your own self.               --Aldous Huxley

From: Doug Hardie <bc979 at lafn dot org>
Subject: Call for Testers
Date: Thu, 9 Jun 2011 01:10:49 -0700

Qpopper 4.1.0 is now out.  I have a reasonably un-tested port ready for 
testing.  My test machine is currently configured for dovecot because of 
a client who absolutely has to have that.  So it will be a couple of 
weeks before I can try it out.  It compiles fine.  Even APOP now 
compiles.  If you would like to test this, let me know and I will send 
the port files.

Date: Thu, 18 Oct 2012 16:21:33 -0600
Subject: ERR SYS/PERM Unable to process From lines
From: Keith Christian <keith1christian at gmail dot com>

Hi Folks,

Running Qpopper (version 4.1.0) under Red Hat Enterprise 5.x.

We occasionally get these errors for various mailboxes.  Upon
examination, the .mail file has various lines out of place, causing
Qpopper to emit this message:

        -ERR [SYS/PERM] Unable to process From lines (envelopes) in
/home/group_a/user11525/.mail; change recognition mode or check for
corrupted mail drop.

Infrequently, I'll edit out the bad lines and the mailbox is readable
again, but this is too tedious to do on a routine basis.

We saw this in the past with older versions as well, e.g. 4.0.8.

Any suggestions for improving this situation?

Thanks!

Keith

Date: Thu, 18 Oct 2012 21:43:00 -0700
From: Randall Gellens <randy at qti dot qualcomm dot com>
Subject: Re: ERR SYS/PERM Unable to process From lines

Hi Keith,

My guess is that something is stomping on the spool.  Does this seem 
to happen to a set of users in particular?  Are you running in server 
mode?  Do you have other processes that might access the spool (e.g., 
an IMAP server, users accessing the spool directly, etc.)?  Do you 
have fast IO or locking options set?  Are you using an unusual local 
delivery agent?

You might try disabling server mode, more as a diagnostic than a fix, 
to see if that stops it.


At 4:21 PM -0600 10/18/12, Keith Christian wrote:

>  Hi Folks,
>
>  Running Qpopper (version 4.1.0) under Red Hat Enterprise 5.x.
>
>  We occasionally get these errors for various mailboxes.  Upon
>  examination, the .mail file has various lines out of place, causing
>  Qpopper to emit this message:
>
>          -ERR [SYS/PERM] Unable to process From lines (envelopes) in
>  /home/group_a/user11525/.mail; change recognition mode or check for
>  corrupted mail drop.
>
>  Infrequently, I'll edit out the bad lines and the mailbox is readable
>  again, but this is too tedious to do on a routine basis.
>
>  We saw this in the past with older versions as well, e.g. 4.0.8.
>
>  Any suggestions for improving this situation?
>
>  Thanks!
>
>  Keith


-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
A state which owns but one language and one habit is feeble and fragile.
    --King Stephen, founder of the Hungarian state (and a saint).

Date: Fri, 19 Oct 2012 09:47:49 -0600
Subject: Re: ERR SYS/PERM Unable to process From lines
From: Keith Christian <keith1christian at gmail dot com>

On Thu, Oct 18, 2012 at 5:03 PM, Randall Gellens <randy@qti.qualcomm.com> wrote:
> Hi Keith,
>
> My guess is that something is stomping on the spool.  Does this seem to
> happen to a set of users in particular?  Are you running in server mode?  Do
> you have other processes that might access the spool (e.g., an IMAP server,
> users accessing the spool directly, etc.)?  Do you have fast IO or locking
> options set?  Are you using an unusual local delivery agent?
>
> You might try disabling server mode, more as a diagnostic than a fix, to see
> if that stops it.


Hi Randy,

Thanks for your quick reply.

Qpopper is running under Xinetd.  I can't identify any common set of
users whose mailboxes have this problem.  Further, the pattern of the
stray data that corrupts the mail file is not consistent.  Every email
in the .mail file is a MIME encoded attachment if that helps.

A few examples of the corruption reported by Qpopper when a user tries
to log in:

1. Between messages, the end of base64 data usually has a
"---bOuNdArY---" line, a blank line, then the "From " line beginning a
new message.  Usually there is some garbage, e.g. a few stray X-UIDL:
lines between "---bOuNdArY---" and the "From " line, confusing Qpopper
so that it can't find the "From " line.

2. Other times, it appears the block of base64 data isn't completely
written, e.g. some of the final lines of base64 aren't written, nor is
the "---bOuNdArY---" line written, either.  This seemingly incomplete
base64 block is then followed immediately by the "From " line, no
blank line appears.

3.  Or, the header, usually 30 lines, starting with "From " and on
line 30 the first line of base64 data appears, is truncated, with the
introductory lines above the base64 data missing.  You obviously know
this: Those introductory lines in a normal message usually are:

	Content-Type: audio/mp4;
	  name="stuff_stuff_stuff.mp4"
	Content-Disposition: attachment; filename="stuff_stuff_stuff.mp4"
	Content-Transfer-Encoding: Base64
	
	Many-LINES-of-76-character-base64-data-ARE-here
	Many-LINES-of-76-character-base64-data-ARE-here
	Many-LINES-of-76-character-base64-data-ARE-here
	Many-LINES-of-76-character-base64-data-ARE-here
	Many-LINES-of-76-character-base64-data-ARE-here
	Many-LINES-of-76-character-base64-data-ARE-here
	---------------------bOuNdArY-------------------


Hope this explanation helps.


Keith

Date: Fri, 19 Oct 2012 09:52:04 -0700
From: Randall Gellens <randy at qti dot qualcomm dot com>
Subject: Re: ERR SYS/PERM Unable to process From lines

Hi Keith,

It sounds very much like what happens when two processes are trying 
to write the file at the same time, which may result from a failure 
in the locking protocol (e.g., the processes don't agree on the 
locking mechanism).

- Are you running in server mode?

- Do you have other processes that might access the spool (e.g., an 
IMAP server, users accessing the spool directly, etc.)?

- Do you have fast IO or locking options set?

- Did you install your own local delivery agent?

- If you are using server mode, you might try disabling it, more as a 
diagnostic than a fix, to see if that stops the problem.

At 9:47 AM -0600 10/19/12, Keith Christian wrote:

>  On Thu, Oct 18, 2012 at 5:03 PM, Randall Gellens 
> <randy@qti.qualcomm.com> wrote:
>>  Hi Keith,
>>
>>  My guess is that something is stomping on the spool.  Does this seem to
>   > happen to a set of users in particular?  Are you running in 
> server mode?  Do
>>  you have other processes that might access the spool (e.g., an IMAP server,
>>  users accessing the spool directly, etc.)?  Do you have fast IO or locking
>>  options set?  Are you using an unusual local delivery agent?
>>
>>  You might try disabling server mode, more as a diagnostic than a fix, to see
>   > if that stops it.
>
>
>  Hi Randy,
>
>  Thanks for your quick reply.
>
>  Qpopper is running under Xinetd.  I can't identify any common set of
>  users whose mailboxes have this problem.  Further, the pattern of the
>  stray data that corrupts the mail file is not consistent.  Every email
>  in the .mail file is a MIME encoded attachment if that helps.
>
>  A few examples of the corruption reported by Qpopper when a user tries
>  to log in:
>
>  1. Between messages, the end of base64 data usually has a
>  "---bOuNdArY---" line, a blank line, then the "From " line beginning a
>  new message.  Usually there is some garbage, e.g. a few stray X-UIDL:
>  lines between "---bOuNdArY---" and the "From " line, confusing Qpopper
>  so that it can't find the "From " line.
>
>  2. Other times, it appears the block of base64 data isn't completely
>  written, e.g. some of the final lines of base64 aren't written, nor is
>  the "---bOuNdArY---" line written, either.  This seemingly incomplete
>  base64 block is then followed immediately by the "From " line, no
>  blank line appears.
>
>  3.  Or, the header, usually 30 lines, starting with "From " and on
>  line 30 the first line of base64 data appears, is truncated, with the
>  introductory lines above the base64 data missing.  You obviously know
>  this: Those introductory lines in a normal message usually are:
>
>  	Content-Type: audio/mp4;
>  	  name="stuff_stuff_stuff.mp4"
>  	Content-Disposition: attachment; filename="stuff_stuff_stuff.mp4"
>  	Content-Transfer-Encoding: Base64
>
>  	Many-LINES-of-76-character-base64-data-ARE-here
>  	Many-LINES-of-76-character-base64-data-ARE-here
>  	Many-LINES-of-76-character-base64-data-ARE-here
>  	Many-LINES-of-76-character-base64-data-ARE-here
>  	Many-LINES-of-76-character-base64-data-ARE-here
>  	Many-LINES-of-76-character-base64-data-ARE-here
>  	---------------------bOuNdArY-------------------
>
>
>  Hope this explanation helps.
>
>
>  Keith


-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
Language is a virus from outer space.  --William S. Burroughs

Date: Fri, 19 Oct 2012 12:13:17 -0600
Subject: Re: ERR SYS/PERM Unable to process From lines
From: Keith Christian <keith1christian at gmail dot com>

On Fri, Oct 19, 2012 at 10:52 AM, Randall Gellens
<randy@qti.qualcomm.com> wrote:
> Hi Keith,
>
> It sounds very much like what happens when two processes are trying to write
> the file at the same time, which may result from a failure in the locking
> protocol (e.g., the processes don't agree on the locking mechanism).
>
> - Are you running in server mode?
>
> - Do you have other processes that might access the spool (e.g., an IMAP
> server, users accessing the spool directly, etc.)?
>
> - Do you have fast IO or locking options set?
>
> - Did you install your own local delivery agent?
>
> - If you are using server mode, you might try disabling it, more as a
> diagnostic than a fix, to see if that stops the problem.
>

Hi Randy,

1 - No, not running in server mode - Qpopper is invoked by xinetd.

2 - Nothing else should access the spool.  Occasionally group users
that share a mailbox log in to check mail but there is always a pop
lock error at that time, so I assume the lock should prevent a
problem?

3 - Fast I/O / Locking options - do you mean at a hardware level (e.g. RAID?)

4 - I have a procmailrc file that directs the delivery into the user's
home directory as ".mail"


Keith

Date: Fri, 19 Oct 2012 14:59:19 -0700
From: Randall Gellens <randy at qti dot qualcomm dot com>
Subject: Re: ERR SYS/PERM Unable to process From lines

Hi Keith,

Server mode is an option in Qpopper that is independent of how it is 
invoked.  It controls certain behavior regarding copying of spool 
files.  Similarly, fast IO is another Qpopper option.  These options 
can be set at configure or compile time, or at run time using 
command-line flags or system-wide or per-user configuration files. 
The Qpopper Administrator's Guide has much more detailed descriptions 
of these options.  My suggestion would be to try explicitly turning 
these off using command-line flags or preferably (because it happens 
later) a system-wide configuration file, and see if the problem still 
occurs.

At 12:13 PM -0600 10/19/12, Keith Christian wrote:

>  On Fri, Oct 19, 2012 at 10:52 AM, Randall Gellens
>  <randy@qti.qualcomm.com> wrote:
>>  Hi Keith,
>>
>>  It sounds very much like what happens when two processes are trying to write
>>  the file at the same time, which may result from a failure in the locking
>>  protocol (e.g., the processes don't agree on the locking mechanism).
>>
>>  - Are you running in server mode?
>>
>>  - Do you have other processes that might access the spool (e.g., an IMAP
>>  server, users accessing the spool directly, etc.)?
>>
>>  - Do you have fast IO or locking options set?
>>
>>  - Did you install your own local delivery agent?
>>
>>  - If you are using server mode, you might try disabling it, more as a
>>  diagnostic than a fix, to see if that stops the problem.
>>
>
>  Hi Randy,
>
>  1 - No, not running in server mode - Qpopper is invoked by xinetd.
>
>  2 - Nothing else should access the spool.  Occasionally group users
>  that share a mailbox log in to check mail but there is always a pop
>  lock error at that time, so I assume the lock should prevent a
>  problem?
>
>  3 - Fast I/O / Locking options - do you mean at a hardware level (e.g. RAID?)
>
>  4 - I have a procmailrc file that directs the delivery into the user's
>  home directory as ".mail"
>
>
>  Keith


-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
Average estimated salary, in 2005 dollars, of the dads on the 10 top-
rated TV shows of the 1950s: $77,000; average for dads on the 2005 10
top-rated TV shows: $207,000.     (from Harper's Index 11/05)

Date: Sat, 20 Oct 2012 09:23:03 -0600
Subject: Re: ERR SYS/PERM Unable to process From lines
From: Keith Christian <keith1christian at gmail dot com>

On Fri, Oct 19, 2012 at 3:59 PM, Randall Gellens <randy@qti.qualcomm.com> wrote:
> Hi Keith,
>
> Server mode is an option in Qpopper that is independent of how it is
> invoked.  It controls certain behavior regarding copying of spool files.
> Similarly, fast IO is another Qpopper option.  These options can be set at
> configure or compile time, or at run time using command-line flags or
> system-wide or per-user configuration files. The Qpopper Administrator's
> Guide has much more detailed descriptions of these options.  My suggestion
> would be to try explicitly turning these off using command-line flags or
> preferably (because it happens later) a system-wide configuration file, and
> see if the problem still occurs.


Aha, these settings are in the qpopper.cfg file.....I'll look at the
Admin guide.  Currently, fast-update is commented out (will check the
Admin guide to see what the default for this is) and "server-mode" is
true.

Thanks again for the feedback.

Keith

Date: Mon, 10 Dec 2012 18:20:40 -0800
From: Walter Ian Kaye <qpopper-list at natural-innovations dot com>
Subject: Qpopper and IMAP

I want to add an IMAP server but I don't want to disrupt Qpopper.

Can I set up Dovecot IMAP/POP3 without using its POP3?
Or would I have to use a different IMAP server? Any recommendations?

Running FreeBSD and Webmin.

thanks,
-Walter

From: jnemeth at victoria dot tc dot ca (John Nemeth)
Date: Mon, 10 Dec 2012 19:36:56 -0800
Subject: Re: Qpopper and IMAP

On May 2, 12:56pm, Walter Ian Kaye wrote:
}
} I want to add an IMAP server but I don't want to disrupt Qpopper.
} 
} Can I set up Dovecot IMAP/POP3 without using its POP3?
} Or would I have to use a different IMAP server? Any recommendations?

     The problem comes in when somebody tries to access the same
mailbox simultaneously using both protocols.  This can easily happen if
somebody happens to leave an MUA running on one computer and then tries
to look at their mail from a different computer.  For this situation,
you need make sure that both servers respect each other's locking,
otherwise the mailbox is likely to get corrupted.  This means that it
is often better if the two belong to the same package.

}-- End of excerpt from Walter Ian Kaye

Date: Wed, 12 Dec 2012 09:48:10 -0800
From: Randall Gellens <randy at qti dot qualcomm dot com>
Subject: Re: Qpopper and IMAP

At 6:20 PM -0800 12/10/12, Walter Ian Kaye wrote:

>  I want to add an IMAP server but I don't want to disrupt Qpopper.
>
>  Can I set up Dovecot IMAP/POP3 without using its POP3?
>  Or would I have to use a different IMAP server? Any recommendations?

Many people run Qpopper with an IMAP server.  If you choose UW's IMAP 
server, there are options you can set in Qpopper to ignore the 
special state messages that UW IMAP puts in the mail box.

As long as the IMAP server, Qpopper, and the local delivery agent all 
lock the mail spool, it should be fine.  You always have the issue 
that the local delivery agent needs to lock the mail spool in a way 
noticed by the mail access server (e.g., Qpopper), and most of the 
time it works fine out-of-the-box.  So, it's the same when running 
two mail access servers.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
A logician saves the life of a space alien and is rewarded with
an offer to answer any question.  After a thought he asks: What
is the best question to ask and the correct answer to it?  After
a brief panic the alien consults her computer and says: The best
question to ask is the one you just did and the correct answer
to it is the one I gave.

Date: Thu, 9 Jan 2014 13:51:59 -0800
From: Walter Ian Kaye <qpopper-list at natural-innovations dot com>
Subject: Best practice to launch standalone?

Is there a preferred way to launch/autolaunch Qpopper?

A web search turned up suggestions like "just write a shell script" 
and the following:

    #!/bin/sh
    case "$1" in
    start)
    /usr/local/libexec/qpopper
    ;;
    stop)
    killall qpopper
    ;;
    *)
    echo "Usage: $(basename $0) (start|stop)" >&2
    ;;

# chmod a+x /usr/local/etc/rc.d/qpopper.sh

Should I use that?

thanks,
-Walter

Date: Mon, 3 Feb 2014 11:19:15 -0800
From: Randall Gellens <randy at qti dot qualcomm dot com>
Subject: Re: Best practice to launch standalone?

Hi Walter,

The "preferred" was of launching Qpopper in standalone mode is 
usually whatever method is common on the environment you're using. 
For example, on systems that use launchd, a launchd script is the 
usual way.  You can always copy the script used to launch some other 
similar service.

Note that, whichever method you use, you normally want to pass the 
command line options using it.  For example, to set a configuration 
file, non-default port, etc.


At 1:51 PM -0800 1/9/14, Walter Ian Kaye wrote:

>  Is there a preferred way to launch/autolaunch Qpopper?
>
>  A web search turned up suggestions like "just write a shell script" 
> and the following:
>
>     #!/bin/sh
>     case "$1" in
>     start)
>     /usr/local/libexec/qpopper
>     ;;
>     stop)
>     killall qpopper
>     ;;
>     *)
>     echo "Usage: $(basename $0) (start|stop)" >&2
>     ;;
>
>  # chmod a+x /usr/local/etc/rc.d/qpopper.sh
>
>  Should I use that?
>
>  thanks,
>  -Walter


-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
Waiter: "Tea or coffee, gentlemen?"
1st customer: "I'll have tea."
2nd customer: "Me, too -- and be sure the glass is clean!"
        (Waiter exits, returns)
Waiter: "Two teas.  Which one asked for the clean glass?"

Date: Thu, 3 Jul 2014 14:13:54 -0700
From: Walter Ian Kaye <qpopper-list at natural-innovations dot com>
Subject: APOP works from Mac/Eudora but not iPhone/nPOP

My server is running Qpopper version 4.0.9 (standalone).

Since Apple's iOS mail client doesn't support APOP, I purchased nPOP 
from the App Store. I entered the same settings as in Eudora, but I 
get errors.

I also noticed I couldn't change the password from within Eudora, 
which I used to be able to do; it gives a lost connection error.


How do I get things working properly?*
*connect from iOS (and change password from Mac)


thanks,
-Walter

Date: Sat, 5 Jul 2014 21:47:18 -0700
From: Randall Gellens <randy at qti dot qualcomm dot com>
Subject: Re: APOP works from Mac/Eudora but not iPhone/nPOP

Hi Walter,

At 2:13 PM -0700 7/3/14, Walter Ian Kaye wrote:

>  My server is running Qpopper version 4.0.9 (standalone).

Version 4.1 has a number of significant improvements, so you might 
consider upgrading (although I don't think this has anything to do 
with what you're reporting).

>
>  Since Apple's iOS mail client doesn't support APOP, I purchased 
> nPOP from the App Store. I entered the same settings as in Eudora, 
> but I get errors.

Have you tried enabling debug logging in Qpopper (at least for your 
account) to see the errors from the server's point of view?  I'd 
suggest that as a starting point.


>  I also noticed I couldn't change the password from within Eudora, 
> which I used to be able to do; it gives a lost connection error.

Do you have the Qpopper password change daemon configured?  Is it 
generating any errors?  Are you allowing the connection?

>
>
>  How do I get things working properly?*
>  *connect from iOS (and change password from Mac)
>
>
>  thanks,
>  -Walter


-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly selected tag: ---------------
Whatever is only almost true is quite false, and among the most
dangerous of errors, because being so near truth, it is the more
likely to lead astray.

Date: Thu, 18 Aug 2016 15:06:11 -0700
From: Walter Ian Kaye <qpopper-list at natural-innovations dot com>
Subject: TLS negotiation fails

I migrated (mostly) to a new server in AWS EC2 VPC running FreeBSD 
10.3 and installed the latest Qpopper.

I set up my .pem files (first I tried self-signed; now I'm using 
Let's Encrypt) but I'm getting error 20, unable to get local issuer 
certificate.

I hear the general advice that a CA root file needs to be referenced, 
but I don't see any options for that in the config file, so I'm lost.


Help?

Last updated on 18 Aug 2016 by Pensive Mailing List Admin