[vchkpw] Logging Messages
Whenever someone logs on I get logging messages. Do I have to re-compile to get rid of these messages?
RE: [vchkpw] Syslog logging of vopmail 5.2.1
To quote Homer Simpson "Doh!" There they are Thanks a lot! John -Original Message- From: Michael Bowe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:25 PM To: 'Vpopmail List' Subject: RE: [vchkpw] Syslog logging of vopmail 5.2.1 did you check in /var/log/maillog? Michael. > -Original Message- > From: John C [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 12 September 2002 5:49 AM > To: info@inter7. com > Cc: Vpopmail List > Subject: [vchkpw] Syslog logging of vopmail 5.2.1 > > > > I compiled vpopmail with this configure command: > > ./configure --enable-tcprules=/var/qmail/control/tcprules.dat > --enable-md5-p > asswords=y --enable-logging=v --enable-clear-passwd=y > --enable-mysql-replica > tion=y --enable-passwd=y --enable-defaultquota=1000 > --enable-valias=y -- > enable-default-domain=knology.net --enable-many-domains=n > --enable-libs=/usr > /lib/mysql/ --enable-mysql=y --enable-auth-logging=y > --enable-log-name=vpopm > ail > > > Everything works fine except for the fact that I am not > seeing anything in > syslog. > I started syslog with and without the "-r" option, though I > assume you would > not need the -r since it is logging locally. > > > My syslog.conf file looks like this: > > # Log all kernel messages to the console. > # Logging much else clutters up the screen. > #kern.* /dev/console > > # Log anything (except mail) of level info or higher. > # Don't log private authentication messages! > *.info;mail.none;authpriv.none;cron.none > /var/log/messages > > # The authpriv file has restricted access. > authpriv.* > /var/log/secure > > # Log all the mail messages in one place. > mail.* > /var/log/maillog > > > # Log cron stuff > cron.* /var/log/cron > > # Everybody gets emergency messages > *.emerg * > > # Save news errors of level crit and higher in a special file. > uucp,news.crit > /var/log/spooler > vpopmail.* > /var/log/pop3auth > > # Save boot messages also to boot.log > local7.* > /var/log/boot.log > > > I don't see any activity in /var/log/messages or /var/log/pop3auth > > > Is the configure command of my vpopmail install wrong? > Has anyone else seen this before? > > The OS is RedHat Linux 7.3. > > If I tell it to log to MySQL using --enable-mysql-logging=y, > this works. > > > John Councilman > > Knology Systems Engineer > >
Re: [vchkpw] Logging Messages
On Thursday 12 September 2002 05:44 am, Grant Cooper wrote: > Whenever someone logs on I get logging messages. Do I have to re-compile to > get rid of these messages? Yes, the level of logging is a #define in the config.h file. The configure script sets the variable and value. Then compiling builds it into each program (that needs it). This goes along with the philosophy that by compling in configuration values, we save time on parsing a config file for every transaction, and we simplify administration by not having a config file to break :) Ken Jones
[vchkpw] Best way to remove periodically trash content
Hi all, I'm using qmail+vpopmail. I want to give my users teh choice to remove periodically their trash content. What is the best way to do this? A root crontab? Anyone can help me? I'm new to vpopmail. TIA,Paulo Henrique On Thu, 12 Sep 2002 09:53:50 -0500 Ken Jones <[EMAIL PROTECTED]> wrote: > > On Thursday 12 September 2002 05:44 am, Grant Cooper wrote: > > Whenever someone logs on I get logging messages. Do I have to re-compile to > > get rid of these messages? > > Yes, the level of logging is a #define in the config.h file. > The configure script sets the variable and value. Then > compiling builds it into each program (that needs it). > This goes along with the philosophy that by compling > in configuration values, we save time on parsing a > config file for every transaction, and we simplify > administration by not having a config file to break :) > > Ken Jones > > -- Paulo Henrique B de Oliveira Gerente de Operações - Linux Solutions - http://www.linuxsolutions.com.br O maior conteúdo de Linux em língua portuguesa - OLinux - http://www.olinux.com.br (21) 2526-7262 ramal 31
[vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
Logging to pop3 server, sometimes, i have this error: tcprules: fatal: unable to create /etc/tcp.smtptmp.18541: access denied-ERR aack, child crashed I've noticed this behaviour when telnetting to localhost port 110 and trying a pop3 authentification. What is it? How to fix it? Thanks.
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
On Thursday 12 September 2002 12:47 pm, Luc wrote: > Logging to pop3 server, sometimes, i have this error: > > tcprules: fatal: unable to create /etc/tcp.smtptmp.18541: access denied > -ERR aack, child crashed > > I've noticed this behaviour when telnetting to localhost port 110 and > trying a pop3 authentification. > > What is it? > > How to fix it? > > Thanks. That's why I put the tcp.smtp files under /home/vpopmail/etc so the vpopmail user has permissions to write to those files. Otherwise, it requires root access to write to the /etc directory Ken Jones
[vchkpw] vpasswd and qmail assign
My server has been running great for 2 years, now suddenly there are several user in the vpasswd file that are no longer in the qmail assign file, and i'm getting 'No such Mailbox' errors.. Is there a way to recreate the qmail/users/assign from the vpasswd file? tks jim
[vchkpw] RE: [SAtalk] Seen on BugTraq: Bypassing SMTP Content Protection
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On > Behalf Of Miles Sabin > Sent: Thursday, September 12, 2002 12:10 PM > To: [EMAIL PROTECTED] > Subject: [SAtalk] Seen on BugTraq: Bypassing SMTP Content Protection > > > Potentially exploitable by the opposition I'd imagine, > http://online.securityfocus.com/archive/1/291514/2002-09-09/2002-09-15/0 To sum up the targets as per the article, the possibly affected are: Any email filtering, virus checking, and content checking mechanism that is unable to assemble a fragmented email to its complete form. So, I guess the question is this: does a solution like qmail/vpopmail/qmail-scanner assemble the email before it drops it into the virtual user's mailbox? Seems like it *would* but I haven't looked much into it. Look out for micro-spam...coming at us in small bits ;)
[vchkpw] OT: Seen on BugTraq: Bypassing SMTP Content Protection
* Jeremy Oddo <[EMAIL PROTECTED]> [020912 21:53]: > http://online.securityfocus.com/archive/1/291514/2002-09-09/2002-09-15/0 > > So, I guess the question is this: does a solution like > qmail/vpopmail/qmail-scanner assemble the email before it drops it into > the virtual user's mailbox? Seems like it *would* but I haven't looked > much into it. If you're willing to pay the price of stopping legitimate fragmented messages (I am because my user's MUA won't understand them anyhow) there is a quick fix for qmail-scanner... message/partial.* Virus-content-type: Possible message fragmentation exploit -Johan -- Johan Almqvist http://www.almqvist.net/johan/qmail/ msg08847/pgp0.pgp Description: PGP signature
[vchkpw] --enable-qmail-ext=y|n ??
I am having problems with people not being able to unsubscribe from the mail lists. They get errors that the mailbox does not exist. I know this should probably go to the ezmlm list. Does this setting: --enable-qmail-ext=y|n need to be enabled? I am using ezmlm-idx-std-0.53.400-8.i386.rpm. I have it enabled for now but I get these errors in my maillog: --- Sep 12 13:27:36 vmail qmail: 1031862456.391295 starting delivery 51448: msg 32842 to local [EMAIL PROTECTED] Sep 12 13:27:36 vmail qmail: 1031862456.391428 status: local 1/100 remote 0/400 Sep 12 13:27:36 vmail qmail: 1031862456.412504 delivery 51448: deferral: ezmlm-reject:_fatal:_List_address_must_be_in_To:_or_Cc:_(#5.7.0)/ Sep 12 13:27:36 vmail qmail: 1031862456.412613 status: local 0/100 remote 0/400 --- I am using the valias support so all of my .qmail files for the list are in mysql. MySQL valias table entree: - alias | domain | valias_line - testlist| checkoutisle.net | |/usr/bin/ezmlm-reject '/vmail/domains/0/checkoutisle.net/testlist'| testlist-return-default | checkoutisle.net | |/usr/bin/ezmlm-return -D '/vmail/domains/0/checkoutisle.net/testlist' | testlist-return-default | checkoutisle.net | |/usr/bin/ezmlm-weed | - Here is my list config file: -- F:-aBCDeFGHIJKLMNOpQRSTuVWXYZ X: D:/vmail/domains/0/checkoutisle.net/testlist T:/vmail/domains/0/checkoutisle.net/.qmail-testlist L:testlist H:checkoutisle.net C:[EMAIL PROTECTED] 0: 3: 4: 5:[EMAIL PROTECTED] 6: 7: 8: 9: -- Any help would be appreciated. --- Brad Dameron Network Account Executive TSCNet Inc. www.tscnet.com Silverdale, WA. 1-888-8TSCNET
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
>That's why I put the tcp.smtp files under /home/vpopmail/etc >so the vpopmail user has permissions to write to those files. >Otherwise, it requires root access to write to the /etc directory >Ken Jones i'm a newbie so forgive my elementary questions. I've just configured vpopmail with roaming users support. My qmail-smtpd/run script is like so: QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in echo $0 exit 1 fi QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE exec /usr/local/bin/softlimit -m 2000 \ /usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp rblsmtpd \ -r bl.spamcop.net \ /var/qmail/bin/qmail-smtpd 2>&1 as u see i'm using /etc/tcp.smtp.cdb as Ken correctly stated. Now...if i modify the script setting using /home/vpopmail/etc/tcp.smtpd.cdb instead of /etc/tcp.smtp.cdb and i do qmailctl start, my smtp server starts..but refuses connections on port 25 ! Wonder i made some mistakes. What can it be? How should i generate tcp.smtp.cdb in /home/vpopmail/etc/ since it is not created during installation? I just touched it and set vpopmail ownership. Another question: there is a delay between pop3 authentification and roaming user permit to relay? Anyone have an hint? :) Thanks, Luc
[vchkpw] User expiry
Is there a way to set a user to expire after certain number of days, or even on a specified date? KS KARICO Business Services Toronto, ON Canada http://www.karico.ca Improve your golf game - get Pocket Pro Pack: http://pocketproshop.com
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
On Thursday, September 12, 2002, at 03:48 PM, Luc wrote: > as u see i'm using /etc/tcp.smtp.cdb as Ken correctly stated. > > Now...if i modify the script setting using > /home/vpopmail/etc/tcp.smtpd.cdb > instead of /etc/tcp.smtp.cdb and i > do qmailctl start, my smtp server starts..but refuses connections on > port 25 > ! > > Wonder i made some mistakes. > > What can it be? > How should i generate tcp.smtp.cdb in /home/vpopmail/etc/ since it is > not > created during installation? run clearopensmtp. > I just touched it and set vpopmail ownership. This may not work. It needs to be in cdb format. > Another question: there is a delay between pop3 authentification and > roaming > user permit to relay? Nope. Should be immediate. However, if you are in a cluster environment, Regards, Bill
[vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
Hi Bill :) > run clearopensmtp. Done, it doesn't generate any file... > This may not work. It needs to be in cdb format. How to generate this file then?
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
On Thursday, September 12, 2002, at 05:17 PM, Luc wrote: > Hi Bill :) > >> run clearopensmtp. > > Done, it doesn't generate any file... > >> This may not work. It needs to be in cdb format. > > How to generate this file then? You may need to have something in tcp.smtp for it to take. Try this: echo '127.:allow,RELAYCLIENT=""' > ^vpopmail/etc/tcp.smtp Then run clearopensmtp. Bill
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
> You may need to have something in tcp.smtp for it to take. Try this: > echo '127.:allow,RELAYCLIENT=""' > ^vpopmail/etc/tcp.smtp > Then run clearopensmtp. My tcp.smtp was already set up. I did as u suggested anyway. Then runned clearopensmtp and... no news :(( Wonder if my installation is broken...weird, the daemon works correctly. Any other way to create this file?
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
Hi, Kinda just jumping in here, but couldn't he create the cdb file with tcprules ? Regards, Rick - Original Message - From: "Luc" <[EMAIL PROTECTED]> To: "Bill Shupp" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 6:27 PM Subject: Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp > > You may need to have something in tcp.smtp for it to take. Try this: > > echo '127.:allow,RELAYCLIENT=""' > ^vpopmail/etc/tcp.smtp > > Then run clearopensmtp. > > My tcp.smtp was already set up. > I did as u suggested anyway. > Then runned clearopensmtp and... no news :(( > > Wonder if my installation is broken...weird, the daemon works correctly. > > Any other way to create this file? > >
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
On Thursday, September 12, 2002, at 05:55 PM, Rick Macdougall wrote: > Hi, > > Kinda just jumping in here, but couldn't he create the cdb file with > tcprules ? Yup. cd ~vpopmail/etc/ cat open-smtp tcp.smtp | tcprules tcp.smtp.cdb tcp.smtp.tmp Bill
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
> cd ~vpopmail/etc/ > cat open-smtp tcp.smtp | tcprules tcp.smtp.cdb tcp.smtp.tmp > > Bill Well, now i have my tcp.smtp.cdb I added [...] /usr/local/bin/tcpserver -v -R -H -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp rblsmtpd \ [..] To my run script. Now i see my ip in the open.smtp file BUT i'm not allowed to relay ... (neither after pop3 auth). Argh :(
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
Hi, Did you make sure vpopmail.vchkpw has write access to the new tcp.smtp.cdb file? Regards, Rick - Original Message - From: "Luc" <[EMAIL PROTECTED]> To: "Bill Shupp" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 7:11 PM Subject: Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp > > cd ~vpopmail/etc/ > > cat open-smtp tcp.smtp | tcprules tcp.smtp.cdb tcp.smtp.tmp > > > > Bill > > Well, now i have my tcp.smtp.cdb > > I added > > [...] > /usr/local/bin/tcpserver -v -R -H -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb -c > "$MAXSMTPD" \ > -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp rblsmtpd \ > [..] > > To my run script. > > Now i see my ip in the open.smtp file BUT i'm not allowed to relay ... > (neither after pop3 auth). > > Argh :( > >
Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
> Hi, > > Did you make sure vpopmail.vchkpw has write access to the new tcp.smtp.cdb > file? > > Regards, > > Rick Yes. Here is my config. Surely i made some big lamah mistake :) Here is my configuration: cat /service/qmail-smtpd/run #!/bin/sh # Dave Sill, 2001-11-06 # For use with The qmail Handbook, ISBN 1893115402 QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in echo $0 exit 1 fi QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE exec /usr/local/bin/softlimit -m 2000 \ /usr/local/bin/tcpserver -v -R -H -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp rblsmtpd \ -r bl.spamcop.net \ # ls -al /home/vpopmail/etc/ totale 28 drwxr-xr-x2 vpopmail vchkpw 4096 set 13 01:31 . drwxr-xr-x8 vpopmail vchkpw 4096 set 12 20:47 .. -rw-r--r--1 vpopmail vchkpw 25 set 10 21:57 inc_deps -rw-r--r--1 vpopmail vchkpw 32 set 10 21:57 lib_deps -rw-r--r--1 vpopmail vchkpw118 set 13 01:31 open-smtp -rw-r--r--1 vpopmail vchkpw 0 set 13 01:29 open-smtp.lock -rw-r--r--1 vpopmail vchkpw 61 set 13 00:30 tcp.smtp -rw-r--r--1 vpopmail vchkpw 2141 set 13 01:28 tcp.smtp.cdb well...here is the content of my open-smtp # cat open-smtp 212.97.34.xxx:allow,RELAYCLIENT="",RBLSMTPD="" 1031873097 212.97.44.xxx:allow,RELAYCLIENT="",RBLSMTPD="" 1031873528 It seem correct. Now i try to send mail with the ip 212.97.34.xxx, who SHOULD be allowed. Connected to mail.something.com Escape character is '^]'. 220 ESMTP mail from [EMAIL PROTECTED] 250 ok rcpt to:[EMAIL PROTECTED] 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) And finally, here is my qmail start script.ù #cat /etc/init.d/qmail #!/bin/sh # For Red Hat chkconfig # chkconfig: - 30 80 # description: the qmail MTA # # Dave Sill, 2001-11-06 # For use with The qmail Handbook, ISBN 1893115402 PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH LOG=/var/log/qmailctl echo `date` `tty` $* >>$LOG if [ -d /service/qmail-pop3d ]; then POP=yes else POP=no fi case "$1" in start) echo "Starting qmail" if svok /service/qmail-send ; then svc -u /service/qmail-send 2>&1 | tee -a $LOG else echo qmail-send service not running fi if svok /service/qmail-smtpd ; then svc -u /service/qmail-smtpd 2>&1 | tee -a $LOG else echo qmail-smtpd service not running fi if [ -d /var/lock/subsys ]; then touch /var/lock/subsys/qmail fi if [ $POP = yes ]; then if svok /service/qmail-pop3d ; then svc -u /service/qmail-pop3d else echo qmail-pop3d service not running fi fi ;; stop) echo "Stopping qmail..." echo " qmail-smtpd" svc -d /service/qmail-smtpd 2>&1 | tee -a $LOG echo " qmail-send" svc -d /service/qmail-send 2>&1 | tee -a $LOG if [ -f /var/lock/subsys/qmail ]; then rm /var/lock/subsys/qmail fi if [ $POP = yes ]; then echo " qmail-pop3d" svc -d /service/qmail-pop3d fi ;; stat) svstat /service/qmail-send svstat /service/qmail-send/log svstat /service/qmail-smtpd svstat /service/qmail-smtpd/log if [ $POP = yes ]; then svstat /service/qmail-pop3d svstat /service/qmail-pop3d/log fi qmail-qstat ;; doqueue|alrm|flush) echo "Sending ALRM signal to qmail-send." svc -a /service/qmail-send 2>&1 | tee -a $LOG ;; queue) qmail-qstat qmail-qread ;; reload|hup) echo "Sending HUP signal to qmail-send." svc -h /service/qmail-send 2>&1 | tee -a $LOG ;; pause) echo "Pausing qmail-send" svc -p /service/qmail-send 2>&1 | tee -a $LOG echo "Pausing qmail-smtpd" svc -p /service/qmail-smtpd 2>&1 | tee -a $LOG if [ $POP = yes ]; then echo "Pausing qmail-pop3d" svc -p /service/qmail-pop3d fi ;; cont) echo "Continuing qmail-send" svc -c /service/qmail-send 2>&1 | tee -a $LOG echo "Continuing qmail-smtpd" svc -c /service/qmail-smtpd 2>&1 | tee -a $LOG if [ $POP = yes ]; then echo "Continuing qmail-pop3d" svc -c /service/qmail-pop3d fi ;; restart) echo "Restarting qmail:" echo "* Stopping qmail-smtpd." svc -d /service/qmail-smtpd 2>&1 | tee -a $LOG echo "* Sending qmail-send SIGTERM and restarting." svc -t /service/qmail-send 2>&1 | tee -a $LOG echo "* Restarting qmail-smtpd." svc -u /service/qmail-smtpd 2>&1 | tee -a $LOG if [ $POP = yes ]; then echo "* Restarting qmail-pop3d." svc -t /service/qmail-pop3d fi ;; cdb) tcprules /home/vpopmail/etc/tcp.smtp.cdb /home/vpopmail/etc/tcp.smtp.tmp < /home/vpopmail/etc/tcp.smtp 2>&1
[vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp
Ok, i got the point. The clearopensmtp executable is owned by vpopmail, correctly but i don't know why, when i run it the /home/vpopmail/etc/tcp.smtp.cdb is chowned to root. I had clearopensmtp in the crontab for root, as INSTALL suggested. I modified the entry the crontab entry to su vpopmail -c "/home/vpopmail/bin/clearopensmtp" 2>& and now the file keep correct permissions and everything work fine. I still have the problem if i launch it from console. Well..i don't know. But at least is working now :) Luc