Re: Suspending an POP3 account.
On Wed, Jun 13, 2001 at 09:42:04AM +0300, Joe allegedly wrote: > Changing permissions can be quite messy. Imagine where you have to do it for > 1000 or more then when they pay you change them allover again. Best is to > change authentication method from passwd file to database. The default > tables have a suspend colum... Well, lemme see now... You have to have a process that creates a user, yes? That (at least) entails making some file system entries and setting the permissions appropriately. And you have to have a process that removes a user, after all, users do disappear, yes? That (at least) entails removing some file system entries. And so now we have this disable process, yes? And you're saying it's messy because that involves changes to the file system? That doesn't follow. Changing user states intimately involves the file system. I think that diddling with an authentication mechanism has the downside of giving very poor feedback to the user. Pop clients notoriously mask error messages and an incorrect password message will rarely be interpreted by the user as an "I haven't paid my bill" message. It certainly won't be interpreted by the POP client that way. I still think a good method is to rename the Maildir and create a temporary Maildir with an single mail that tells them precisely what the problem is. If you have to touch the file system this is no big deal and the resultant message to the user - if worded correctly - will not be vulnerable to misinterpretation. Regards. > > Joe. > - Original Message - > From: "Reid Sutherland" <[EMAIL PROTECTED]> > To: "Joshua Nichols" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Tuesday, June 12, 2001 3:48 AM > Subject: Re: Suspending an POP3 account. > > > > > > > > (lack of payment) clients when using a passwd/shadow > > > > authentication method. > > > > > > > > Any ideas on a solution? > > > > > > > > > > Though different checkpassword and pop programs will handle the problem > > > differently, changing the _permissions_ on the ~Maildir/* so the owner > > > doesn't have read access will work. That is, typical Maildir perms are > > 700, > > > change it to 300. > > > > > > All mail will be delivered as usual, but the pop account will not work. > > If > > > the user has telnet access, they will be able to circumvent this, but in > a > > > situation where you have "expiring" pop accounts, I'm assuming they > don't. > > > > > > I imagine you could easily set the return error so that the user's mta > > tells > > > them they're delinquent. It's not everyday the problem is a permission > > > denied read on the Maildir. > > > > > > > This sounds really good too. This will give them a more descriptive error > > instead of password error as suggested before. A password error will > often > > simply mean that and end up confusing the client in most cases. But a > > permission denied error could result in them thinking, 'Hey, maybe I > should > > pay my bill on time next time'. Thanks for the tip. > > > > -reid > > > > > > >
Re: bad gid being passed?
On Tue, Jun 12, 2001 at 12:56:02PM -0700, Amanda wrote: > I'm seeing a rather bizarre problem with qmail, or perhaps the > interaction between qmail and Mailman. [2nip] > Any ideas on how to fix this problem would be greatly appreciated. Don't install your mailing list manager unless you know for certain that the mail transfer agent is working properly. By the way, ezmlm[1] is the prefered mailing list manager with qmail. Jörgen [1] http://cr.yp.to/ezmlm.html
Re: process status list - I'm clueless
On Tue, Jun 12, 2001 at 12:07:46PM -0700, Drew Hawn wrote: > Here's the output of ps -ax | grep qmail: > > 607 ?S 0:00 supervise qmail-send > 609 ?S 0:00 supervise qmail-smtpd > 613 ?S 0:00 qmail-send > 614 ?S 0:00 /usr/local/bin/multilog t s250 > /var/log/qmail/qma > 615 ?S 0:00 /usr/local/bin/multilog t s250 > /var/log/qmail/qma > 619 ?S 0:00 qmail-lspawn |dot-forward .forward?|preline > /usr/bin/ > 620 ?S 0:00 qmail-rspawn > 621 ?S 0:00 qmail-clean > > + > > Don't the first two lines tell me that supervise is trying to start > qmail-send and qmail-smtp? No, they are telling you that qmail-send and qmail-smtpd are supervised. > Line 3 says qmail-send is running, but I have nothing that tells me that > qmail-smtp is running. Well... qmail-smtpd is only running when there's an incoming mail through SMTP. > I am unable to send messages out. This was working previously and now > it's not. What does the log say? > Why do I have two log lines? Because you are logging something. I can't tell what from that output (try ps -axw). > > The qmail How-To says, "You should see several tasks running, at the very > least qmail-send, and some supervise processes," but doesn't give any detail > on exactly what should show up. The output you sent seems fine. Jörgen
Re: yet more trouble with daemontools and supervise
Stephen Bosch <[EMAIL PROTECTED]> writes: > qmail-send/log: unable to open supervise/ok: file does not exist There is no need for qmail-send/log. qmail-send starts up the logger by itself as given on it's command line. See /var/qmail/rc. Seems that you simply messed up the logging. What do you have in /var/qmail/rc, and in the run file for qmail-smtpd/log? Regards, Frank
Re: False alarms about services with tcpserver
Thank you for your reply. > Andrea Cerrito <[EMAIL PROTECTED]> wrote: > > > > I have a server farm with pop3 / smtp / ftp services running on > Linux and > > served by tcpserver. My monitoring software is Mon, and sometimes I'm > > receiving alarms about these services: they are always false alarms. > > Two possibilities: tcpserver is accepting the connections as a backlog > because you're hitting your concurrency limits, No. False alarms happens even during low traffic, as show by logs. 2001-06-12 13:27:03.855642500 tcpserver: status: 1/50 2001-06-12 13:27:03.856118500 tcpserver: pid 17372 from 10.10.32.135 2001-06-12 13:27:11.326985500 tcpserver: ok 17372 pop3.frontend.int:ip:10025 :ip::4563 2001-06-12 13:27:11.334100500 tcpserver: end 17372 status 256 2001-06-12 13:27:11.334181500 tcpserver: status: 0/50 As you can see, from 13:27:03 tcpserver spawn at 13:27:11, far away from timeout for monitoring (5 secs). A normal session is like: 2001-06-12 13:28:15.451685500 tcpserver: status: 1/50 2001-06-12 13:28:15.452134500 tcpserver: pid 17378 from 10.10.32.135 2001-06-12 13:28:15.452904500 tcpserver: ok 17378 pop3.frontend.int:ip:10025 :ip::4585 2001-06-12 13:28:15.460697500 tcpserver: end 17378 status 0 2001-06-12 13:28:15.460778500 tcpserver: status: 0/50 > or the DNS lookups which > tcpserver does are timing out sometimes. Nope, because the host making monitoring is in /etc/hosts and tcpserver isn't relying on dns. This is my run: exec /usr/local/bin/tcpserver -v -c 50 -H -P -R -l pop3.frontend.int -x /coda/qmail/vpopmail/relay/tcp.smtp.cdb -u $QMAILUID -g $QMAILGID ip port /coda/qmail/bin/qmail-smtpd 2>&1 I thought it can be the tcp.smtp.cdb on coda, but these errors happens even for pop3, not relying on a cdb on coda. Other ideas? --- Cordiali saluti / Best regards Andrea Cerrito ^^ Net.Admin @ Centro MultiMediale di Terni S.p.A. P.zzale Bosco 3A 05100 Terni IT Tel. +39 744 5441330 Fax. +39 744 5441372
Re: False alarms about services with tcpserver
Thank you for your reply. > On Tue, Jun 12, 2001 at 09:29:05PM -0400, David Means wrote: > > If there is a way to configure Mon to report a service as down after a > > number of failures, then that is my recommendation. Just because a > > alertafter 2 15m > > gives an alert if the service failes 2 times within 15 minutes. I know that option, but I wish to understand why monitoring fails. I mean: if the monitoring is experiencing timeout, clients too will... right? --- Cordiali saluti / Best regards Andrea Cerrito ^^ Net.Admin @ Centro MultiMediale di Terni S.p.A. P.zzale Bosco 3A 05100 Terni IT Tel. +39 744 5441330 Fax. +39 744 5441372
qmail-ldap
where do i find qmail-ldap to download can anyone give me a hint
Re: False alarms about services with tcpserver
Thank you for your reply. > Andrea: > > If there is a way to configure Mon to report a service as down after a > number of failures, then that is my recommendation. Just because a > service fails a test once doesn't mean that it's down. I could just be > busy. You're right, but the strange beaviour is: when service fails (in monitoring opinion :) the server is not busy. As I reported in another mail, this is what happens: 2001-06-12 13:27:03.855642500 tcpserver: status: 1/50 2001-06-12 13:27:03.856118500 tcpserver: pid 17372 from 10.10.32.135 2001-06-12 13:27:11.326985500 tcpserver: ok 17372 pop3.frontend.int:ip:10025 :ip::4563 2001-06-12 13:27:11.334100500 tcpserver: end 17372 status 256 2001-06-12 13:27:11.334181500 tcpserver: status: 0/50 As you can see, from 13:27:03 tcpserver spawn at 13:27:11, far away from timeout for monitoring (5 secs). A normal session is like: 2001-06-12 13:28:15.451685500 tcpserver: status: 1/50 2001-06-12 13:28:15.452134500 tcpserver: pid 17378 from 10.10.32.135 2001-06-12 13:28:15.452904500 tcpserver: ok 17378 pop3.frontend.int:ip:10025 :ip::4585 2001-06-12 13:28:15.460697500 tcpserver: end 17378 status 0 2001-06-12 13:28:15.460778500 tcpserver: status: 0/50 If you look at status, you'll see that is far away from busy: it's the only active session! And: why all others services (ie: Apache) never fails? I thought it may be the Coda FS (qmail/vpopmails mailboxes are running on Coda): but even apache is running on Coda, and more accessed files are cached by clients, so I discarded this idea. Two solutions are: increase timeouts to 10secs (in that case it appears to respond after 8) or set the alarm after N failures... but why tcpserver is delaying 8 secs? I mean, if I discover the cause, I'll solve my problem. Thank you again --- Cordiali saluti / Best regards Andrea Cerrito ^^ Net.Admin @ Centro MultiMediale di Terni S.p.A. P.zzale Bosco 3A 05100 Terni IT Tel. +39 744 5441330 Fax. +39 744 5441372
Re: Suspending an POP3 account.
Agreed. But if you work somewhere where accounts comes up with a long list of guys to disconnect every fortnight and you haven't completed that new POP that the boss wanted set up 3 weeks ago.. it can be quite annoying. I find the database the laziest way of doing it :-) Cheers. - Original Message - From: "MarkD" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 13, 2001 10:50 AM Subject: Re: Suspending an POP3 account. > On Wed, Jun 13, 2001 at 09:42:04AM +0300, Joe allegedly wrote: > > Changing permissions can be quite messy. Imagine where you have to do it for > > 1000 or more then when they pay you change them allover again. Best is to > > change authentication method from passwd file to database. The default > > tables have a suspend colum... > > Well, lemme see now... > > You have to have a process that creates a user, yes? That (at least) > entails making some file system entries and setting the permissions > appropriately. > > And you have to have a process that removes a user, after all, users > do disappear, yes? That (at least) entails removing some file system > entries. > > And so now we have this disable process, yes? And you're saying it's > messy because that involves changes to the file system? > > That doesn't follow. Changing user states intimately involves the file > system. > > > I think that diddling with an authentication mechanism has the > downside of giving very poor feedback to the user. Pop clients > notoriously mask error messages and an incorrect password message will > rarely be interpreted by the user as an "I haven't paid my bill" > message. It certainly won't be interpreted by the POP client that way. > > I still think a good method is to rename the Maildir and create a > temporary Maildir with an single mail that tells them precisely what > the problem is. If you have to touch the file system this is no big > deal and the resultant message to the user - if worded correctly - > will not be vulnerable to misinterpretation. > > > Regards. > > > > > > > Joe. > > - Original Message - > > From: "Reid Sutherland" <[EMAIL PROTECTED]> > > To: "Joshua Nichols" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Tuesday, June 12, 2001 3:48 AM > > Subject: Re: Suspending an POP3 account. > > > > > > > > > > > > (lack of payment) clients when using a passwd/shadow > > > > > authentication method. > > > > > > > > > > Any ideas on a solution? > > > > > > > > > > > > > Though different checkpassword and pop programs will handle the problem > > > > differently, changing the _permissions_ on the ~Maildir/* so the owner > > > > doesn't have read access will work. That is, typical Maildir perms are > > > 700, > > > > change it to 300. > > > > > > > > All mail will be delivered as usual, but the pop account will not work. > > > If > > > > the user has telnet access, they will be able to circumvent this, but in > > a > > > > situation where you have "expiring" pop accounts, I'm assuming they > > don't. > > > > > > > > I imagine you could easily set the return error so that the user's mta > > > tells > > > > them they're delinquent. It's not everyday the problem is a permission > > > > denied read on the Maildir. > > > > > > > > > > This sounds really good too. This will give them a more descriptive error > > > instead of password error as suggested before. A password error will > > often > > > simply mean that and end up confusing the client in most cases. But a > > > permission denied error could result in them thinking, 'Hey, maybe I > > should > > > pay my bill on time next time'. Thanks for the tip. > > > > > > -reid > > > > > > > > > > > >
Hello , How to give Priority
Hello , How i can give priority in the qmail and how i can set delay factors for some mails/mailing lists . - Name : Raghvendra Narain Shukla ( Engineer - SC ) Address:Computer Centre, Email: [EMAIL PROTECTED] ,Physical Research Laboratory [EMAIL PROTECTED]Ahmedabad 380 015 Phone: +91 79 630-2129 ext. 4036 (0)INDIA FAX : +91 79 630-1502 --
Nat problem
HI! I'm just configuring new qmail server. When I connect from my private network to qmail server and I send message, header of this message look like: >From [EMAIL PROTECTED] Wed Jun 13 09:21:02 2001 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 28026 invoked by alias); 13 Jun 2001 09:21:02 - Delivered-To: root@qmail-server Received: (qmail 28023 invoked from network); 13 Jun 2001 09:21:01 - Received: from local-host (HELO test) (IP-of-my-local-host) by qmail-server.com with SMTP; 13 Jun 2001 09:21:01 - Where qmail-server.com is new qmail server local-host is name of my computer, from which I send this message IP-of-my-local-host is IP of my computer, from which I send this message Is it possibly to configure qmail that it doesn't add last line "Received: from local-host (HELO test) (IP-of-my-local-host)" for specific hosts: for example for network: 192.168.0.0/24 ? Regards Maciej Bogucki, Network Administrator --- 3dart.com / end-to-end solutions http://www.3dart.com Spolka Internetowa tel: (+48 22) 646 64 65 ul. Goszczynskiego 1002-616, Warszawa
Re: Hello , How to give Priority
RAGHVENDRA SHUKLA writes: > > Hello , > How i can give priority in the qmail and how i can set delay > factors for some mails/mailing lists . Please describe the problem you are trying to solve, rather than asking us how to do something. It may be that there is a better solution than the one you imagine. -- -russ nelson <[EMAIL PROTECTED]> http://russnelson.com Crynwr sells support for free software | PGPok | 521 Pleasant Valley Rd. | +1 315 268 1925 voice | John Hartford, RIP Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |
Re: Nat problem
I thought this information was used to determine how the message was routed. The only useful purpose to turn it off would be so you could spam people without having to worry about them finding you. *shrugs* I think it's hardcoded. David Maciej Bogucki wrote: > HI! > I'm just configuring new qmail server. When I connect from my private > network to qmail server and I send message, header of this message look > like: > > >From [EMAIL PROTECTED] Wed Jun 13 09:21:02 2001 > Return-Path: <[EMAIL PROTECTED]> > Delivered-To: [EMAIL PROTECTED] > Received: (qmail 28026 invoked by alias); 13 Jun 2001 09:21:02 - > Delivered-To: root@qmail-server > Received: (qmail 28023 invoked from network); 13 Jun 2001 09:21:01 - > Received: from local-host (HELO test) (IP-of-my-local-host) > by qmail-server.com with SMTP; 13 Jun 2001 09:21:01 - > > Where > qmail-server.com is new qmail server > local-host is name of my computer, from which I send this message > IP-of-my-local-host is IP of my computer, from which I send this message > > Is it possibly to configure qmail that it doesn't add last line > "Received: from local-host (HELO test) (IP-of-my-local-host)" for > specific hosts: for example for network: 192.168.0.0/24 ? > > Regards > > Maciej Bogucki, Network Administrator > --- > 3dart.com / end-to-end solutions http://www.3dart.com > Spolka Internetowa tel: (+48 22) 646 64 65 > ul. Goszczynskiego 1002-616, Warszawa
Re: backup mail server help
And if your NFS server goes down, both servers are useless. In which case, what was the point of having a backup server again? Jeff Palmer [EMAIL PROTECTED] At 09:57 AM 6/13/01 +0300, you wrote: >Alternatively you can run two SMTP servers and one POP server. Do NAT for >the two and export the partition with Maildirs(at the pop server) to the >SMTP servers through NFS. The two servers seem to be one to the outside >world. NFS can be insecure though. > >Joe. >- Original Message - >From: "Henning Brauer" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Saturday, June 09, 2001 4:15 AM >Subject: Re: backup mail server help > > > > On Fri, Jun 08, 2001 at 04:33:49PM -0700, Hank Wethington wrote: > > > What I'd like to accomplish is if Server A is unavailable, then mail >goes to > > > server B. Once A is back up, server B sends the mail back to server A. >Does > > > > On server B, add all domains in question to rcpthosts, but NOT to locals >or > > virtualdomains. That's it ;-)) > > > > -- > > * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * > > * Roedingsmarkt 14, 20459 Hamburg, Germany * > > Unix is very simple, but it takes a genius to understand the simplicity. > > (Dennis Ritchie) > >
header
can i add some content to all outgoing mails ie in the body
Re: Nat problem
> > I thought this information was used to determine how the message was > routed. The only useful purpose to turn it off would be so you could spam > people without having to worry about them finding you. *shrugs* I can trust my local users. Potential atacker can read my private IP from header, it can help him to know few about my local subnets. > I think it's hardcoded. In sendmail I can change this in sendmail.cf file. Regards Maciej Bogucki
Re: bad gid being passed?
Amanda <[EMAIL PROTECTED]> wrote: >I reassigned the "alias" user to its right group, How did you determine which GID is right? You *must* use the GID that was in place when qmail was compiled. Changing it requires recompiling qmail. >I attempted to reconfigure/reinstall qmail with no success: the alias >user is now appearing in the right group, but somewhere the gid 401 is >still being passed when trying to send messages to the mailing list. The 401 was probably compiled into the qmail binaries. >In frustration at this point, I removed the install directories of >both Mailman and qmail, removed their source directories, removed the >original tarballs, removed their users and groups redownloaded >both programs, and started again. > >And I'm still getting the same error. >Okay, so I know I missed something in the process of reinstalling or >reconfiguring qmail. The question is, what did I forget to remove or >change? Any ideas on how to fix this problem would be greatly >appreciated. Which installation intructions are following? Did you test qmail after installing it? Did it work? -Dave
Re: yet more trouble with daemontools and supervise
Frank Tegtmeyer <[EMAIL PROTECTED]> wrote: >Stephen Bosch <[EMAIL PROTECTED]> writes: > >> qmail-send/log: unable to open supervise/ok: file does not exist > >There is no need for qmail-send/log. Sure there is, if you want the logging supervised. >qmail-send starts up the logger >by itself as given on it's command line. See /var/qmail/rc. This is the old-fashioned way to log. -Dave
Re: Nat problem
Maciej Bogucki <[EMAIL PROTECTED]> wrote: >In sendmail I can change this in sendmail.cf file. qmail isn't Sendmail. You could (1) modify the source to not include that info, or (2) filter messages to strip that info, e.g. using qmail-qfilter. -Dave
QMail Error?
Our ExtendNet machine's Qmail program has a weird problem. Periodically, vsend will fail, but will start working as soon as a run a 'touch' command on it. Has any ever heard of this? Tim Rainier Manufacturing Systems Analyst Kalsec Inc. Office: 800.800.6165 ext: 3354 Cell: 616.274.7118 Pager: 616.413.1607
Re: queue processing problem
Shawn Estes <[EMAIL PROTECTED]> wrote: >First off, Im using concurrency patch and big-todo patch (from >qmail.org) with qmail-1.03. I've configured the conf-spawn to 400. We >are an ISP so we are not doing any kind of mailing lists, all >messages coming through our system are seperate messages sent by >different customers. We process about 15,000 different messages an >hour. We have a server running FreeBSD 4.3, with 256MB RAM, 9GB >Seagate Barracuda 7200 (this is the disk holding the queue), Quantum >Fireball is holding the homedirs of the users. > >This is kind of broken up into a few different problems. > >1) qmail-qstat is showing that the "not yet preprocessed" messages > are growing, and very seldom is that number decreasing. > > >2) qmail-remote is being spawned way under the current remote > concurrency limit (175) I have very seldom seen this number reach > above 30. Both suggest that qmail-send is having trouble keeping up. qmail-send is responsible for processing messages placed in the queue and for scheduling remote deliveries through qmail-rspawn. The question to answer is why qmail-send isn't keeping up. Perhaps disk I/O is the bottleneck. Or maybe the CPU is maxed out--though that's unlikely. What else is the system doing? Is there any idle CPU? Another possibility is that it's just too busy. You could split the load somewhat by installing another instance of qmail, e.g. in /var/qmail2, and let one instance handle locally injected messages while the other handles SMTP injected messages. Since qmail-send is single-threaded, it might be not able to keep qmail-rspawn busy if it keeps seeing new messages that need processing. Splitting the load like this would mean fewer interruptions for the qmail-send handling locally injected messages. >su-2.05# ps -ax | grep qmail-remote | wc -l > 30 >su-2.05# ps -ax | grep qmail-smtpd | wc -l > 111 That's a fairly high number of incoming SMTP connections. >Excerpt from /var/log/qmail/current: Too small to be useful, and lacking timestamps. >3) Messages are staying in the queue and are not being delivered the > way they should be. Note: Messages are going out, just very > slowly. The logs are showing deliveries local and remote. There > are no error messages in the log. (A test message sent to a local > user takes approximately 30-45 minutes, roughly the same amount of > time for a remote user) Same problem as 1 and 2. >Here's what I've done so far: > >1) Checked the Trigger file to make sure it has the correct permissions: Good. >2) Checked ulimit and kern max files. OK. >3) Ran the qmail-send run file by itself and the messages in the > queue went through very quickly. (5000 messages in about 15 > minutes or so) A lot better then they are with everything > running. Confirms my "qmail-send is being interrupted" hypothesis, I think. >4) Verified my run scripts with LWQ. The run scripts have softlimits > that are increased from LWQ, could this be my problem? No, but I wonder why you want such high limits. They're for your own protection. -Dave
RE: Nat problem
You can set the enviroment variables when you call the smtp server for tcpserver edit your tcp.smtp file like this: 192.168.00.:allow,TCPREMOTEHOST="",TCPREMOTEIP="",RELAYCLIENT="" this will set those variables to "" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Maciej Bogucki Sent: Wednesday, June 13, 2001 5:57 AM To: [EMAIL PROTECTED] Subject: Nat problem HI! I'm just configuring new qmail server. When I connect from my private network to qmail server and I send message, header of this message look like: >From [EMAIL PROTECTED] Wed Jun 13 09:21:02 2001 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 28026 invoked by alias); 13 Jun 2001 09:21:02 - Delivered-To: root@qmail-server Received: (qmail 28023 invoked from network); 13 Jun 2001 09:21:01 - Received: from local-host (HELO test) (IP-of-my-local-host) by qmail-server.com with SMTP; 13 Jun 2001 09:21:01 - Where qmail-server.com is new qmail server local-host is name of my computer, from which I send this message IP-of-my-local-host is IP of my computer, from which I send this message Is it possibly to configure qmail that it doesn't add last line "Received: from local-host (HELO test) (IP-of-my-local-host)" for specific hosts: for example for network: 192.168.0.0/24 ? Regards Maciej Bogucki, Network Administrator --- 3dart.com / end-to-end solutions http://www.3dart.com Spolka Internetowa tel: (+48 22) 646 64 65 ul. Goszczynskiego 1002-616, Warszawa
Re: QMail Error?
not vsend, it's either of the following: qmail-send qmail-vscan Tim Rainier Manufacturing Systems Analyst Kalsec Inc. Office: 800.800.6165 ext: 3354 Cell: 616.274.7118 Pager: 616.413.1607
Re: queue processing problem
Shawn Estes <[EMAIL PROTECTED]> wrote: Dave Sill had some good debugging/pinpointing advice for you in a separate message. I'll add a few things here. > First off, Im using concurrency patch and big-todo patch (from qmail.org) > with qmail-1.03. I've configured the conf-spawn to 400. We are an ISP so we > are not doing any kind of mailing lists, all messages coming through our > system are seperate messages sent by different customers. We process about > 15,000 different messages an hour. We have a server running FreeBSD 4.3, > with 256MB RAM, 9GB Seagate Barracuda 7200 (this is the disk holding the > queue), Quantum Fireball is holding the homedirs of the users. You're running a significant load -- disk I/O bandwidth and latency are probably at least part of the problem you're experiencing. Switching to a 15kRPM disk on a U160 controller would almost certainly help -- it will at least double available queue disk I/O bandwidth, while halving rotational latency. qmail does fsyncs at critical times to ensure reliability, and those each involve a disk seek; halving the rotational latency will reduce the access time significantly. > 1) qmail-qstat is showing that the "not yet preprocessed" messages are > growing, and very seldom is that number decreasing. qmail-send is having a hard time keeping up to the rate at which you are injecting messages. > 3) Ran the qmail-send run file by itself and the messages in the queue went > through very quickly. (5000 messages in about 15 minutes or so) A lot better > then they are with everything running. So when no messages are being injected, your system can deliver at reasonable speed, but as soon as you turn on qmail-smtpd, it can no longer keep up. > I appreciate any help that anyone can give me. I'm hoping that this is an > easy problem that I am just overlooking. If anymore information is needed, > please let me know. At a few hundred dollars for a 9GB 15kRPM disk, I'd say it's certainly a simple way to improve your system performance. > subdirectory split: 23. This is something else you might want to change. With 8000 messages in the queue and a subdir split of 23, you're averaging around 350 files per directory -- I've not had good luck with FFS-based systems when my directories have more than about 200 files each. Perhaps try something higher (remember, it should be prime). If you can't just vaporize the current contents of the queue or take the system down for a few hours, the way to switch over will be to temporarily run two instances of qmail in parallel. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Nat problem
> You can set the enviroment variables when you call the smtp server > for tcpserver edit your tcp.smtp file like this: > 192.168.00.:allow,TCPREMOTEHOST="",TCPREMOTEIP="",RELAYCLIENT="" > this will set those variables to "" BIG Thanks . It helped . Regards Maciej Bogucki, Network Administrator --- 3dart.com / end-to-end solutions http://www.3dart.com Spolka Internetowa tel: (+48 22) 646 64 65 ul. Goszczynskiego 1002-616, Warszawa
tls.patch - client certificates?
Hello! Has someone client authentication via ssl certificates using tls.patch working? Everything works fine but the server always rejects the other (qmail) node that tries to relay. He says "no valid cert for gatewaying". I've debugged qmail-smtpd and found that he bails out in SSL_get_peer_certificate. The client has a certificate I signed using an own certificate that I create once. I've put this issueing certificate into control/clientca.pem (along with the list of the official ones). Any hints? BTW: If someone is interested. I wrote a patch to fixcrio so that it will recognize TLS handshake and shop inserting CRs. Ciao, Chtephan!
Re: many mails
OK, I'll give up on preformance, at least for now. (I can not afford that cost) But still I don't like to call a the command qmail-inject for every mail I have to send; Isn't there a better way to prepare thousands of mails then to call the same command thousands times ? Thanks - Original Message - From: "Russell Nelson" <[EMAIL PROTECTED]> To: "Gianni Campanile" <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 2:55 PM Subject: Re: many mails > Gianni Campanile writes: > > ten seconds would be great, but even one minute is fine. > > Everything will run on a single Sun machine, no more than that. > > Can't be done in that time, then. You need too many sockets. You > also need to have available bandwidth equal to the product of the size > of the emails multiplied by the number of recipients. > > > My second question was if there is a better way (I've never used > > qmail) than calling qmail-inject (or any other command) for each > > mail to send, which seems to me a very time consuming task (find > > the command, startup the process, execute), even if qmail-inject is > > very efficient. > > As far as I can tell, you're going to need my qmail-merge patch. I > charge $15,000 to install and configure it for your particular > requirements. It lets you craft a single message, send it to all the > recipients, and modify it as it's being delivered, according to the > recipient. > > You're asking for a lot, and it's going to cost a lot even if you > have someone else do it. > > -- > -russ nelson <[EMAIL PROTECTED]> http://russnelson.com > Crynwr sells support for free software | PGPok | > 521 Pleasant Valley Rd. | +1 315 268 1925 voice | John Hartford, RIP > Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | >
Re: yet more trouble with daemontools and supervise
Frank Tegtmeyer wrote: > > Stephen Bosch <[EMAIL PROTECTED]> writes: > > > qmail-send/log: unable to open supervise/ok: file does not exist > > There is no need for qmail-send/log. qmail-send starts up the logger > by itself as given on it's command line. See /var/qmail/rc. > > Seems that you simply messed up the logging. What do you have in > /var/qmail/rc, and in the run file for qmail-smtpd/log? Okay, here is what I have in /var/qmail/rc: #!/bin/sh # Using splogger to send the log through syslog. # Using procmail to deliver messages to /var/spool/mail/$USER by default. exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start '|preline procmail' splogger qmail The run file for qmail-smtpd/log contains: #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb \ -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 Hope you can help. Thanks, Stephen
Re: yet more trouble with daemontools and supervise
Dave Sill wrote: > > Frank Tegtmeyer <[EMAIL PROTECTED]> wrote: > > >Stephen Bosch <[EMAIL PROTECTED]> writes: > > > >> qmail-send/log: unable to open supervise/ok: file does not exist > > > >There is no need for qmail-send/log. > > Sure there is, if you want the logging supervised. > > >qmail-send starts up the logger > >by itself as given on it's command line. See /var/qmail/rc. > > This is the old-fashioned way to log. But Dave... what's wrong with my setup? =) Should I just reconfigure everything according to the new LWQ? Why do that if everything is otherwise working? I don't have the overview here -- this supervise logging stuff is really opaque for me. -Stephen-
Spammer putting my domain in replyto causing high traffic - HELP!
Hi folks, I got a shock when I browsed the mail logs today: huge amounts of mails are landing on my machine to users which don't exist (usernames composed of random letters). These mails are mainly "user doesn't exist" messages, and they are landing on my machine because the REPLY-TO and FROM addresses have been set to my domain. This is causing an large increase in traffic, which I have to pay for :-( Having a default user for the domain collects these mails, and not having a default user responds with a bounce, and a log entry: "discarding triple bounce". Which uses more bandwidth ?? I could delete the MX entry, but then legitimate users wouldn't get any mails. I've looked in the archives, but there is only a mention of adding the domain to "badrcptto". Which doesn't help my legitimate users. This could go on for ever - has anyone any ideas what I can do? Are there any free services which would accept being entered as a MX and which would filter out the sh*t and forward the rest? There doesn't seem to be anything in the mails which would point towards the ISP of the spammer: "smtpav", "MailClients", "Mailserver" and "Mailhub" are all very vague, as can be seen here in the header of the original SPAM mail (which couldn't be delivered): Received: from dfw-smtpin3.email.verio.net ([129.250.38.53]) by dfw-spool2.email.verio.net (Netscape Messaging Server 4.15) with ESMTP id GEVPA001.JT4 for <[EMAIL PROTECTED]>; Wed, 13 Jun 2001 17:15:36 + Received: from [200.205.108.34] (helo=eddie.int.acaosp.com) by dfw-smtpin3.email.verio.net with smtp id 15AEEv-0006yS-00 for [EMAIL PROTECTED]; Wed, 13 Jun 2001 17:15:34 + Received: from Mailhub by eddie.int.acaosp.com id AA25878; Mon, 17 Jan 1994 02:41:15 -0300 Received: from MailClients by Mailserver id NAA124008; Wed, 13 Jun 2001 13:23:51 -0200 Received: FROM 192.168.1.8 BY smtpav ; Wed Jun 13 03:09:36 2001 -0300 HELP! Best regards, Barry
Appending text to the bottom of outgoing messages
I have a request from 2 of the domains I host to add an appended text to the bottom of every outgoing email. I think I could force it easy enough if it was the only domain hosted by the server, but since I'm hosting around 20, and only 2 want it, and wouldn't you know it they want different text, how can I accomplish this? Is it possible. More importantly, is it easy (sorry I'm feeling very lazy today)? I'm using FreeBSD 4.3/qmail 1.03/Vpopmail/CourierIMAP/MySQL if any of these would make a difference to your answer. Thanks, Hank Wethington Information Logistics www.GoInfoLogistics.com mailto:info.at.GoInfoLogistics.com
sqwebmail
Im looking for some help with Sqwebmail. When I run "make" I get the following error. preauthvchkpw.c: In function `auth_vchkpw_pre': preauthvchkpw.c:70: warning: passing arg 2 of `make_user_dir' makes integer from pointer without a cast preauthvchkpw.c:70: too many arguments to function `make_user_dir' make[1]: *** [preauthvchkpw.o] Error 1 make[1]: Leaving directory `/installers/sqwebmail-2.1.1/authlib' make: *** [all-recursive] Error 1 Thanks Mike
Re: queue processing problem
Charles (and everyone else), I saw this thread and it made me kinda worried about a cluster we're fixing to send out. Here's a brief description of how it works: 4 machines (3 nodes, running qmail, mounting /home from NFS server. 1 NFS server--running IDE RAID 5) All four machines: have 64M of ram and a 633 Mhz proc, have qmail installed, accept smtp and pop3 connections and all have the same /home (again, mounted over NFS). Vpopmail is installed on the NFS server, in the home directory (local mail is put in /home/vpopmail/domains/whatever.com/). /var on each machine is separate, so they each have a separate queue. No special concurreny settings. tcpserver is accepting 150 connections on pop/smtp at a time. Load balancers in the front of these four machines send traffic to the least congested (the nfs sever gets less traffic than the other three). Now, My question is do you think this can support a small ISP (10,000) efficiently or should we go with special settings and/or think about faster/better hardware? Do you think this leaves room for expansion? Kinda distressed, David
Re: yet more trouble with daemontools and supervise
Stephen Bosch writes: > > This is the old-fashioned way to log. > > But Dave... what's wrong with my setup? =) splogger is slow. It's incompatible between systems. > Should I just reconfigure everything according to the new LWQ? Yes. That's the first thing I do when I get to a new customer's site. That way, once I leave them, they can ask questions on the mailing list, and everybody will know where their files are. > I don't have the overview here -- this supervise logging stuff is > really opaque for me. svscan looks in /service for directories with a "run" file. svscan starts up a supervise which runs the run file. Oh, but before doing that, if the directory has the sticky bit set, svscan runs a supervise on ./log/run, and redirects its stdin from the output of the main supervise. So, every service with logging has its current log in /service/*/log/main/current . Maybe I've gone a bit overboard on /service, but here's my listing of services: axfrdns dnscache ftpd msql2dqmail rsyncdsshd bray etrn httpd pop3d qmtpd smtpd tinydns -- -russ nelson <[EMAIL PROTECTED]> http://russnelson.com Crynwr sells support for free software | PGPok | 521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |
Re: sqwebmail
* Mike Jimenez <[EMAIL PROTECTED]>, 10:44 06/13/2001: > > Im looking for some help with Sqwebmail. > When I run "make" I get the following error. Try your inquiry at [EMAIL PROTECTED] -- Drew
Re: queue processing problem
David Gartner writes: > 4 machines (3 nodes, running qmail, mounting /home from NFS server. 1 NFS > server--running IDE RAID 5) Switch to SCSI drives and you can do it with one machine. -- -russ nelson <[EMAIL PROTECTED]> http://russnelson.com Crynwr sells support for free software | PGPok | 521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |
Mail with many BCC:s and delivery delays
I need a bit of behavior clarification for injecting a single mail to many recipients. If I send 1 message to 100,000 people using BCC:s, what happens if another such message is sent, or, for that matter, a regular (i.e. non-list) message? What I mean is, if qmail processes message in the order received, and it receives a message to 100,000 recipients, does that mean that it won't start sending the next injected message until the first is completely delivered? (or at least attempted and deferred?). Like with this list... Let's say Charles sends a message 1/10 of a second after I send this one. Does that mean that qmail won't even /try/ to send his until mine has been completely delivered? If so, how does anyone run both standard email accounts and large lists on the same box without experiencing HUGE delays on their regular outbound email? Sorry, I'm sure this is a FAQ, but I couldn't seem to find a clear answer in the archives. Thanks, --joshua.
Qmail ADMIN!!! Please Help
Using the new vpopmail vpopmail-4.9.10.tar and the Qmail Admin qmailadmin-0.45.tar . I cannot get Qmail admin to compile? Here is the error message I recieve. What in the heck is going on ? I can compile qmailadmin-0.26.tar with no errors but I dont want to use that. Thanks Mike qmailadmin-0.45]# ./configure --enable-vpopuser=vpopmail --enable-cgibindir=/apache/cgi-bin -- enable-htmldir=/usr/local/share --enable-vpopmaildir=/home/vpopmail/ creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking host system type... i686-unknown-linux checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ranlib... ranlib checking for POSIXized ISC... no checking how to run the C preprocessor... gcc -E checking for AIX... no checking for crypt in -lcrypt... yes checking for crypt in -lshadow... no checking for floor in -lm... yes checking for gethostbyaddr in -lnsl... yes checking for getsockname in -lsocket... no cat: /home/vpopmail//etc/inc_deps: No such file or directory cat: /home/vpopmail//etc/lib_deps: No such file or directory checking for ezmlm-idx... no checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for ANSI C header files... yes checking for unistd.h... yes checking for working const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for getcwd... yes checking for mkdir... yes checking for strdup... yes checking for strstr... yes updating cache ./config.cache creating ./config.status creating Makefile creating config.h qmailadmin-0.45]# make make all-recursive make[1]: Entering directory `/installers/qmailadmin-0.45' make[2]: Entering directory `/installers/qmailadmin-0.45' gcc -I. -g -O2 -c qmailadmin.c qmailadmin.c:30: vpopmail.h: No such file or directory qmailadmin.c:31: vauth.h: No such file or directory make[2]: *** [qmailadmin.o] Error 1 make[2]: Leaving directory `/installers/qmailadmin-0.45' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/installers/qmailadmin-0.45' make: *** [all-recursive-am] Error 2 == Mike Jimenez System Administrator Visual Perspectives Internet, Inc. (VPI.Net) Tel: (949) 595-8622 -- Fax: (949) 595-8629 http://www.vpi.net ==
Re: queue processing problem
David Gartner <[EMAIL PROTECTED]> wrote: > > 4 machines (3 nodes, running qmail, mounting /home from NFS server. 1 NFS > server--running IDE RAID 5) All four machines: have 64M of ram and a 633 > Mhz proc, have qmail installed, accept smtp and pop3 connections and all > have the same /home (again, mounted over NFS). Vpopmail is installed on the > NFS server, in the home directory (local mail is put in > /home/vpopmail/domains/whatever.com/). /var on each machine is separate, so > they each have a separate queue. No special concurreny settings. tcpserver > is accepting 150 connections on pop/smtp at a time. Load balancers in the > front of these four machines send traffic to the least congested (the nfs > sever gets less traffic than the other three). > > Now, My question is do you think this can support a small ISP (10,000) > efficiently or should we go with special settings and/or think about > faster/better hardware? Do you think this leaves room for expansion? If I was setting it up, I'd probably make the NFS server a separate box (not accepting any SMTP or POP3 connections), probably running on SCSI RAID instead of IDE. The faster the SCSI setup, the better, of course. Additional memory in the NFS server would also be a benefit, and at a cost of USD$50 for 256MB of ECC PC133 SDRAM, it's hard to justify the business case of _not_ purchasing one or two extra sticks. The only other concern I would have would be that if one of your SMTP/POP toasters dies, you lose the contents of the queue on that machine, since they're running a single IDE disk for the queue. If this concerns you, perhaps upgrade each of those machines to IDE RAID. Can three toasters and one NFS server handle 10,000 users? Probably, but it depends a lot on what those users are doing. If they're mailing 20MB attachments to the net at large on a regular basis (or even worse, to each other), and they're each connected 24/7 and POP-checking their mail every minute, your systems might fall over rather quickly. If they're mostly dialup users connected an hour or two a day, sending a few 5k messages each, and only POP-ing their mail every 15 minutes, maybe your current setup is already overkill. You said you were worried -- I wouldn't be. Is the current setup working for you? Are the toasters frequently hitting their concurrency limits? Do you have the headroom to raise those limits? Is the NFS server coping with the current load? Remember, with a modular architecture like you're using, you can always add additional toasters in the future, feeding off the same central NFS server. If you grow to the point that you can't handle it with a single PC-based NFS server, a NetApp or similar might be within your reach at that point. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Spammer putting my domain in replyto causing high traffic - HELP!
Barry Hill <[EMAIL PROTECTED]> wrote: > > I got a shock when I browsed the mail logs today: huge amounts of mails > are landing on my machine to users which don't exist (usernames > composed of random letters). These mails are mainly "user doesn't > exist" messages, and they are landing on my machine because the > REPLY-TO and FROM addresses have been set to my domain. You've been joe-jobbed. > This is causing an large increase in traffic, which I have to pay for :-( > > Having a default user for the domain collects these mails, and not > having a default user responds with a bounce, and a log entry: > "discarding triple bounce". Which uses more bandwidth ?? If you don't have a default user, you deliver a lot of double-bounces (or try to, anyways), and that will use some bandwidth. Better to just save or discard them locally. > I've looked in the archives, but there is only a mention of adding the > domain to "badrcptto". Which doesn't help my legitimate users. No. There's no way to (a) continue providing service to the legitimate users in the same domain, and (b) stop receiving the spam bounces. > This could go on for ever - has anyone any ideas what I can do? It won't last forever. Your best bet is track down the spammer based on what they're promoting (a website, a phone number, etc) and get them shut down. Within a week, the bounces will have stopped. > Are there any free services which would accept being entered as a > MX and which would filter out the sh*t and forward the rest? Not for free -- it takes significant system resources, as you've seen. > There doesn't seem to be anything in the mails which would point > towards the ISP of the spammer: The headers are forged anyways. Look in the body of the message to see what the spammer was promoting. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: yet more trouble with daemontools and supervise
Stephen Bosch <[EMAIL PROTECTED]> wrote: >Okay, here is what I have in /var/qmail/rc: > >#!/bin/sh > ># Using splogger to send the log through syslog. ># Using procmail to deliver messages to /var/spool/mail/$USER by >default. > >exec env - PATH="/var/qmail/bin:$PATH" \ >qmail-start '|preline procmail' splogger qmail Logging via splogger (syslog). >The run file for qmail-smtpd/log contains: > >#!/bin/sh >QMAILDUID=`id -u qmaild` >NOFILESGID=`id -g qmaild` >exec /usr/local/bin/softlimit -m 200 \ >/usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb \ >-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd >2>&1 Sure that's qmail-smtpd/log/run? Looks more like qmail-smtpd/run. -Dave
Re: Mail with many BCC:s and delivery delays
Joshua Nichols <[EMAIL PROTECTED]> wrote: > > Like with this list... Let's say Charles sends a message 1/10 of a second > after I send this one. Does that mean that qmail won't even /try/ to send > his until mine has been completely delivered? If so, how does anyone run > both standard email accounts and large lists on the same box without > experiencing HUGE delays on their regular outbound email? I believe some people have run into this behaviour in the past. One suggested solution was to run separate instances of qmail for the lists and regular users -- i.e. /var/qmail and /var/qmail-lists . If you can have two IP addresses on the machine, you can then even run qmail-smtpd from each so each instance receives the proper bounces. Otherwise you have to play games of some sort. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
RE: Qmail ADMIN!!! Please Help
That was not the problem. But I found out how to fix on on the Qmail Admin list. Thanks for the help though. Mike cp -fp vauth.h vpopmail.h vpopmail_config.h /your/source/qmailadmin/directory LIBS="-L/home/vpopmail/lib -lvpopmail" DEFS="/home/vpopmail/include" ./configure --enable-vpopuser=vpopmail --enable-cgibindir=/apache/cgi-bin -- enable-htmldir=/usr/local/share --enable-vpopmaildir=/home/vpopmail/ -Original Message- From: Joshua Nichols [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:22 PM To: Mike Jimenez Subject: RE: Qmail ADMIN!!! Please Help Try removing the trailing slash from your --enable-vpopmail switch. Look at the error message in the middle. How often do you see "//" in a legitimate *NIX path? --joshua. > qmailadmin-0.45]# ./configure --enable-vpopuser=vpopmail > --enable-cgibindir=/apache/cgi-bin -- > enable-htmldir=/usr/local/share --enable-vpopmaildir=/home/vpopmail/ > creating cache ./config.cache . . . > cat: /home/vpopmail//etc/inc_deps: No such file or directory > cat: /home/vpopmail//etc/lib_deps: No such file or directory . . . > make[1]: Entering directory `/installers/qmailadmin-0.45' > make[2]: Entering directory `/installers/qmailadmin-0.45' > gcc -I. -g -O2 -c qmailadmin.c > qmailadmin.c:30: vpopmail.h: No such file or directory > qmailadmin.c:31: vauth.h: No such file or directory > make[2]: *** [qmailadmin.o] Error 1 > make[2]: Leaving directory `/installers/qmailadmin-0.45' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/installers/qmailadmin-0.45' > make: *** [all-recursive-am] Error 2 > > == > Mike Jimenez > System Administrator > Visual Perspectives Internet, Inc. (VPI.Net) > Tel: (949) 595-8622 -- Fax: (949) 595-8629 > http://www.vpi.net > == > > >
Re: Mail with many BCC:s and delivery delays
> What I mean is, if qmail processes message in the order received, and it > receives a message to 100,000 recipients, does that mean that it won't start > sending the next injected message until the first is completely delivered? > (or at least attempted and deferred?). Correct. First in, first served. > Like with this list... Let's say Charles sends a message 1/10 of a second > after I send this one. Does that mean that qmail won't even /try/ to send > his until mine has been completely delivered? If so, how does anyone run > both standard email accounts and large lists on the same box without > experiencing HUGE delays on their regular outbound email? By having more than once instance of qmail installed on your system or having your list run on a seperate system. > Sorry, I'm sure this is a FAQ, but I couldn't seem to find a clear answer in > the archives. I think a search for multiple instances or somesuch should do the trick. Regards.
$EXT from users/assign
I'm setting up a mail server where my users each have a virtual email account in a Courier IMAP userdb file. My qmail interface with this works great, but I foresee problems when I start switching over all my users... maintenance. I have all the users in users/assign, which then turns things over to a user "courier." Like so, users/assign: =jones:courier:4500:11:/home/courier:-:jones: =smith:courier:4500:11:/home/courier:-:smith: =thompson:courier:4500:11:/home/courier:-:thompson: . Now, in /home/courier, I have some .qmail files which direct message delivery to respective maildirs, drwxr-xr-x 6 courier mail512 Jun 13 15:34 . drwxr-xr-x 4 root wheel 512 May 29 15:43 .. -rw--- 1 courier mail 16 Jun 13 15:28 .qmail-jones -rw--- 1 courier mail 20 Jun 4 09:18 .qmail-smith -rw--- 1 courier mail 27 Jun 4 15:30 .qmail-thompson drwx-- 5 courier mail512 Jun 13 14:37 Maildir-jones drwx-- 8 courier mail512 Jun 13 15:39 Maildir-smith drwx-- 61 courier mail 3072 Jun 13 13:47 Maildir-thompson And then in .qmail-jones, I have: ./Maildir-jones/ I started thinking, though, that I could simplify it a little. I poked around the manpages and saw in dot-qmail: If .qmail-ext doesn't exist, qmail-local will try some default .qmail files. For example, if ext is foo-bar, qmail-local will try first .qmail-foo-bar, then .qmail-foo- default, and finally .qmail-default. So I thought, "Why have all those separate .qmail files?" I then created one simple .qmail-default file containing: ./Maildir-$EXT/ And deleted all the remaining .qmail- files. This, however, did not work. And the log was a bit modest in its diagnosis: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ So my question is two-fold... what have I done wrong in this particular case... is $EXT the wrong variable? Also, does anything jump out at you that could simplify my overall scheme? I don't have a huge userbase, about 40, but it's enough that I need to automate a few things. -- Drew
Re: qmail-ldap
> Rohit Gupta wrote: > > where do i find qmail-ldap to download > can anyone give me a hint http://www.nrg4u.com/ -- Nick (Keith) Fish Network Engineer Triton Technologies, Inc.
Log Entry question
In my log file (/var/log/qmail/qmail-smtpd) I have files named similarly to: "@40003b26027a37dfa084.s" These files contain thousands of entries similar to : @40003b262932196daa9c tcpserver: fatal: unable to bind: address already used I don't know what this is and I've got 25MB of log files with these entries. What do they mean? = Drew Hawn - Systems Administrator Santa Barbara Technology Group, LLC 402 E. Gutierrez St. Santa Barbara, CA 93101 Phone: 805-879-1505 Fax: 805-564-7188 [EMAIL PROTECTED] =
Re: Log Entry question
On Wed, Jun 13, 2001 at 04:21:34PM -0700, Drew Hawn wrote: > @40003b262932196daa9c tcpserver: fatal: unable to bind: address already > used It means that something is already listening on your SMTP port. This might be sendmail, something you have configured in inetd.conf, or another instance of tcpserver you've already started on port 25. It's also possible that your SMTP run script puts tcpserver in the background, causing supervise to continually restart it. Chris PGP signature
RE: Log Entry question
a) They are the timestamp in tai64 format b) you are probably running another MTA or another instance of Qmail on por 25. c) 25 Megs of logs isn't very bad...don't sweat it. Just kill whatever's on port 25. maybe a reboot will fix it if you don't know how to do that. -davidu -Original Message- From: Drew Hawn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:22 PM To: '[EMAIL PROTECTED]' Subject: Log Entry question In my log file (/var/log/qmail/qmail-smtpd) I have files named similarly to: "@40003b26027a37dfa084.s" These files contain thousands of entries similar to : @40003b262932196daa9c tcpserver: fatal: unable to bind: address already used I don't know what this is and I've got 25MB of log files with these entries. What do they mean? = Drew Hawn - Systems Administrator Santa Barbara Technology Group, LLC 402 E. Gutierrez St. Santa Barbara, CA 93101 Phone: 805-879-1505 Fax: 805-564-7188 [EMAIL PROTECTED] =
FW: Log Entry question
Thanks. I'll check it out. How can I decode the tai64 format? I can't tell when this problem is still occurring. -Original Message- From: David U. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:39 PM To: Drew Hawn; [EMAIL PROTECTED] Subject: RE: Log Entry question a) They are the timestamp in tai64 format b) you are probably running another MTA or another instance of Qmail on por 25. c) 25 Megs of logs isn't very bad...don't sweat it. Just kill whatever's on port 25. maybe a reboot will fix it if you don't know how to do that. -davidu -Original Message- From: Drew Hawn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:22 PM To: '[EMAIL PROTECTED]' Subject: Log Entry question In my log file (/var/log/qmail/qmail-smtpd) I have files named similarly to: "@40003b26027a37dfa084.s" These files contain thousands of entries similar to : @40003b262932196daa9c tcpserver: fatal: unable to bind: address already used I don't know what this is and I've got 25MB of log files with these entries. What do they mean? = Drew Hawn - Systems Administrator Santa Barbara Technology Group, LLC 402 E. Gutierrez St. Santa Barbara, CA 93101 Phone: 805-879-1505 Fax: 805-564-7188 [EMAIL PROTECTED] =
Re: Log Entry question
Drew Hawn wrote: > > In my log file (/var/log/qmail/qmail-smtpd) I have files named similarly to: > > "@40003b26027a37dfa084.s" > > These files contain thousands of entries similar to : > > @40003b262932196daa9c tcpserver: fatal: unable to bind: address already > used > > I don't know what this is and I've got 25MB of log files with these entries. > What do they mean? They mean what they say: qmail is unable to start the SMTP service because something else is already running (probably SMTP) on port 25. Find out is running there. Places to look include inetd.conf or xinetd.conf. Most likely you forgot to kill the copy of sendmail you have running on your system is this is your first attempt at starting qmail or you have an old tcpserver process running qmail on that port which was never killed correctly. Do `ps aux | grep [tcpserver/sendmail]`, respectively. -- Nick (Keith) Fish Network Engineer Triton Technologies, Inc. 1-800-837-4253
RE: Log Entry question
Sendmail is not running. When I "ps-aux | grep tcpserver" I get: qmaild 612 0.0 0.0 11520 ?SW 09:23 0:00 [tcpserver] Is this normal? I've commented out pretty much everything in inetd.conf. Only telnet is currently running from here. -Original Message- From: Nick (Keith) Fish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 12:45 PM To: Drew Hawn; Qmail Mailing List Subject: Re: Log Entry question Drew Hawn wrote: > > In my log file (/var/log/qmail/qmail-smtpd) I have files named similarly to: > > "@40003b26027a37dfa084.s" > > These files contain thousands of entries similar to : > > @40003b262932196daa9c tcpserver: fatal: unable to bind: address already > used > > I don't know what this is and I've got 25MB of log files with these entries. > What do they mean? They mean what they say: qmail is unable to start the SMTP service because something else is already running (probably SMTP) on port 25. Find out is running there. Places to look include inetd.conf or xinetd.conf. Most likely you forgot to kill the copy of sendmail you have running on your system is this is your first attempt at starting qmail or you have an old tcpserver process running qmail on that port which was never killed correctly. Do `ps aux | grep [tcpserver/sendmail]`, respectively. -- Nick (Keith) Fish Network Engineer Triton Technologies, Inc. 1-800-837-4253
Re: Log Entry question
On Wed, Jun 13, 2001 at 04:47:13PM -0700, Drew Hawn wrote: > Sendmail is not running. When I "ps-aux | grep tcpserver" I get: > > qmaild 612 0.0 0.0 11520 ?SW 09:23 0:00 [tcpserver] What does your run script look like? Chris PGP signature
warning: trouble opening remote
My qmail log always say: Jun 14 08:24:16 seic8 qmail: 992478256.893320 warning: trouble opening remote/0/348381; will try again later Jun 14 08:24:16 seic8 qmail: 992478256.894017 warning: trouble opening remote/0/348335; will try again later Jun 14 08:24:16 seic8 qmail: 992478256.894706 warning: trouble opening remote/0/348013; will try again later Jun 14 08:28:24 seic8 qmail: 992478504.216842 warning: trouble opening remote/0/348381; will try again later Jun 14 08:28:24 seic8 qmail: 992478504.217542 warning: trouble opening remote/0/348335; will try again later Jun 14 08:28:24 seic8 qmail: 992478504.218230 warning: trouble opening remote/0/348013; will try again later ... When I enter /var/qmail/queue/remote/0/, I con not find file 348381,348335 and 348013, What I showld do to deal with this problem? thx!
Re: warning: trouble opening remote
dgrer writes: > Jun 14 08:28:24 seic8 qmail: 992478504.218230 warning: trouble opening >remote/0/348013; will try again later > ... > > When I enter /var/qmail/queue/remote/0/, I con not find file 348381,348335 and >348013, > What I showld do to deal with this problem? thx! This might be a permission problem (except that you say that those files really *don't* exist), or it might be that somebody deleted files out of the queue while qmail-send was running. Qmail-send keeps its own idea of what's in the queue while it's running, so if you delete files, it gets confused. Stop qmail-send, delete /var/qmail/queue/*/0/{348381,348335,348013} and restart qmail-send. If you're running qmail configured as per http://www.lifewithqmail.org, then the following commands will fix the problem: svc -dx /service/qmail setlock /service/qmail/supervise/lock sh -c '/var/qmail/queue/*/0/{348381,348335,348013}' -- -russ nelson <[EMAIL PROTECTED]> http://russnelson.com Crynwr sells support for free software | PGPok | 521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |
patching qmail-smtpd.c twice
Hi, does somebody know if I can apply the maxrcpt.patch (for limiting the rcpt's in each connection) and wildmart.patch (one more used for anti-spam) in the same qmail-smtpd? If thats the case, in what order should I appy the patches? I suppose otherwise I'd have to look at the source and should do a patch for both things myself... Thanks in advance, Sebastián E. Brocher Tuxar http://www.tuxar.com (54-11)-4315-0016/17
Re: Log Entry question
Drew Hawn <[EMAIL PROTECTED]> asked: > > Thanks. I'll check it out. How can I decode the tai64 format? I can't > > tell when this problem is still occurring. There is a program called tai64nlocal that decodes the timestamps. Niles
patching qmail-smtpd.c twice
Hi, does somebody know if I can apply the maxrcpt.patch (for limiting the rcpt's in each connection) and wildmart.patch (one more used for anti-spam) in the same qmail-smtpd? If thats the case, in what order should I appy the patches? I suppose otherwise I'd have to look at the source and should do a patch for both things myself... Thanks in advance, Sebastián E. Brocher Tuxar http://www.tuxar.com (54-11)-4315-0016/17
Re: yet more trouble with daemontools and supervise
Dave Sill wrote: > > Stephen Bosch <[EMAIL PROTECTED]> wrote: > > >Okay, here is what I have in /var/qmail/rc: > > > >#!/bin/sh > > > ># Using splogger to send the log through syslog. > ># Using procmail to deliver messages to /var/spool/mail/$USER by > >default. > > > >exec env - PATH="/var/qmail/bin:$PATH" \ > >qmail-start '|preline procmail' splogger qmail > > Logging via splogger (syslog). Which is deprecated in LWQ, now, correct? Boy -- it's obviously been a while since I configured this machine. It ran so well... I never had to do anything to it. At least, I thought I didn't. Maybe I did and didn't realize it. > >The run file for qmail-smtpd/log contains: > > > >#!/bin/sh > >QMAILDUID=`id -u qmaild` > >NOFILESGID=`id -g qmaild` > >exec /usr/local/bin/softlimit -m 200 \ > >/usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb \ > >-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd > >2>&1 > > Sure that's qmail-smtpd/log/run? Looks more like qmail-smtpd/run. D'oh! #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail/smtpd -Stephen-
Re: Appending text to the bottom of outgoing messages
> I have a request from 2 of the domains I host to add an appended text to the > bottom of every outgoing email. I think I could force it easy enough if it > was the only domain hosted by the server, but since I'm hosting around 20, > and only 2 want it, and wouldn't you know it they want different text, how > can I accomplish this? Is it possible. More importantly, is it easy (sorry > I'm feeling very lazy today)? If it could be done for an only domain (which code/patch I would really like to see), it could be easily modified to read the text to append from a file which has the domain name in its name (say from 'append_$actdomain.txt' where actdomain=some.domain.com). So the solution is there; some of append_foo.txt files are empty and 2 of them are not. Regards Csaba __ This message went through virus scan at Trend Ltd. which stated the message was clean of viri appeared before 2001.06.06.