Re: [vchkpw] Sqwebmail not letting us login
lördagen den 30 augusti 2003 00.07 skrev Jason Silverglate: > I just installed Sqwebmail and I am running the latest version of > vpopmail but sqwebmail won't let me login. Can anyone provide a good > configure string that would work? - cut - #!/bin/sh export CC="gcc" export CFLAGS="-O3 -march=pentium -DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH" export CXXFLAGS="-O3 -march=pentium -DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH" export LDFLAGS="-L/home/vpopmail/lib" export CPPFLAGS="-I/home/vpopmail/include" export PREFIX="/usr/local/sqwebmail" export PERL="/usr/bin/perl" export ispell="/usr/bin/ispell" export mailer="/var/qmail/bin/usendmail -oi -t" export sendmail="/var/qmail/bin/usendmail" ./configure \ --prefix=$PREFIX \ --with-cachedir=/var/cache/sqwebmail \ --with-db=gdbm \ --enable-webpass=vpopmail \ --enable-cgibindir=/var/www/cgi-bin \ --enable-imagedir=/var/www/html/images/sqwebmail \ --enable-imageurl=/images/sqwebmail \ --enable-webpass=yes \ --enable-unicode \ --enable-mimetypes=$PREFIX/mime.types \ --with-authvchkpw \ --without-authuserdb \ --without-authpam --with-authpam-libraries="" \ --without-authpwd \ --without-authshadow \ --without-authldap --with-authldaprc="" --with-ldap-libs="" --with-ldap-includes="" \ --without-authpgsql --with-authpgsqlrc="" --with-pgsql-libs="" --with-pgsql-includes="" \ --without-authmysql --with-authmysqlrc="" --with-mysql-libs="" --with-mysql-includes="" \ --without-authcram \ --without-authcustom \ --without-authdaemon --with-authdaemonrc="" --with-authdaemonvar="" \ --without-fcgi --disable-fcgi \ --without-gzip --disable-gzip \ --without-makedatprog --disable-makedatprog \ --with-dirsync \ --with-ipv6 \ --with-trashquota \ --with-cacheowner=vpopmail \ --enable-bannerprog=/var/www/cgi-bin/ads.cgi \ --enable-hardtimeout=7200 \ --enable-softtimeout=3600 \ --enable-autopurge=5 \ --enable-maxpurge=90 make -j2 && make install chown -R vpopmail.vchkpw /var/cache/sqwebmail - cut - plus the attached patch? Cheers. --- authlib/preauthvchkpw.c 2003-03-12 03:51:27.0 +0100 +++ authlib/preauthvchkpw.c.oden 2003-06-09 12:50:17.0 +0200 @@ -27,7 +27,7 @@ static const char rcsid[]="$Id: preauthvchkpw.c,v 1.18 2003/03/12 02:45:55 mrsam Exp $"; -#undef HAVE_OPEN_SMTP_RELAY +/* #undef HAVE_OPEN_SMTP_RELAY */ /* Disabled, pending fix */ int auth_vchkpw_pre(const char *userid, const char *service, @@ -63,9 +63,9 @@ make_user_dir(User, Domain, uid, gid); vpw=vauth_getpw(User, Domain); } -#ifdef ENABLE_AUTH_LOGGING +/* #ifdef ENABLE_AUTH_LOGGING */ vset_lastauth(User, Domain, service); -#endif +/* #endif */ } free(usercopy); @@ -84,19 +84,19 @@ if ( vpw->pw_gid & NO_POP ) { return(-1); } else { -#ifdef HAVE_OPEN_SMTP_RELAY +/* #ifdef HAVE_OPEN_SMTP_RELAY */ /* open the relay to pop users */ open_smtp_relay(); -#endif +/* #endif */ } } else if ( strcmp("imap", service) == 0 ) { if ( vpw->pw_gid & NO_IMAP ) { return(-1); } else { -#ifdef HAVE_OPEN_SMTP_RELAY +/* #ifdef HAVE_OPEN_SMTP_RELAY */ /* open the relay to imap users */ open_smtp_relay(); -#endif +/* #endif */ } }
[vchkpw] Sqwebmail not letting us login
I just installed Sqwebmail and I am running the latest version of vpopmail but sqwebmail won’t let me login. Can anyone provide a good configure string that would work? Thanx Jay
Re: [vchkpw] About qmail not opening ports
Hi, > Qmail starts ok, qmailctl stat give no errors: > > /service/qmail-send: up (pid 14307) 1 seconds > /service/qmail-send/log: up (pid 12920) 101 seconds > /service/qmail-smtpd: up (pid 14316) 0 seconds > /service/qmail-smtpd/log: up (pid 14303) 1 seconds qmail-send logging is running for 101 seconds, but the other services at 0 respectively 1 seconds. That doesn't look like "no errors" to me. Errors of qmail-send can be found in the qmail-send log, which seems to be ok. Errors of qmail-smtpd can be found in the qmail-smtpd log, which doesn't seem to be ok; check the readproctitle log with "ps". > But when I try to connect from email client I can't, the port 110 is > closed, and so port 25. Judging from your svstat output, you don't have a qmail-pop3d server configured, so it's no wonder port 110 is closed. Having port 25 closed only shows there is an configuration error. > Has anybody suffered this problem with qmail? This is no problem with qmail; it's a problem with a broken installation or misconfiguration. Delete all the qmail stuff and reinstall using "Life with qmail" (http://lifewithqmail.org/), then ask for help on the qmail mailing list. "Life with qmail" has been thorougly tested by hundreds of successful qmail users. If you don't want to do that, you should consult the qmailrocks authors for support or look if there's mailing list. In any case, this is no vpopmail problem. Please send further questions on this topic to the according mailing list. Jonas
Re: [vchkpw] courier pop3d
- Original Message - From: "Tom Collins" <[EMAIL PROTECTED]> To: "vpopmail list" <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 6:38 AM Subject: Re: [vchkpw] courier pop3d > On Friday, August 29, 2003, at 12:56 PM, John Simpson wrote: > > i don't use authdaemon, i use authvchkpw as my only authentication > > module > > Does anyone run vpopmail with authdaemon? Version 5.2.1 won't work, > and the early 5.3 series won't either, but most of the recent 5.3 > releases, and the 5.2.2 release should work with authdaemon. > > I'd love to hear from someone who's tried with a recent version, and > whether it worked or failed (and if it did fail, where/how did it fail). Yes I did that research a month or two back into what was causing the problem (it was vpopmail's parse_email() function). This particular bug was fixed in vpopmail-5.3.5 After discovering this, I went and rebuilt my server's courier-imap --with-authdaemon --with-authvchkpw I have been running it in production now for a month or two (vpopmail-5.3.24/26). Not a single problem My guide has been updated with the instructions showing how I did it http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm#COURIER_IMAP Michael.
[vchkpw] About qmail not opening ports
Well I've installed qmail (from qmailrocks), with the smtp patch on a RH 9 without any kind of mail. Qmail starts ok, qmailctl stat give no errors: /service/qmail-send: up (pid 14307) 1 seconds/service/qmail-send/log: up (pid 12920) 101 seconds/service/qmail-smtpd: up (pid 14316) 0 seconds/service/qmail-smtpd/log: up (pid 14303) 1 secondsmessages in queue: 0messages in queue but not yet preprocessed: 0 I've use cmd5checkpw (form http://members.elysium.pl/brush/cmd5checkpw/). But when I try to connect from email client I can't, the port 110 is closed, and so port 25. Has anybody suffered this problem with qmail?
Re: [vchkpw] courier pop3d
On Friday, August 29, 2003, at 12:56 PM, John Simpson wrote: i don't use authdaemon, i use authvchkpw as my only authentication module Does anyone run vpopmail with authdaemon? Version 5.2.1 won't work, and the early 5.3 series won't either, but most of the recent 5.3 releases, and the 5.2.2 release should work with authdaemon. I'd love to hear from someone who's tried with a recent version, and whether it worked or failed (and if it did fail, where/how did it fail). -- Tom Collins [EMAIL PROTECTED] http://sniffter.com/ - info on the Sniffter hand-held Network Tester
Re: [vchkpw] courier pop3d
On Friday, Aug 29, 2003, at 08:40 US/Eastern, Tobias wrote: Ok so i can rewrite the supervise script to run with couriertcpd and courierpop3d instead Is it possible to get the courierpop3d to work with vpopmail ? How could a supervisescript for that look like ? a few months ago i took /usr/lib/courier-imap/libexec/pop3d.rc and converted it to a daemontools "run" script. i don't use authdaemon, i use authvchkpw as my only authentication module, and i use tcpserver instead of couriertcpd. http://www.jms1.net/courier/ has the details, including downloadable copies of the actual scripts i've been running with for the past several months. hope this helps. --- | John Simpson - KG4ZOW - Programmer at Large | | <[EMAIL PROTECTED]>http://www.jms1.net/ | --- PGP.sig Description: PGP signature
Re: [vchkpw] courier pop3d
It's not question of being stupid or smart, just what you like and feel useful. Anyway, I'm running all the qmail stuff since two years (courier a little bit lesser) without supervise, and I never had a problem. I've examined the supervise architecture, and I don't like it. Unique problems on MySQL, failing sometimes to work (without crashing, so supervise would be unuseful with it). Ciao, Tonino At 29/08/03 29/08/03 +0200, you wrote: Hi Charles, > The only thing I found was him calling someone > "stupid" for wanting to run his daemons under supervise. That doesn't raise my personal opinion on him. ;-) I care for my daemons. Therefore I want them to run supervised. If Mr. Sam is THAT sure that his daemons will never fail, he'd better show that through paying $500 to every admin who observes imapd crashing, instead of calling people "stupid" that want to use supervise. > > It's a bit outdated, but I don't plan to update it any more; instead I > > suggest the use of dovecot or bincimap. > > Never heard of 'em. Ok, so here's some advertising: Dovecot: http://dovecot.procontrol.fi/ "Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Although it's written with C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and it's fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly." (Dovecot has its own authentication module for vpopmail accounts.) Binc IMAP: http://bincimap.org/ "Binc IMAP is a GPL licensed IMAP4rev1 server for Maildir, written in C++. It strives to be a rock solid, fast, flexible, easy to use, RFC (standards) compliant, secure IMAP server. For those familiar with qmail-pop3d, this IMAP server will be the natural choice. It is invoked similarily and uses checkpassword to authenticate." (As Binc IMAP uses a checkpassword compatible interface, it is perfectly in harmony with vpopmail's vchkpw.) Jonas [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
Re: [vchkpw] newbiew - mail stuck???
Hi Chan, > It seems like my mail was stucked in a queue or > something. I got over 30 messages when running > qmail-qstat and qmail-qread. There is no need to guess. Look into the qmail-send log, it will tell you why it can't deliver these mails. > Mail send to other > domains are just stuck (can't send to AOL, yahoo, > netzero,...). Is there anything I can do to clean > them up? You can use qmail-remove from linuxmagic.com, but cleaning up your queue is only cosmetics and doesn't solve your problem. Again, the logs are your friend. Jonas
Re: [vchkpw] courier pop3d
Hi Charles, > The only thing I found was him calling someone > "stupid" for wanting to run his daemons under supervise. That doesn't raise my personal opinion on him. ;-) I care for my daemons. Therefore I want them to run supervised. If Mr. Sam is THAT sure that his daemons will never fail, he'd better show that through paying $500 to every admin who observes imapd crashing, instead of calling people "stupid" that want to use supervise. > > It's a bit outdated, but I don't plan to update it any more; instead I > > suggest the use of dovecot or bincimap. > > Never heard of 'em. Ok, so here's some advertising: Dovecot: http://dovecot.procontrol.fi/ "Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Although it's written with C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and it's fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly." (Dovecot has its own authentication module for vpopmail accounts.) Binc IMAP: http://bincimap.org/ "Binc IMAP is a GPL licensed IMAP4rev1 server for Maildir, written in C++. It strives to be a rock solid, fast, flexible, easy to use, RFC (standards) compliant, secure IMAP server. For those familiar with qmail-pop3d, this IMAP server will be the natural choice. It is invoked similarily and uses checkpassword to authenticate." (As Binc IMAP uses a checkpassword compatible interface, it is perfectly in harmony with vpopmail's vchkpw.) Jonas
Re: [vchkpw] courier pop3d
On Fri, 29 Aug 2003, Jonas Pasche wrote: > > How could a supervisescript for that look like ? > > You should consult the Courier IMAP list for that; this isn't vpopmail > related. Heh heh. I wouldn't. I looked at the archives and Mr. Sam is about as helpful and caring as DJB. The only thing I found was him calling someone "stupid" for wanting to run his daemons under supervise. Personally, I like putting things there so that they can be restarted if they fail. Mr. Sam, being a perfect human being, apparently has written software that will never fail, so I guess we can all sleep easier... :) > For full "djb-style" installation instructions, look here: > > http://jonaspasche.de/courier-imap-daemontools.txt Thanks, that's good bookmark material. > It's a bit outdated, but I don't plan to update it any more; instead I > suggest the use of dovecot or bincimap. Never heard of 'em. Charles > Jonas > > >
[vchkpw] newbiew - mail stuck???
It seems like my mail was stucked in a queue or something. I got over 30 messages when running qmail-qstat and qmail-qread. I can send mail to people in the same domain only. Mail send to other domains are just stuck (can't send to AOL, yahoo, netzero,...). Is there anything I can do to clean them up? Thanks a lot... = __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Re: [vchkpw] Re: qmail-send is eating all availible cpu time
Have a look at this ls -la /var/qmail/supervise/qmail-send/supervise/ total 12 drwx--2 root root 4096 Aug 29 16:40 ./ drwxr-xr-t4 root root 4096 Aug 27 20:30 ../ prw---1 root root0 Aug 29 16:40 control| -rw---1 root root0 Aug 26 16:55 lock prw---1 root root0 Aug 26 16:55 ok| -rw-r--r--1 root root 18 Aug 29 16:40 status You see that the ok and the control file are named pipes. If they don´t have that p in front of the permission Stop qmail and delete those 2 files and start the server again and i should be all fine. //Tobias - Original Message - From: "Jesus Ruiz" <[EMAIL PROTECTED]> To: "Vpopmail Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 5:56 PM Subject: [vchkpw] Re: qmail-send is eating all availible cpu time I have the same problem i check the file permission and they are ok, and i also check that qmail-send don't restart very often. I'm using qmail, with vpopmail 5.2.1 and spamcontrol2.09 [EMAIL PROTECTED] /root]# svstat /service/* /service/qmail-pop3d: up (pid 1129) 7392 seconds /service/qmail-send: up (pid 1121) 7393 seconds /service/qmail-smtpd: up (pid 1122) 7393 seconds [EMAIL PROTECTED] /root]# svstat /service/*/log /service/qmail-pop3d/log: up (pid 1128) 7406 seconds /service/qmail-send/log: up (pid 1127) 7406 seconds /service/qmail-smtpd/log: up (pid 1130) 7406 seconds the log dir owner is qmaill drwxr-xr-x4 qmaill root 4096 Aug 29 11:50 qmai drwxr-xr-x2 qmaill root 4096 Aug 29 11:28 pop3d drwxr-xr-x2 qmaill root 4096 Aug 29 10:10 smtpd the supervise scripts are like this [EMAIL PROTECTED] /root]# ls -la /var/qmail/supervise/qmail-smtpd/ drwxr-xr-t4 root root 4096 Aug 25 13:06 . drwxr-xr-x5 root root 4096 Aug 28 2001 .. drwxr-xr-x3 root root 4096 Aug 25 11:01 log -rwxr-xr-x1 root root 334 Aug 25 13:06 run -rwxr-xr-x1 root root 347 Jan 14 2003 run.20030114 -rwxr-xr-x1 root root 336 Jun 12 2002 run.bak drwx--2 root root 4096 Aug 29 10:02 supervise [EMAIL PROTECTED] /root]# ls -la /var/qmail/supervise/qmail-send/ drwxr-xr-t4 root root 4096 Jul 29 15:53 . drwxr-xr-x5 root root 4096 Aug 28 2001 .. drwxr-xr-x3 root root 4096 Jul 29 15:53 log -rwxr-xr-x1 root root 29 Aug 27 2001 run drwx--2 root root 4096 Aug 29 10:02 supervise [EMAIL PROTECTED] /root]# ls -la /var/qmail/supervise/qmail-pop3d/ drwxr-xr-t4 root root 4096 Aug 28 18:13 . drwxr-xr-x5 root root 4096 Aug 28 2001 .. drwxr-xr-x3 root root 4096 Jul 31 08:57 log -rwxr-xr-x1 root root 198 Aug 28 18:13 run drwx--2 root root 4096 Aug 29 10:02 supervise At 06:38 PM 25/08/2003 +0200, [EMAIL PROTECTED] wrote: >That solved it! Thanks now i´m happy : ) > >Although i have stunbled in to another problem but i´ll do a new post for >that one if i don´t solve it > >//Tobias >- Original Message - >From: "Kurt Hansen" <[EMAIL PROTECTED]> >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Sent: Monday, August 25, 2003 6:11 PM >Subject: Re: qmail-send is eating all availible cpu time > > > > [EMAIL PROTECTED] wrote: > > > > > Okay so this > > > > > > cd /var/qmail/supervise/qmail-send/supervise > > > > > > -rw-r--r--1 root root2 Aug 25 17:36 control > > > -rw---1 root root0 Aug 12 13:30 lock > > > -rw-r--r--1 root root0 Jul 16 14:56 ok > > > -rw-r--r--1 root root 18 Aug 25 13:44 status > > > > > > > > > Could be a problem ? how do i make them named pipes ? > > > > I just deleted the control file, and it was recreated as a named pipe > > almost immediately. I'm guessing the same would be true with "ok". > > > > Take care, > > > > Kurt Hansen > > > > > > > > > > __ NOD32 1.492 (20030825) Information __ > > > > This message was checked by NOD32 Antivirus System. > > http://www.nod32.com > > > > __ NOD32 1.496 (20030828) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com
RE: [vchkpw] Some help needed [Off-topic]
ah, yes that would be what I meant to say. Should read what I write before hitting send. Shane -Original Message- From: Lou Hevly [mailto:[EMAIL PROTECTED] Sent: Saturday, 30 August 2003 12:58 AM To: [EMAIL PROTECTED] Subject: RE: [vchkpw] Some help needed [Off-topic] At 16:12 29/08/03, Shane Chrisp wrote: >Add the line >1.2.3.4:deny,RBLSMTPD=" - Connections refused" >to your tcp.smtp file. The RBLSMTPD message is optional. Not optional, useless. When you deny the connection you can't send back a message. I believe what you want is either: 1.2.3.4:deny or 1.2.3.4::allow,RBLSMTPD="-Connections refused" -- Lou Hevly Manresa, Catalonia http://visca.com
RE: [vchkpw] Some help needed [Off-topic]
At 16:12 29/08/03, Shane Chrisp wrote: Add the line 1.2.3.4:deny,RBLSMTPD=" - Connections refused" to your tcp.smtp file. The RBLSMTPD message is optional. Not optional, useless. When you deny the connection you can't send back a message. I believe what you want is either: 1.2.3.4:deny or 1.2.3.4::allow,RBLSMTPD="-Connections refused" -- Lou Hevly Manresa, Catalonia http://visca.com
[vchkpw] Re: qmail-send is eating all availible cpu time
I have the same problem i check the file permission and they are ok, and i also check that qmail-send don't restart very often. I'm using qmail, with vpopmail 5.2.1 and spamcontrol2.09 [EMAIL PROTECTED] /root]# svstat /service/* /service/qmail-pop3d: up (pid 1129) 7392 seconds /service/qmail-send: up (pid 1121) 7393 seconds /service/qmail-smtpd: up (pid 1122) 7393 seconds [EMAIL PROTECTED] /root]# svstat /service/*/log /service/qmail-pop3d/log: up (pid 1128) 7406 seconds /service/qmail-send/log: up (pid 1127) 7406 seconds /service/qmail-smtpd/log: up (pid 1130) 7406 seconds the log dir owner is qmaill drwxr-xr-x4 qmaill root 4096 Aug 29 11:50 qmai drwxr-xr-x2 qmaill root 4096 Aug 29 11:28 pop3d drwxr-xr-x2 qmaill root 4096 Aug 29 10:10 smtpd the supervise scripts are like this [EMAIL PROTECTED] /root]# ls -la /var/qmail/supervise/qmail-smtpd/ drwxr-xr-t4 root root 4096 Aug 25 13:06 . drwxr-xr-x5 root root 4096 Aug 28 2001 .. drwxr-xr-x3 root root 4096 Aug 25 11:01 log -rwxr-xr-x1 root root 334 Aug 25 13:06 run -rwxr-xr-x1 root root 347 Jan 14 2003 run.20030114 -rwxr-xr-x1 root root 336 Jun 12 2002 run.bak drwx--2 root root 4096 Aug 29 10:02 supervise [EMAIL PROTECTED] /root]# ls -la /var/qmail/supervise/qmail-send/ drwxr-xr-t4 root root 4096 Jul 29 15:53 . drwxr-xr-x5 root root 4096 Aug 28 2001 .. drwxr-xr-x3 root root 4096 Jul 29 15:53 log -rwxr-xr-x1 root root 29 Aug 27 2001 run drwx--2 root root 4096 Aug 29 10:02 supervise [EMAIL PROTECTED] /root]# ls -la /var/qmail/supervise/qmail-pop3d/ drwxr-xr-t4 root root 4096 Aug 28 18:13 . drwxr-xr-x5 root root 4096 Aug 28 2001 .. drwxr-xr-x3 root root 4096 Jul 31 08:57 log -rwxr-xr-x1 root root 198 Aug 28 18:13 run drwx--2 root root 4096 Aug 29 10:02 supervise At 06:38 PM 25/08/2003 +0200, [EMAIL PROTECTED] wrote: That solved it! Thanks now i´m happy : ) Although i have stunbled in to another problem but i´ll do a new post for that one if i don´t solve it //Tobias - Original Message - From: "Kurt Hansen" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 25, 2003 6:11 PM Subject: Re: qmail-send is eating all availible cpu time > [EMAIL PROTECTED] wrote: > > > Okay so this > > > > cd /var/qmail/supervise/qmail-send/supervise > > > > -rw-r--r--1 root root2 Aug 25 17:36 control > > -rw---1 root root0 Aug 12 13:30 lock > > -rw-r--r--1 root root0 Jul 16 14:56 ok > > -rw-r--r--1 root root 18 Aug 25 13:44 status > > > > > > Could be a problem ? how do i make them named pipes ? > > I just deleted the control file, and it was recreated as a named pipe > almost immediately. I'm guessing the same would be true with "ok". > > Take care, > > Kurt Hansen > > > > > __ NOD32 1.492 (20030825) Information __ > > This message was checked by NOD32 Antivirus System. > http://www.nod32.com > >
RE: [vchkpw] Some help needed [Off-topic]
Hi, > Add the line > 1.2.3.4:deny,RBLSMTPD=" - Connections refused" > to your tcp.smtp file. The RBLSMTPD message is optional. ...and it only has an effect if you run rblsmtpd from the ucspi-tcp package in front of qmail-smtpd. Jonas
Re: [vchkpw] Some help needed [Off-topic]
Hi Tanmaya, please respond only to the list. I'm subscribed. > can anyone tell me how to block a particular IP. Yes. > also, if i want to allow/block a network like > X.X.X.X/24 > Is it possible? Yes. http://cr.yp.to/ucspi-tcp/tcprules.html Jonas
RE: [vchkpw] Some help needed [Off-topic]
I should make that clearer.. to block say 192.168.1/24 put 192.168.1.:deny You can also block a range of addresses with 192.168-173.:deny see http://cr.yp.to/ucspi-tcp/tcprules.html for more info ... Add the line 1.2.3.4:deny,RBLSMTPD=" - Connections refused" to your tcp.smtp file. The RBLSMTPD message is optional. Shane -Original Message- From: Tanmaya Anand [mailto:[EMAIL PROTECTED] Sent: Friday, 29 August 2003 4:34 PM To: Jonas Pasche; [EMAIL PROTECTED] Subject: Re: [vchkpw] Some help needed [Off-topic] hi, It was a problem with my tcp.smtp config. can anyone tell me how to block a particular IP. also, if i want to allow/block a network like X.X.X.X/24 Is it possible? Thanks, Tanmaya
RE: [vchkpw] Some help needed [Off-topic]
Add the line 1.2.3.4:deny,RBLSMTPD=" - Connections refused" to your tcp.smtp file. The RBLSMTPD message is optional. Shane -Original Message- From: Tanmaya Anand [mailto:[EMAIL PROTECTED] Sent: Friday, 29 August 2003 4:34 PM To: Jonas Pasche; [EMAIL PROTECTED] Subject: Re: [vchkpw] Some help needed [Off-topic] hi, It was a problem with my tcp.smtp config. can anyone tell me how to block a particular IP. also, if i want to allow/block a network like X.X.X.X/24 Is it possible? Thanks, Tanmaya
Re: [vchkpw] Some help needed [Off-topic]
hi, It was a problem with my tcp.smtp config. can anyone tell me how to block a particular IP. also, if i want to allow/block a network like X.X.X.X/24 Is it possible? Thanks, Tanmaya - Original Message - From: "Jonas Pasche" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 3:29 AM Subject: Re: [vchkpw] Some help needed [Off-topic] > Hi Tanmaya, > > > Below is out of ps command on our mail server. > > Can anyone help me figureout is this any malacious attempt. > > The processlist doesn't tell us. > > 1) You have logs; look into them. If you don't understand them, >show them to us. > > 2) Look into the message files (/var/qmail/queue/mess/*/*) to see >what the actual contents are, to judge if there's a spammer on >the machine or you allowed a spammer to relay. > > Jonas > > > > >
Re: [vchkpw] courier pop3d
Hi Tobias, please respond to the list only; I'm subscribed and don't want to get your answers twice. Thanks. > Ok so i can rewrite the supervise script to run with couriertcpd and > courierpop3d instead Especially, using Courier's pop3login and Courier's vpopmail authentication module instead of qmail-popup and vchkpw - that's what the source of your problem is. > Is it possible to get the courierpop3d to work with vpopmail ? Yes. > How could a supervisescript for that look like ? You should consult the Courier IMAP list for that; this isn't vpopmail related. I don't have supervise scripts for pop3d, but my imapd supervise script reads like this: --- cut here --- #!/bin/sh exec 2>&1 PREFIX=/package/host/localhost/courier-imap exec envdir ../env \ /usr/local/bin/tcpserver -v -R 0 143 \ $PREFIX/sbin/imaplogin $PREFIX/libexec/authlib/authvchkpw \ $PREFIX/bin/imapd Maildir --- stop cutting --- It should be easy to implement pop3login/authvchkpw/pop3d in a similar manner. For full "djb-style" installation instructions, look here: http://jonaspasche.de/courier-imap-daemontools.txt It's a bit outdated, but I don't plan to update it any more; instead I suggest the use of dovecot or bincimap. Jonas
Re: [vchkpw] courier pop3d
native vchkpw will not do authentication for courier pop3d, possibly authvchkpw will do, possibly not. sincerelly, Vladimir Kabanov. - Original Message - From: "Tobias" <[EMAIL PROTECTED]> To: "Jonas Pasche" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 11:40 PM Subject: Re: [vchkpw] courier pop3d > Ok so i can rewrite the supervise script to run with couriertcpd and > courierpop3d instead > Is it possible to get the courierpop3d to work with vpopmail ? > > How could a supervisescript for that look like ? > //Tobias > - Original Message - > From: "Jonas Pasche" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, August 29, 2003 1:27 PM > Subject: Re: [vchkpw] courier pop3d > > > > Hi Tonino, > > > > > Courier pop3d is run directly by courier, as a daemon, and (as long as > > > I know) cannot be run using tcpserver. > > > > That's not true; actually Courier-IMAP starts the "pop3login > > pop3d" chain under couriertcpd, which can be replaced > > by tcpserver, if you want to. It is not a daemon; couriertcpd is the > > daemon (like tcpserver). > > > > Jonas > > > > > > > > > > __ NOD32 1.496 (20030828) Information __ > > > > This message was checked by NOD32 Antivirus System. > > http://www.nod32.com > > > > > > >
Re: [vchkpw] courier pop3d
Ok so i can rewrite the supervise script to run with couriertcpd and courierpop3d instead Is it possible to get the courierpop3d to work with vpopmail ? How could a supervisescript for that look like ? //Tobias - Original Message - From: "Jonas Pasche" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 1:27 PM Subject: Re: [vchkpw] courier pop3d > Hi Tonino, > > > Courier pop3d is run directly by courier, as a daemon, and (as long as > > I know) cannot be run using tcpserver. > > That's not true; actually Courier-IMAP starts the "pop3login > pop3d" chain under couriertcpd, which can be replaced > by tcpserver, if you want to. It is not a daemon; couriertcpd is the > daemon (like tcpserver). > > Jonas > > > > > __ NOD32 1.496 (20030828) Information __ > > This message was checked by NOD32 Antivirus System. > http://www.nod32.com > >
[vchkpw] qmail+qmail-scanner+vpopmail+maildrop
Hi all, So I've managed to get the combination of software packages listed above, with one glitch. The most confusing part of all of this was getting maildrop to play nice with vpopmail. Fortunately, I happened to stumble on a script by Howard Jones (http://wotsit.thingy.com/haj/mailfilter-spamassassin-vpopmail.shtml) which was pretty close to what I was trying to accomplish. Rather than calling spamassassin via maildrop, as done in Howard's script, qmail-scanner provides that function for me -- being called via QMAILQUEUE. So I've modified his script to accommodate for the change, as provided below. All of this works as you'd expect, unless email is marked as spam for a non-existent mailbox/user. SPAM flagged to [EMAIL PROTECTED] (deferral): deferral: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/maildrop:_error_writing_to_mai lbox./maildrop:_Unable_to_deliver_to_mailbox./ Clean to [EMAIL PROTECTED] (failure): delivery 3269: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ Why am I getting a deferral when the message is marked as SPAM, instead of the correct response of a failure? The obvious annoyance here is that the deferral ends up sitting in the queue for 'queuelifetime', repeatedly failing to deliver before sending the bounce. At this point my mind is blank and was hoping I could find some direction or opinions on how to get to the bottom of this. I hope I've made some sense -- been a long day. Regards, Rafi --- VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] BOUNCE="|/usr/bin/bouncesaying 'Sorry, no mailbox here by that name. (#5.1.1)'" # Absense of this check resulted in deferred status in cases # where spamassassin flagged email positive. if ($RETURNCODE > 0) { to "$BOUNCE" exit } if (/^X-Spam-Status: *Yes/) { # try filtering it using user-defined rules exception { include $VHOME/Maildir/.mailfilter } # then try delivering it to a Spam folder exception { # to "$VPOP" to "$VHOME/Maildir/.Spam/" } # ah well, I guess they'll just have to live with disappointment exception { to "$VPOP" } } else { exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" exit } } exit
Re: [vchkpw] courier pop3d
Hi Tonino, > Courier pop3d is run directly by courier, as a daemon, and (as long as > I know) cannot be run using tcpserver. That's not true; actually Courier-IMAP starts the "pop3login pop3d" chain under couriertcpd, which can be replaced by tcpserver, if you want to. It is not a daemon; couriertcpd is the daemon (like tcpserver). Jonas
Re: [vchkpw] courier pop3d
Hi Tobias, > Is it possible to use courier pop3d like this ? Judging from your mail telling us you get AUTHFAILURE, obviously not. The authentication model of Courier-IMAP is different from qmail's own POP3 server. For example, the checkpassword-compatible password checker (here: vchkpw) checks for the password, then switches its user ID to the target user and changes into his home directory, then invoking "qmail-pop3d Maildir". Despite that, Courier's pop3d binary reads file descriptor 3 to see if the userid/password has been succesfully validated. As a checkpassword compatible program doesn't set it up, you cannot use Courier's pop3d with qmail-popup and vchkpw. Use instead Courier's pop3login, Courier's authlib (which sets up file descriptor 3), and Courier's pop3d. Or, simply stay with qmail's own POP3 server. For further information, see "man qmail-popup", "man qmail-pop3d" and: http://www.courier-mta.org/authlib.html Jonas
Re: [vchkpw] courier pop3d
Courier pop3d is run directly by courier, as a daemon, and (as long as I know) cannot be run using tcpserver. Read courier documentation. You'll find an initial courier command file that must be run at startup time (I have /mypath/courier-imap-1.5.1/libexec/pop3d.rc start as my starting command). I'm using courier pop3d, and I find it much (a lot) faster than qmail pop3d. Ciao, Tonino At 29/08/03 29/08/03 +0200, Tobias wrote: Is it possible to use courier pop3d like this ? #!/bin/sh exec /usr/local/bin/softlimit -m 300 \ /usr/local/bin/tcpserver \ -v -x /etc/tcp.pop3.cdb -c 30 -R 0 pop3 \ /var/qmail/bin/qmail-popup apache.telgegamers.nu \ /home/vpopmail/bin/vchkpw /usr/local/courier-imap/bin/pop3d Maildir 2>&1 I have tied but get AUTHFAILURE! //Tobias [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
RE: [vchkpw] Can not get vpopmail to enable roaming support
Hey Raymond, please send answers to the list only; I'm subscribed. > ./configure \ > [...] > --enable-mysql=y \ > [...] Ah, you used MySQL. In that case, open relay information is stored in your MySQL database, not in open-smtp. I never used the MySQL setup; so I cannot tell anything more about it. > When it was done, I went looking for the open-smtp file. I can not find > it. I did a search of my whole computer and no luck. No need to search "the whole computer". You defined it to be in /home/vpopmail/etc, and there it should be, but as you used MySQL (sorry, didn't notice it in the first place), it is obsolete. > Do you know why the > make install-strip did not create the open-smtp file? Even without MyQL, install-strip doesn't create it. vchkpw creates it after a successful POP3 login. Does the date/time of /home/vpopmail/etc/tcp.smtp.cdb change after a successful POP3 login? Jonas
[vchkpw] courier pop3d
Is it possible to use courier pop3d like this ? #!/bin/sh exec /usr/local/bin/softlimit -m 300 \ /usr/local/bin/tcpserver \ -v -x /etc/tcp.pop3.cdb -c 30 -R 0 pop3 \ /var/qmail/bin/qmail-popup apache.telgegamers.nu \ /home/vpopmail/bin/vchkpw /usr/local/courier-imap/bin/pop3d Maildir 2>&1 I have tied but get AUTHFAILURE! //Tobias
RE: [vchkpw] /var/mail/vpopmail
> What does your /var/qmail/rc file look like? > > -Original Message- > From: Jasper Metselaar [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 7:38 AM > To: [EMAIL PROTECTED] > Subject: [vchkpw] Re /var/mail/vpopmail > > > Doublebounce settings and .qmail files are ok. > > Below is a header of a message dumped to /var/mail/vpopmail. As you can > see, this is not a bounce message... it's the original. When I sent > this message to a non existing address the message was dumped to > /var/mail/vpopmail and a non-delivery report was sent to the originator > (me). > START > From vpopmail Thu Aug 28 16:31:45 2003 > Received: (qmail 4184 invoked from network); 28 Aug 2003 14:31:45 - > Received: from xxx.xxx.xxx (xxx.xxx.xxx.xx) > by 0 with SMTP; 28 Aug 2003 14:31:45 - > Received: from [xxx.xxx.xx.xxx] (helo=..xxx) >by xx.x.xxx with esmtp (Exim 3.36 #1) >id 19sNoN-0001mk-00 >for [EMAIL PROTECTED]; Thu, 28 Aug 2003 16:31:43 +0200 > Received: by wfwin3 with Internet Mail Service (5.5.2653.19) >id ; Thu, 28 Aug 2003 16:31:39 +0200 > Message-ID: <[EMAIL PROTECTED]> > From: "Metselaar, J.M." <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: This is a test > Date: Thu, 28 Aug 2003 16:30:29 +0200 > MIME-Version: 1.0 > X-Mailer: Internet Mail Service (5.5.2653.19) > Content-Type: text/plain > END > > For some reason I think the problem is in my maildrop script, but I > can't figure out where. The script is below: > > START > import EXT > import HOST > VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" > VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] > > if ( $SIZE < 262144 ) > { > exception { > xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]" > } > } > if (/^X-Spam-Flag: *YES/) > { > # try filtering it using user-defined rules > exception { > include $VHOME/Maildir/.mailfilter >} > # then try delivering it to a Spam folder > exception { > # to "$VPOP" > to "$VHOME/Maildir/" >} > ># ah well, I guess they'll just have to live with disappointment > > exception { > to "$VPOP" >} > } > > else { >exception { >include $VHOME/Maildir/.mailfilter > } >exception { >to "$VPOP" > } >} > END > Any ideas? > > Thanks in advance! > > - Jasper > > >> I don't think it's vpopmail that's dropping it into that file. It >> sounds more like mail is being delivered to the vpopmail user on your >> local system.> What does qmail have for it's double bounce account >> (run /var/qmail/bin/qmail-showctl to see) and also what does your >> /var/qmail/alias directory look like.. more specifically the .qmail >> files inside it. >> >>> -Original Message- >>> From: Jasper Metselaar [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, August 27, 2003 3:04 AM >>> To: [EMAIL PROTECTED] >>> Subject: [vchkpw] /var/mail/vpopmail >>> >>> >>> Hi, >>> >>> Vpopmail is running fine on my server, but there is on thing that's >>> strange (in my opinion, anyway ;-)):There is a very fast growing >>> file: /var/mail/vpopmail >>> >>> It looks like vpopmail is dumping undeliverable mail into this file. >>> Is this normal or is there a misconfiguration somewhere? >>> Thanks! >>> >>> - Jasper > > > > > > >
RE: [vchkpw] Can not get vpopmail to enable roaming support
Hey Jonas Thanks for your straight forward answer. I like it! I follow your suggestion. This is what i did for the vpopmail configure ./configure \ --enable-roaming-users=y \ --enable-tcprules-prog=/usr/local/bin/tcprules \ --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp \ --enable-relay-clear-minutes=70 \ --enable-learn-passwords=y \ --enable-default-domain=genkians.com \ [EMAIL PROTECTED] \ --enable-logging=p \ --enable-defaultquota=20971520S \ --enable-ip-alias-domains=n \ --enable-passwd=n \ --enable-clear-passwd=y \ --enable-mysql=y \ --enable-incdir=/usr/local/mysql/include \ --enable-libdir=/usr/local/mysql/lib \ --enable-many-domains=n \ --enable-auth-logging=y \ --enable-mysql-logging=y \ --enable-valias=y I got this in return vpopmail directory = /home/vpopmail uid = 89 gid = 89 ip alias = OFF --enable-ip-alias-domains=n (default) address extentions = OFF --enable-qmail-ext=n (default) roaming users = ON --enable-roaming-users=y tcpserver file = /home/vpopmail/etc/tcp.smtp open_smtp file = /home/vpopmail/etc/open-smtp user quota = 20971520S -enable-hardquota=20971520S auth module = mysql --enable-mysql=y mysql replication = OFF --enable-mysql-replication=n default table optimization = one domain with many users --enable-many-domains=n system passwords = OFF --enable-passwd=n default file locking = ON --enable-file-locking=y default file sync = OFF --enable-file-sync=n default disable vdelivermail fsync make seekable = ON --enable-make-seekable=y default auth logging = ON --enable-auth-logging=y default mysql logging = ON --enable-mysql-logging=y clear passwd = ON --enable-clear-passwd=y (default) users big dir = ON --enable-users-big-dir=y (default) valias processing = ON --enable-valias=y mysql limits = OFF --enable-mysql-limits=n default pop syslog = show failure attempts with clear text password --enable-logging=p default domain = genkians.com --enable-default-domain=genkians.com auth inc = -I/usr/local/mysql/include auth lib = -L/usr/local/mysql/lib -l then I ran "make" and "make install-strip" When it was done, I went looking for the open-smtp file. I can not find it. I did a search of my whole computer and no luck. Do you know why the make install-strip did not create the open-smtp file? Raymond
[vchkpw] Vpopmail Question
hi All Mysql problem is solved with giving localhost. But the mail Question was if add a domain on one server with a centralized(name as vpopmail)database. it can be accessible on other server from same database. For example i add one domain on Testmail server and add one user. These all information stored in mysql vpopmail database. Now on other server where vpopmail is also installed with mysql support running on other abover defined server.So Can i accesss/authenticate all user of Server 1 on this second server. Anyidea.