RE: stats from qmailanalog
http://www.ornl.gov/its/archives/mailing-lists/qmail/2000/06/msg00325.html That is the link to the script that I'm using to process my mail logs. It has been pointed out to me that the conversion routine (orginally posted by Jos ?? Someone - I can't find the orginal in the archive for some reason) that I'm using is 10 second off from tai64nlocal, but it is close enough for my needs. -Original Message- From: flitcraft33 [mailto:[EMAIL PROTECTED]] Sent: Friday, July 28, 2000 12:31 PM To: [EMAIL PROTECTED] Subject: stats from qmailanalog I am new to qmail and I am trying to set up the qmailanalog scripts to provide statistics and process the log files. I can't get any of it to work, I read the read-mes and man pages and am clueless. My installation follows the defaults in qmail, appears to work fine and uses mail directories owned by the user and placed beneath their home directories. I ran the tai64local program against a copy of a log and got human time stamps. I followed the steps on the matchup and got as far as a file that had my log with a question mark on each line. After that errors all around. the next instructions on the manpage follow out.1 5>pending.2 cat pending.2 log.2 | matchup >out.2 5>pending.3 cat pending.3 log.3 | matchup >out.3 5>pending.4 Is this some kind of log rotation or what? What's the deal with 5> in the first line? What on earth does that do? As you can tell I am totally lost. I really have tried to find this stuff in man pages, manuals and by searching the net, but I'm lost. Is there a how-to or a kind soul who can explain step by step (with some expanations of what a given command is doing) for me. I would be glad to codify this for some kind of mini-how to or for inclusion with the scripts with the permission of the appropriate people. Thank you Dan Sichel puzzled newbie
RE: smtp auth and vpopmail
Ken - is your problem just with Netscape? Did you uncomment out the #DEFINE SMTPAUTH_NETSCAPE_WORKAROUND line?? > -Original Message- > From: kbo [mailto:kbo]On Behalf Of Ken Jones > Sent: Tuesday, August 08, 2000 11:58 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: smtp auth and vpopmail > > > Does anyone have vpopmail working with smtp authentication? > > I'm trying to make the > http://members.elysium.pl/brush/qmail-smtpd-auth/ > code work with vpopmail and netscape 4.72. But > no luck so far. > > If you have it working, what is your startup line > for tcpserver/qmail-smtpd? What changes did you > make to the qmail-smtpd.c code besides applying > the patch? > > Ken Jones > inter7 >
RE: SMTP-after-IMAP? (was Re: Unable to connect to SMTP)
There are also some nice SMTP-Auth patches on the qmail page. Don't use IMAP, but do use the patch at http://members.elysium.pl/brush/qmail-smtpd-auth/ instead of POP before SMTP. Works great for us. > -Original Message- > From: Kris Kelley [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 24, 2000 10:50 AM > To: [EMAIL PROTECTED] > Subject: SMTP-after-IMAP? (was Re: Unable to connect to SMTP) > > > Stephen F. Bosch <[EMAIL PROTECTED]> wrote: > > > Also, you might want to use a smarter relay control mechanism than > opening up > > > an entire /16 for relaying; you could easily get hit that > way. Perhaps > an > > > SMTP-after-POP solution, like Bruce Guenter's relay-ctrl package. > > > > *Everybody* says that =) But I am using IMAP, and as far as I know AT&T > > has the entire 12. class A... unless there are some major spammers at > > AT&T, I should be okay... > > That leads to a question that I was about to ask anyway. Is > there anything > out there for qmail that offers SMTP-after-IMAP authentication and relay > control? The email system that I am putting together is going to be > offering IMAP and SMTP service to arbitrary users across the Internet, and > could really use something like this. > > ---Kris Kelley > >
qmail-smtpd-auth
I'm having trouble getting this patch to work with $M outlook express or the 2000 client. When I turn on smtp auth on in these clients - it just prompts me for a user name and password over and over again - same thing with Netscape. smtp startup file [bucknum@mail1 qmail-smtpd]$ less run #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \ -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd /bin/checkpassword /bin/true /bin/cmd5checkpw /bin/true run (END) tcp.smtp file contents [bucknum@mail1 /etc]$ less tcp.smtp 127.:allow,RELAYCLIENT="" 10.1.1.:allow,RELAYCLIENT="" tcp.smtp (END) Contents of my poppasswd file [bucknum@mail1 /etc]# less poppasswd brush:dupa98 poppasswd (END) I put this back to as it was shipped as part of testing - I've changed this to my username and password and get the same results What I get when I log in on SMTP 220 lcr-m.dhs.org ESMTP ehlo 250-lcr-m.dhs.org 250-AUTH=LOGIN CRAM-MD5 PLAIN 250-AUTH LOGIN CRAM-MD5 PLAIN 250-PIPELINING 250 8BITMIME I put the old binary back log in and this is what I get 220 lcr-m.dhs.org ESMTP ehlo 250-lcr-m.dhs.org 250-PIPELINING 250 8BITMIME What am I screwing up here??
FW: qmailanalog and multilog
Not using the patches from www.qmail.org, but this works for me Script to convert to a format qmailanalog likes #!/usr/bin/perl while (<>) { if (my($s,$t,$rest)=/^\@.(\w{15})(\w{8})(.*)/) { $s = hex($s); $t = hex($t); $t =~ s/500$//; $_ = "$s.$t$rest\n"; } } continue { print; } exit 0; Script to process the logs and mail to me #!/bin/sh PATH=/usr/local/qmailanalog/bin:/var/qmail/bin:/bin:/usr/bin QMAILLOG="/tmp/q.$$" QMAILTMP="/tmp/r.$$" umask 077 cat /var/log/qmail/@* > $QMAILTMP cat /var/log/qmail/current >> $QMAILTMP cat $QMAILTMP | tai64n2time | matchup > $QMAILLOG 5>/dev/null DATE=`date +'%a %d %b'` (echo "To: [EMAIL PROTECTED]" echo "From: [EMAIL PROTECTED]" echo "Subject: Qmail daily report $DATE" echo "" zoverall < $QMAILLOG) | qmail-inject rm -f $QMAILLOG rm -f $QMAILTMP -Original Message- From: kbo [mailto:kbo]On Behalf Of Ken Jones Sent: Wednesday, June 07, 2000 3:29 PM To: [EMAIL PROTECTED] Subject: qmailanalog and multilog Does anyone have a patch to qmailanalog to read the new multilog time format? Ken Jones inter7
RE: tcprules script
test also works with the newer than parm if test file1 -nt file2; then do something fi man test for all the options -Original Message- From: mbabcock [mailto:mbabcock]On Behalf Of Michael T. Babcock Sent: Friday, June 16, 2000 11:04 AM To: qmail list Subject: Re: tcprules script I need to quit answering myself ... http://www.linuxsupportline.com/~pgp/linux/newer-0.1.tar.gz Returns 1 if first file is newer, 2 if second is newer, 0 if neither is. (I don't know if anyone else wanted this, but ...) "Michael T. Babcock" wrote: > Does anyone have a quick script to check if a given tcprules file is > newer than the .cdb version and generate the new one if it is? I'm not > a big shell-script person. > > In other words, I'll write it in C if I have to ... -- _/~-=##=-~\_ -=+0+=-< Michael T. Babcock >-=+0+=- ~\_-=##=-_/~ http://www.linuxsupportline.com/~pgp/ ICQ: 4835018
RE: SMTP authentication
Their are several listed on http://www.qmail.org I use http://members.elysium.pl/brush/qmail-smtpd-auth/ with no problems. > -Original Message- > From: Brian Pinkney [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 10, 2000 2:18 PM > To: [EMAIL PROTECTED] > Subject: SMTP authentication > > > I want to know the easiest and way to setup username/password > authenication > with my smtp server. Are there any suggestions? Preferably something > compatible with outlook express' protocol. > > Thank you > Brian Pinkney > >
RE: Mail server problems.
Earthlink recently stopped allowing SMTP traffic out of their network except from their mail servers. I've had to change several of my dial up users settings to used Earthlink's servers for out going mail. On a positive note, they did stop requiring that the reply to field point to one of their domains. > -Original Message- > From: Rob Hines Jr. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 02, 2000 7:35 AM > To: [EMAIL PROTECTED] > Subject: Mail server problems. > > > I have something of a large recurring problem. I've looked over > the web and searched > all the resources that I know of to make this dern thing work > correctly. Here is the > problem: > > - A user, using an earthlink 56K dialup tries to send mail > through my smtp server. > > - 9 times out of 10, the mail fails because of a 'no transport > provider' error. > Basically the SMTP server isnt talking. > > Here's what I've done to the mail server thus far: > > qmail 1.03 vanilla > big-todo patch > large concurrency > smtp_auth (plain & cram-md5) > > The mailserver runs under supervise through tcpserver with ident > and DNS lookup > turned off for speed, as well as -l 0 > > There are no log entries at my end to indicate why /only/ dialup > users are having > problems with /only/ the SMTP server (they can recieve fine, > qpopper is kicking > butt). There is no large volume of messages in the queue, no real > load on the server > at all (Sun Ultra Enterprise 2, Solaris 8, 1.2G RAM, dual 200mhz > processors), and > the problem disappears when people hit the mailserver from the > LAN/WAN. In fact, the > general concensus within the office is that the mailserver is > running significantly > faster than it did before I tweaked everything for speed. > > I would appreciate any suggestions or ideas about why this might > be occuring. > > Rob > >
RE: who rotates the logs?
This is a start. http://www.ornl.gov/its/archives/mailing-lists/qmail/2000/06/msg00325. html -Original Message- From: Clemens Hermann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 7:17 AM To: tc lewis Cc: [EMAIL PROTECTED] Subject: Re: who rotates the logs? Am 18.01.2001 um 05:04:35 schrieb tc lewis: Hi Tc, > not much reason to use multilog if you're not going to use its rotation > features, I just use it because I want to stay as close as possible with LWQ. > unless you're using other features it possesses, like pattern > matching or something. i can't think of what self-rotation would be wiser > than multilog, My problem is, that I have to pipe the multilog-logs to qmailanalog. I need advice how to process the multilog-logs (all the different files created) with qmailanalog on a monthly basis. All I need is a per-domain analysis of the Traffic caused for mails that contain the domain as sender or recipient. any hints? thanks a lot in advance /ch
RE: SMTP authentication
Have you checked the www.qmail.org page? Several methods listed there - pop before smtp has already been mentioned, and I use smtp auth at my site without any problems. -Original Message- From: Enrique Vadillo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 1:40 PM To: Matt Simonsen Cc: [EMAIL PROTECTED] Subject: Re: SMTP authentication I got exactly the same problem, the only thing i could do for now is to give them a webmail frontend but most people are very used to sending mail using their favorite mail programs. anyone here know any way this can be done? i use qmail on solaris, i'm open to any ideas. iPass has no information on this even though it's very related to their business. Enrique- |o| Matt Simonsen escribió |o| Is it possible/adviseable to run a Qmail server to authenticate all relay |o| SMTP traffic so that we can leave the relay open but not allow spammers |o| access? I have Qmail running with Courier IMAP server, my problem is that we |o| have some users with laptops who travel and use different ISPs out of the |o| office and would not be able to get email through out SMTP server. To ask |o| them to change settings may be too much. I have thought of setting up 2 |o| Outlook profiles for them with different outgoing mail servers, but I am |o| hoping there is a way to allow their traffic through via a username and |o| password combo. |o| |o| Thanks |o| Matt