PDA

View Full Version : da_vm-pop3d-1.1.7f-T6


DirectAdmin Support
07-14-2004, 03:00 PM
I've just packaged a source rpm for vm-pop3d. For RedHat Users, you can update using:

wget http://files.directadmin.com/services/da_vm-pop3d-1.1.7f-1.src.rpm
rpm -ivh da_vm-pop3d-1.1.7f-1.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -ba vm-pop3d.spec
cd ../RPMS/i386
rpm -Uvh da_vm-pop3d-1.1.7f-1.i386.rpm
service vm-pop3d restart

I don't yet have the FreeBSD ports created, but you can easily update by running:
wget http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
cd da_vm-pop3d-1.1.7f
./configure --prefix=/usr
make
make install
/usr/local/etc/rc.d/vm-pop3d restart
John

MagnuM
07-15-2004, 01:48 AM
Hello, when trying to run rpmbuild -ba vm-pop3d.spec I receive this:

RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/etc/pam.d/vm-pop3d
/usr/man/man8/vm-pop3d.8.gz

What should I do?

P.S. I am running Fedora-Core 1.

skruf
07-15-2004, 05:14 AM
Hey,

I got the same thing... RH 9

Processing files: da_vm-pop3d-debuginfo-1.1.7f-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/da_vm-pop3d-1.1.7f-root
error: Installed (but unpackaged) file(s) found:
/usr/etc/pam.d/vm-pop3d
/usr/man/man8/vm-pop3d.8.gz


RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/etc/pam.d/vm-pop3d
/usr/man/man8/vm-pop3d.8.gz

David

cwallace
07-15-2004, 05:38 AM
I am using Red Hat 9.0 and my upgrade went fine... ?

DirectAdmin Support
07-15-2004, 01:36 PM
I'll have to look into that. You should be able to compile it from source (follow the FreeBSD instructions.. they're the same for RedHat)

John

skruf
07-15-2004, 02:15 PM
Hey,

That compiled OK but... The make install put the new daemon in the wrong place:

Original locations:
/usr/sbin/vm-pop3d
/etc/pam.d/vm-pop3d

After make install:
/usr/local/sbin/vm-pop3d
/usr/local/etc/pam.d/vm-pop3d

I copied the compiled vm-pop3d daemon over to /usr/sbin and restarted and it's running the new one:vm-Pop3d 1.1.7f-T6

The new file in /usr/local/etc/pam.d file looked the same as the old one so I didn't move it.

David

MagnuM
07-16-2004, 02:25 AM
OK, I do the same thing, and the new version it's running good.

What sould I do with this files:

/usr/local/sbin/vm-pop3d
/usr/local/etc/pam.d/vm-pop3d

Can I delete them now, since I have copied them to /usr/bin/ ?

skruf
07-16-2004, 05:05 AM
Hey,

I deleted them without any problems.

I also deleted the tar file and the directory it created "da_vm-pop3d-1.1.7f-T6".

David

DirectAdmin Support
07-19-2004, 04:08 PM
I had a peek in the spec file and the configure line has a prefix value (see first post, updated)

John

Icheb
07-20-2004, 06:25 AM
For future reference, on all systems (but one) it went great, on the system that failed the /var/log/maillog reported that vm-pop3d was unable to bind on the port. After seeing this i got the idea to restart Xinetd (as it already gave more problems in the past), which worked. Although the Xinetd config doesn't indicate it should bind to the pop3 port.
So if anyone else experiences something like this, you can find it with the search on the forum :D

The exact error was:
Jul 20 14:06:12 horus vm-pop3d[14886]: Couldn't bind to socket: Address already
in use

UltimeWWW
07-20-2004, 08:20 AM
Anyone noticed if clients need to use "Use Authentification" when sending emails?

We didn't have to do this before.

Icheb
07-20-2004, 08:30 AM
Originally posted by UltimeWWW
Anyone noticed if clients need to use "Use Authentification" when sending emails?

We didn't have to do this before.

Hmm, popb4smtp is supposed to handle that...

I'll try sending a few mails, after i'm done with moving a few domains (if i don't forget)

deltaned
07-20-2004, 08:49 AM
Originally posted by UltimeWWW
Anyone noticed if clients need to use "Use Authentification" when sending emails?

We didn't have to do this before.

Yes, I update it yesterday and my phone is not stop ringing...
But normaly POP3 does noet have this problem, it is the SMTP what is send out te mail :confused:

Icheb
07-20-2004, 09:16 AM
Originally posted by deltaned
Yes, I update it yesterday and my phone is not stop ringing...
But normaly POP3 does noet have this problem, it is the SMTP what is send out te mail :confused:

Didn't notice it here yet.

All my resellers use their own ISP settings :D
I tested it with a domain, but so far it went alright.
Does the new pop daemon have any problems with popb4smtp or something ?

bclancey
07-20-2004, 04:00 PM
We installed DA on a new server on Sunday (july 18/04)and this morning I also noticed that it is requiring authentication in order for me to send email.
I reviewed the new Exim configuration file, but I could not see any clues in there as to why this behavious has changed.
Since we have a small number of users sending email through the server, having them choose the authentication option is simple. . . . But an extra step.

DirectAdmin Support
07-21-2004, 02:48 PM
Hello,

It looks like they've changed how vm-pop3d logs the logins (more investigating required), which means da-popb4smtp is unable to find the new IP addresses to add them to the /etc/virtual/pophosts file. I'll have to fix that for the next release.

John

vispnoc
07-21-2004, 09:08 PM
I am seeing random threads spike and hold the processor at 98% usage with this version....

CK

vispnoc
07-24-2004, 08:04 PM
Ok, the VM POP problem with high CPU usage is getting VERY VERY BAD. I need some help community:

Last login: Fri Jul 23 22:38:24 2004 from cs68203156-215.houston.rr.com
[root@da01 root]# uptime
21:02:55 up 22:29, 1 user, load average: 14.59, 13.45, 13.48
[root@da01 root]# ps -ax | grep pop
4206 ? S 0:02 /usr/local/directadmin/da-popb4smtp
26094 ? S 0:00 vm-pop3d -d 10 -t 120
14245 ? R 33:41 vm-pop3d -d 10 -t 120
14764 ? R 32:31 vm-pop3d -d 10 -t 120
14807 ? R 31:48 vm-pop3d -d 10 -t 120
14866 ? R 31:28 vm-pop3d -d 10 -t 120
14885 ? R 31:13 vm-pop3d -d 10 -t 120
14927 ? R 31:02 vm-pop3d -d 10 -t 120
15369 ? R 30:29 vm-pop3d -d 10 -t 120
15456 ? R 30:20 vm-pop3d -d 10 -t 120
15689 ? R 30:13 vm-pop3d -d 10 -t 120
15913 ? R 30:06 vm-pop3d -d 10 -t 120
[root@da01 root]# rpm -qa | grep pop
da_vm-pop3d-1.1.7f-1
popt-1.8.1-0.30
[root@da01 root]# uname -a
Linux XXXXX 2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST 2003 i686 i686 i386 GNU/Linux
[root@da01 root]#
101 processes: 81 sleeping, 15 running, 5 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0%
Mem: 1024572k av, 981708k used, 42864k free, 0k shrd, 66696k buff
606456k active, 296196k inactive
Swap: 2096472k av, 28420k used, 2068052k free 254488k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
26094 root 16 0 552 512 492 S 99.2 0.0 314:52 0 vm-pop3d

FYI: I have had to restart pop and/or the entire server about 7 times in the last 3 hours because of this problem.

113345
08-15-2004, 04:21 PM
The "./configure --prefix=/usr" is not working for FreeBSD, the executable will then be placed in /usr/sbin.
It should be "./configure --prefix=/usr/local" or the --prefix should not be used at all.

DigitalMinds
08-17-2004, 09:37 PM
Versions 1.1.7e and 1.1.7f-T6 both appear to have timing issue that was not in version 1.1.6. Some of my clients are experiencing issues getting their email via their Windows PDAs. Palm PDAs work just fine along with all other email clients.

My client finally found article of another user having the same issue and fixed the issue by recompiling 1.1.6 code in with the 1.1.7e code per the link below:


http://www.wcug.wwu.edu/~reed/lists/vm-pop3d-users/msg00954.html

John, is this something you can fix in upcoming release of vm_pop3d or can you post the link for 1.1.6 rpm or source so I can get these clients working?

Thanks,

Michael Bush

skruf
08-19-2004, 08:19 PM
Hey,

http://www.reedmedia.net/software/virtualmail-pop3d/

There's a couple of mail lists there as well...

David

interfasys
08-21-2004, 06:13 PM
Isn't 1.1.7f-T6 a beta version?

DigitalMinds
08-21-2004, 08:12 PM
Yes.

1.1.7f-T6 is beta

1.1.6 is the current stable version. I went back to 1.1.6 and now Windows PDA's are able to get their email.

Michael Bush

DigitalMinds
10-13-2004, 11:24 PM
John:

What is the status of a fix for vm-pop3 on it updating the pophosts database? I just tried 1.1.7f-1 and still will not allow clients to sent out after popping their email.

Michael Bush

------
Hello,

It looks like they've changed how vm-pop3d logs the logins (more investigating required), which means da-popb4smtp is unable to find the new IP addresses to add them to the /etc/virtual/pophosts file. I'll have to fix that for the next release.

John

DirectAdmin Support
10-18-2004, 05:02 PM
Hello,

I've sifted through the 1.1.7f-T6 code and found a few places where the coded needed some changing. I've changed the pop3_readline function to be able to support multiple packets, as before, if the request was broken into 2 or more packets (which is valid, but not overly common), then only the last packet would be read as the command, thus generating the:

-ERR: Invalid command

error. I've uploaded the patched source code:

http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz

and a source rpm:

http://files.directadmin.com/services/da_vm-pop3d-1.1.7f-1.src.rpm

The pop headers will show:[server]# telnet localhost 110
+OK POP3 Welcome to vm-pop3d 1.1.7f-T6-DAif you've got this patched version. The compiled rpm's are not yet up, so you'll need to compile it to use it. This code is universal for redhat and freebsd (redhat users can build the src.rpm if you want)wget http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
cd da_vm-pop3d-1.1.7f
./configure --prefix=/usr
make
make installThen restart vm-pop3d and telnet to port 110 to see if you have the new header.

John

jlasman
10-18-2004, 06:41 PM
Good work, John,

Hopefully you'll donate the code back to the community, be in compliance with the license, and make a name for yourself :) .

Jeff

skruf
10-18-2004, 08:10 PM
Hey,


wget http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
cd da_vm-pop3d-1.1.7f
./configure --prefix=/usr
make
make install


Works fine on RedHat 9... Thanks, John.

David

DigitalMinds
10-18-2004, 08:23 PM
John:

Thanks for this great fix! Users can email out now after popping their mailboxes.

I let you know tomorrow how the PDA phone users work.

Michael Bush

ozcorp
11-11-2004, 02:33 AM
Bit of a long email but for reference.

I have two servers running directadmin

the only difference between the two is
that one runs

vm-pop3d 1.1.7f-T6-DA (offending)
and the other
vm-pop3d 1.1.7f-T6 (working)

This only relates to Microsoft Exchange using POP to collect there mail and filtering to local boxes. If they check their popmail account directly bypassing exchange then the mail works correctly.

Anyway here is the mesage
Please note the double return after Date: 11 Nov 2004 18:45:05 +1100 as this is where the headers end and the message start.

This only happens with vm-pop3d 1.1.7f-T6-DA and not with vm-pop3d 1.1.7f-T6

If anybody has anyideas as I have a number of clients that this affects and don't want to be stuck not being able to upgrade the server.


Microsoft Mail Internet Headers Version 2.0
Received: from skippy.er.local ([192.168.100.3]) by skippy.er.local with Microsoft SMTPSVC(5.0.2195.6713);
Thu, 11 Nov 2004 18:45:05 +1100
Received: by skippy.er.local (Microsoft Connector for POP3 Mailboxes 5.00.2195) with SMTP (Global POP3 Download)
id MSG11112004-184504-8.MMD@receivingdomain.com; Thu, 11 Nov 2004 18:45:04 +1100
From: paul@sendingdomain.com
Bcc:
Return-Path: paul@sendingdomain.com
Message-ID: <SKIPPYnKsseyYNUQGWZ00000031@skippy.er.local>
X-OriginalArrivalTime: 11 Nov 2004 07:45:05.0859 (UTC) FILETIME=[5C416930:01C4C7C2]
Date: 11 Nov 2004 18:45:05 +1100


From paul@sendingdomain.com Thu Nov 11 17:36:38 2004
Return-path: <paul@sendingdomain.com>
Envelope-to: richard@receivingdomain.com
Delivery-date: Thu, 11 Nov 2004 17:36:38 +1000
Received: from [202.XXX.XXX.XX] (helo=sendingserver.com)
by receivingserver.com with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.43)
id 1CS9VW-0000FO-QY
for richard@receivingdomain.com; Thu, 11 Nov 2004 17:36:38 +1000
Received: from adsl-XXX-X.swiftdsl.com.au ([218.XXX.XXX.X] helo=[127.0.0.1])
by sendingserver.com with esmtpa (Exim 4.43)
id 1CS9VT-0000oi-JK; Thu, 11 Nov 2004 17:36:35 +1000
Message-ID: <4193168F.20405@sendingdomain.com>
Date: Thu, 11 Nov 2004 18:36:47 +1100
From: Paul Radford <paul@sendingdomain.com>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: paul@sendingdomain.com
CC: richard@receivingdomain.com
Subject: OZDESIGN : TEST EMAIL
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Testing AGain

toml
11-11-2004, 10:07 AM
Originally posted by ozcorp
Bit of a long email but for reference.

I have two servers running directadmin

the only difference between the two is
that one runs

vm-pop3d 1.1.7f-T6-DA (offending)
and the other
vm-pop3d 1.1.7f-T6 (working)

This only relates to Microsoft Exchange using POP to collect there mail and filtering to local boxes. If they check their popmail account directly bypassing exchange then the mail works correctly.
[/CODE]

I looked at the diffs between both versions, and I don't see anything that would cause what you see. The changes affect the multiple packets, a problem most likely dealing with 'address in use' errors and adding byte counts to the logs.

Are you using different Microsoft Exchange servers or is this one Excanchage server grabing multiple pop accounts from different DA boxes? I am thinking it might be on the Exchange side.

You may want to try the vm-pop3d-1.1.7f-T7.tar.gz version. It incorporates the changes John made except the byte counting, and a few more. It is on http://www.temnota.kmv.ru/vm-pop3d/ . You could patch the byte counting yourself, it is in the retr.c module.

ozcorp
11-11-2004, 02:24 PM
it is the same Exchange server, we set up a dummy account on working machine and all is ok.
Go back to the T6-DA and no go.

This is the only difference I can see. But thanks for the help. I will do this over the weekend when most of my clients don't need to check their mail.

Swift-AU
01-13-2005, 04:16 PM
One of my clients using Exchange Server's POP3 Connector starting having the same problem, so I investigated further. It turns out the newer versions of vm-pop3d have been preceding the real messages headers with the the mbox From_ header, which is really only used as a delimiter. Most clients are able to ignore the From_ line, but it turns out POP3 Connector with MS Exchange v6 (funnily enough v5.5 and v6.5 coped ok) and also some Lotus Notes clients are unable to deal with this. I've convinced the maintainers of vm-pop3d to include the fix for this, and it can be found in the latest CVS. No changes have been made to retr.c, so you can safely grab the current CVS, overwrite retr.c with the DirectAdmin modified version, compile, and install.
Two minutes later you have a standards compliant POP3 server!

Note to DirectAdmin support - I would recommend including this fix in the da-vmpop3d packages.

Cheers...
Swift

DirectAdmin Support
01-13-2005, 05:16 PM
Hello,

Thanks for the note. I'll grab the latest code and release that when I get a chance.

John

Concac
01-19-2005, 05:57 AM
wget http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
cd da_vm-pop3d-1.1.7f
./configure --prefix=/usr
make
make install


i get this error on FreeBSD 5.2.1 when executing "make"


gcc -c -DHAVE_CONFIG_H -ansi -O3 -W -Wall vm-pop3d.c
vm-pop3d.c: In function `main':
vm-pop3d.c:126: error: `UINT16_MAX' undeclared (first use in this function)
vm-pop3d.c:126: error: (Each undeclared identifier is reported only once
vm-pop3d.c:126: error: for each function it appears in.)
make install
*** Error code 1

iyan
01-21-2005, 09:39 AM
helo all

I've got error for this command :

rpmbuild -ba vm-pop3d.spec

Provides: config(da_vm-pop3d) = 1.1.7f-2
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/sh config(da_vm-pop3d) = 1.1.7f-2 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) libcrypt.so.1 libcrypt.so.1(GLIBC_2.0)
Obsoletes: gnu-pop3d
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/da_vm-pop3d-1.1.7f-root
error: Installed (but unpackaged) file(s) found:
/usr/man/man8/vm-pop3d.8.gz


RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/man/man8/vm-pop3d.8.gz
-------------------------------------


it success using .tar.gz version,

regards
IYAN

werwin01
01-24-2005, 09:56 PM
Originally posted by Concac
i get this error on FreeBSD 5.2.1 when executing "make"


gcc -c -DHAVE_CONFIG_H -ansi -O3 -W -Wall vm-pop3d.c
vm-pop3d.c: In function `main':
vm-pop3d.c:126: error: `UINT16_MAX' undeclared (first use in this function)
vm-pop3d.c:126: error: (Each undeclared identifier is reported only once
vm-pop3d.c:126: error: for each function it appears in.)
make install
*** Error code 1

instead of make, try gmake
instead of make install, try gmake install

Concac
01-25-2005, 05:00 AM
Originally posted by werwin01
instead of make, try gmake
instead of make install, try gmake install

same error

gcc -c -DHAVE_CONFIG_H -ansi -O3 -W -Wall vm-pop3d.c
vm-pop3d.c: In function `main':
vm-pop3d.c:126: error: `UINT16_MAX' undeclared (first use in this function)
vm-pop3d.c:126: error: (Each undeclared identifier is reported only once
vm-pop3d.c:126: error: for each function it appears in.)
gmake: *** [vm-pop3d.o] Error 1

HVBarry
01-26-2005, 10:17 AM
Originally posted by skruf
Hey,


wget http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
cd da_vm-pop3d-1.1.7f
./configure --prefix=/usr
make
make install


Works fine on RedHat 9... Thanks, John.

David

I just installed this on redhat 9 as well. The rpms didnt work but from the tar.gz worked great. I am just wondering why there aren't rpms out yet. It has been quite sometime. Anyways thanx for the help everyone!

HVBarry
01-26-2005, 03:06 PM
Well I guess I was wrong they authentication problem is coming up. The reason I tried to upgrade is the old server crashes. I have now rolled it back to the latest stable from http://www.reedmedia.net/software/virtualmail-pop3d/#download

I would really like to upgrade to the latest working version on this customers server. If someone knows what I need to do to fix the authentication problem.
Let me know

Thank you

Swift-AU
01-26-2005, 03:47 PM
My guess is that FreeBSD 5's stdint.h already includes a declaration for UINT16_MAX, so in this case it doesn't get re-defined. However, stdint.h never actually gets included in the vm-pop3d.h file, so is unavailable for use - whoops!

I'll let the maintainers know so that it can be fixed.

In the mean time, just add the following line to config.h and re-make.

#define UINT16_MAX 65535

Cheers...
Swift

jschurawlow
04-26-2007, 03:19 PM
Getting a wonderful bad login issue once upgrading to this. And the previous stable will give nothing but unable to bind (it won't even run).

Not sure what exactly is causing the bad login problem (but I am guessing it's something related to vm-pop3d not being able to authenticate the users, it appears it's trying to use a virtual passwd file which it is unable to find).

DirectAdmin Support
04-26-2007, 04:27 PM
This may or may not be related, depending on the exact syntax of the error you're getting. Check the guide to see if the error is the same:

http://help.directadmin.com/item.php?id=134

John