RE: PHP
/usr/local/apache/bin -Original Message- From: Paul Farber [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 02, 2000 5:58 PM To: Adam McKenna Cc: [EMAIL PROTECTED] Subject:Re: PHP do you have the apxs perl script in your http bin dir? Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Tue, 2 May 2000, Adam McKenna wrote: On Tue, May 02, 2000 at 03:31:50PM +0200, Jeroen ten Berge wrote: Has anyone treid the web mail howto from Ying Zhang ? Well, I have, first i've done the web database step by step howto, which went perfect, I had database activity on apache using php 3.0.16; Now in order to use IMAP i had to recompile php to include IMAP support : ./configure --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/etc/httpd \ --with-mysql \ --with-pgsql \ --with-xml \ --with-gd \ --with-imap \ --with-zlib \ --with-system-regex make make install Now when i do an /etc/rc.d/init.d/httpd configtest it exits with the following error : Syntax error on line 238 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache/libexec/libphp3.so into server: /usr/local/apache/libexec/libphp3.so: undefined symbol: gss_mech_krb5 Not sure about this but perhaps you compiled PHP with a newer libc? Or some other library that apache and PHP share? --Adam
Interesting scenerio
Hi Guys I have an interesting scenerion, whereby I send mail to user and the mail is not in the user's mailbox, what do U think could be the problem, and also when I check in the maillog I see an error msg saying : Yikes!Could_create_but_cant_delete_temperory_file!!/ENOENT:path_doesnot_exist What could be the prob. Eric
RE: Three questions...
??? I have the message ID's in my log ! -Original Message- From: Jeff Hayward [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 02, 2000 7:25 PM To: [EMAIL PROTECTED] Subject:Re: Three questions... On Tue, 2 May 2000, Gareth Harper wrote: 1) His first requirement was to only allow relaying if the user had one of his hosted domains as the From: line of an email. I've told him what a bad idea this is but there's no persuading. So is there anyway to do this but only when the mail has to be relayed? I'd guess we'd need a patch to smtpd. Please don't tell me what a bad idea this is - I know. But orders are orders. Warning: brain damage detected. You will instantly be listed in ORBS, and will likely also be frequently abused by relay-rapers. Is there a web front end available that doesn't require logging in like this? or where can I find detailed info on the maildir format that qmail uses so I can write my own. You can hack upon sqwebmail, but I wouldn't. More brain damage. 3) I've been told that the logs don't produce enough detail and that sendmail produces much more detailed logs in /var/log/maillog including the sender, recipient and other information. Is it possible to produce much more detailed logging using qmail. We need to be able to trace anything in case of abuse. The only thing that sendmail logs which qmail does not is the message-id. Of course, qmail doesn't write logs in sendmail format, which may be what the PHB wants. Write a perl script to reformat qmail/tcpserver logs in sendmail format. -- Jeff Hayward
Re: accustamp|tailocal|matchup
On Tue, 2 May 2000, Kins Orekhov wrote: Hello people! We've been running qmail more then 6 months and have a lot of logs. Now I want them analyze with qmailanalog, but matchup doesn't like timestamps in logs because we do accustamp on logs and the tailocal it. So, what we have is: 1999-11-24 17:43:07.542160 status: local 0/10 remote 0/20 but matchup needs: 957284032.988038 status: local 0/10 remote 0/20 Is it correct? I think so cuz zoverall (or other bins from qmailanalog) doesn't work with first logs. So, the question is how would one use qmailanalog in that situation? I have a patch for deamontools-0.70 that creates a new executable called tai64nunix. It takes TAI64 timestamps and converts them to unix epaoch time, suitable for qmailanalog. Russ Allebury has a similar patch. Patch follows *** FILES.orig Mon Mar 6 16:21:09 2000 --- FILES Fri Mar 24 19:46:34 2000 *** *** 15,20 --- 15,21 multilog.c tai64n.c tai64nlocal.c + tai64nunix.c softlimit.c setuidgid.c envuidgid.c *** Makefile.orig Mon Mar 6 16:21:09 2000 --- MakefileFri Mar 24 19:26:57 2000 *** *** 336,342 prog: \ svscan supervise svc svok svstat fghack multilog tai64n tai64nlocal \ ! softlimit setuidgid envuidgid envdir setlock rts matchtest prot.o: \ compile prot.c hasshsgr.h prot.h --- 336,342 prog: \ svscan supervise svc svok svstat fghack multilog tai64n tai64nlocal \ ! tai64nunix softlimit setuidgid envuidgid envdir setlock rts matchtest prot.o: \ compile prot.c hasshsgr.h prot.h *** *** 534,539 --- 534,547 tai64nlocal.o: \ compile tai64nlocal.c buffer.h exit.h fmt.h ./compile tai64nlocal.c + + tai64nunix: \ + load tai64nunix.o unix.a byte.a + ./load tai64nunix unix.a byte.a + + tai64nunix.o: \ + compile tai64nunix.c buffer.h exit.h fmt.h + ./compile tai64nunix.c tai_now.o: \ compile tai_now.c tai.h uint64.h *** TARGETS.origMon Mar 6 16:21:09 2000 --- TARGETS Fri Mar 24 19:49:20 2000 *** *** 109,114 --- 109,116 tai64n tai64nlocal.o tai64nlocal + tai64nunix.o + tai64nunix softlimit.o softlimit setuidgid.o *** hier.c.orig Mon Mar 6 16:21:09 2000 --- hier.c Fri Mar 24 19:55:44 2000 *** *** 15,20 --- 15,21 c(auto_home,"bin","multilog",-1,-1,0755); c(auto_home,"bin","tai64n",-1,-1,0755); c(auto_home,"bin","tai64nlocal",-1,-1,0755); + c(auto_home,"bin","tai64nunix",-1,-1,0755); c(auto_home,"bin","softlimit",-1,-1,0755); c(auto_home,"bin","setuidgid",-1,-1,0700); c(auto_home,"bin","envuidgid",-1,-1,0755); Regards Peter -- Peter Samuel[EMAIL PROTECTED] Technical Consultantor at present: eServ. Pty Ltd [EMAIL PROTECTED] Phone: +61 2 9206 3410 Fax: +61 2 9281 1301 "If you kill all your unhappy customers, you'll only have happy ones left"
RE: POP or SMTP
Title: RE: POP or SMTP Is there anybody out there? --Pink Floyd Perhaps, you couldn't understand my bad English! :( but it isn't my native language...you may ask what do you mean? at least? Thanks. Ilker G. -Original Message- From: R.Ilker Gokhan Sent: Tuesday, May 02, 2000 6:33 PM To: [EMAIL PROTECTED] Subject: POP or SMTP Hi to all, My branch offices have slow links about 24.4 kbit. So i have to use lots effective their net link. i will install mail server on brach office to establish communication with the main office and with internet. I have already mail server on main office. which method more effective, more easy manageable to get a mail? ---does a POP program use like fetchmail,getmail or ---forwards using SMTP by main office's mail server to branch offices's mail server? what is your suggestion? Thanks.. Ilker G.
Re: POP or SMTP
On Tue, May 02, 2000 at 06:32:58PM +0300, R.Ilker Gokhan wrote: My branch offices have slow links about 24.4 kbit. clear. So i have to use lots effective their net link. You mean "i have to use the bandwidth efficiently"? i will install mail server on brach office to communicate main office and internet. I have already mail server on main office. which method more effective, it depends, unfortunately. Having an own email server per branch is quite useful if there is a lot of email traffic inside a branch. more easy manageable the central server, typically. to get a mail does a POP program use like fetchmail,getmail or forwards SMTP by main office's mail server to branch offices's mail server? what is your suggestion? Sorry, i don't understand that sentence. Regards, Uwe
Re: Interesting scenerio
On Wed, May 03, 2000 at 11:57:11AM +0300, Mulindwa Eric wrote: I have an interesting scenerion, whereby I send mail to user and the mail is not in the user's mailbox, what do U think could be the problem, and also when I check in the maillog I see an error msg saying : Yikes!Could_create_but_cant_delete_temperory_file!!/ENOENT:path_doesnot_exist What could be the prob. The problem is that you still not tell any details. For example: what default delivery methode you use, or the contents of any .qmail involved. Regards, Uwe
RE: POP or SMTP
Title: RE: POP or SMTP So i have to use lots effective their net link. You mean i have to use the bandwidth efficiently? i will install mail server on brach office to communicate main it depends, unfortunately. Having an own email server per branch is quite useful if there is a lot of email traffic inside a branch. more easy manageable the central server, typically. to get a mail does a POP program use like fetchmail,getmail or forwards SMTP by main office's mail server to branch offices's mail server? what is your suggestion? Sorry, i don't understand that sentence. Regards, Uwe First, Thanks for replies. which protocol should i use to establish communication between branch office and the main office so that using the bandwith becomes more effectively? Best regards, Ilker G.
Re: accustamp|tailocal|matchup
"Peter Samuel" [EMAIL PROTECTED] writes: On Tue, 2 May 2000, Kins Orekhov wrote: ... So, what we have is: 1999-11-24 17:43:07.542160 status: local 0/10 remote 0/20 but matchup needs: 957284032.988038 status: local 0/10 remote 0/20 ... I have a patch for deamontools-0.70 that creates a new executable called tai64nunix. It takes TAI64 timestamps and converts them to unix epaoch time, suitable for qmailanalog. Russ Allebury has a similar patch. Here is another variation on the theme. It is designed to run on raw (possibly gzipped) daemontools-0.70 logs, so it is not directly applicable for Kins. The script should be run once a day by cron. It mails the results of 'zoverall' to the user 'admin'. #!/usr/bin/perl -w use strict; my $logdir = '/var/log/qmail-send'; chdir $logdir or die "Can't chdir to $logdir: $!\n"; open(OUT, "|matchup 5.pending.n|zoverall|/var/qmail/bin/mailsubj 'Mail statistics' admin") or die("Can't pipe to matchup: $!\n"); opendir(D, '.') or die "Can't open $logdir: $!\n"; my @logs = sort grep /^(?:@|current)/, readdir(D); closedir(D); my $tai64n_yesterday = sprintf "\@4000%08x", $^T - 86400; while (@logs 1) { last if $logs[1] gt $tai64n_yesterday; shift @logs; } unshift @logs, '.pending' if -r '.pending'; foreach my $f (@logs) { $f =~ s/(.*\.gz)$/gzip -cdq 2\/dev\/null $1|/; open(IN, $f) or die "Can't read $f: $!\n"; while (IN) { next unless s/^(\@[0-9a-f]+)// and $1 ge $tai64n_yesterday; printf OUT "%.6f%s", tai64n($1), $_; } close(IN); } close(OUT); rename '.pending.n', '.pending'; # Simplistic tai64n converter. Returns float time_t value or undef. sub tai64n { my(@x) = map { unpack "N", pack "H8", $_ } $_[0] =~ /^\@?([0-9a-f]{8})([0-9a-f]{8})([0-9a-f]{8})/; return unless @x == 3 and $x[0] == 0x4000; $x[1]+$x[2]/1_000_000_000; } __END__ -- Frank Cringle, [EMAIL PROTECTED] voice: (+49 2304) 467101; fax: 943357
Re: Three questions...
On Tue, 2 May 2000, John White wrote: On Tue, May 02, 2000 at 12:25:14PM -0500, Jeff Hayward wrote: On Tue, 2 May 2000, Gareth Harper wrote: 1) His first requirement was to only allow relaying if the user had one of his hosted domains as the From: line of an email. I've told him what a bad idea this is but there's no persuading. So is there anyway to do this but only when the mail has to be relayed? I'd guess we'd need a patch to smtpd. Please don't tell me what a bad idea this is - I know. But orders are orders. Warning: brain damage detected. You will instantly be listed in ORBS, and will likely also be frequently abused by relay-rapers. Jeff, if you read into the statement just a bit, you'll realize that the boss is asking for something much worse: denying relaying from valid IPs which don't present the ISPs domain in the envelope sender. Why not use something like smtp-poplock? If they successfully auth to the pop daemon they can send mail for X minutes. Then who cares what they have in the From header. Vince. -- == Vince Vielhaber -- KA8CSHemail: [EMAIL PROTECTED]http://www.pop4.net 128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking Online Campground Directoryhttp://www.camping-usa.com Online Giftshop Superstorehttp://www.cloudninegifts.com ==
qmail Digest 3 May 2000 10:00:00 -0000 Issue 990
qmail Digest 3 May 2000 10:00:00 - Issue 990 Topics (messages 40820 through 40917): Re: qmail pop3 problem 40820 by: BlackStains 40821 by: BlackStains 40823 by: Chris Johnson Mail purge 40822 by: Mulindwa Eric 40828 by: Uwe Ohse 40859 by: Mulindwa Eric 40876 by: Dave Sill 40906 by: Mulindwa Eric how to keep junk rejected by rblsmtpd 40824 by: Martin Dougiamas 40825 by: Uwe Ohse 40894 by: Jonathan McDowell Re: dot-qmail: write to mbox named after current year month 40826 by: Uwe Ohse 40874 by: Rogerio Brito 40902 by: Bob Rogers Re: qmail-inject 40827 by: Uwe Ohse Re: Three questions... 40829 by: Uwe Ohse 40843 by: Dave Sill 40871 by: Jeff Hayward 40872 by: John Gonzalez/netMDC admin 40891 by: Chris Johnson 40898 by: John White 40910 by: Jeroen ten Berge 40917 by: Vince Vielhaber Easy question 40830 by: Derek Watson 40831 by: Ricardo Cerqueira 40878 by: Dave Sill stralloc problem 40832 by: Federico Barbazza 40833 by: Petr Novotny 40835 by: Federico Barbazza 40836 by: Petr Novotny PHP 40834 by: Jeroen ten Berge 40837 by: Soffen, Matthew 40841 by: Jeroen ten Berge 40842 by: Soffen, Matthew 40844 by: Jeroen ten Berge 40847 by: Jeroen ten Berge 40850 by: Paul Farber 40851 by: Adam McKenna 40852 by: Jeroen ten Berge 40858 by: Paul Farber 40908 by: Jeroen ten Berge Re: Understanding How To Use qmail In My Product 40838 by: Dave Sill Re: Newbie setting up aliases 40839 by: Dave Sill 40899 by: bob 40901 by: bob Re: Out of memory error?? 40840 by: Dave Sill 40845 by: TAG 40846 by: Dave Sill 40848 by: Jeroen ten Berge 40849 by: Paul Farber 40875 by: Rogerio Brito 40904 by: TAG 40905 by: TAG POP or SMTP 40853 by: R.Ilker Gokhan 40912 by: R.Ilker Gokhan 40913 by: Uwe Ohse 40915 by: R.Ilker Gokhan qmail's sendmail 40854 by: J.M. Roth 40855 by: markd.bushwire.net 40856 by: Petr Novotny 40857 by: Jim Simmons 40864 by: Bruce Guenter 40886 by: J.M. Roth 40887 by: markd.bushwire.net Web front-end to mail service 40860 by: Tim_Clifton.candle.com 40861 by: Steffan Hoeke 40862 by: Dave Sill 40865 by: Tim_Clifton.candle.com 40866 by: Soffen, Matthew 40867 by: Gabriel Ambuehl 40868 by: John Gonzalez/netMDC admin 40873 by: Dave Sill Can it be done? 40863 by: Guillermo Villasana Cardoza 40879 by: Dave Sill 40883 by: Jennifer Tippens 40885 by: Guillermo Villasana Cardoza Re: "Multi-RCPT vs. Single RCPT delivery" - logic error? 40869 by: Jeff Hayward any news on the 2.0 front? 40870 by: Jeremy Hansen accustamp|tailocal|matchup 40877 by: Kins Orekhov 40880 by: Dave Sill 40881 by: Tim Hunter 40911 by: Peter Samuel 40916 by: Frank D. Cringle svscan doesn't clean up dirs during shutdown... 40882 by: Gabriel Ambuehl 40884 by: James Raftery aliases... 40888 by: Marcelo J. Iturbe 40889 by: Jennifer Tippens 40890 by: markd.bushwire.net multiple Qmail instances/machine 40892 by: Reece Markowsky 40893 by: markd.bushwire.net Any IBM Accounts Running qmail? 40895 by: Mike Flynn Error Message.. 40896 by: Mario Rafael patch send of all addresses in CC field 40897 by: Yuan P Li 40900 by: Bob Rogers Control of queue lifetimes in qmail 40903 by: Ian Lance Taylor Re: upgrade to 1.1.12i -= strange behaviour :-( 40907 by: Steffan Hoeke Interesting scenerio 40909 by: Mulindwa Eric 40914 by: Uwe Ohse 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] -- -Original Message- From: Chris Johnson [EMAIL PROTECTED] To: BlackStains [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: 02 Mei 2000 14:22 Subject: Re: qmail pop3 problem |On Tue, May 02, 2000 at 05:41:55AM +0700, BlackStains wrote: | I have qmail installed on my server. The smtpd is working (using telnet | mail.domain.com 25). But when I telnet mail.domain.com 110, it doesn't work. | The messages: "-ERR this user has no $HOME/Maildir". What is the problem? | | the command "maildirmake $HOME/Maildir" if I implement that like this: | "maildirmake
Re: POP or SMTP
On Wed, May 03, 2000 at 11:41:47AM +0300, R.Ilker Gokhan wrote: Thanks for replies. which protocol should i use to establish communication between branch office and the main office so that using the bandwith becomes more effectively? It does not really matter. The bandwidth requirements are about the same. POP has overhead, a few hundred bytes per connection, and so has SMTP. If you _really_ need to preserve bandwidth and if you have compressible messages (most attachments are not), and if you don't mind a bit of hacking a bit, then you might want to use serialmail/ucspi-tcp over a compressed SSH connection. Regards, Uwe
Re: qmail's sendmail
"J.M. Roth \(iip\)" [EMAIL PROTECTED] wrote: Ok well, what do you mean with "mimic sendmail". A customer asked me to point out to him all the options of our mail sending tool for use in his cgi progs. I'm not sure what to say... # grep usage: sendmail.c substdio_putsflush(subfderr,"sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]\n"); There are various other options that are silently ignored. -Dave
Re: qmail's sendmail
On Wed, May 03, 2000 at 08:33:44AM -0400, Dave Sill wrote: Ok well, what do you mean with "mimic sendmail". A customer asked me to point out to him all the options of our mail sending tool for use in his cgi progs. I'm not sure what to say... Or else, you might want to introduce your users to qmail-inject. There's a man page for qmail-inject... -Johan -- Johan Almqvist
Re: Mail purge
Mulindwa Eric [EMAIL PROTECTED] wrote: On Tue, 2 May 2000, Dave Sill wrote: Mulindwa Eric [EMAIL PROTECTED] wrote: I have an interesting scenerion, whereby I send mail to user and the mail is not in the user's mailbox, what do U think could be the problem, and also when I check in the maillog I see an error msg saying : Yikes!Could_create_but_cant_delete_temperory_file!!/ENOENT:path_doesnot_exist What could be the prob. That "Yikes" message isn't coming from qmail. What delivery agent is this user using? Well am using qmail. OK, I'll be more explicit. $ cd /usr/local/src/qmail-1.03 $ grep Yikes * $ So that "Yikes" message is not *originated* by qmail. In all likelihood, it's coming from a non-qmail delivery agent such as procmail, binmail, deliver, maildrop, etc. Inspect the user's .qmail files to see if he's overriding the default delivery method. BTW, it's very rude to repost the same query under a different subject (Interesting scenerio) just because you don't like the way the original thread is going. Consider this your one free indiscretion. -Dave
Re: Out of memory error??
[EMAIL PROTECTED] wrote: I realise that it is a memory leak - but how can it be fixed??? 1) You can analyze the source code of the patch, identify the leak, and fix it, 2) You can ask the author of the patch if he's aware of the problem and/or has a fix, or 3) You can hire a competant programmer to do (1). -Dave
Re: Newbie setting up aliases
bob [EMAIL PROTECTED] wrote: What I really mean is I can't send out mail remotely... say to my mother-in-law for instance. Right, and you think that's a *problem*? :-) But seriously, what happens when you try to send remote mail? What Do The Logs Say(tm)? -Dave
Re: Error Message..
Mario Rafael [EMAIL PROTECTED] wrote: Could anybody help me with this error message?... I DONT know what the problem is.. :( May 3 03:05:56 svr1 qmail: 957315956.028582 new msg 205816 May 3 03:05:56 svr1 qmail: 957315956.061896 info msg 205816: bytes 7612 from [EMAIL PROTECTED] qp 2314 uid 501 May 3 03:05:56 svr1 qmail: 957315956.103540 warning: unable to create remote/12/205816 Try running qmail-qsanity or queue-fix from www.qmail.org. Make sure you have free space and i-nodes on the queue filesystem. -Dave
RE: Interesting scenerio
also when I check in the maillog I see an error msg saying : Yikes!Could_create_but_cant_delete_temperory_file!!/ENOENT:pat h_doesnot_exist What could be the prob. Check his .qmail file. He's probably trying to run mail through a misconfigured filter; as someone already noted, that isn't a qmail error message. -- gowen -- Greg Owen -- [EMAIL PROTECTED]
Re: Out of memory error??
Dave Sill wrote: [EMAIL PROTECTED] wrote: I realise that it is a memory leak - but how can it be fixed??? 1) You can analyze the source code of the patch, identify the leak, and fix it, 2) You can ask the author of the patch if he's aware of the problem and/or has a fix, or 3) You can hire a competant programmer to do (1). -Dave HEHEHEHE!! Thanks - I especially liked the (3) option :) Thanks Tonino
RE: Interesting scenario
qmail does not ever print an error message like Yikes! just look at the code and you can see that. the user MUST have some type of .qmail that tells it some other type of delivery message, this has been pointed out once before, please do not continue to send this to the list. -Original Message- From: Mulindwa Eric [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2000 4:57 AM To: [EMAIL PROTECTED] Subject: Interesting scenerio Hi Guys I have an interesting scenerion, whereby I send mail to user and the mail is not in the user's mailbox, what do U think could be the problem, and also when I check in the maillog I see an error msg saying : Yikes!Could_create_but_cant_delete_temperory_file!!/ENOENT:path_doesnot_exis t What could be the prob. Eric
Re: Interesting scenerio
Am using procmail Eric On Wed, 3 May 2000, Uwe Ohse wrote: On Wed, May 03, 2000 at 11:57:11AM +0300, Mulindwa Eric wrote: I have an interesting scenerion, whereby I send mail to user and the mail is not in the user's mailbox, what do U think could be the problem, and also when I check in the maillog I see an error msg saying : Yikes!Could_create_but_cant_delete_temperory_file!!/ENOENT:path_doesnot_exist What could be the prob. The problem is that you still not tell any details. For example: what default delivery methode you use, or the contents of any .qmail involved. Regards, Uwe
qmail-remote crashed
Hello. I just installed qmail, and I was going through and testing deliveries. Local to local works fine, but when I try to send mail out, I get this: --- May 2 09:54:55 oldbd qmail: 957275695.455731 status: local 0/10 remote 0/20 May 2 10:01:36 oldbd qmail: 957276096.455387 starting delivery 16: msg 484328 to remote [EMAIL PROTECTED] May 2 10:01:36 oldbd qmail: 957276096.455618 status: local 0/10 remote 1/20 May 2 10:01:36 oldbd qmail: 957276096.473584 delivery 16: deferral: qmail-remote_crashed./ --- And if I try to execute qmail-remote by hand, I get a seg. fault, no core dumped. I was looking through the changes document, and I noticed some notes about former problems with machines with multiple IP. My server has two interfaces, one IP on each. Linux 2.2.6 kernel. Any help would be appreciated. thanks, nat
Re: qmail-remote crashed
[EMAIL PROTECTED] wrote: Hello. I just installed qmail, How? Source RPM, source tarball, or binary RPM? And if I try to execute qmail-remote by hand, I get a seg. fault, no core dumped. That's bad, especially if that binary was built on that system. qmail-remote is not known to crash. -Dave
where do I find info on setting up apop
My qmail system is working perfectly so now it's time to muck with it. ;-) Perhaps I am missing it in the documentation, but I have gone through the man pages and FAQ's and am still uncertain how to setup the user accounts to access qmail-pop3d using the apop protocol. I want to disable pop and only allow apop connections for security. dholt
Re: qmail-remote crashed
On Wed, May 03, 2000 at 10:27:32AM -0400, Nat Fellows wrote: Hello. I just installed qmail, and I was going through and testing deliveries. Local to local works fine, but when I try to send mail out, I get this: [snip] May 2 10:01:36 oldbd qmail: 957276096.473584 delivery 16: deferral: qmail-remote_crashed./ --- And if I try to execute qmail-remote by hand, I get a seg. fault, no core dumped. Are you using the bruceg rpms? I tried to patch my qmail with the bind-interface patch and had the same result - qmail-remote crashed with a seg fault. I couldn't get to the bottom of it and in the end modified the 'outgoingip-patch' from qmail.org for 1.03 and applied that as I only wanted to make mail appear to be from my mail server ip. In my case the core dump was in /var/qmail you may want to look there. This was on bog standard RedHat 6.2. regards Andy -- BoomerangDomains support - [EMAIL PROTECTED] domain registration, email and web forwarding for just $25 a year
local delivery for 1 user only
I find it amazing what corp enviroments ask IT to do instead of confronting a user on specific issues, but I was told to look into it. I have a particular user who is abusing the mail system with improper mailings to friends. We use email internally for everyone as a wonderful means of contact and do not want to completely take away access. Is there a way to restrict mail for one user to only have access to internal mail (that is only cimx.com can receive or send mail to this user?) I am thinking that receiving I can hack something together with a .qmail file (if anyone has any simple ideas or solutions, my shell scripting is at best poor) but I have no idea if it is even possible to stop outgoing mails without compromising system integrity. If its more pain then its worth tell me, I would much rather tell them to deal with things without moving behind someone's back with technology. Thanks, Tim Hunter -- [EMAIL PROTECTED] SysAdmin -- CIMx http://www.cimx.com
Re: qmail-remote crashed
On Wed, May 03, 2000 at 11:04:53AM -0400, Dave Sill wrote: That's bad, especially if that binary was built on that system. qmail-remote is not known to crash. Erm... I had a crashing qmail-remote a few weeks ago. But that was due to a hardware problem :-) Anyway... the fact is... When qmail-remote crashes, all mail is imediately bounced to postmaster, without notification to the sender (the machine becomes a "mail black-hole"). That, IMHO, is not a good thing. I reported this back then, even proposed a patch, w/o any response. Regards; RC -- +--- | Ricardo Cerqueira | PGP Key fingerprint - B7 05 13 CE 48 0A BF 1E 87 21 83 DB 28 DE 03 42 | Novis - Engenharia ISP / Rede Técnica | Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal | Tel: +351 21 3166730/00 (24h/dia) - Fax: +351 21 3166701
Re: Web front-end to mail service
Probably you've already gotten this response, but sqwebmail only works with maildirs. On Tue, 2 May 2000 [EMAIL PROTECTED] wrote: I stand corrected. Dave Sill also pointed out that any web front end tool, like sqwebmail, requires the use of mbox format in a central spool directory which is not too desirable to me. If anyone has any information on a more robust web front end tool, I would love to get it. Thanks, Tim |+- || Steffan Hoeke | || [EMAIL PROTECTED]| || yndns.org | || | || 05/02/2000 09:15 AM| || | |+- | || | To: Tim Clifton/LA/Candle@Candle | | cc: qmail list [EMAIL PROTECTED] | | Subject: Re: Web front-end to mail service | | On Tue, May 02, 2000 at 09:01:23AM -0700, [EMAIL PROTECTED] wrote: Hello, Someone just asked a very interesting question but has not received a definitive answer: Is there a web based front-end (read "Can Isend receive mail for mail accounts") for qmail? Thanks Do you mean an interface like sqWebMail (http://www.inter7.com/sqwebmail) or a web based _administrative_ tool like webmin (http://www.webmin.com) which has a qmail administration module ? What the original poster wanted was, amongst others, a way to remove messages for other users (i.e. customers) if their mailbox was over it's size limit... That's, IMHO, a completely different question than the one you're asking now ;-) Greetz, Steffan -- http://therookie.dyndns.org
Re: system start script
dd - Thank you! I assume it is inetd. However I moved qmail to be after inetd it didn't get qmail started either upon reboot. BTW, I have following lines in the /etc/inetd.conf: smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail -smtpd (all in one line) Does it help diagnoze? Zhiliang On Thu, 27 Apr 2000, dd wrote: I installed qmail 1.03 and it works fine on my Digital unix4.0D. However when I tested my system script starting the qmail at boot: [...] qmail was not started at boot, although the script works when tried at the command line. (the script was in /.../rc3.d) I had the same problem in linux then I found out that Iwas running one of the services qmail needed _after_ starting qmail (right now I can't remember wich one though :/). Making sure that qmail was called at the end of the script (check the daemons called in other scripts also) and modifying the script accordingly solved the problem. if You're using tcpserver make sure that it's called after qmail is started. hope this helps a little bit... yours, dd
Best mailling format for large attachments
I have a client that is very unwisely using his email server as a sort of FTP server where people are sending him very large attachments. His mailbox size is about 250 megabytes and he receives emails daily that are about 10 - 25 megabytes big (I told him not to do this and to simply use FTP, but he insists on doing everything through email). Anyway, the system is slow and he is getting timeout errors left and right. I am currently using the mbox format, but was wondering if there are better formats out there (maildir?) for email servers with a low number of emails, but high attachment size. What is the best mail format out there for people who get a small number of messages with large attachments? Will it work with IMAP? - Steve
Setup of local delivery fastforward (newbie question)
Dear netters, I'm newbie in Qmail world. I've installed Qmail 1.03 fastforward 0.51 under SGI O2/IRIX 6.3. But I didn't find in docs and FAQ an answers to few questions about local mail delivery. 1) Is it possible (and how) to setup Qmail and fastforward for work with /bin/mail as a local delivery agent *and* to deliver all the mail messages (sent to particular user - to blah, for example) - to the pipe like |usr/people/blah/program /usr/people/blah/blahfile ? 2) Is it possible (and how) to setup qmail-local (as local delivery agent) to deliver: a) mail for any user to /var/mail/user b) but excluding user blah - for this user mail should be transferred to pipe |/usr/people/blah/program /usr/people/blah/blahfile ? Thanks for your help. Mikhail Kuzminsky Zelinsky Institute of Organic Chemistry Computer Assistance to Chemical Research Center Moscow
Re: system start script
On Wed, 3 May 2000, Zhiliang Hu wrote: dd - Thank you! I assume it is inetd. However I moved qmail to be after inetd it didn't get qmail started either upon reboot. BTW, I have following lines in the /etc/inetd.conf: smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail -smtpd You don't have a space between qmail and -smtpd, do you? Vince. (all in one line) Does it help diagnoze? Zhiliang On Thu, 27 Apr 2000, dd wrote: I installed qmail 1.03 and it works fine on my Digital unix4.0D. However when I tested my system script starting the qmail at boot: [...] qmail was not started at boot, although the script works when tried at the command line. (the script was in /.../rc3.d) I had the same problem in linux then I found out that Iwas running one of the services qmail needed _after_ starting qmail (right now I can't remember wich one though :/). Making sure that qmail was called at the end of the script (check the daemons called in other scripts also) and modifying the script accordingly solved the problem. if You're using tcpserver make sure that it's called after qmail is started. hope this helps a little bit... yours, dd -- == Vince Vielhaber -- KA8CSHemail: [EMAIL PROTECTED]http://www.pop4.net 128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking Online Campground Directoryhttp://www.camping-usa.com Online Giftshop Superstorehttp://www.cloudninegifts.com ==
Re: Best mailling format for large attachments
Certainly Maildir with qmail-pop3d will help here, though it should be noted that many clients don't cope well if a download exceeds a certain time such as the time between mailbox checks. Most of the pop servers that work on mbox format mailboxes have to scan the whole file searching for "^From " strings - this takes a long time with large files. Regards. On Wed, May 03, 2000 at 09:54:33AM -0700, Steve Quezadas wrote: I have a client that is very unwisely using his email server as a sort of FTP server where people are sending him very large attachments. His mailbox size is about 250 megabytes and he receives emails daily that are about 10 - 25 megabytes big (I told him not to do this and to simply use FTP, but he insists on doing everything through email). Anyway, the system is slow and he is getting timeout errors left and right. I am currently using the mbox format, but was wondering if there are better formats out there (maildir?) for email servers with a low number of emails, but high attachment size. What is the best mail format out there for people who get a small number of messages with large attachments? Will it work with IMAP? - Steve
Re: Three questions...
On Tue, 2 May 2000, John White wrote: Jeff, if you read into the statement just a bit, you'll realize that the boss is asking for something much worse: denying relaying from valid IPs which don't present the ISPs domain in the envelope sender. The sentence is ambiguous; it admits the possibility, but does not imply, that other relay checks are made. Gareth - which did you mean? -- Jeff
RE: Three questions...
On Wed, 3 May 2000, Jeroen ten Berge wrote: ??? I have the message ID's in my log ! I was referring to the message-id: header from the mail message, not the inode number that qmail uses. Sendmail logs the message-id: header as written in the mail message. I have sometimes wished qmail did so as well, but not enough to want to start parsing rfc822 headers in my message delivery path. -- Jeff
Re: system start script
BTW, I have following lines in the /etc/inetd.conf: smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail -smtpd You don't have a space between qmail and -smtpd, do you? No space. Sorry, when I copied and pasted it into mail I left a space there. Zhiliang
Delivers and retrieves...
My /var/qmail/rc file looks like this: #! /bin/sh exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start '|dot-forward .forward ./Maildir/' My /etc/skel looks like this Maildir - cur - new - tmp Mailbox mbox PROBLEM: Qmail delivers to the file Mailbox, and when a user checks his e-mail using a POP3 cliente like Netscape, delivers whatever is in mbox, therefore the e-mail send to this user do not get rejected, and also never delivered. Please help, how do I fix this messI will like to use Maildir... Bolivar,
smtp-auth?
Is anyone using Krzysztof Dabrowski's cmd5checkpw with qmail-pop3d? Yes, I know that he didn't write it for that, he wrote it for smtp-auth. But it looks to me like he's reversed the password and the timestamp parameters to checkpassword. -- -russ nelson [EMAIL PROTECTED] http://russnelson.com Crynwr sells support for free software | PGPok | "Ask not what your country 521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | do for you..." -Perry M.
Re: smtp-auth?
Russell Nelson writes: Is anyone using Krzysztof Dabrowski's cmd5checkpw with qmail-pop3d? Yes, I know that he didn't write it for that, he wrote it for smtp-auth. But it looks to me like he's reversed the password and the timestamp parameters to checkpassword. Answering my own question, the answer seems to be that pop3 and smtpd's md5 challenge-response algorithms are different, so you need different checkpasswords (gratuitious incompatibilities :( ). Still, even though you can't reuse cmd5checkpw for anything else, it's got the challenge and response backwards. It works because the only code that calls it *also* has the challenge and response backwards. :) -- -russ nelson [EMAIL PROTECTED] http://russnelson.com Crynwr sells support for free software | PGPok | "Ask not what your country 521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | do for you..." -Perry M.
Re: smtp-auth?
At 20:06 2000-05-03, Russell Nelson wrote: Is anyone using Krzysztof Dabrowski's cmd5checkpw with qmail-pop3d? Yes, I know that he didn't write it for that, he wrote it for smtp-auth. But it looks to me like he's reversed the password and the timestamp parameters to checkpassword. ;) Isn't it easier to ask me directly? :) Here comes an excerpt from checkpassword's man: " The information supplied on descriptor 3 is a login name terminated by \0, a password terminated by \0, a timestamp terminated by \0, and possibly more data. There are no other restrictions on the form of the login name, pass- word, and timestamp. " so the order is : LOGIN, PASSWORD, TIMESTAMP my cmd5checkpassword accepts: login name terminated by \e0, a cram-md5 challenge terminated by \e0, and a cram-md5 response terminated by This can be questionable what is actualy a login and a password here because: cmd5 auth scheme differs a bit when comparing with normal authentication. You can judge it yourself and it IS possible to reverse the parameters orded if you like. I will have to update the qmail-smtp-auth patch too.. Kris
RE: local delivery for 1 user only
Tim-- I have a suggestion for you. But first, I think that you should look at the real implications of the request, that is if this starts for one employee you can be sure there will be others. Try a second installation of qmail on another box with the relaying turned off, allow it to route to its network only so that this way it will still be internal to the network. point the user to that box from whatever access program they use and set them up as a forward on your mainbox. Not pretty but it should work. Until they just get someone else to send it for them. Greg -Original Message- From: Tim Hunter [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2000 3:34 PM To: [EMAIL PROTECTED] Subject:local delivery for 1 user only I find it amazing what corp enviroments ask IT to do instead of confronting a user on specific issues, but I was told to look into it. I have a particular user who is abusing the mail system with improper mailings to friends. We use email internally for everyone as a wonderful means of contact and do not want to completely take away access. Is there a way to restrict mail for one user to only have access to internal mail (that is only cimx.com can receive or send mail to this user?) I am thinking that receiving I can hack something together with a .qmail file (if anyone has any simple ideas or solutions, my shell scripting is at best poor) but I have no idea if it is even possible to stop outgoing mails without compromising system integrity. If its more pain then its worth tell me, I would much rather tell them to deal with things without moving behind someone's back with technology. Thanks, Tim Hunter -- [EMAIL PROTECTED] SysAdmin -- CIMx http://www.cimx.com
Does anyone write German and English
Is anyone on this list capable of English to German translation of a technical paper approx. 7 pages in length. If so, email me off list. I can pay about $100 USD for it. Anyone who is fluent should whack this out in about 1.5 hours. Thanks Greg
Making progress
I have succesfully switch the incoming e-mails to use Maildir instead of Mailbox or mbox, my problem remaining is when a user retrieves his e-mail from a POP client, he gets no e-mail..which programs delivers e-mail to clients is it pop3d? I need to make qmail deliver whatever is in Maildir/new instead of mbox or Mailbox... Thanks...
RE: Making progress
I have a feeling I am not the only one confused. I assume you changed your default delivery method to ./Maildir/ which will put mails in your ./Maildir/new/ directory. If you are trying to retrieve mails from there now with pop, you need qmail-pop3d or any other program that can read /Maildir/'s. AFAIK nothing can pop mail from a Maildir besides qmail-pop3d, but I have been know to be wrong, but why would anyone make anything, qmail-pop3d is distributed with qmail and its great. -- Tim -Original Message- From: Bolivar Diaz Galarza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2000 5:49 PM To: [EMAIL PROTECTED] Subject: Making progress I have succesfully switch the incoming e-mails to use Maildir instead of Mailbox or mbox, my problem remaining is when a user retrieves his e-mail from a POP client, he gets no e-mail..which programs delivers e-mail to clients is it pop3d? I need to make qmail deliver whatever is in Maildir/new instead of mbox or Mailbox... Thanks...
Problems using qmail on very large site
Hi everybody, I installed qmail (v. 1.03 running on Solaris 2.6 for x86 - JUST ! (without any patches)) with tcpwrapper ucspi-0.88 and multilog from daemontools package (v. 0.70) all them compiled with gcc 2.95.2 running in 4 machines PIII - 500Mhz with 256mb RAM. In my DNS I have smtp.ig.com.br pointing to IPs addresses of that four machines trying to make some kind of load balance (Probably soon I will replace this by IPVS or something like that (Altheon, etc). The total amount of messages that are sent through those machines are aprox. 1.5 million by day (!) . I have set remote and local concurrency to 255 (and I change the limit in conf-spawn to 255 and recompiled qmail after that). My tcpwrapper is configured to 400 simultaneous smtp connections (per machine). The remote and localconcurrency stay between 30-150 connections so, I think that 255 limit isn't problem by now (Maybe in future I will need to install the patch to concurrency above 400). Memory and wait I/O isn't the problem. The number of file descriptors are ok (2048) now (Now I don't receive messages tell me that was not possible to open a pipe (or something like that)). The problem is the fact that I'm having too much defunct process. Usually I have between 350-500 process running by machine. From that, normally I have between 90-120 defunct process per machine. Anybody have ANY idea about what can be causing this ? Is there any patch to correct this problem, in case of this be a well know problem for my plataform ? PS. multilog and tcpwrapper are in PATH and this problem NOT started after I reboot my machines ;-) Any help will be very appreciated . Thanks in advance... Claudio Cuqui [EMAIL PROTECTED] System Analyst Internet Group do Brasil http://www.ig.com.br
Re: Making progress
qmail-pop3d is installed in my computer, my problem is how do I configure it to deliver from Maildir instead of mbox (right now it works with mbox)? Thanks for replying... Bolivar, - Original Message - From: "Tim Hunter" [EMAIL PROTECTED] To: "Bolivar Diaz Galarza" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, May 03, 2000 2:56 PM Subject: RE: Making progress I have a feeling I am not the only one confused. I assume you changed your default delivery method to ./Maildir/ which will put mails in your ./Maildir/new/ directory. If you are trying to retrieve mails from there now with pop, you need qmail-pop3d or any other program that can read /Maildir/'s. AFAIK nothing can pop mail from a Maildir besides qmail-pop3d, but I have been know to be wrong, but why would anyone make anything, qmail-pop3d is distributed with qmail and its great. -- Tim -Original Message- From: Bolivar Diaz Galarza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2000 5:49 PM To: [EMAIL PROTECTED] Subject: Making progress I have succesfully switch the incoming e-mails to use Maildir instead of Mailbox or mbox, my problem remaining is when a user retrieves his e-mail from a POP client, he gets no e-mail..which programs delivers e-mail to clients is it pop3d? I need to make qmail deliver whatever is in Maildir/new instead of mbox or Mailbox... Thanks...
Re: accustamp|tailocal|matchup
1999-11-24 17:43:07.542160 status: local 0/10 remote 0/20 but matchup needs: 957284032.988038 status: local 0/10 remote 0/20 Russ Allebury has a similar patch. Yes, I have tried that and it didn't work for me. Comments for tai64nfrac says: Expects the input stream to be a sequence of lines beginning with @ (1), a timestamp in external TAI64N format, and a space. Replaces the @ and the timestamp with fractional seconds since epoch (1970-01-01 00:00:00 UTC). (2) The output time format is expected by qmailanalog (3). (1) - lines in my logs beginning with: 1999-11-24 17:43:07.542160 status: local 0/10 remote 0/20 This is not what tai64nfrac expects (at least, no @ at the beginning). (2) - looks like tai64nfrac supposed to replace with the same time format as I already have (see (1) ) (3) - the qmailanalog expects the 957284032.988038 format, doesn't it? Also, I'm lost in definitions and formats. Can someone educate me about those time formats (TAI64/TAI64N, fractional, etc.) I'm really confused about them. Thanks. Kins.
Re: local delivery for 1 user only
What you're asking is not very difficult -- especially if you use tcpservers. First however, it's important to note what your current network looks like. In the case of a local network that's firewalled to the internet, you can simply use RELAYCLIENT= and a shellscript . simply change your smtp server to call a shell script instead of qmail-smtpd; this shell script should look something like this: #!/bin/sh if [ "$TCPREMOTEADDR" = "192.168.0.5" ]; then qq="" else qq="env RELAYCLIENT=" fi exec $qq /var/qmail/bin/qmail-smtpd then make sure that /var/qmail/control/rcpthosts only contains your local domains. if however, you use a server that's on a public network, you must also limit the appropriate ip addresses. the shell script above should make it easy to do the trick. finally, if bychance the ip addresses aren't known however, you'll be in a bit more trouble... On Wed, 3 May 2000 11:33:33 -0400, Tim Hunter wrote: I find it amazing what corp enviroments ask IT to do instead of confronting a user on specific issues, but I was told to look into it. I have a particular user who is abusing the mail system with improper mailings to friends. We use email internally for everyone as a wonderful means of contact and do not want to completely take away access. Is there a way to restrict mail for one user to only have access to internal mail (that is only cimx.com can receive or send mail to this user?) I am thinking that receiving I can hack something together with a .qmail file (if anyone has any simple ideas or solutions, my shell scripting is at best poor) but I have no idea if it is even possible to stop outgoing mails without compromising system integrity. If its more pain then its worth tell me, I would much rather tell them to deal with things without moving behind someone's back with technology. Thanks, Tim Hunter -- [EMAIL PROTECTED] SysAdmin -- CIMx http://www.cimx.com
Does Qmail handle mbx
Any way to get qmail to handle mbx format? - Steve
redirecting some email
Is it possible to have qmail forward email destined to one address, to another address instead, if it contains certain file attachments based on file extension? jason
Re: accustamp|tailocal|matchup
Kins Orekhov [EMAIL PROTECTED] writes: Yes, I have tried that and it didn't work for me. Comments for tai64nfrac says: Expects the input stream to be a sequence of lines beginning with @ (1), a timestamp in external TAI64N format, and a space. Replaces the @ and the timestamp with fractional seconds since epoch (1970-01-01 00:00:00 UTC). (2) The output time format is expected by qmailanalog (3). (1) - lines in my logs beginning with: 1999-11-24 17:43:07.542160 status: local 0/10 remote 0/20 This is not what tai64nfrac expects (at least, no @ at the beginning). You've already run tai64nlocal on your log file. tai64nfrac doesn't expect that (because I don't do that; I just run tai64nlocal when I need to, since it's fast enough). (2) - looks like tai64nfrac supposed to replace with the same time format as I already have (see (1) ) No, that's just documentation of what the epoch is. tai64nfrac does produce the output you're expecting. Can someone educate me about those time formats (TAI64/TAI64N, fractional, etc.) I'm really confused about them. qmail-analog expects seconds and fractional seconds since epoch. For documentation of TAI64, TAI64N, and related subjects, see http://cr.yp.to/proto/utctai.html. -- Russ Allbery ([EMAIL PROTECTED]) http://www.eyrie.org/~eagle/
Correcting an error in a SQL statement
Sometimes I write a SQL statement in MySQL that may encompass several lines (which ends in a semicolon of course). Anyway, let's say I wrote a line, pressed enter and realized I made a mistake. Is there any way to erase that previous line and retype it?
Best MySQL GUI
What is the best mysql GUI for Linux in your opinion? I heard good things about Kmysql, but I don't want to try it and realize it sucks. Just wondering what your opinions on it. I am using Microsoft Access right now, but would prefer a Linux alternative. - Steve
RE: local delivery for 1 user only
Rumor has it that Gregory J. Forkin may have mentioned these words: Tim-- I have a suggestion for you. But first, I think that you should look at the real implications of the request, that is if this starts for one employee you can be sure there will be others. I agree with Gregory on being aware of the implications, and what I have to suggest may not be pretty either, but here goes: *If* this person has a static IP address, and you're using tcpserver, you can log all outbound mail from his IP address, so at least you'll have proof of "email-infidelity"... I will *not* go into the illegalities of hijacking someone's outbound email in this manner. let the PHB's get in trouble for that. I'm just letting you know it's possible. Add a line to the /etc/tcp.smtp file, like this: xx.xx.xx.xx:allow,RELAYCLIENT="pookie" where xx.xx.xx.xx is the person's static IP address, then in /var/qmail/control/virtualdomains, put in this line: pookie:alias-pookie then make the file /var/qmail/alias/.qmail-pookie-default which contains: |/var/qmail/alias/logeverything.pl where logeverything.pl is a perl script that logs all messages to a file, here's my quickdirty, but it may help for starters... #!/usr/local/bin/perl # This is a quick test program to see if the selective mail routing will work. # Open a file to store all of the environment variables, open (Q,"/var/qmail/alias/pookie-logger.txt"); # go thru each environment variable and write them to my logfile... foreach $quack ( sort(keys(%ENV))) { print Q "ENV - $quack = $ENV{$quack}\n"; } print Q "\n\n"; # open a mail to re-mail everything that comes in to my real mail account... open (MAIL,"|/var/qmail/bin/qmail-inject $ENV{'EXT2'}"); open (MAIL2,"|/var/qmail/bin/qmail-inject mail\@me.too"); @zline = STDIN; foreach $liner (@zline) { print MAIL "$liner"; print MAIL2 "$liner"; # and also send a copy of the mail to the logfile that I have. print Q "OrgMail: $liner"; } # Shut 'er down, boys!!! ;-) close (Q); close (MAIL); close (MAIL2); = This proggie will output some extra info to the logfile, like the environment variables - it's good for a beginner so s/he can find out what the ENV variables look like, what to expect for parameters, etc... Hope this helps, Roger "Merch" Merchberger -- Roger "Merch" Merchberger --- sysadmin, Iceberg Computers Recycling is good, right??? Ok, so I'll recycle an old .sig. If at first you don't succeed, nuclear warhead disarmament should *not* be your first career choice.
Re: accustamp|tailocal|matchup
You've already run the logs through tai64nlocal. That converts the TAI64 timestamp into human readable form. Don't do that. Leave the multilog output alone and then run it through tai64nfrac (or tai64nunix) and it will generate timestamps suitable for qmailanalog. Now, I'm really confused. Here's the path that logs go thru on my machine: qmail - accustamp - tailocal If I'm disabling tailocal, then my logs ARE suitable for qmailanalog, so why do I need to run my logs thru tai64nfrac if everything works fine in this case? And another question: We've been running qmail awhile, so we have a some amount of logs (with converted from TAI64 to Local timestamps), so my original question was how can I convert local timestamps to TAI64? I've wrote a small awk-script to accomplish this, but it doesn't work with big files on my machine (more then 440-445 lines), and I can't figure out why (if someone has suggestions/recommendations, please, let me know): cut here-- #!/bin/awk -f BEGIN { ACCUSTAMP="/usr/local/bin/accustamp" ECHO="/bin/echo" } { LOCAL= $1 " " $2 ECHO " \"" LOCAL "\" | " ACCUSTAMP | getline TAI sub(/ .+/, "", TAI) $1=TAI $2="" sub(/ +/, " ") print } --cut here This script does the trick for me. Again, originally I was for such kind of program/script which works fine with any size of input. Thanks. -- Kins Orekhov Outlook Technologies, Inc. E-mail: [EMAIL PROTECTED] Phone: 773-775-2099, ext. 226 http://swoop.outlook.net
Does Qmail handle mbx
From: "Steve Quezadas" [EMAIL PROTECTED] Date: Wed, 3 May 2000 16:26:07 -0700 Any way to get qmail to handle mbx format? - Steve If this is "mbox" format, it's trivial (see "man dot-qmail"). If this is something else, we need a better reference. -- Bob Rogers
Emergency with the queue
Hello, I have a user who is spamming. Is there a way to stop qmail and delete everything from the queue? Thanks.
Re: accustamp|tailocal|matchup
I've wrote a small awk-script to accomplish this, but it doesn't work with big files on my machine (more then 440-445 lines), and I can't figure out why (if someone has suggestions/recommendations, please, let me know): This script does the trick for me. Again, originally I was for such kind of program/script which works fine with any size of input. Sorry, people! Script is NOT doing what I need, my bad. Forget about it. Thanks. -- Kins Orekhov Outlook Technologies, Inc. E-mail: [EMAIL PROTECTED] Phone: 773-775-2099, ext. 226 http://swoop.outlook.net
Re: Emergency with the queue
Why not just nuke the user? clifford thurber wrote: Hello, I have a user who is spamming. Is there a way to stop qmail and delete everything from the queue? Thanks. -- NEEDHAM'S ELECTRONICS Device Programmers (916) 924-8037 (Voice) (916) 924-8065 (Fax) 4630 Beloit Drive, #20 Sacramento, CA 95838 http://www.needhams.com
Re: accustamp|tailocal|matchup
On Wed, 3 May 2000, Kins Orekhov wrote: You've already run the logs through tai64nlocal. That converts the TAI64 timestamp into human readable form. Don't do that. Leave the multilog output alone and then run it through tai64nfrac (or tai64nunix) and it will generate timestamps suitable for qmailanalog. Now, I'm really confused. Here's the path that logs go thru on my machine: qmail - accustamp - tailocal accustamp ALREADY gives you timestamps suitable for qmailanalog, as you state below. accustamp has been superceded by multilog which gives timestamps in tai64 format. If, AND ONLY IF, you are using multilog, THEN you need tai64nfrac (or tai64nunix) to transform the timestamps into a format suitable for qmailanalog. If I'm disabling tailocal, then my logs ARE suitable for qmailanalog, so why do I need to run my logs thru tai64nfrac if everything works fine in this case? And another question: We've been running qmail awhile, so we have a some amount of logs (with converted from TAI64 to Local timestamps), so my original question was how can I convert local timestamps to TAI64? I've wrote a small awk-script to accomplish this, but it doesn't work with big files on my machine (more then 440-445 lines), and I can't figure out why (if someone has suggestions/recommendations, please, let me know): Why not just store the logs in there accustamp or multilog form and convert them to localtime ONLY when you need to look at them. Regards Peter -- Peter Samuel[EMAIL PROTECTED] Technical Consultantor at present: eServ. Pty Ltd [EMAIL PROTECTED] Phone: +61 2 9206 3410 Fax: +61 2 9281 1301 "If you kill all your unhappy customers, you'll only have happy ones left"
RE: Does Qmail handle mbx
mbx is the name of a format that UW-IMAP supports. It's an all-messages-in-one-file database format file. It's not as ugly as mbox where all the messages are concatenated together (which requires so much re-organization when doing IMAP access), but the file is really a kind of database with the messages and some binary glop. qmail does not have native mbx support. However, grab the imap-utils package (from the same place as uw-imap) and drop the dmail program in your .qmail file to deliver to your mbx mailbox. See "man dmail" for more information. - David Harris Principal Engineer, DRH Internet Inc. -Original Message- From: Bob Rogers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2000 9:05 PM To: Steve Quezadas Cc: [EMAIL PROTECTED] Subject:Does Qmail handle mbx From: "Steve Quezadas" [EMAIL PROTECTED] Date: Wed, 3 May 2000 16:26:07 -0700 Any way to get qmail to handle mbx format? - Steve If this is "mbox" format, it's trivial (see "man dot-qmail"). If this is something else, we need a better reference. -- Bob Rogers
Re: Newbie setting up aliases
Dave Sill wrote: bob [EMAIL PROTECTED] wrote: What I really mean is I can't send out mail remotely... say to my mother-in-law for instance. Right, and you think that's a *problem*? :-) But seriously, what happens when you try to send remote mail? What Do The Logs Say(tm)? -Dave I sent an email to my wife's work email. I use my ISP email address as an alias in the from line. So I sent a message From: [EMAIL PROTECTED] To: hwaskosky@cleaningsystems blah blah blah The message was delived locally immediately. In mutt there were 2 Delivered To: lines Delivered to: [EMAIL PROTECTED] Delivered to: [EMAIL PROTECTED] From: [EMAIL PROTECTED] /var/log/qmail/current (log) read: new msg 546153 info msg 546153: bytes 344 from [EMAIL PROTECTED] qp 1775 uid 501 starting delivery 189: msg 546153 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 189: success: did_0+1+0/qp_1778/ end msg 546153 Any Ideas??
Re: Newbie setting up aliases
On Wed, May 03, 2000 at 08:57:38AM -0400, Dave Sill wrote: bob [EMAIL PROTECTED] wrote: What I really mean is I can't send out mail remotely... say to my mother-in-law for instance. Right, and you think that's a *problem*? :-) But seriously, what happens when you try to send remote mail? What Do The Logs Say(tm)? -Dave It works!! My virtualdomains file was AFU. Apparently I follow directions too literally. I had the line :alias-ppp in virtualdomains and that sent everything local. It was in the logs. Thanks for your help. Bob
Mental torture
hi folks, I've installed qMail for my office server and it runs fine - delivers mails and all that jazz. However, I'm getting only external mails out, and internal mails to users' mailboxes seem to die. Using /var/qmail/bin/makemaildir, I created a Maildir for myself in my home dir /home/isaiah. Mails do go there, but when I try to check my emails using POP3, nothing comes in. I've got this line in my /etc/inetd.conf pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-pop3d Is that correct? Or should I use pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-popup mail.mydomainname.com /bin/checkpasswd pwd The fist one gives me the error The server responded with an error. Account: 'mail.twc-sg.com', Server: 'mail.twc-sg.com', Protocol: POP3, Server Response: '-ERR this user has no $HOME/Maildir', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC90 while the second one doesn't authenticate me at all and throws me out with a bad authentication message even though the password is correct. Can anyone help? Everyone in the office is throwing bricks at me now for missing their emails... Thanks! Best regards, Isaiah ChuaOfficial Email: [EMAIL PROTECTED]AIM Nick : radar00
No retry and no bounce?
Hi, How can I setup email to ignore all messages that cannot be delivered, i.e., even not to bother the re-delievery and bounce? Thank you for help. Sincerely, Peter Li
Re: No retry and no bounce?
I suppose you could set queuelifetime to 1 second. This will fail permanently if delivery fails on the second delivery (or possibly the first, depending on how busy your machine is.) If you want to kill every email on the first deferral you will need to write a patch. --Adam On Wed, May 03, 2000 at 09:09:57PM -0400, Yuan P Li wrote: Hi, How can I setup email to ignore all messages that cannot be delivered, i.e., even not to bother the re-delievery and bounce? Thank you for help. Sincerely, Peter Li
Re: Mental torture
On Thu, 4 May 2000, Isaiah Chua wrote: hi folks, I've installed qMail for my office server and it runs fine - delivers mails and all that jazz. However, I'm getting only external mails out, and internal mails to users' mailboxes seem to die. Using /var/qmail/bin/makemaildir, I created a Maildir for myself in my home dir /home/isaiah. Mails do go there, but when I try to check my emails using POP3, nothing comes in. I've got this line in my /etc/inetd.conf pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-pop3d Is that correct? Or should I use Totally incorrect. Uses qmaild as the user instead of root and doesn't have the correct arguments. pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-popup mail.mydomainname.com /bin/checkpasswd pwd Close. It should use root as the user. checkpasswd is spelled incorrectly (should be checkpassword) and the Maildir argument doesn't look correct. What is the name of the Maildir you have created. The above line assumes it is "pwd". IE did you create the Maildir using the command /var/qmail/bin/maildirmake ~/pwd Proably not. If instead you used /var/qmail/bin/maildirmake ~/Maildir then change the inetd.conf entry to read (all on one line) pop-3 stream tcp nowait root /usr/sbin/tcpd /var/qmail/bin/qmail-popup domain.domain /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir where domain.domain is the name of your mail domain and Maildir is the name of your Maildir. then send a HUP signal to inetd. This is covered in the FAQ that shups with qmail, question 5.3. You should also consider using tcpserver (from Dan's ucspi-tcp package http:/cr.yp.to/ucspi-tcp.html) instead of inetd. Regards Peter -- Peter Samuel[EMAIL PROTECTED] Technical Consultantor at present: eServ. Pty Ltd [EMAIL PROTECTED] Phone: +61 2 9206 3410 Fax: +61 2 9281 1301 "If you kill all your unhappy customers, you'll only have happy ones left"
Re: Mental torture
On Thu, May 04, 2000 at 02:16:22PM +1000, Peter Samuel wrote: On Thu, 4 May 2000, Isaiah Chua wrote: hi folks, I've installed qMail for my office server and it runs fine - delivers mails and all that jazz. However, I'm getting only external mails out, and internal mails to users' mailboxes seem to die. Using /var/qmail/bin/makemaildir, I created a Maildir for myself in my home dir /home/isaiah. Mails do go there, but when I try to check my emails using POP3, nothing comes in. I've got this line in my /etc/inetd.conf pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-pop3d Is that correct? Or should I use Totally incorrect. Uses qmaild as the user instead of root and doesn't have the correct arguments. No, for pop3 you need to use root. --Adam
Re: Mental torture
On Thu, 4 May 2000, Adam McKenna wrote: On Thu, May 04, 2000 at 02:16:22PM +1000, Peter Samuel wrote: On Thu, 4 May 2000, Isaiah Chua wrote: hi folks, I've installed qMail for my office server and it runs fine - delivers mails and all that jazz. However, I'm getting only external mails out, and internal mails to users' mailboxes seem to die. Using /var/qmail/bin/makemaildir, I created a Maildir for myself in my home dir /home/isaiah. Mails do go there, but when I try to check my emails using POP3, nothing comes in. I've got this line in my /etc/inetd.conf pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-pop3d Is that correct? Or should I use Totally incorrect. Uses qmaild as the user instead of root and doesn't have the correct arguments. No, for pop3 you need to use root. Isn't that what I just said? Regards Peter -- Peter Samuel[EMAIL PROTECTED] Technical Consultantor at present: eServ. Pty Ltd [EMAIL PROTECTED] Phone: +61 2 9206 3410 Fax: +61 2 9281 1301 "If you kill all your unhappy customers, you'll only have happy ones left"
Re: Mental torture
Oh, sorry.. I misread. I thought you said "use qmaild".. --Adam On Thu, May 04, 2000 at 02:29:23PM +1000, Peter Samuel wrote: On Thu, 4 May 2000, Adam McKenna wrote: On Thu, May 04, 2000 at 02:16:22PM +1000, Peter Samuel wrote: On Thu, 4 May 2000, Isaiah Chua wrote: hi folks, I've installed qMail for my office server and it runs fine - delivers mails and all that jazz. However, I'm getting only external mails out, and internal mails to users' mailboxes seem to die. Using /var/qmail/bin/makemaildir, I created a Maildir for myself in my home dir /home/isaiah. Mails do go there, but when I try to check my emails using POP3, nothing comes in. I've got this line in my /etc/inetd.conf pop-3 stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env /var/qmail/bin/qmail-pop3d Is that correct? Or should I use Totally incorrect. Uses qmaild as the user instead of root and doesn't have the correct arguments. No, for pop3 you need to use root. Isn't that what I just said? Regards Peter -- Peter Samuel[EMAIL PROTECTED] Technical Consultantor at present: eServ. Pty Ltd [EMAIL PROTECTED] Phone: +61 2 9206 3410 Fax: +61 2 9281 1301 "If you kill all your unhappy customers, you'll only have happy ones left"
Another question on mailboxes
hi folks, I keep getting this error message when trying to send mails to my new qmail server at the office: Hi. This is the qmail-send program at mail.twc-sg.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) I've already created the Maildir dir in the $HOME for myself. What can be wrong? Best regards, Isaiah ChuaOfficial Email: [EMAIL PROTECTED]AIM Nick : radar00
Re: Problems using qmail on very large site
The problem is the fact that I'm having too much defunct process. Usually I have between 350-500 process running by machine. From that, normally I have between 90-120 defunct process per machine. Do they stay forever, or do they go away? Which qmail process is the parent? I have seen Solaris 2.x systems where processes do stay around forever, but I have not seen in on, eg, FreeBSD. Regards.
what does this mean in my logfile?
Anyone knows what this means and if there's any corrective action I should take? May 4 13:43:09 mail qmail: 957418989.903703 delivery 518: deferral: Uh-oh:_.qmail_has_file_delivery_but_has_x_bit_set._(#4.7.0)/ Thanks! Best regards, Isaiah ChuaOfficial Email: [EMAIL PROTECTED]AIM Nick : radar00
Re: what does this mean in my logfile?
It means it has the execute bit set. If you do chmod 600 .qmail-whatever it will probably be fine That will make the file readable and writeable by it's owner, with no permissions for anyone else. You may want to find a reference on basic unix file system permissions. jason Anyone knows what this means and if there's any corrective action I should take? May 4 13:43:09 mail qmail: 957418989.903703 delivery 518: deferral: Uh-oh:_.qmail_has_file_delivery_but_has_x_bit_set._(#4.7.0)/ Thanks!