qmail Digest 29 Nov 1999 11:00:01 -0000 Issue 834 Topics (messages 33666 through 33684): Re: relay 33666 by: Magnus Bodin 33667 by: Hans Sansdalen 33671 by: Fred Lindberg 33682 by: Hans Sandsdalen cyclog: warning: unable to create... 33668 by: Julian Alvarez Venegas 33672 by: Fred Lindberg virtualdomains setup trouble 33669 by: tony cricelli 33670 by: Brad Shelton 33673 by: tony cricelli 33674 by: Philip Gabbert 33675 by: tony cricelli 33676 by: tony cricelli 33677 by: Philip Gabbert 33679 by: tony cricelli a blacklist for qmail to handle 33678 by: Dongping Deng Re: Maildir format 33680 by: Mikko Hänninen qmail + sslwrap 33681 by: Van Liedekerke Franky urgent help? 33683 by: Arisandy Arief performance problem/todo backlogs 33684 by: petervd.vuurwerk.nl Administrivia: To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To subscribe to the digest, e-mail: [EMAIL PROTECTED] To bug my human owner, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
On Sun, Nov 28, 1999 at 11:42:45AM +0100, Hans Sansdalen wrote: > At 19:30 27.11.99 +0100, Magnus Bodin wrote: > >On Sat, Nov 27, 1999 at 06:24:28PM +0100, Hans Sansdalen wrote: > >> Hi > >> > >> I'm used to sendmail, the the response "We do not relay" when > >> people use "%...@domain" in the to field. I have tried to > >> make qmail give some response of the same kind, but I haven't > >> succeded. Tried the wildmat-0.2-patch, but it was not for version > >> 1.03? > > > >qmail does not support the percenthack per default. > >You have to manually add support for it by creating > >/var/qmail/control/percenthack. So no worries. > > I created the file. Is that all? I could not find it documented > anywhere? Is an empty file enough? > > I want an email with a "to" address with ".*%.*@.*" to be rejected. You should NOT create the file if you want these to be rejected. As I said: "qmail does not support the percenthack per default." So if you want to reject this, then remove the percenthack file. (But if you want to support it, yes an empty file is enough). If you want to REJECT the mails, then you must patch qmail. (I don't know the patch you need). But if you can live with just bouncing them, then look at my former suggestion. /magnus -- http://x42.com/
At 12:10 28.11.99 +0100, Magnus Bodin wrote: >On Sun, Nov 28, 1999 at 11:42:45AM +0100, Hans Sansdalen wrote: >> At 19:30 27.11.99 +0100, Magnus Bodin wrote: >> >On Sat, Nov 27, 1999 at 06:24:28PM +0100, Hans Sansdalen wrote: >> >> Hi >> >> >> >> I'm used to sendmail, the the response "We do not relay" when >> >> people use "%...@domain" in the to field. I have tried to >> >> make qmail give some response of the same kind, but I haven't >> >> succeded. Tried the wildmat-0.2-patch, but it was not for version >> >> 1.03? >> > >> >qmail does not support the percenthack per default. >> >You have to manually add support for it by creating >> >/var/qmail/control/percenthack. So no worries. >> >> I created the file. Is that all? I could not find it documented >> anywhere? Is an empty file enough? >> >> I want an email with a "to" address with ".*%.*@.*" to be rejected. > >You should NOT create the file if you want these to be rejected. >As I said: "qmail does not support the percenthack per default." > >So if you want to reject this, then remove the percenthack file. >(But if you want to support it, yes an empty file is enough). > >If you want to REJECT the mails, then you must patch qmail. (I don't know >the patch you need). > Anyone have an idea? And if, where do I find it? Tried to use the wildmat-0.2 patch (with uses a file badmailpatterns), but that was not for qmail-1.03. >But if you can live with just bouncing them, then look at my former >suggestion. > >/magnus > >-- >http://x42.com/ > >
On Sat, 27 Nov 1999 18:24:28 +0100, Hans Sansdalen wrote: >I'm used to sendmail, the the response "We do not relay" when >people use "%...@domain" in the to field. I have tried to >make qmail give some response of the same kind, but I haven't What's wrong with: | echo "$LOCAL" | grep -v '%' >/dev/null 2>&1 || { echo "We do not relay"; exit 100; } in ~alias/.qmail-default -Sincerely, Fred (Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)
Fred Lindberg wrote: > > On Sat, 27 Nov 1999 18:24:28 +0100, Hans Sansdalen wrote: > > >I'm used to sendmail, the the response "We do not relay" when > >people use "%...@domain" in the to field. I have tried to > >make qmail give some response of the same kind, but I haven't > > What's wrong with: > > | echo "$LOCAL" | grep -v '%' >/dev/null 2>&1 || { echo "We do not > relay"; exit 100; } > > in ~alias/.qmail-default > > -Sincerely, Fred > > (Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA) I would prefer a solution where qmail responded with this message when it is talking to the "other end" (not accept the mail at all). qmail does not accept a mail when the from field is in the badmailfrom file :) -- /hans
Hello all!, Why is it that when I start qmail manually I get warning messages that do not affect qmail's functions, at least, that is what I have noticed. However, I would like to know these warning messages appear and how can I fix it. Thanks in advance! Raul cyclog: warning: unable to create @00000943808845, pausing: access denied cyclog: warning: unable to create @00000943808900, pausing: access denied cyclog: warning: unable to create @00000943808905, pausing: access denied cyclog: warning: unable to create @00000943808960, pausing: access denied cyclog: warning: unable to create @00000943808965, pausing: access denied
On Sun, 28 Nov 1999 11:27:16 -0600, Julian Alvarez Venegas wrote: >cyclog: warning: unable to create @00000943808845, pausing: access denied You should read the error message: cyclog gets "access denied" when trying to create the log file. Thus, the user it runs under (set in your startup script - typically qmaill) does not have write access to the log directory. Change that, and the error message goes away. Yes, it does affect qmail function. See cyclog man page for details. -Sincerely, Fred (Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)
Hello all, I struggled with this for a few days and finally broke down and am asking here. I am setting up a virtualdomain called stockdigest.net. 1. The MX record points to the correct machine. 2. The domain is in control/rcpthosts 3. I have the following in control/virtualdomains : stockdigest.net:tony 4. I also setup a .qmail-default file in ~tony If I send mail to [EMAIL PROTECTED] I get the mail. If I send it to [EMAIL PROTECTED] it bounces. The above 4 steps is all I saw to do in the man pages and the FAQ. Sorry if I am missing something really silly! Where did I go wrong? Thanks in advance, --tony
On Fri, Nov 26, 1999 at 10:23:54PM -0800, tony cricelli wrote: > Hello all, > I struggled with this for a few days and finally broke down and am > asking here. I am setting up a virtualdomain called stockdigest.net. > 1. The MX record points to the correct machine. > 2. The domain is in control/rcpthosts > 3. I have the following in control/virtualdomains : stockdigest.net:tony > 4. I also setup a .qmail-default file in ~tony > > If I send mail to [EMAIL PROTECTED] I get the mail. If I send it to > [EMAIL PROTECTED] it bounces. > > The above 4 steps is all I saw to do in the man pages and the FAQ. Sorry > if I am missing something really silly! Where did I go wrong? Did you send a HUP to qmail-send? -- Brad Shelton On Line Exchange http://online-isp.com
I did as Brad suggested, another sig HUP with no luck. I just removed the domain from locals (as Philip suggested )and did another sig hub and now mail for the domain just bounces. I must have missed a real simple step, but for the life of me I can not figure it out. Should i add it back to locals or is it definately wrong to put it in there? --tony ----- Original Message ----- From: "Philip Gabbert" <[EMAIL PROTECTED]> To: "tony cricelli" <[EMAIL PROTECTED]> Sent: Sunday, November 28, 1999 6:47 PM Subject: Re: virtualdomains setup trouble > I've fallen to this one as well, check your locals file. Make sure it's NOT > in the locals file. > This one got me for a bit too. I suggest if you want all your domains to be > 'virtual', like myself, have ONLY 'localhost' in the locals file. This will > make qmail check the virtualdomains file for ALL domains the machine > receives mail for. > > And Of course like Brad said, make sure you send the -HUP SIG command to > qmail-send to restart it (you can locate it via top, user: qmails) > > Philip > > > From: "tony cricelli" <[EMAIL PROTECTED]> > > Date: Fri, 26 Nov 1999 22:23:54 -0800 > > To: <[EMAIL PROTECTED]> > > Subject: virtualdomains setup trouble > > > > Hello all, > > I struggled with this for a few days and finally broke down and am > > asking here. I am setting up a virtualdomain called stockdigest.net. > > 1. The MX record points to the correct machine. > > 2. The domain is in control/rcpthosts > > 3. I have the following in control/virtualdomains : stockdigest.net:tony > > 4. I also setup a .qmail-default file in ~tony > > > > If I send mail to [EMAIL PROTECTED] I get the mail. If I send it to > > [EMAIL PROTECTED] it bounces. > > > > The above 4 steps is all I saw to do in the man pages and the FAQ. Sorry > > if I am missing something really silly! Where did I go wrong? > > > > Thanks in advance, > > --tony > > > > > >
It's defiantly wrong to place it in the locals. Qmail looks in the locals first. If it finds the needed domain, it will check for a local user, if it's not found, it will bounce. What's the error message that you are getting? Make sure it's also in the rcpthosts. stockdigest.net should be in the rcpthosts and the virtualhosts file. That's it. Philip > From: "tony cricelli" <[EMAIL PROTECTED]> > Date: Fri, 26 Nov 1999 23:33:36 -0800 > To: <[EMAIL PROTECTED]>, "\"Philip Gabbert\"" <[EMAIL PROTECTED]> > Subject: Re: virtualdomains setup trouble > > I did as Brad suggested, another sig HUP with no luck. I just removed the > domain > from locals (as Philip suggested )and did another sig hub and now mail for > the domain just bounces. > > I must have missed a real simple step, but for the life of me I can not > figure it out. Should i add it back to locals or is it definately wrong to > put > it in there? > > --tony > ----- Original Message ----- > From: "Philip Gabbert" <[EMAIL PROTECTED]> > To: "tony cricelli" <[EMAIL PROTECTED]> > Sent: Sunday, November 28, 1999 6:47 PM > Subject: Re: virtualdomains setup trouble > > >> I've fallen to this one as well, check your locals file. Make sure it's > NOT >> in the locals file. >> This one got me for a bit too. I suggest if you want all your domains to > be >> 'virtual', like myself, have ONLY 'localhost' in the locals file. This > will >> make qmail check the virtualdomains file for ALL domains the machine >> receives mail for. >> >> And Of course like Brad said, make sure you send the -HUP SIG command to >> qmail-send to restart it (you can locate it via top, user: qmails) >> >> Philip >> >>> From: "tony cricelli" <[EMAIL PROTECTED]> >>> Date: Fri, 26 Nov 1999 22:23:54 -0800 >>> To: <[EMAIL PROTECTED]> >>> Subject: virtualdomains setup trouble >>> >>> Hello all, >>> I struggled with this for a few days and finally broke down and am >>> asking here. I am setting up a virtualdomain called stockdigest.net. >>> 1. The MX record points to the correct machine. >>> 2. The domain is in control/rcpthosts >>> 3. I have the following in control/virtualdomains : stockdigest.net:tony >>> 4. I also setup a .qmail-default file in ~tony >>> >>> If I send mail to [EMAIL PROTECTED] I get the mail. If I send it > to >>> [EMAIL PROTECTED] it bounces. >>> >>> The above 4 steps is all I saw to do in the man pages and the FAQ. Sorry >>> if I am missing something really silly! Where did I go wrong? >>> >>> Thanks in advance, >>> --tony >>> >>> >> >> > >
Here is what I have: grep stock /var/qmail/control/rcpthosts stockdigest.net stockdigest.com stock-digest.com grep stock /var/qmail/control/virtualdomains stockdigest.net:tony stockdigest.com:tony stock-digest.com:tony Should the .qmail-default have anything special in there? --tony ----- Original Message ----- From: "John White" <[EMAIL PROTECTED]> To: "tony cricelli" <[EMAIL PROTECTED]> Sent: Sunday, November 28, 1999 7:53 PM Subject: Re: virtualdomains setup trouble > What are the results of: > > grep stock /var/qmail/control/rcpthosts > grep stock /var/qmail/control/virtualdomains >
Philip, Here is a copy of the error message: ==================================================== Date: 29 Nov 1999 02:10:10 -0000 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: failure notice Hi. This is the qmail-send program at comsystem.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: <[EMAIL PROTECTED]> Received: (qmail 26422 invoked by uid 0); 29 Nov 1999 02:10:10 -0000 Date: 29 Nov 1999 02:10:10 -0000 Message-ID: <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: test Return-Path: <[EMAIL PROTECTED]> Received: (qmail 26422 invoked by uid 0); 29 Nov 1999 02:10:10 -0000 Date: 29 Nov 1999 02:10:10 -0000 Message-ID: <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] ====================================================== dod was just a random name I picked to test with. Maybe I have to do something special in the tony account. The .qmail files are still a little foggy in my mind. --tony ----- Original Message ----- From: "Philip Gabbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 28, 1999 8:06 PM Subject: Re: virtualdomains setup trouble > It's defiantly wrong to place it in the locals. Qmail looks in the locals > first. If it finds the needed domain, it will check for a local user, if > it's not found, it will bounce. > > What's the error message that you are getting? > Make sure it's also in the rcpthosts. > stockdigest.net should be in the rcpthosts and the virtualhosts file. > > That's it. > > Philip > > > From: "tony cricelli" <[EMAIL PROTECTED]> > > Date: Fri, 26 Nov 1999 23:33:36 -0800 > > To: <[EMAIL PROTECTED]>, "\"Philip Gabbert\"" <[EMAIL PROTECTED]> > > Subject: Re: virtualdomains setup trouble > > > > I did as Brad suggested, another sig HUP with no luck. I just removed the > > domain > > from locals (as Philip suggested )and did another sig hub and now mail for > > the domain just bounces. > > > > I must have missed a real simple step, but for the life of me I can not > > figure it out. Should i add it back to locals or is it definately wrong to > > put > > it in there? > > > > --tony > > ----- Original Message ----- > > From: "Philip Gabbert" <[EMAIL PROTECTED]> > > To: "tony cricelli" <[EMAIL PROTECTED]> > > Sent: Sunday, November 28, 1999 6:47 PM > > Subject: Re: virtualdomains setup trouble > > > > > >> I've fallen to this one as well, check your locals file. Make sure it's > > NOT > >> in the locals file. > >> This one got me for a bit too. I suggest if you want all your domains to > > be > >> 'virtual', like myself, have ONLY 'localhost' in the locals file. This > > will > >> make qmail check the virtualdomains file for ALL domains the machine > >> receives mail for. > >> > >> And Of course like Brad said, make sure you send the -HUP SIG command to > >> qmail-send to restart it (you can locate it via top, user: qmails) > >> > >> Philip > >> > >>> From: "tony cricelli" <[EMAIL PROTECTED]> > >>> Date: Fri, 26 Nov 1999 22:23:54 -0800 > >>> To: <[EMAIL PROTECTED]> > >>> Subject: virtualdomains setup trouble > >>> > >>> Hello all, > >>> I struggled with this for a few days and finally broke down and am > >>> asking here. I am setting up a virtualdomain called stockdigest.net. > >>> 1. The MX record points to the correct machine. > >>> 2. The domain is in control/rcpthosts > >>> 3. I have the following in control/virtualdomains : stockdigest.net:tony > >>> 4. I also setup a .qmail-default file in ~tony > >>> > >>> If I send mail to [EMAIL PROTECTED] I get the mail. If I send it > > to > >>> [EMAIL PROTECTED] it bounces. > >>> > >>> The above 4 steps is all I saw to do in the man pages and the FAQ. Sorry > >>> if I am missing something really silly! Where did I go wrong? > >>> > >>> Thanks in advance, > >>> --tony > >>> > >>> > >> > >> > > > > > >
In the .qmail-default file that's located in tony's directory you need to have "./Maildir/" I found that I'm having to use .qmail-default insead of .qmail, so I would try that. Pretty much copy or rename your .qmail file to .qmail-default. Philip > From: "tony cricelli" <[EMAIL PROTECTED]> > Date: Sat, 27 Nov 1999 02:11:30 -0800 > To: <[EMAIL PROTECTED]> > Subject: Re: virtualdomains setup trouble > > Here is what I have: > > grep stock /var/qmail/control/rcpthosts > stockdigest.net > stockdigest.com > stock-digest.com > > grep stock /var/qmail/control/virtualdomains > stockdigest.net:tony > stockdigest.com:tony > stock-digest.com:tony > > Should the .qmail-default have anything special in there? > > --tony > > ----- Original Message ----- > From: "John White" <[EMAIL PROTECTED]> > To: "tony cricelli" <[EMAIL PROTECTED]> > Sent: Sunday, November 28, 1999 7:53 PM > Subject: Re: virtualdomains setup trouble > > >> What are the results of: >> >> grep stock /var/qmail/control/rcpthosts >> grep stock /var/qmail/control/virtualdomains >> > >
Philip, That did it! I had a blank .qmail-default Doh!! I knew it had to be something simple that I would slap my head with! Thanks for the help. Now, is it possible for qmail to send mail to a virtual domain to different poeple. For example in virtualdomains I would like to put: stockdigest.net:tony [EMAIL PROTECTED]:[EMAIL PROTECTED] --tony ----- Original Message ----- From: "Philip Gabbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 28, 1999 10:23 PM Subject: Re: virtualdomains setup trouble > > In the .qmail-default file that's located in tony's directory you need to > have "./Maildir/" > I found that I'm having to use .qmail-default insead of .qmail, so I would > try that. > > Pretty much copy or rename your .qmail file to .qmail-default. > > Philip > > > From: "tony cricelli" <[EMAIL PROTECTED]> > > Date: Sat, 27 Nov 1999 02:11:30 -0800 > > To: <[EMAIL PROTECTED]> > > Subject: Re: virtualdomains setup trouble > > > > Here is what I have: > > > > grep stock /var/qmail/control/rcpthosts > > stockdigest.net > > stockdigest.com > > stock-digest.com > > > > grep stock /var/qmail/control/virtualdomains > > stockdigest.net:tony > > stockdigest.com:tony > > stock-digest.com:tony > > > > Should the .qmail-default have anything special in there? > > > > --tony > > > > ----- Original Message ----- > > From: "John White" <[EMAIL PROTECTED]> > > To: "tony cricelli" <[EMAIL PROTECTED]> > > Sent: Sunday, November 28, 1999 7:53 PM > > Subject: Re: virtualdomains setup trouble > > > > > >> What are the results of: > >> > >> grep stock /var/qmail/control/rcpthosts > >> grep stock /var/qmail/control/virtualdomains > >> > > > > > >
Suppose I have a black list, I'd like qmail not to send anything to whomever on that list. Before qmail sending anything out, it would consult with that list first. Can the present qmail do that? Thanks dp
Subba Rao <[EMAIL PROTECTED]> wrote on Sat, 27 Nov 1999: > I have opted to use Maildir format over mbox. The MDA in use is maildrop. > Except for the inbox/spool directory, all the folders that maildrop uses > are mbox format. The folders maildrop uses are in ~/Mail while the incoming > spool is ~/Maildir. > > I thought one of the benifits of Maildir, is to have mail in seperate files > for later processing and portability. Please correct me if I am wrong. This is correct. The messages are generally in the subdirectories <maildir>/new and <maildir>/cur. > Should I have used "makemaildir ~/Mail"? Right now all the mail in each folder > in ~/Mail gets appended. Probably not, that would create a maildir-format folder called "Mail". Generally you want to have mail folders (regardless of the folder format) under a regular directory called Mail. > I would like maildrop to use Maildir format and the folders to have the Maildir > format. You stated that all the folders under Mail are in mbox format? If you'd like them to be maildirs, you need to run some kind of command to convert them to maildirs. Typically you'd do something like this: cd Mail mv folder folder.mbox mbox2maildir folder.mbox folder <check that the mail in folder looks good> rm folder.mbox And so on. mbox2maildir scripts are pretty easy to find, you can probably get one from the qmail site. Another way to create a maildir folder is to use Mutt for this purpose, since you seem to be using that. Rename the folder like in before, then open it with Mutt, set $mbox_type to Maildir (:set mbox_type=Maildir), and then save all of the messages to the old folder name (something like T~A<enter>;s=folder<enter>). Hope this helps, Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs / Be nice to other people. They outnumber you 6 billion to one.
Hi, has anyone succeeded in using sslwrap together with tcpserver for qmail-pop? And would that person mind sharing his experience? Thanks! Franky
hi... my Qmail server already run until 157 days but now...when I try send to some mailbox the message didn't arrive until now?? why?? qmail-qstat : ------------ messages in queue: 17106 messages in queue but not yet preprocessed: 37 and now my /var/qmail/queue use 50% of partition?? before that just 3-10% what should I do?? thanks...
My situation: PII-500/512MB 2 9GB scsi disks (one for /var/qmai/queue, one for the rest of the system) user homedirs mounted over NFS (but that's not relevant here) running stock redhat 1000fd 2.0.36 linux kernel (from RPM) I'm running a small script that injects 1000 distinct messages, all destined for either devnull@localhost or devnull@remotehost, in the localhost case corresponding to a .qmail file with just '#' in it. On this particular machine, concurrency never goes higher than 4 or 5 as long as the script is periodically injecting messages. Looking at qmail-qstat periodically during the run shows the number of unpreprocessed messages (aka in the todo/ queue) growing to about 130 at the moment the 1000th message is injected. Only then (when the script stops injecting) qmail-send suddenly gains speed and concurrency does hit the roof, with the second number in qmail-qstat quickly dropping. Tests on other machines (our heavily loaded shellserver, or my homebox which is not half as powerful) show very different results: qmail is not even slightly impressed with the numerous injections and handles everything gracefully, with a todo/ queue never bigger than 1 or 2 messages. The bad results were observed on a heavily patched qmail, my first suspect was the big-todo patch. Removing it made no difference. I tried a completely vanilla qmail, with no difference either. Anobody got any ideas? The machine is not swapping heavily. Greetz, Peter. -- Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder | | 'C makes it easy to shoot yourself in the foot; | C++ makes it harder, but when you do it blows your whole leg off.' | Bjarne Stroustrup, Inventor of C++