On 24 Nov 2005, at 4:28 PM, J Moore wrote:

On Wed, Nov 23, 2005 at 10:08:13PM -0600, the unit calling itself J Moore wrote:
I need to set up a POP3 server for a while, and after a quick survey,
akpop3d seemed like a good choice - partly because it supports POP3 via SSL. So I built it from the ports tree (3.8 -stable), and installed it.

I am currently starting from the command line as follows:
# akpop3d -d -s

Attempts to connect result in immediate complaints from the client (I've
tried two of them: Evolution (Linux) and Pegasus (Windoze).

I'm assuming this is due to the fact that I have no cert or key file
installed or generated?

Before I invest any more time in this, I thought I'd ask if anyone else is using akpop3d, what the consensus of opinion is on it, and if there is any documentation on how to generate the .pem (Base64-encoded?) cert
and key files.

Perhaps some fwd progress... got cert & key files installed, but I am
bombing during the authentication process. Following is part of the
debug output from my client. I double-checked the password value, and
it's correct (changed here, but my client's log shows it correctly).

The culprit seems to be the "group not found" error... WTF, O??

23:17:13.312 << 0009 USER jm\0D\0A
23:17:13.359 >> 0005 +OK\0D\0A
23:17:13.359 << 0017 PASS abcdefghij\0D\0A
23:17:13.500 >> 0033 -ERR [SYS/TEMP] group not found\0D\0A
23:17:20.718 << 0006 QUIT\0D\0A
23:17:20.718 18: SSL read error -41 (locus 0, type 0, code 0, 'No data
was read because the remote system closed the connection (recv() == 0)')
--- Connection closed normally at Wed, 23 Nov 2005 23:17:20. ---


Thanks,
Jay



OK, It looks like the port needs some work as it doesn't handle the default group name.

main.c:# define DEFAULT_GROUP_NAME "mail"

It appears that this can be changed with a command line arg.

main.c:      case 'g': group_name = optarg; break;

It looks like the groupname is used as an argument to lock the users mail box.

pop3_session.c.orig:  g_inf = getgrnam("mail");
pop3_session.c.orig:  if (g_inf==NULL) {
pop3_session.c.orig: if (setegid(g_inf->gr_gid)!=0 && real_username [0] == 0) { pop3_session.c.orig: syslog(LOG_ERR,"%s: %u: %s","setegid() failed",g_inf->gr_gid,strerror(errno)); pop3_session.c.orig: if (setgid(g_inf->gr_gid)!=0 && real_username [0] == 0) { pop3_session.c.orig: syslog(LOG_ERR,"%s: %u: %s","setgid() failed",g_inf->gr_gid,strerror(errno)); pop3_session.c.orig: if ((rc=lock_maildrop(maildrop,u_inf- >pw_uid,g_inf->gr_gid))<=0)

yup, it then fchowns the lock file

lock_maildrop.c: fchown(fd,uid,gid);

So I would assume on other unix systems /var/mail is group mail by default, maybe??.

if you want to add  mail  to the /etc/group file

man -k groupadd

groupadd (8) - add a group to the system


Ian McWilliam



Reply via email to