Re: Reverse DNS lookups

2001-07-10 Thread Frank Tegtmeyer

pop corn [EMAIL PROTECTED] writes:

 2) If they don't add reverse PTR records for my virtual domains, I've
 been debating telling the Internic to change my DNS servers for the
 virtual domains to the base address of my own dedicated server. It's
 not as if my virtual domains are subdomains of my ISP's domain. The
 problem is that I only have the one dedicated machine.

No, that's not the problem. The in-addr.arpa zones for your addresses
are delegated to your ISP. *You* never get the chance to provide data
for them until your ISP

a) provides the date itself or
b) delegates the zones for your addresses to you

Regards, Frank



qmailadmin and vpopmail

2001-07-10 Thread Essy Ren



I've try install qmailadmin
and there's a strange msg appear like this when i 
input the domain name and password that I've create with vpopmail 
what's my misconfiguration ? 

Internal Server ErrorThe server encountered an internal error or 
misconfiguration and was unable to complete your request. 
Please contact the server administrator, [EMAIL PROTECTED] and inform them 
of the time the error occurred, and anything you might have done that may have 
caused the error. 
More information about this error may be available in the server error log. 



Apache/1.3.19 Server at riga.test.local Port 80



RE: Autoresponder problem.

2001-07-10 Thread Lye On Siong Johnny

Hi Brad,

I tried your version of autoresponder.
Instead of responding with an turespond, the reply i get is a reply msg
the subject becomes Re: original subject

and the body of the mail contains the 2 lines

From: x
Subject: xxx

Can you help.. Thanks

Johnny


At 10:02 AM 7/3/2001 -0700, Brad Dameron wrote:

 Actually you can run frontpage on Unix with Apache. I know, we do 
 it now.
Works better than the Windows Frontpage servers.
 Also there seems to be a lot of autoresponders out there. I took 
 one of the
original ones and revised it with a few fixes and some additions. I have
attached it.

---
Brad 
Dameron 
Network Account Executive
TSCNet 
Inc. 
www.tscnet.com
Silverdale, 
WA. 
1-888-8TSCNET



-Original Message-
From: Charles Cazabon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 7:39 AM
To: [EMAIL PROTECTED]
Subject: Re: Autoresponder problem.


Zak Thompson [EMAIL PROTECTED] wrote:
 
  When ever someone uses a form to submit an email to a email address it
works
  fine.  but if they submit it to a auto-responder it doesn't work.  It
  doesn't put the correct field in the FROM address so the responder doesn't
  know who to respond to.

Auto-responders and other systems reply to the envelope sender address, not
the contents of any From: header field.  To set the envelope sender
address,
specify the -f option to either qmail-inject or the sendmail wrapper.

  I've tried FrontPage to get it to work and formmailer.pl both didn't do
it.

How on earth is FrontPage relevant?  Why is a pseudo-HTML-editor trying to
send mail?  And unless I'm mistaken, FrontPage doesn't run on Unix, so it
can
hardly be calling qmail-inject.

As for formmailer.pl, it's probably making sendmail-ish assumptions which
you
should fix.  Many standard CGI-to-mail gateway scripts contain security
holes anyway, and could use a good audit.

Charles
--
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---





Re: qmailadmin and vpopmail

2001-07-10 Thread Martin Kong

I get that with my installation once in a while too (most of the times
it works).  Still haven't figured out why

 Essy Ren wrote:
 
 I've try install qmailadmin
 and there's a strange msg appear like this when i input the domain
 name and password that I've create with vpopmail
 what's my misconfiguration ?
 
 Internal Server Error
 
 The server encountered an internal error or misconfiguration and was
 unable to complete your request.
 
 Please contact the server administrator, [EMAIL PROTECTED] and
 inform them of the time the error occurred, and anything you might
 have done that may have caused the error.
 
 More information about this error may be available in the server error
 log.
 
 --
 Apache/1.3.19 Server at riga.test.local Port 80




RE: qmailadmin and vpopmail

2001-07-10 Thread Charles Warwick
Title: RE: qmailadmin and vpopmail





Can you tell us what is in the Apache logs as specified in the error message?


More information about this error may be available in the server error log.


-Original Message-
From: Martin Kong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 10 July 2001 5:50 PM
To: Essy Ren
Cc: qmail
Subject: Re: qmailadmin and vpopmail



I get that with my installation once in a while too (most of the times
it works). Still haven't figured out why


 Essy Ren wrote:
 
 I've try install qmailadmin
 and there's a strange msg appear like this when i input the domain
 name and password that I've create with vpopmail
 what's my misconfiguration ?
 
 Internal Server Error
 
 The server encountered an internal error or misconfiguration and was
 unable to complete your request.
 
 Please contact the server administrator, [EMAIL PROTECTED] and
 inform them of the time the error occurred, and anything you might
 have done that may have caused the error.
 
 More information about this error may be available in the server error
 log.
 
 --
 Apache/1.3.19 Server at riga.test.local Port 80




Please Note: 
The information contained in this email is confidential. If you are not the intended recipient, you may not disclose or use the information in this email in any way. If you have received this email in error, kindly notify the sender. The sender does not guarantee the integrity of this email or any attached files.




Re: qmailadmin and vpopmail

2001-07-10 Thread Adrian Ho

On Tue, Jul 10, 2001 at 02:37:44PM +0700, Essy Ren wrote:
 I've try install qmailadmin and there's a strange msg appear like this
 when i input the domain name and password that I've create with vpopmail
 what's my misconfiguration ? 
 [...]
 More information about this error may be available in the server error log. 

Have you actually read the server error log, or are you asking us to read
it for you?  I charge US$10K/min/km (separation distance) for telepathic
scans, triple that if the target is non-human.  8-)

- Adrian



Re: qmailadmin and vpopmail

2001-07-10 Thread Frank Tegtmeyer

Essy Ren [EMAIL PROTECTED] writes:

 what's my misconfiguration ?

Perhaps you should ask on the vpopmail mailinglist. The topic here is
qmail.

Regards, Frank



Re: qmailadmin and vpopmail

2001-07-10 Thread Essy Ren
Title: RE: qmailadmin and vpopmail




owww sorry, i forgot to attach it, here the 
error-log


h2Error: could not change to 
directory /h2[Tue Jul 10 14:30:45 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:30:52 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:31:00 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:31:11 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2h2Error: could not change to 
directory /h2h2Error: could not change to 
directory /h2[Tue Jul 10 14:35:07 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:35:11 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:36:24 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:36:29 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:41:12 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadminh2Error: could not change to 
directory /h2[Tue Jul 10 14:50:15 2001] [error] [client 
192.168.1.153] Premature end of script headers: 
/usr/local/httpd/cgi-bin/qmailadmin

  - Original Message - 
  From: 
  Charles Warwick 
  To: 'Martin Kong' ; Essy Ren 
  Cc: qmail 
  Sent: Tuesday, July 10, 2001 3:02 
PM
  Subject: RE: qmailadmin and 
vpopmail
  
  Can you tell us what is in the Apache logs as specified in the 
  error message? 
  "More information about this error may be available in the 
  server error log." 
  -Original Message- From: 
  Martin Kong [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, 10 July 2001 5:50 PM To: Essy Ren Cc: qmail Subject: Re: qmailadmin and vpopmail 
  I get that with my installation once in a while too (most of 
  the times it works). Still haven't figured out 
  why 
   Essy Ren wrote:  
   I've try install qmailadmin  and there's a strange msg appear like this when i input the 
  domain  name and password that I've create with 
  vpopmail  what's my misconfiguration ? 
Internal Server 
  Error   The server 
  encountered an internal error or misconfiguration and was  unable to complete your request.  
   Please contact the server administrator, 
  [EMAIL PROTECTED] and  inform them of the time 
  the error occurred, and anything you might  have 
  done that may have caused the error.  
   More information about this error may be 
  available in the server error  log. 

  -- 
   Apache/1.3.19 Server at riga.test.local Port 80 
   
  Please Note: The information contained 
  in this email is confidential. If you are not the intended recipient, 
  you may not disclose or use the information in this email in any way. If 
  you have received this email in error, kindly notify the sender. The 
  sender does not guarantee the integrity of this email or any attached 
  files.


Suggesting a cool website-3D Virtual Cities

2001-07-10 Thread ¯»³¾·¨

Dear Friends, 

A COMPLETE NEW SURFING EXPERIENCE. 

Check out this cool 3D Virtual Cities website: 

http://www.cyperguide.com  Enjoy your Ride! 


Please kindly accept our deepest apology if this e-mail has caused you any 
inconvenience. 

your dear friend 

(All 135 Cities will be done soon) 


 
 




defaultdelivery is severly unhappy...

2001-07-10 Thread chris herrmann

Hi all,

I've managed to break qmail-send, and for the life of me, I can't work out a
rhyme or reason. I know why at a superficial level it's broken, but not
**why** the damn thing suddenly decided to be unhappy now.

I'm using qmail 1.03, vpopmail 4.9.8, rh7.1, daemontools 0.70.

Has been working fine until this evening, when I restarted the services
after making changes to the run files ( to add a fix for wrong timestamps -
adding TZ=CST6CDT to the env statement).

Tried sending an email, and it didn't work. No errors - just didn't work.
Had a little bit of a dig, and discovered that the server was saying:

env: ./Maildir/: No such file or directory

which had me a little perplexed.

I eventually worked out that the service starting it wants a Maildir
directory in /service/qmail-send/ , but then returns an error:

env: ./Maildir/: Permission denied

The service is started with:

exec /var/qmail/rc

which in turn is:

#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by
default
exec env - PATH=/var/qmail/bin:$PATH\
qmail-start `cat /var/qmail/control/defaultdelivery`

I played with giving qmailx (where x is vpopmail, l,r,s etc) permission to
read/write/destroy the Maildir in question, to no avail.

Have tried running the rc file, and the qmail-start command by hand without
joy.

So here is my conundrum:

I don't need a default delivery because I'm using vpopmail, yet I can't
start qmail-send without it. The Maildir in question doesn't exist, and when
I create it doesn't appear to satiate the beast.

Obviously I've changed something else between when qmail-send was last
started and now (umm... how many months?) so I have absolutely no idea what
has changed.

user directories don't have Maildirs in them. Vpopmail users do, in
~vpopmail/domains/user/Maildir

Help!

A very tired, confused and cranky Chris.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




defaultdelivery is severly unhappy...

2001-07-10 Thread chris herrmann

Many thanks to Ondøej Surý - you hit the nail on the head in one go!

- exec env - PATH=/var/qmail/bin:$PATH\
+ exec env - PATH=/var/qmail/bin:$PATH \
qmail-start `cat /var/qmail/control/defaultdelivery`

--
Ondøej Surý [EMAIL PROTECTED]Globe Internet s.r.o. 
http://globe.cz/
Tel: +420235365000   Fax: +420235365009 Plánièkova 1, 162 00 Praha 
6
GPG fingerprint:  CC91 8F02 8CDE 911A 933F  AE52 F4E6 6A7C C20D 
F273

---

ie. i had to remove the first line, substitute it with the next line, and 
all was happy. This was because the exec env line needs a space before the 
backslash.

Cheers all,

Chris
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Reverse DNS lookups

2001-07-10 Thread Henning Brauer

On Tue, Jul 10, 2001 at 06:07:59AM -, pop corn wrote:
 Their staff initially said 1) reverse PTR records were never necessary; 

Hell. Did you really say they call themselves an ISP? Uh-oh.

-- 
* 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)



Re: qmailadmin and vpopmail

2001-07-10 Thread Henning Brauer

On Tue, Jul 10, 2001 at 02:37:44PM +0700, Essy Ren wrote:
 I've try install qmailadmin

Is it really so com[plicated to discovber what this list is about? QMAIL.
not qmailadmin, not vpopmail, not vmailmgr, not apache, not linux, not the
weather and not the next elections.

-- 
* 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)



Re: Reverse DNS lookups

2001-07-10 Thread pop corn

Wrong mailing list, my apologies, I meant to send this to [EMAIL PROTECTED]


From: pop corn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Reverse DNS lookups
Date: Tue, 10 Jul 2001 06:07:59 -

I'm dealing with a new ISP that has been pretty much ok until this problem.
I realized that they didn't set up the reverse PTR records for my eight IP
addresses on a dedicated server. (I will be creating 8 virtual domains - 
one
per IP address).

Their staff initially said 1) reverse PTR records were never necessary; 2)
delegating my DNS info to my machine are out of the question (they won't
admit they don't know how and they won't accept info). They are using BIND
and insist that nslookup is never capable of returning the domain name for 
a
given IP address.

I've been pounding on them since last week, and just got an email saying
that a PTR record is only necessary for the base IP address of the 8
addresses (the hostname is set to this base IP address) and they are going
to update their DNS server tonight and promptly closed out the trouble
ticket.

I've been setting up DNS (classic BIND) for years and simply never heard of
setting up A records without the associated PTR record for reverse address
mapping.

1) I'm about to open up another trouble ticket to ask them to add PTR
records for the remaining seven IP addresses. Am I not correct in telling
the ISP that all my virtual domains require reverse DNS resolution?

2) If they don't add reverse PTR records for my virtual domains, I've been
debating telling the Internic to change my DNS servers for the virtual
domains to the base address of my own dedicated server. It's not as if my
virtual domains are subdomains of my ISP's domain. The problem is that I
only have the one dedicated machine. The Internic wants two DNS servers per
domain. If I leave the existing DNS servers from my ISP, and add my own
dedicated server as a third DNS server, will the reverse address search go
through all three of my DNS servers until it has success?

My hostname is a subdomain of my ISP's domain, so the PTR record for my 
base
address will have to be served by my ISP's dns server and they are in fact
doing that for me tonight.

My virtual domains are independent domains immediately under .com and
registered to the Internic. I'll use the exact same IP addresses that my 
ISP
was serving on their DNS servers, just add the reverse DNS info. My ISP's
info about my virtual domains will just be ignored once the Internic makes
the change, right? I've been resisting this route because I don't want to
create a loop of some kind.

3) If I proceed with step 2, I could use dnscache on 127.0.0.1, tinydns on
one IP, and walldns on another IP, right? It doesn't matter which external
IP, just so long as they are different IPs because dnscache, tinydns, and
walldns are all looking at port 53, right?

There is no firewall with this solution in 2) and 3), but these virtual
domains don't have any national secrets anyway. However, I will be serving
qmail to these domains, so it won't be the safest environment for the 
email.

I'm sorry this post is so long, it's hard for me to verbalize these DNS
issues succinctly.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Reverse DNS lookups

2001-07-10 Thread Andreas Grip

I had problems to get my ISP to setup reverse DNS on my IP:s but then I
turned to RIPE and they sended an e-mail to my ISP. The day after that
the reverse was working :-)

So maybe you should try go through RIPE...

Andreas



Bounce Info

2001-07-10 Thread Bill Luckett

Hi,

For various resasons I'm trying to construct a file with the sender and
recipeients of bounce messages like:

[EMAIL PROTECTED][EMAIL PROTECTED]
[EMAIL PROTECTED][EMAIL PROTECTED]
...

...one entry for every *fatal* bounce.

I've tried putting code like this in various places in qmail-send.c and
qmail-remote.c:

if ((outfile = fopen(/var/log/somedir/bounces, a)) != NULL)
  {
  fprintf(outfile, %s   %s\n, sender, intended_recip);
  fclose(outfile); 
  }

but I get only the sender or nothing at all. If I can't get both easily
then I need to at least get the intended recipient (the address that's
potentially no good.)

Anyone know where I can plop this code and what variables I should be
printing?

It's a long story but I don't want to have to parse the logs.

Thanks,

***
Bill Luckett
Director of Information Systems
Phi Theta Kappa International Honor Society
1625 Eastover Dr.
Jackson, MS 39211

[EMAIL PROTECTED]
Ph : 601-984-3559
Fax: 601-984-3506
***



Begging for a control/spamlovers patch

2001-07-10 Thread torben fjerdingstad

I want to convert one more sendmail MX to qmail with rblsmtpd.

But there is a show stopper: A handful of users demand to
receive all email, even when it comes from blacklisted IPs.
   
Well, qmail-smtpd read control/badmailfrom, so I suppose
it will be easy to modify it so it to also read a new file,
control/spamlovers, which contains a list of reciepient
adresses that want the mail, even when it comes from
a blacklisted IP.

As I am not a programmer, don't want to screw up qmail-smtpd,
and don't fully understand qmail-smtpd.c, I ask for help.

That patch would also make a nice addition to chapter VII
in Chris Hardies qmail Anti-spam HOWTO.

Please don't suggest post-filtering instead. I want control
at the SMTP level.
Otherwise I may have a hard time trying to return an error
message, and maybe the sender is unreachable or an innocent
fake. I would never silently drop an email, at least not
without having looked at it first, and I don't have time
for that.

-- 
Med venlig hilsen / Regards 
Netdriftgruppen / Network Management Group
UNI-C  

Tlf./Phone   +45 35 87 89 41Mail:  UNI-C
Fax. +45 35 87 89 90   Bygning 304
E-mail: [EMAIL PROTECTED]   DK-2800 Lyngby




Re: Reverse DNS lookups

2001-07-10 Thread pop corn

This was the best advice!

I emailed RIPE and cc'd my ISP, then called my ISP to make sure they saw my 
email to RIPE. My ISP just emailed me to say that my PTR records would be 
put on their DNS servers tonight at midnight. I don't know if RIPE emailed 
them, but I think my ISP didn't want to risk being on any possible 
nonconforming ISP lists.

Before I sent the email to RIPE, I also called the Internic, but they told 
me that I would have to change to an Internic sponsored ISP to get PTR 
records.

I'll see if my ISP actually did it tomorrow, but it was terrific to have an 
authority like RIPE on my side.

After all, I did pay for that IP address block. The least they can do is put 
both A and PTR records in their DNS servers.


From: Andreas Grip [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Reverse DNS lookups
Date: Tue, 10 Jul 2001 15:44:36 +0200

I had problems to get my ISP to setup reverse DNS on my IP:s but then I
turned to RIPE and they sended an e-mail to my ISP. The day after that
the reverse was working :-)

So maybe you should try go through RIPE...

Andreas

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Dangers of modifying preline.c

2001-07-10 Thread Alex Hathaway

Is there any dangers in commenting out the lines:

/*  if (wait_crashed(wstat))
strerr_die2x(111,FATAL,child crashed); */

in preline.c ?



Re: Dangers of modifying preline.c

2001-07-10 Thread MarkD

On Tue, Jul 10, 2001 at 01:25:11PM -0700, Alex Hathaway allegedly wrote:
 Hey Ian,
 
 I have... Over three times now. No one has had any solid answers. One fellow
 suggested it was with the SIGPIPE signal, but didn't give me any idea on how
 to remedy it. So, I had to find another way around it.

You need to find out what the problem is. It's real simple, either
mailman is exiting with a non-zero exit code or it's exiting prior to
reading all of the message from the pipe. Both of these are conditions
which preline treats as errors. Consequently preline exits in such a
way that the delivery is tried later in the hope that the mail admin
notices and fixes the problem.

You need to find out which of those two conditions are occuring - and
it's fundamentally a mailman issue.

If mailman is exiting non-zero, why is it doing so? A non-zero exit is
a programs way of telling you something is wrong. Listen to it.

If mailman is exiting without reading all of the message, why is it
doing so? Surely if it hasn't read all of the message then it cannot
have safely stored it, yes?

 It also executes flawlessly when I take that bit of code out of
 preline. Not even a ghost proc or crash.

Of course - but that proves nothing. You've told preline to ignore all
errors from the child. Put another way, you said process the mail but
don't tell me whether it worked or not. If mailman ever gets a genuine
error, such as quota full or somesuch you'll never know and the mail
will simply disappear.

The solid answer as you put it, is to find out what mailman is doing
and why.


Regards.

 
 Sincerely,
 -Confuzzled Lexx.
 
 -Original Message-
 From: Ian Lance Taylor [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 10, 2001 12:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Dangers of modifying preline.c
 
 
 Alex Hathaway [EMAIL PROTECTED] writes:
 
  Is there any dangers in commenting out the lines:
 
  /*  if (wait_crashed(wstat))
  strerr_die2x(111,FATAL,child crashed); */
 
  in preline.c ?
 
 Yes.  If the program run by preline crashes unexpectedly, your mail
 will be lost.  If you leave the lines in there, your mail will be
 resent later.
 
 I suspect that you have some problem which you are trying to address
 by commenting out those lines.  You are likely to get better advice if
 you describe the problem.
 
 Ian
 



Small LDAP support for qmail

2001-07-10 Thread Severin Olloz

Hello...

I have a LDAP-server with all my users and now I want to set up a 
qmail-mailserver with vmailmgr and ldap support.

So I have try it with the big qmail-ldap patch. The patch is nice, but they 
don't work together!?

When qmail becomes a email it checks first the virtualdomain-file and then 
the passwd file to find out where's the home-directory of the user.

Is there a patch who tells qmail to search the users homedirectory in the 
ldap-server and not in the passwd file?

Thanks!

Severin Olloz



Unable_to_open_/var/qmail/boxes/Mailbox.user:_access_denied._(#4.2.1) message

2001-07-10 Thread Rodney Broom

I'm getting this message when I send mail to user:
  Unable_to_open_/var/qmail/boxes/Mailbox.user:_access_denied._(#4.2.1)

I've moved the file location around and done everything thinkable with the
permissions, to no avail.

The routing I'm using is:
  /var/qmail/alias/.qmail-user

Which contains:
/var/qmail/boxes/Mailbox.user

I've read dot-qmail, INSTALL.alias and FAQ. As well as having grepped around
in the docs for help. If I create /home/user/.qmail-anything with a path to
a mail box file, that works, so I must be missing something.

---
Rodney Broom
Programmer: Desert.Net





RE: Begging for a control/spamlovers patch

2001-07-10 Thread Chris Bolt

Perhaps you could use http://www.qmail.org/qqrbl

Then users who don't want spam can filter based on the X-RBL: header.

 I want to convert one more sendmail MX to qmail with rblsmtpd.
 
 But there is a show stopper: A handful of users demand to
 receive all email, even when it comes from blacklisted IPs.




NetGear, was Re: I get timeouts

2001-07-10 Thread John Groseclose

At 1:22 AM +0200 7/11/01, Henning Brauer wrote:

The Realtek cards and in special the netgear ones are pure crap, but I'm not
aware about such problems with them.

The original revision of the NetGear cards apparently used a real 
tulip driver - I had two of the original cards, and two of the later 
ones (FA310TX) and the older ones work flawlessly, while the later 
ones do all kinds of bizarre things.
-- 
John Groseclose
[EMAIL PROTECTED]



Request for advice (qmail-remote)

2001-07-10 Thread Greg Elliott

Greetings All,

I am currently in the planning stages of setting up a moderately
large distributed email system and have run into a little snag
in the way I would like the system to work.

I believe I know how I would like to architect the solution to
the problem; but I am unsure of how to execute the changes and
was wondering if anyone had some advice or ideas on the following:

a) I would like to rename the program qmail-remote to qmail-remote.real
   and insert another program in its place. (Likely to be a shell script).

b) The script would look at the domain of the intended recipient and if 
   it matched maildomain.com (for example) it would then look at the
   username being sent to.
   A small(ish) text file would be kept on the mail server with a list of
   usernames. If the username was found in the list, then the script would
   modify the recipient's email address to [EMAIL PROTECTED]
   and place the message back into the qmail-queue (or qmail-inject if that
   is better).

   If no match is found then the message would be handed onto
qmail-remote.real 
   for normal processing.

   [The effect would be to 'hijack' (for legitimate reasons) mail for a
subset of an 
upstream domain, and deliver it locally. (Attempting to cut down on WAN
traffic)].

Is this possible, and easily achievable?

(I think my biggest problem (related to qmail  :-p ) is my lack of
understanding about 
 how to read the parameters from stdinput in a shell script, manipulate
them,
 and then how to pass control back to qmail-remote.)

Thanks in advance,

Greg Elliott
E-mail:   [EMAIL PROTECTED]




Monitoring MX spools -- is it possible?

2001-07-10 Thread David U.

Hi,

I provide secondary mail service to a small group (10) of users so I don't 
need to really watch how much mail I spool when (if) they go down.

In the future I would like to be able to provide MX service to all my 
clients (1000+) -- Granted most have little to no downtime, I would like to 
implement a system that is able to monitor two things:

a) queue age (mail has been queued on my machine for more then _X_ days
b) queue size.

I would like the ability to give all clients backup mail service for 7 days 
and no more then say 10 megs -- whichever comes first.

Since I am just accepting mail in my rcpthosts and not delivering it 
locally to a Maildir, how can I enforce such quotas?  Does such a system 
exist?  What would I need to do in order to implement it.  Has something 
like this ever existed?

What's the opinion?

thanks,
davidu




question about autoresponder varient

2001-07-10 Thread Steve


I would like to implement a feature that sends a brief email to another
email address when mail arrives for a user.  I think it can be handled
from the .qmail file but I was hoping someone could give me some pointers.

Thanks,

Steve




Problem with received from

2001-07-10 Thread Trevor Harrison

I'm doing a new setup of qmail on a new box (my last setup was years ago 
so I've grown rusty), and I ran into a problem with the Received: from 
header.

Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 16367 invoked from network); 10 Jul 2001 06:24:44 -
Received: from localhost (HELO hoser) (127.0.0.1)
  by 0 with SMTP; 10 Jul 2001 06:24:44 -

(this is from a hand-jobbed telnet localhost 25)

The Received: from header has by 0 instead of by 
starnie.harrison.org.  Looking in qmail-smtpd.c, I can see where it 
gets assigned:

  local = env_get(TCPLOCALHOST);
  if (!local) local = env_get(TCPLOCALIP);
  if (!local) local = unknown;

so I'm guessing those env vars arent' being set correctly by ucspi. 
 This is the first time I've used ucspi and daemontools (before I always 
used inetd).  I'm following the LWQ text, and I think I messed up the 
step where:

echo '127.:allow,RELAYCLIENT=' /etc/tcp.smtp
qmailctl cdb

you are supposted to add a rule to the tcp.smtp file.  I did a  instead 
of a , and I'm wondering if I overwrote an existing rule that was 
there by default that was setting TCPLOCALHOST.

My /etc/tcp.smtp currently is:
127.:allow,RELAYCLIENT=

I've applied several patches (bigdns, bigtodo, bigconcur, 
tarpit+relayfrom, datelocaltime, localbind).

Any help would be appreciated.

-Trevor





qmail, Maildir, IMAP, and MS Outlook

2001-07-10 Thread Sam Carleton

Before folks start flaming me, I know Outlook sucks and I know that
Microsoft has never written a decent piece of code.  With that said...

I am using qmail, because it is the best mail server out there.  I would
like to be able to configure MS Outlook so that it interacts with qmail the
same way it does with Exchange.  Or at least similar in the respect that one
can manage folders and move mail around and it all stays on the server.  My
understanding is that IMAP is the solution.  I have installed courier-IMAP,
but from that mailing list I have learned that Outlook is not a standard MUA
with respect it IMAP, or anything else for that matter.

Does anyone know of a IMAP server that get along with Outlook 2000 and that
works with Maildir/?

Sam




Re: Problem with received from

2001-07-10 Thread Daniel Kelley


 The Received: from header has by 0 instead of by 
 starnie.harrison.org.  Looking in qmail-smtpd.c, I can see where it 
 gets assigned:

what do you have in /var/qmail/control/me?  that's one place to look.




Re: Problem with received from

2001-07-10 Thread Trevor Harrison

Daniel Kelley wrote:

The Received: from header has by 0 instead of by 
starnie.harrison.org.  Looking in qmail-smtpd.c, I can see where it 
gets assigned:


what do you have in /var/qmail/control/me?  that's one place to look.

/var/qmail/control/me is starnie.harrison.org





Re: qmail, Maildir, IMAP, and MS Outlook

2001-07-10 Thread Will Yardley

we use courier-imapd with no problems on our office mailserver, and some
people here use Outlook with no problems.  While courier can be a pain at
times it's probably the best solution.  You could also try UW imapd with the
(unofficial) Maildir patches.

i don't think anyone has problems moving folders around or whatever; we
usually make all the folders subfolders of 'Maildir' so if I wanted to make a
folder called foo The directory for foo would then be Maildir/.foo/ and if it
had a subdirectory bar it would be Maildir/.foo/.bar/

I think you have to play around with the settings in OE a little to get them
to recognize the folders but it should definitely work.  It's not going to be
as easy to configure as another MS product since, as you mentioned, but it
should definitely work.

perhaps you could let us know the settings you're using and the exact errors
you're getting.

You might try creating folders on the server and see if you can get outlook
to recognize them.  for instance, (not as root):
% cd Maildir/
% /var/qmail/bin/maildirmake .foo

will

On Tue, Jul 10, 2001 at 10:18:51PM -0400, Sam Carleton wrote:
 Before folks start flaming me, I know Outlook sucks and I know that
 Microsoft has never written a decent piece of code.  With that said...
 
 I am using qmail, because it is the best mail server out there.  I would
 like to be able to configure MS Outlook so that it interacts with qmail the
 same way it does with Exchange.  Or at least similar in the respect that one
 can manage folders and move mail around and it all stays on the server.  My
 understanding is that IMAP is the solution.  I have installed courier-IMAP,
 but from that mailing list I have learned that Outlook is not a standard MUA
 with respect it IMAP, or anything else for that matter.
 
 Does anyone know of a IMAP server that get along with Outlook 2000 and that
 works with Maildir/?
 
 Sam
 



Forwarding Nightmare

2001-07-10 Thread lists



Hi,

Last evening I tried to set up a .qmail file to forward 
messages to a remote address.
I created a user testuser, and in his directory put a .qmail 
file with 
[EMAIL PROTECTED]

I then sent a test message to the user.
qmail has continually been sending messages to [EMAIL PROTECTED] all night at a 
frightening speed.
I estimate around 25,000 mails have been sent so 
far.

I deleted testuser completely, home directory, .qmail file and 
all, but messages continue to pour in to [EMAIL PROTECTED] .
I am guessing my queue needs to be flushed? Can I wait it out, 
or could something be happening where it will continue to send even though 
testuser no longer exists?

Any help appreciated,

Shawn


Re: Forwarding Nightmare

2001-07-10 Thread Adrian Ho

On Wed, Jul 11, 2001 at 11:37:10AM +0900, lists wrote:
 I then sent a test message to the user.
 qmail has continually been sending messages to [EMAIL PROTECTED] all
 night at a frightening speed.
 I estimate around 25,000 mails have been sent so far.

What Do The Logs Say?  It sounds like the to.forward.to MX is botching the
SMTP conversation.

- Adrian



qmailr processes

2001-07-10 Thread lists



Hi,

I have stopped qmail, cleared the queue with:


and restarted qmail, but I still get these processes sending 
me mail:

qmailr 1071 0.0 0.5 888 
568 ?? S 12:27PM 0:00.01 qmail-remote 
graycastle.com query-return-28234-qmailr 1080 0.0 
0.5 888 568 ?? S 
12:27PM 0:00.00 qmail-remote graycastle.com 
query-return-28236-
...

I have totally removed the user 'query', even rebooted the 
machine, but these processes keep coming up and bombarding me with mail. Any 
ideas?

Thanks,

Shawn


Re: Problem with received from

2001-07-10 Thread Daniel Kelley



 
 Uh, looking back over my data, the tcpserver line has a 0 in the 
 location the tcpserver --help says should be a hostname.  Is this my 
 problem?  If so, I'd feel like a complete dumbass except for I just 
 checked and its like that in the LWQ text.

uh-oh:

from http://cr.yp.to/ucspi-tcp/tcpserver.html

Data-gathering options:
-l localname:   Do not look up the local host name in DNS; use localname for
the environment variable $TCPLOCALHOST. A common choice for localname 
is
0.

looks like that's what you want to change.  i'd try your test again, after
removing -l 0 from your qmail-smtpd/run script.

dan 




Re: Forwarding Nightmare

2001-07-10 Thread lists

Adrian,

The logs look fine. Messages are being sent for delivery as normal... just a
lot faster than normal. :-)

I stopped qmail, cleared my queue with this script:

for i in bounce info intd local mess remote todo;
do find /usr/local/qmail/queue/$i -type f -exec rm {} \;
done

restarted qmail, no good.
Tried it again and rebooted, no good.

Whenever qmail starts up, I get about 15 of these showing up:
qmailr 12991  0.0  0.5   888  568  ??  S12:43PM   0:00.00 qmail-remote
graycastle.com query-return-29905-

I keep getting mail from 'query', even though that user is long-dead.

Shawn

- Original Message -
From: Adrian Ho [EMAIL PROTECTED]
To: Qmail Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 12:32 PM
Subject: Re: Forwarding Nightmare


 On Wed, Jul 11, 2001 at 11:37:10AM +0900, lists wrote:
  I then sent a test message to the user.
  qmail has continually been sending messages to [EMAIL PROTECTED] all
  night at a frightening speed.
  I estimate around 25,000 mails have been sent so far.

 What Do The Logs Say?  It sounds like the to.forward.to MX is botching the
 SMTP conversation.

 - Adrian





Re: qmailr processes

2001-07-10 Thread Daniel Kelley


 and restarted qmail, but I still get these processes sending me mail:
 
 qmailr  1071  0.0  0.5   888  568  ??  S12:27PM   0:00.01 qmail-remote
 graycastle.com query-return-28234-
 qmailr  1080  0.0  0.5   888  568  ??  S12:27PM   0:00.00 qmail-remote
 graycastle.com query-return-28236-
 ...

that's not incoming mail; qmail-remote send mail from your machine -
remote domains.

if this machine is supposed to be the primary MX for greycastle.com, you
have a comfiguration problem.

dan




Re: Problem with received from

2001-07-10 Thread Trevor Harrison

Daniel Kelley wrote:


Uh, looking back over my data, the tcpserver line has a 0 in the 
location the tcpserver --help says should be a hostname.  Is this my 
problem?  If so, I'd feel like a complete dumbass except for I just 
checked and its like that in the LWQ text.


uh-oh:

from http://cr.yp.to/ucspi-tcp/tcpserver.html

Data-gathering options:
-l localname:  Do not look up the local host name in DNS; use localname for
   the environment variable $TCPLOCALHOST. A common choice for localname 
is
   0.

looks like that's what you want to change.  i'd try your test again, after
removing -l 0 from your qmail-smtpd/run script.

dan 

Yep, that was it.

Many thanks.

-Trevor






Re: qmailr processes

2001-07-10 Thread lists

Sorry, I meant sending 'me' mail as in sending mail to my graycastle.com
address.

I originally sent an email to [EMAIL PROTECTED]
I was listed as
[EMAIL PROTECTED]
in query's .qmail file.

I sent a test message to [EMAIL PROTECTED] , and have received over 30,000
emails to [EMAIL PROTECTED] so far.
I have deleted user query, his home directory, his .qmail file, and anything
'query-like' on the system.
I have flushed the queue, restarted qmail, rebooted.

Every time qmail starts up, I get those same qmailr processes sending mail
to [EMAIL PROTECTED] .

Shawn

- Original Message -
From: Daniel Kelley [EMAIL PROTECTED]
To: lists [EMAIL PROTECTED]
Cc: Qmail Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 12:47 PM
Subject: Re: qmailr processes



  and restarted qmail, but I still get these processes sending me mail:
 
  qmailr  1071  0.0  0.5   888  568  ??  S12:27PM   0:00.01
qmail-remote
  graycastle.com query-return-28234-
  qmailr  1080  0.0  0.5   888  568  ??  S12:27PM   0:00.00
qmail-remote
  graycastle.com query-return-28236-
  ...

 that's not incoming mail; qmail-remote send mail from your machine -
 remote domains.

 if this machine is supposed to be the primary MX for greycastle.com, you
 have a comfiguration problem.

 dan






Re: question about autoresponder varient

2001-07-10 Thread Foo Ji-Haw

I implement autoresponder via procmail (with formail). With procmail, you
can customise your autoresponder (based on the sender, for example).

- Original Message -
From: Steve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, 11 July, 2001 8:49 AM
Subject: question about autoresponder varient



 I would like to implement a feature that sends a brief email to another
 email address when mail arrives for a user.  I think it can be handled
 from the .qmail file but I was hoping someone could give me some pointers.

 Thanks,

 Steve





Qmail refuses to deliver if the user account dir is world-writeable

2001-07-10 Thread Foo Ji-Haw

How can I make qmail deliver incoming mails anyway, to user accounts which
are world-writeable? Right now, it does this:

Jul 11 12:53:09 markus qmail: 994827189.053526 delivery 85: deferral:
Uh-oh:_home_directory_is_writable._(#4.7.0)/

Any help is appreciated. :)



Re: NetGear, was Re: I get timeouts

2001-07-10 Thread Scott Gifford

John Groseclose [EMAIL PROTECTED] writes:

 At 1:22 AM +0200 7/11/01, Henning Brauer wrote:
 
 The Realtek cards and in special the netgear ones are pure crap, but I'm not
 aware about such problems with them.
 
 The original revision of the NetGear cards apparently used a real
 tulip driver - I had two of the original cards, and two of the later
 ones (FA310TX) and the older ones work flawlessly, while the later
 ones do all kinds of bizarre things.

On Linux 2.2.x, try switching to the newer National Semiconductor
drivers:

http://www.scyld.com/network/netsemi.html

All of my weird problems disappeared when I switched to this driver.

-ScottG.



Re: Begging for a control/spamlovers patch

2001-07-10 Thread torben fjerdingstad


On Tue, Jul 10, 2001 at 05:47:00PM -0600, Chris Bolt wrote:
 Perhaps you could use http://www.qmail.org/qqrbl
 
 Then users who don't want spam can filter based on the X-RBL: header.

In my first letter I wrote:
- Please don't suggest post-filtering-
I also explained why.

  I want to convert one more sendmail MX to qmail with rblsmtpd.
  
  But there is a show stopper: A handful of users demand to
  receive all email, even when it comes from blacklisted IPs.

-- 
Med venlig hilsen / Regards 
Netdriftgruppen / Network Management Group
UNI-C  

Tlf./Phone   +45 35 87 89 41Mail:  UNI-C
Fax. +45 35 87 89 90   Bygning 304
E-mail: [EMAIL PROTECTED]   DK-2800 Lyngby




Help setting up Hotmail

2001-07-10 Thread Schajee Achmad

I just wanted to confirm that if someone wants to make Hotmail of his own,
then he'll need the following:

Qmail, VmailMgr, Courier (not Courier-IMAP), ucspi-tcp, daemontools,
supervise-scripts.

Courier includes SqWebMail which can be modified to suit one's needs.

Am I walking the rightr path or do I need something else also.

Schajee



Re: Qmail refuses to deliver if the user account dir is world-writeable

2001-07-10 Thread Adrian Ho

On Wed, Jul 11, 2001 at 12:41:22PM +0800, Foo Ji-Haw wrote:
 How can I make qmail deliver incoming mails anyway, to user accounts which
 are world-writeable?

Hack the source.  You're pretty much on your own on this one, I think.

A more appropriate question: Why are your users' home dirs world-writable?

- Adrian



Re: I get timeouts

2001-07-10 Thread Grant

LWQ version 2001-06-07 and it suggests -R, -v and -l 0. But there must be an 
   You forgot -H.

  I still get timeouts even thought I have used the flags below.
 
 Time for tcpdump. I really wonder what's happening here, maybe these
 netgears have a serious design flaw in their tcp implementation.

Netgear? Yes I am using Realtek 8139 network cards pretty much in every
office location. Unfortunately, yes they aren't the best network cards
but money issues are stopping us getting other cards.

Interesting how you guessed the NIC. :)