Re: [vchkpw] vpopmail/qmail problem -- mail not being delivered
Yes I did. It still doesn't work... I feel like this is an unusual problem? Jon Remo Mattei wrote: Did you try to login with the full email address? Remo Mattei Network Security Engineer cell 801-209-8554 email [EMAIL PROTECTED] -Original Message- From: Jonathan Ludwig [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:35 PM To: [EMAIL PROTECTED] Subject: [vchkpw] vpopmail/qmail problem -- mail not being delivered Hi, I was hoping if someone could help me with a problem I've been having... vpopmail doesn't deliver mail to any users. Its odd, but I have been looking at manuals and postings for a while, and I don't see anything like this happening anywhere. Simply put, the mail all gets put into the appropriate Maildir, but when I try to retrieve it using a windows based pop client it doens't work... any suggestions? When I look in the Maildir directory it says the following: [EMAIL PROTECTED] new]# pwd /home/vpopmail/domains///Maildir/new [EMAIL PROTECTED] new]# ls 1048896214.12998.localhost.localdomain,S=444 1048927906.8559.localhost.localdomain 1048928982.11823.localhost.localdomain,S=823 1048910262.25323.localhost.localdomain,S=789 1048928795.11304.localhost.localdomain,S=837 1048983833.30760.localhost.localdomain,S=2549 [EMAIL PROTECTED] new]# I'm wondering if there is a problem with it being "confused" between localhost.localdomain and where the email should actually be going... very confusing... any help? Thanks! Jon
RE: [vchkpw] vpopmail/qmail problem -- mail not being delivered
Did you try to login with the full email address? Remo Mattei Network Security Engineer cell 801-209-8554 email [EMAIL PROTECTED] -Original Message- From: Jonathan Ludwig [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:35 PM To: [EMAIL PROTECTED] Subject: [vchkpw] vpopmail/qmail problem -- mail not being delivered Hi, I was hoping if someone could help me with a problem I've been having... vpopmail doesn't deliver mail to any users. Its odd, but I have been looking at manuals and postings for a while, and I don't see anything like this happening anywhere. Simply put, the mail all gets put into the appropriate Maildir, but when I try to retrieve it using a windows based pop client it doens't work... any suggestions? When I look in the Maildir directory it says the following: [EMAIL PROTECTED] new]# pwd /home/vpopmail/domains///Maildir/new [EMAIL PROTECTED] new]# ls 1048896214.12998.localhost.localdomain,S=444 1048927906.8559.localhost.localdomain 1048928982.11823.localhost.localdomain,S=823 1048910262.25323.localhost.localdomain,S=789 1048928795.11304.localhost.localdomain,S=837 1048983833.30760.localhost.localdomain,S=2549 [EMAIL PROTECTED] new]# I'm wondering if there is a problem with it being "confused" between localhost.localdomain and where the email should actually be going... very confusing... any help? Thanks! Jon
[vchkpw] vpopmail/qmail problem -- mail not being delivered
Hi, I was hoping if someone could help me with a problem I've been having... vpopmail doesn't deliver mail to any users. Its odd, but I have been looking at manuals and postings for a while, and I don't see anything like this happening anywhere. Simply put, the mail all gets put into the appropriate Maildir, but when I try to retrieve it using a windows based pop client it doens't work... any suggestions? When I look in the Maildir directory it says the following: [EMAIL PROTECTED] new]# pwd /home/vpopmail/domains///Maildir/new [EMAIL PROTECTED] new]# ls 1048896214.12998.localhost.localdomain,S=444 1048927906.8559.localhost.localdomain 1048928982.11823.localhost.localdomain,S=823 1048910262.25323.localhost.localdomain,S=789 1048928795.11304.localhost.localdomain,S=837 1048983833.30760.localhost.localdomain,S=2549 [EMAIL PROTECTED] new]# I'm wondering if there is a problem with it being "confused" between localhost.localdomain and where the email should actually be going... very confusing... any help? Thanks! Jon
Re: [vchkpw] MySQL configure trouble
On Saturday 29 March 2003 23:16, Niklas Saers Mailinglistaccount wrote: > Hi, I'm running vpopmail on a FreeBSD box. I've just installed it from > scratch through ports with the following options: > > -DWITH_MYSQL -DWITH_MYSQL_LARGE_SITE -DWITH_MYSQL_LIMITS \ > -DWITH_IP_ALIAS -DHARDQUOTA=1000 -DLOGLEVEL=y -DWITH_MYSQL_LOG \ > -DWITH_MYSQL_SERVER=my.server.com -DWITH_MYSQL_USER=vpopmail \ > -DWITH_MYSQL_PASSWD= -DWITH_MYSQL_DB=vpopmail > > However, when installed it doesn't seem to recognize my DB parameters. > When I try adding a domain I get: > > # bin/vadddomain mydomain.com > could not connect to mysql update server Can't connect to local MySQL > server through socket '/tmp/mysql.sock' (2) with database could not connect > to mysql update server Can't connect to local MySQL server through socket > '/tmp/mysql.sock' (2) vmysql: sql error[c]: MySQL server has gone away > vmysql: sql error[b]: MySQL server has gone away > vmysql: sql error[3]: MySQL server has gone away > vmysql: sql error[c]: MySQL server has gone away > vmysql: sql error[c]: MySQL server has gone away > vmysql: sql error[b]: MySQL server has gone away > vmysql: sql error[3]: MySQL server has gone away > vmysql: sql error[2]: MySQL server has gone away > Error: Unable to chdir to vpopmail/users directory > > Apparently it tries to use an unnamed database on the localhost > mysql-server. Since I run a separate DB server, it cannot connect to the > localhost db server as it is not running. > > Any clues? Is there some parameters I could add to increase the logging? > > Cheers > >Nik it seems ports isn't updating vmysql.h. either try compiling from source or check the vpopmail ports package.. there are no parameters like --with-mysql-server="my.dbserver.com" --with-mysql-user="vpopmail" .. so ports would have to change vmysql.h itself -- Mit internetten Grüßen / Best Regards --- Justin Heesemannionium Technologies [EMAIL PROTECTED]www.ionium.org
RE: [vchkpw] vpopmail enable-roaming with courier
I still don't see any SMTP authentication problem. What am I missing. If I clear the tcp.smtp.cdb file the open relay locks down tight. I send via Courier-IMAP and it works fine. Try to send from a POP client. Still locked down tight but since it authenticated with POP adds the entry to tcp.smtp.cdb and opens it up for me for the next round thus POP before SMTP is functional. Courier-IMAP is using the local machine so should always be able to send given the user logged in effectively. Isn't this how it is supposed to work? So what is this about a security problem with Vchkpw and Courier? We are about to implement this on our production machines so if there is a hole I sure would like to know about it now. Thanks, Wil Hatfield
Re: [vchkpw] vpopmail enable-roaming with courier
I did'nt. You might be better off with smtp authentication if you have a large number of domains/users. Best, Ian Forsyth wrote: Hi, On Saturday, March 29, 2003, at 07:14 AM, JB wrote: You have build courier with DHAVE_OPEN_SMTP_RELAY Type: export CFLAGS="-DHAVE_OPEN_SMTP_RELAY" before ./configure So if I follow the about enviromental varaible export, do I need to edit the authlib/config.h or authlib/preauthvchkpw.c file? Ian I am sure I have missed something. I am using vpopmail 5.3.16 and courier-imap 1.7.1. I am using courier for pop and imap services. I am able to login via imap and pop no problem. After doing so the file size nor modification time on the smtp file in the vpopmail etc directory change. I check vuserinfo and I have 'all services enabled' for the user. I configured vpopmail --enable-roaming-users=y and enable-clear-passwd=n and --tcp.smtp file in /home/vpopmail/etc/tcp.smtp These are my permissions for /home/vpopmail/etc -rw-r--r--1 vpopmail vchkpw 0 Mar 29 03:40 open-smtp -rw-r--r--1 vpopmail vchkpw 26 Mar 28 23:39 tcp.smtp -rw-r--r--1 root root 2090 Mar 29 03:40 tcp.smtp.cdb I created these files. I am not sure if the permissions are correct. Before configuring courier I set chmod -R 755 ~vpopmail/lib After configuring courier without authdaemon, etc.. I edited courier-src/authlib/config.h to edit this in #define HAVE_OPEN_SMTP_RELAY 1 I did the make and install.. I am using this style of courier install http://jonaspasche.de/courier-imap-daemontools.txt this is my /service/qmail-smtpd/run #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo "No /var/qmail/control/rcpthosts!" echo "Refusing to start SMTP listener because it'll create an open relay" exit 1 fi exec /usr/local/bin/softlimit -m 300 \ /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 After connecting via pop, and listing mesages, the tcp.smtp related files are unaltered, when I try to send via smtp I get a host not in rcpthost.. The courier log shows succesfull login. I configure vpopmail with the default logging, I don't see anything related to vchkpw or vpopmail in the logs. Kind regards, Ian
[vchkpw] MySQL configure trouble
Hi, I'm running vpopmail on a FreeBSD box. I've just installed it from scratch through ports with the following options: -DWITH_MYSQL -DWITH_MYSQL_LARGE_SITE -DWITH_MYSQL_LIMITS \ -DWITH_IP_ALIAS -DHARDQUOTA=1000 -DLOGLEVEL=y -DWITH_MYSQL_LOG \ -DWITH_MYSQL_SERVER=my.server.com -DWITH_MYSQL_USER=vpopmail \ -DWITH_MYSQL_PASSWD= -DWITH_MYSQL_DB=vpopmail However, when installed it doesn't seem to recognize my DB parameters. When I try adding a domain I get: # bin/vadddomain mydomain.com could not connect to mysql update server Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) with database could not connect to mysql update server Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) vmysql: sql error[c]: MySQL server has gone away vmysql: sql error[b]: MySQL server has gone away vmysql: sql error[3]: MySQL server has gone away vmysql: sql error[c]: MySQL server has gone away vmysql: sql error[c]: MySQL server has gone away vmysql: sql error[b]: MySQL server has gone away vmysql: sql error[3]: MySQL server has gone away vmysql: sql error[2]: MySQL server has gone away Error: Unable to chdir to vpopmail/users directory Apparently it tries to use an unnamed database on the localhost mysql-server. Since I run a separate DB server, it cannot connect to the localhost db server as it is not running. Any clues? Is there some parameters I could add to increase the logging? Cheers Nik
Re: [vchkpw] vpopmail enable-roaming with courier
Hi, On Saturday, March 29, 2003, at 07:14 AM, JB wrote: You have build courier with DHAVE_OPEN_SMTP_RELAY Type: export CFLAGS="-DHAVE_OPEN_SMTP_RELAY" before ./configure So if I follow the about enviromental varaible export, do I need to edit the authlib/config.h or authlib/preauthvchkpw.c file? Ian I am sure I have missed something. I am using vpopmail 5.3.16 and courier-imap 1.7.1. I am using courier for pop and imap services. I am able to login via imap and pop no problem. After doing so the file size nor modification time on the smtp file in the vpopmail etc directory change. I check vuserinfo and I have 'all services enabled' for the user. I configured vpopmail --enable-roaming-users=y and enable-clear-passwd=n and --tcp.smtp file in /home/vpopmail/etc/tcp.smtp These are my permissions for /home/vpopmail/etc -rw-r--r--1 vpopmail vchkpw 0 Mar 29 03:40 open-smtp -rw-r--r--1 vpopmail vchkpw 26 Mar 28 23:39 tcp.smtp -rw-r--r--1 root root 2090 Mar 29 03:40 tcp.smtp.cdb I created these files. I am not sure if the permissions are correct. Before configuring courier I set chmod -R 755 ~vpopmail/lib After configuring courier without authdaemon, etc.. I edited courier-src/authlib/config.h to edit this in #define HAVE_OPEN_SMTP_RELAY 1 I did the make and install.. I am using this style of courier install http://jonaspasche.de/courier-imap-daemontools.txt this is my /service/qmail-smtpd/run #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo "No /var/qmail/control/rcpthosts!" echo "Refusing to start SMTP listener because it'll create an open relay" exit 1 fi exec /usr/local/bin/softlimit -m 300 \ /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 After connecting via pop, and listing mesages, the tcp.smtp related files are unaltered, when I try to send via smtp I get a host not in rcpthost.. The courier log shows succesfull login. I configure vpopmail with the default logging, I don't see anything related to vchkpw or vpopmail in the logs. Kind regards, Ian
Re: [vchkpw] vpopmail enable-roaming with courier
You have build courier with DHAVE_OPEN_SMTP_RELAY Type: export CFLAGS="-DHAVE_OPEN_SMTP_RELAY" before ./configure ~jb Ian Forsyth wrote: Hi, I am sure I have missed something. I am using vpopmail 5.3.16 and courier-imap 1.7.1. I am using courier for pop and imap services. I am able to login via imap and pop no problem. After doing so the file size nor modification time on the smtp file in the vpopmail etc directory change. I check vuserinfo and I have 'all services enabled' for the user. I configured vpopmail --enable-roaming-users=y and enable-clear-passwd=n and --tcp.smtp file in /home/vpopmail/etc/tcp.smtp These are my permissions for /home/vpopmail/etc -rw-r--r--1 vpopmail vchkpw 0 Mar 29 03:40 open-smtp -rw-r--r--1 vpopmail vchkpw 26 Mar 28 23:39 tcp.smtp -rw-r--r--1 root root 2090 Mar 29 03:40 tcp.smtp.cdb I created these files. I am not sure if the permissions are correct. Before configuring courier I set chmod -R 755 ~vpopmail/lib After configuring courier without authdaemon, etc.. I edited courier-src/authlib/config.h to edit this in #define HAVE_OPEN_SMTP_RELAY 1 I did the make and install.. I am using this style of courier install http://jonaspasche.de/courier-imap-daemontools.txt this is my /service/qmail-smtpd/run #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo "No /var/qmail/control/rcpthosts!" echo "Refusing to start SMTP listener because it'll create an open relay" exit 1 fi exec /usr/local/bin/softlimit -m 300 \ /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 After connecting via pop, and listing mesages, the tcp.smtp related files are unaltered, when I try to send via smtp I get a host not in rcpthost.. The courier log shows succesfull login. I configure vpopmail with the default logging, I don't see anything related to vchkpw or vpopmail in the logs. Kind regards, Ian
[vchkpw] Log successful/failed attempts to multilog
Hi guys, I was wondering if anyone out there have worked out putting log attempts to qmail's multilog Currently it keeps logging to syslog, I need to put it into multilog so I can use qmailmrtg7 to output the mrtg input. Or.. if anyone got a better way of feeding MRTG with the log attempts, please let me know, thanks :D Andryan
RE: [vchkpw] vpopmail enable-roaming with courier
How do you know it isn't working? I ask because I have VPopmail,Qmailadmin,Courier installed and the relay works find. Are you saying that my relay has to be wide open if I am able to send? Wil Hatfield > -Original Message- > From: David Hubbard [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 1:41 AM > To: Ian Forsyth; [EMAIL PROTECTED] > Subject: RE: [vchkpw] vpopmail enable-roaming with courier > > > From: Ian Forsyth [mailto:[EMAIL PROTECTED] > > > > > After connecting via pop, and listing mesages, the tcp.smtp related > > files are unaltered, when I try to send via smtp I get a host not in > > rcpthost.. The courier log shows succesfull login. I > > configure vpopmail with the default logging, I don't see anything > > related to vchkpw or vpopmail in the logs. > > You didn't miss anything Ian, the author of Courier > has disabled the open_relay function in the latest > versions due to some security problem in vpopmail. > He has evidently supplied info about this to the > vpopmail authors but no one has talked about what > the problem is or what the timeframe is to a fix. > > David >
Re: [vchkpw] vpopmail enable-roaming with courier
Hi David, Thank you for your prompt response. On Saturday, March 29, 2003, at 01:41 AM, David Hubbard wrote: From: Ian Forsyth [mailto:[EMAIL PROTECTED] After connecting via pop, and listing mesages, the tcp.smtp related files are unaltered, when I try to send via smtp I get a host not in rcpthost.. The courier log shows succesfull login. I configure vpopmail with the default logging, I don't see anything related to vchkpw or vpopmail in the logs. You didn't miss anything Ian, the author of Courier has disabled the open_relay function in the latest versions due to some security problem in vpopmail. He has evidently supplied info about this to the vpopmail authors but no one has talked about what the problem is or what the timeframe is to a fix. So if I want to enable relaying I should go with a qmail smtp-auth option. Sounds good to me. Again thanks for the info David. Regards, Ian
RE: [vchkpw] vpopmail enable-roaming with courier
From: Ian Forsyth [mailto:[EMAIL PROTECTED] > > After connecting via pop, and listing mesages, the tcp.smtp related > files are unaltered, when I try to send via smtp I get a host not in > rcpthost.. The courier log shows succesfull login. I > configure vpopmail with the default logging, I don't see anything > related to vchkpw or vpopmail in the logs. You didn't miss anything Ian, the author of Courier has disabled the open_relay function in the latest versions due to some security problem in vpopmail. He has evidently supplied info about this to the vpopmail authors but no one has talked about what the problem is or what the timeframe is to a fix. David
[vchkpw] vpopmail enable-roaming with courier
Hi, I am sure I have missed something. I am using vpopmail 5.3.16 and courier-imap 1.7.1. I am using courier for pop and imap services. I am able to login via imap and pop no problem. After doing so the file size nor modification time on the smtp file in the vpopmail etc directory change. I check vuserinfo and I have 'all services enabled' for the user. I configured vpopmail --enable-roaming-users=y and enable-clear-passwd=n and --tcp.smtp file in /home/vpopmail/etc/tcp.smtp These are my permissions for /home/vpopmail/etc -rw-r--r--1 vpopmail vchkpw 0 Mar 29 03:40 open-smtp -rw-r--r--1 vpopmail vchkpw 26 Mar 28 23:39 tcp.smtp -rw-r--r--1 root root 2090 Mar 29 03:40 tcp.smtp.cdb I created these files. I am not sure if the permissions are correct. Before configuring courier I set chmod -R 755 ~vpopmail/lib After configuring courier without authdaemon, etc.. I edited courier-src/authlib/config.h to edit this in #define HAVE_OPEN_SMTP_RELAY 1 I did the make and install.. I am using this style of courier install http://jonaspasche.de/courier-imap-daemontools.txt this is my /service/qmail-smtpd/run #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo "No /var/qmail/control/rcpthosts!" echo "Refusing to start SMTP listener because it'll create an open relay" exit 1 fi exec /usr/local/bin/softlimit -m 300 \ /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 After connecting via pop, and listing mesages, the tcp.smtp related files are unaltered, when I try to send via smtp I get a host not in rcpthost.. The courier log shows succesfull login. I configure vpopmail with the default logging, I don't see anything related to vchkpw or vpopmail in the logs. Kind regards, Ian