Logging Messages - qmail newbie

2000-12-23 Thread Anonymous user


I have been running qmail for a few days now and it works well.

I have a problem though... I need to keep a copy of all messages sent and
received. I followed the instructions in the faq, creating a .qmail-log
file in /var/qmail/alias with ./msg-log in it. 

This does the job as described, but I am now just accumulating one huge
file with attachments and all sorts in it.

Has anybody got a more elegant way of doing this?

I have been trying to work something out for myself, but there are a few
things that I can't find much about/don't understand in the documentation.

There is little info about the alias directory. Am I correct in assuming
that the alias files .qmail- work the same way as a .qmail file in ones
home directory?

Thinking this I tried to construct a Maildir for my messages by putting
./MaildirLog/ in .qmail-log and creating a maildir in the alias directory -
it didn't work (I got can chdir to directory messages in the log). I am now
wondering though if I should have created the Maildir owned by a particular
user - any info?

One more thing. Can I put the |script type construct in the .qmail-log file
to process the messages myself? If so, I am not sure how it works. Does
this mean that the routine you specify will get the whole message on STDIN?
Does the system expect any output or can you do anything you like with the
message in the script?

Any help appreciated. I am very impressed with qmail so far, although the
docs could be better I think (and yes, for once I did read everything I
could find before posting).

Thanks



Blocking certain attachments

2000-12-23 Thread Anonymous user


I am not hapy about my users receiving certain attachments.

What I want to do is block the following

(1) Attachments bigger than a certain size

(2) Attachment of a certain type (mine type?). For example I would like to
block .exe files. 

I would like to do both elegantly. If I block a message, I want to send a
message to both the sender and recipient telling them what has happened.
Even better I would like to send on the original message without the
attachment.

Anybody point me in the right direction.

PS. I use vpopmail, sqwebmail etc... All virtual domains and users, no
local.



How do I fix up messages from broken SMTP clients?

1999-06-28 Thread Anonymous

Hi.
Two FAQ was found as mailer measures by which Message-ID/Date header 
was not put up.  
1. Header supplementation by qmail-inject which uses virtualdomain 
2. Ofmipd operates instead of qmail-smtpd.  

I want to supplement similar header with the qmail-smtpd unit.  
Please teach if you know such Patch or the method.  

-- Hideki



new environment variable for qmail-local!!

1999-06-28 Thread Anonymous

hi,

some days ago i posted to this list asking for the possibility to add a
environment variable to qmail-local.
here again my question:
anybody got an idea how to add an environment variable MESSAGESIZE to
qmail-local? this would be great
for message routing depending on their size.
i tried this with several `wc -c` commands but it's is not a good
approach. working with env var. would be 
much more better!

i am a poor programmer so i do not have any idea how to add this feature
to qmail-local. i had a look into
the sources and i found the place where all the other env. var. are set.
i think it must be easy for a skilled
programmer to add a system-call getting the message size from the file
in the mess directory!

regards
jodok




how to deal with mail over quota limit

1999-06-28 Thread Anonymous


What is the normal policy for handling email that goes
over a users quota?

Is the mail normally bounced back to the sender, just dropped
or something else?

I'm looking at adding user quota's to vchkpw, which uses a single
/etc/passwd user for all pop mail accounts. 

Ken Jones
Inter7



Re: how to deal with mail over quota limit

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999 10:03:07 -0500, [EMAIL PROTECTED] wrote:

What is the normal policy for handling email that goes
over a users quota?

Looking at logs for a number of mailing lists, it's about 50:50. There
are even sites that bounce mail for "user is over hourly mail quota".

IMHO, you bounce mail for permanent problems, defer it for temporary
problems. Over quota is clearly a temporary problem.

Another interesting possibility is to do a quota check (soft) in .qmail
and redirect excess mail to a place where the customer can "buy it
out", i.e. they can pay for an increased quota or you deliver the
excess mail with an e.g. 7 day delay provided that the quota then
permits (else bounce). The first message to the "holding maildir"
generates a message directly to the users maildir informing him/her
about this.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Albert Hopkins writes:
  
  I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
  my log files.  Does qmail-pop3d not support this?

qmail-pop3d has nothing to say about what it does.  You could write a
shell script wrapper around any one of qmail-popup, checkpassword, or
qmail-pop3d.  For the latter, e.g.:

#!/bin/sh
NEW=`ls $1/new|wc -l`
echo "$USER has $NEW new messages" 2
exec /var/qmail/bin/qmail-pop3d $1

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: PTR issue / question

1999-06-28 Thread Anonymous

Quoting Scott D. Yelich ([EMAIL PROTECTED]):
Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
dig -x output...
;; ANSWER SECTION:
30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
 
 Well, I don't want to get into a pissing contest -- but I hate to make
 hacks on software (ie: qmail/tcp-env) to allow a special case to work. 
 I'm going to wait and continue to investigate if this is a tcp-env snafu
 or a loose bind implementation, etc.

The problem here is, as DJB pointed out, tcp wrappers can't do a
lookup on 216.221.160.30 and cobalt.propagation.net and get the
responses to jive.  cobalt.propagation.net=216.221.160.30 but
216.221.160.30=cobalt.  Why do you have two PTR entries?  The second,
correct PTR record is sufficient, unless I'm really missing something.

Tcp wrappers behaves like this if compiled with D_PARANOID set or
something, or "ALL: PARANOID" is in /etc/hosts.deny.

In any case, if you dropped the first entry, it would probably work
fine.  I'd just use tcpserver, really, as Dan suggested quite
vehemently :-).

Aaron



onelist.com?

1999-06-28 Thread Anonymous


Does anyone know if "onelist.com" uses Qmail/ezmlm?

We seem to get a lot of mail to our customers from "onelist.com" of the form:

[EMAIL PROTECTED]

Or do other mailing lists use the "joeuser=domain.com" syntax?

Dave



Re: onelist.com?

1999-06-28 Thread Anonymous

On Mon, Jun 28, 1999 at 01:33:09PM -0400, Dave Kitabjian wrote:
 Does anyone know if "onelist.com" uses Qmail/ezmlm?

They at least use qmail :

orion:/var/named/sirius $ telnet www.onelist.com 25
Trying 209.207.164.201...
Connected to www.onelist.com.
Escape character is '^]'.
220 onelist.com ESMTP
help
214 qmail home page: http://pobox.com/~djb/qmail.html


Cheers,
Olivier



help with Child Crashing during delivery

1999-06-28 Thread Anonymous

Hello,

I have a problem with deliveries of mail seeming to crash in the server
during delivery.  The mail headers get delivered, but the system attempts to
redeliver the email every minute or so, crashing , but devilering the
headers, creating a real headache

I have included the qmail log as well as a few diagnostic programs.

Also, I am running vmailmgr... but there are no errors in its log file.

Any ideas?

Thanks in advance,

Peter Mahnke


/var/log/qmail/currentlog OUTPUT

930589844.541360 starting delivery 77: msg 72873 to local
[EMAIL PROTECTED]
930589844.541414 status: local 2/10 remote 1/20
930589844.541445 delivery 74: deferral: Aack,_child_crashed._(#4.3.0)/
930589844.541487 status: local 1/10 remote 1/20
930589844.649928 delivery 77: success:
vdeliver:_Delivered_to_maildir:_./users/vbuddha/did_0+0+1/
930589844.649988 status: local 0/10 remote 1/20
930589844.650019 end msg 72873
930589850.387299 delivery 76: success:
205.180.60.13_accepted_message./Remote_host_said:_250_ok_dirdel/
930589850.387367 status: local 0/10 remote 0/20
930589850.387420 end msg 72874




QMAIL-QREAD OUTPUT

bash# /var/qmail/bin/qmail-qread
25 Jun 1999 04:56:45 GMT  #72889  3667  [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
26 Jun 1999 23:15:50 GMT  #72869  7144  [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
28 Jun 1999 15:01:39 GMT  #72870  1140  [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
27 Jun 1999 18:01:40 GMT  #72871  3423  
remote  [EMAIL PROTECTED]
28 Jun 1999 15:03:15 GMT  #72872  1181  [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]



QMAIL-QSTAT OUTPUT

bash# /var/qmail/bin/qmail-qstat
messages in queue: 5
messages in queue but not yet preprocessed: 0



QMAIL-SHOWCTL OUTPUT

bash# /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 80, 81, 82, 0, 83, 84, 85, 86.
group ids: 80, 81.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is baby.internal.network.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is baby.internal.network.

defaulthost: (Default.) Default host name is baby.internal.network.

doublebouncehost: (Default.) 2B recipient host: baby.internal.network.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is baby.internal.network.

helohost: (Default.) SMTP client HELO host name is baby.internal.network.

idhost: (Default.) Message-ID host name is baby.internal.network.

localiphost: (Default.) Local IP address becomes baby.internal.network.

locals:
Messages for baby.internal.network are delivered locally.

me: My name is baby.internal.network.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is baby.internal.network.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at baby.internal.network.
SMTP clients may send messages to recipients at transitionelement.com.
SMTP clients may send messages to recipients at boilard.com.
SMTP clients may send messages to recipients at siteforyou.com.
SMTP clients may send messages to recipients at siteforher.com.
SMTP clients may send messages to recipients at siteforhim.com.
SMTP clients may send messages to recipients at baramerica.com.
SMTP clients may send messages to recipients at computerclassifieds.com.
SMTP clients may send messages to recipients at bwanazulia.com.
SMTP clients may send messages to recipients at queenswest.com.
SMTP clients may send messages to recipients at atwood.org.
SMTP clients may send messages to recipients at mahnke.net.
SMTP clients may send messages to recipients at tannic.com.
SMTP clients may send messages to recipients at marinucci.com.
SMTP clients may send messages to recipients at vbuddha.com.
SMTP clients may send messages to recipients at web-reports.net.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 baby.internal.network.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.



virtualdomains:
Virtual domain: transitionelement.com:transitionelement
Virtual domain: boilard.com:boilard
Virtual domain: siteforyou.com:siteforyou
Virtual domain: 

Re: onelist.com?

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999 13:33:09 -0400, Dave Kitabjian wrote:

Does anyone know if "onelist.com" uses Qmail/ezmlm?

They used to use ezmlm+ezmlm-idx, but seem to have since made their own
software (strongly ezmlm-influenced) that uses a database back-end.
Their system appears user centered whereas ezmlm is list centered. They
also acknowledge MySQL, so my guess is that they use a MySQL database
with a user table, a list table, and a table that links user-list.
This makes it easy to list all the lists you're a subscriber of when
you log in to their site (in contrast to std ezmlm where you'd have a
table per list).

They do appear to use essentially straight qmail.

[EMAIL PROTECTED]

A guess is that for errors-default they use ezmlm-weed pretty much as
is, then a hacked version of ezmlm-return. "joeuser=domain.com" is
standard VERP per DJB. "159" is the message number. "34435" is most
likely the record number of this list in the list table. With a
user-centered approach it becomes easiest to keep track of bounces per
user [as opposed to per list per user as for std ezmlm]. Probably, they
store bounces in the database rather than as 2 files as ezmlm does. I
don't know if they tell users about messages missed (as ezmlm) or just
unsubscribe them after a given number/density of bounces. The latter is
less "proper" but a lot less resource-using.

ezmlm uses listlocal-return- in place of "errors-". It does this since
it is mainly to allow different users on a system to create independent
lists. You'd need a .qmail link (or users/assign entry) per list, which
scales poorly for very many lists. Setting the return address as
onelist.com does allows the use of a single link, and of course they
[presumably] handle all the lists under a single "unix" user.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




Re: help with Child Crashing during delivery

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999 14:42:11 -0400, Peter Mahnke wrote:

930589844.541445 delivery 74: deferral: Aack,_child_crashed._(#4.3.0)/

This is the only line in your except that refers to delivery 74. Most
likely, you have a program delivery in the particular .qmail file and
that program crashes. If delivery 77 is a result of delivery 74, then
you probably have a program further down than "vdeliver" that crashes.
This causes redelivery to the .qmail file with redelivery to "vdeliver"
and your crashing program, etc, etc.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




Re: onelist.com?

1999-06-28 Thread Anonymous

Dave Kitabjian wrote:
 
 Does anyone know if "onelist.com" uses Qmail/ezmlm?
 
 We seem to get a lot of mail to our customers from "onelist.com" of the form:
 
 [EMAIL PROTECTED]
 
 Or do other mailing lists use the "joeuser=domain.com" syntax?
 
Yes, we use qmail. Everything else is custom written. VERPs are great
for bounce handling.

Cheers,


Mark
ONElist Team



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999, Russell Nelson wrote:

 Albert Hopkins writes:

  I've got qmail-pop3d piped to splogger, but I am not seeing any logins
  in my log files.  Does qmail-pop3d not support this?
 
 qmail-pop3d has nothing to say about what it does.  You could write a
 shell script wrapper around any one of qmail-popup, checkpassword, or
 qmail-pop3d.  For the latter, e.g.:
 
 #!/bin/sh
 NEW=`ls $1/new|wc -l`
 echo "$USER has $NEW new messages" 2
 exec /var/qmail/bin/qmail-pop3d $1

And where will you log?  I think you'll directly to stdout...

[root@zweiblumen /var/qmail/bin]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user julian7
+OK 
pass xxx
julian7 has   1 new messages
+OK 

By the way I don't think it's a HA solution but sounds good ;)
-- 
Regards: Kevin (Balazs)



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Balazs Nagy writes:
  And where will you log?  I think you'll directly to stdout...

If you're using inetd, sure.  Inetd is stupid, broken, and susceptible
to slow-motion denial of service attacks.  Don't use it.  Use
tcpserver instead.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999, Russell Nelson wrote:

 Balazs Nagy writes:
   And where will you log?  I think you'll directly to stdout...
 
 If you're using inetd, sure.  Inetd is stupid, broken, and susceptible
 to slow-motion denial of service attacks.  Don't use it.  Use
 tcpserver instead.

;) Iam using supervise/tcpserver.  AFAIK qmail-popup dup(2)s stdout to
stderr just before checkpassword (line 91), due to the stupidity of some
inetd implementations.
-- 
Regards: Kevin (Balazs)



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Balazs Nagy writes:
  On Mon, 28 Jun 1999, Russell Nelson wrote:
  
   Balazs Nagy writes:
 And where will you log?  I think you'll directly to stdout...
   
   If you're using inetd, sure.  Inetd is stupid, broken, and susceptible
   to slow-motion denial of service attacks.  Don't use it.  Use
   tcpserver instead.
  
  ;) Iam using supervise/tcpserver.  AFAIK qmail-popup dup(2)s stdout to
  stderr just before checkpassword (line 91), due to the stupidity of some
  inetd implementations.

Damn.  Could be.  Well, thanks for checking it.  :(

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



RE: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous


I got around this with a wrapper before and after checkpassword.. I call it
logpopauth-pre and logpopauth-post. It is written in perl and works quite
fine with both tcpserver and inetd.

The logpopauth-pre program sets up a filehandle to whatever you want to log
to, places the fd number in the environment, and execs checkpassword. Then
logpopauth-post runs right after checkpassword and prints the authentication
line out to fd identified in the environment, closes the fd, and then execs
qmail-pop3d.

This is a part of my POP before SMTP-replay package, smtp-poplock:

http://www.davideous.com/smtp-poplock/

Or just grab the two files you need:


http://www.davideous.com/smtp-poplock/distrib/smtp-poplock-2.01/logpopauth-p
re

http://www.davideous.com/smtp-poplock/distrib/smtp-poplock-2.01/logpopauth-p
ost

Note: you will have to slightly modify logpopauth-pre to not read
configuration from /etc/smtp-poplock.conf, but this should be a snap to do.

 - David Harris
   Principal Engineer, DRH Internet Services


-Original Message-
From:   Albert Hopkins [mailto:[EMAIL PROTECTED]]
Sent:   Monday, June 28, 1999 11:46 AM
To: Qmail Mailing List
Subject:does qmail-pop3d not record logins?


I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
my log files.  Does qmail-pop3d not support this?




--
Albert Hopkins
Sr. Systems Specialist
Dynacare, Inc
[EMAIL PROTECTED]



Re: Mbox to Maildir conversion issues

1999-06-28 Thread Anonymous


On 28 Jun 1999 17:55:16 -0400  [EMAIL PROTECTED]
wrote:

 Once you have both, the appropriate command is:
 
formail -I 'From ' -s safecat MAILDIR/tmp MAILDIR/new
 
 Note also that safecat can store anything you like in a Maildir. Some
 of DJB's tools, notably serialmail, assume that the messages were
 delivered by qmail; in particular they assume that "Return-Path" and
 "Delivered-To" are the first two headers in the message, in that
 order.

I wrote Yet Another program to deliver to maildirs.  It is more
specific to delivering email than safecat.

- temporary errors are reported with exit code 111 (if running under
  sendmail) or 75 otherwise for sendmail and its clones

- $RPLINE and $DTLINE are added, if present in the environment

  This just sounds strange; much in the way that Dan provides
  'forward' a maildir writer is useful from scripts sometimes.

- If $RPLINE is not present the first line of the input is
  examined and if it is a "From " line it is translated to
  a Return-Path line.

Available from:

  ftp://ftp.nemeton.com.au/pub/src/deliver-maildir.shar

Regards,

Giles





small stat bug in qmail-pop3d.c

1999-06-27 Thread Anonymous


Stat is only supposed to include un-marked-for-deletion messages for 
both the size and enumeration values, not just the size as qmail
is doing.


*** dist/qmail-1.03/qmail-pop3d.c   Mon Jun 15 03:53:16 1998
--- local/qmail-1.03/qmail-pop3d.c  Sun Jun 27 09:11:40 1999
***
*** 150,160 
  {
int i;
unsigned long total;
   
total = 0;
!   for (i = 0;i  numm;++i) if (!m[i].flagdeleted) total += m[i].size;
puts("+OK ");
!   put(strnum,fmt_uint(strnum,numm));
puts(" ");
put(strnum,fmt_ulong(strnum,total));
puts("\r\n");
--- 198,213 
  {
int i;
unsigned long total;
+   unsigned int count;
   
total = 0;
!   count = 0;
!   for (i = 0;i  numm;++i) if (!m[i].flagdeleted) {
! total += m[i].size;
! count += 1;
!   }
puts("+OK ");
!   put(strnum,fmt_uint(strnum,count));
puts(" ");
put(strnum,fmt_ulong(strnum,total));
puts("\r\n");



-- 
Aaron Nabil



Re: PTR issue / question

1999-06-26 Thread Anonymous

On Sat, 26 Jun 1999, Scott D. Yelich wrote:

 Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
gethostbyname(cobalt) failed
 Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
 
 dig -x output...
 ;; ANSWER SECTION:
 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
  
 Since I don't know... I'm asking... is that reverse pointer for that
 host wrong?  It can't be just cobalt. and/or there can't be two?

yes. it might be (on a private network using IP, but this isn't). 
there can only be one. 

RjL



Re: PTR issue / question

1999-06-26 Thread Anonymous



On Sat, 26 Jun 1999, Scott D. Yelich wrote:

 -BEGIN PGP SIGNED MESSAGE-
 
 
 
 Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
gethostbyname(cobalt) failed
 Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
 
 dig -x output...
 ;; ANSWER SECTION:
 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
 
 
 Since I don't know... I'm asking... is that reverse pointer for that
 host wrong?  It can't be just cobalt. and/or there can't be two?

Correct.  Well, there can be two, actually, and nobody will complain as
long as all PTRs are valid.  Here, one of them is broken, and that's what
tcp-env is complaining about.




Re: PTR issue / question

1999-06-26 Thread Anonymous

Richard Letts wrote:

 On Sat, 26 Jun 1999, Scott D. Yelich wrote:
 
  Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
gethostbyname(cobalt) failed
  Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
  
  dig -x output...
  ;; ANSWER SECTION:
  30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
  30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
   
  Since I don't know... I'm asking... is that reverse pointer for that
  host wrong?  It can't be just cobalt. and/or there can't be two?
 
 yes. it might be (on a private network using IP, but this isn't). 
 there can only be one. 

There CAN be more than one.  I've used as many as 7 PTR's on one IP before.
Maybe there's not _supposed_ _to_ be, but it _can_ be.  Maybe qmail won't
support more than one, but it can get more than one.  I did get all 7 PTRs
and the above example shows that the 2 records do come through.  So why
would BIND support it if it's not supposed to be?

-- 
Phil Howard | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  phil  | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  at| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  ipal  | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
 dot| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  net   | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]



Re: PTR issue / question

1999-06-26 Thread Anonymous



On Sat, 26 Jun 1999 [EMAIL PROTECTED] wrote:

 
 There CAN be more than one.  I've used as many as 7 PTR's on one IP before.
 Maybe there's not _supposed_ _to_ be, but it _can_ be.  Maybe qmail won't
 support more than one, but it can get more than one.  I did get all 7 PTRs
 and the above example shows that the 2 records do come through.  So why
 would BIND support it if it's not supposed to be?

But what use?
How do you receive it correctly?
A PTR record is used to get the name belonging to an ip address. This
means that if an address has more than one, than which do you receive it?

If it is given back randomly, then it is unreliable, for selectively
allowing access according to that.
If always the same one is given back, then you don't get the others, hence
no use...
If all is given back, then you always has to choose of them, and it just
don't feel right to me, anyway.

Robert Varga



Re: qmail-pop3d.init

1999-06-26 Thread Anonymous

 Second: what do you think would happen (in less than half of a second) if
 qmail-pop3d would be exceuted before qmail?

Third: Why do you think qmail-pop3d depends on qmail running? All it does
is pop messages from users' Maildirs. You can use it e.g. to give pop3
access to files placed into the Maildir by anyone/anything.

-Sincerely, Fred
Frederik Lindberg, Inf. Dis, WashU, St. Louis, MO



Re: PTR issue / question

1999-06-26 Thread Anonymous

-BEGIN PGP SIGNED MESSAGE-



On Sat, 26 Jun 1999 [EMAIL PROTECTED] wrote:
   Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
gethostbyname(cobalt) failed
   Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
   dig -x output...
   ;; ANSWER SECTION:
   30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
   30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
   Since I don't know... I'm asking... is that reverse pointer for that
   host wrong?  It can't be just cobalt. and/or there can't be two?
  yes. it might be (on a private network using IP, but this isn't). 
  there can only be one. 
 There CAN be more than one.  I've used as many as 7 PTR's on one IP before.
 Maybe there's not _supposed_ _to_ be, but it _can_ be.  Maybe qmail won't
 support more than one, but it can get more than one.  I did get all 7 PTRs
 and the above example shows that the 2 records do come through.  So why
 would BIND support it if it's not supposed to be?


Well, I don't want to get into a pissing contest -- but I hate to make
hacks on software (ie: qmail/tcp-env) to allow a special case to work. 
I'm going to wait and continue to investigate if this is a tcp-env snafu
or a loose bind implementation, etc.

Scott



-BEGIN PGP SIGNATURE-
Version: 2.6.2

iQCVAwUBN3VboB4PLs9vCOqdAQGUIwQAymeOxvWLEEx8HrVxw9tAvROmn7gwC8Eu
5ZSvpD9JeTQyjIoFP6WD00hjienJy323PFoPVd1mEdPMg5iXVpOYI1O7tkTIE57g
TsKH/ct2vmn/oY7KLgtfZafd0BpPzDpke9rfeYrKTkvaD7Lqw2xWaFnFVIeFjN9u
lU8DVhXZHys=
=o0sd
-END PGP SIGNATURE-



Getting mail for several domains

1999-06-25 Thread Anonymous

Hi,

I have a setup where i provide Internet email service to my customers.
I have a mail server in the US which receives all the amil for
domain1.com and domain2.com.
At this point i was just extracting the mail from these servers using
simple POP3 and distributing it to the users.
Now i would like to do this on Qmail. I need to Extract mail from the
POP3 server in the US and get the mail to my server . I need to extract
mail from different domains fron the POP3 server and get it to the same
machine but in different virtual domains.
The idea was to extract mail from the US and get it to my server.
Now if i set forwarding on the US server to my server... WHERE will the
mail go Suppose the mail bound to [EMAIL PROTECTED] gets forwarded to my
server , will it sit in the mail box of  User1 in the virtual domain
"domain1". This is because there might be different virtual domains with
the same name user User1 .
Will the mail when forwarded come to its specific location in the
virtual domain .
If not, what is the setting that i can use to get this done.
Also is there a way that i can get these mails without the forwarding
concept. Can i retreive these mails using POP3 retreival.
Please advise.
Thanks In anticipation
Amit



QMAIL / Exchange Server / DNS / Firewall

1999-06-25 Thread Anonymous
Title: QMAIL / Exchange Server / DNS / Firewall





Hello,


I need some help about qmail and firewall.




I want to set our exchange behind the firewall (ipchains with private ip's).
qmail is installed at the firewall computer and shall get the emails from our isp and forward it to our exchange server and vice versa.

how do i have to configure our dns (bind) qmail and exchange to do that?




thanks in advance


achim 





qmail Digest 25 Jun 1999 10:00:01 -0000 Issue 682

1999-06-25 Thread Anonymous


qmail Digest 25 Jun 1999 10:00:01 - Issue 682

Topics (messages 27116 through 27165):

kill mail from remote user
27116 by: olli [EMAIL PROTECTED]
27119 by: Anand Buddhdev [EMAIL PROTECTED]
27123 by: Russell Nelson [EMAIL PROTECTED]
27125 by: Dave Sill [EMAIL PROTECTED]
27127 by: "Timothy L. Mayo" [EMAIL PROTECTED]

Mail sort without using procmail
27117 by: Chris Bond [EMAIL PROTECTED]
27118 by: Vince Vielhaber [EMAIL PROTECTED]
27132 by: Ray Marshall [EMAIL PROTECTED]
27133 by: Vince Vielhaber [EMAIL PROTECTED]
27142 by: Russell Nelson [EMAIL PROTECTED]
27143 by: Ray Marshall [EMAIL PROTECTED]
27148 by: Russell Nelson [EMAIL PROTECTED]

Pine Maildir Patch
27120 by: "Alex Miller" [EMAIL PROTECTED]

Mutt and Maildir
27121 by: "Alex Miller" [EMAIL PROTECTED]
27124 by: Mikko Hänninen [EMAIL PROTECTED]

Almost there.. thanks.  Need some more help
27122 by: [EMAIL PROTECTED]

What is *really* going on?
27126 by: "Mark E. Drummond" [EMAIL PROTECTED]

Implementation of Virtual Domains
27128 by: Dave Sill [EMAIL PROTECTED]
27130 by: "Fred Lindberg" [EMAIL PROTECTED]

running pop3d with a custom passwd backend
27129 by: Kiril Mitev [EMAIL PROTECTED]

Virtual Domains.
27131 by: Dave Sill [EMAIL PROTECTED]

DNS/CNAME failure...
27134 by: Murray Walker [EMAIL PROTECTED]
27135 by: [EMAIL PROTECTED]

qmail-pop3d.init errors
27136 by: Mate Wierdl [EMAIL PROTECTED]
27144 by: "Alex Miller" [EMAIL PROTECTED]
27145 by: Chris Johnson [EMAIL PROTECTED]
27146 by: Dave Sill [EMAIL PROTECTED]

remove all mail for a domain
27137 by: Van Liedekerke Franky [EMAIL PROTECTED]
27138 by: [EMAIL PROTECTED]
27139 by: Van Liedekerke Franky [EMAIL PROTECTED]
27140 by: "Petr Novotny" [EMAIL PROTECTED]
27141 by: Stefan Paletta [EMAIL PROTECTED]
27147 by: Van Liedekerke Franky [EMAIL PROTECTED]

Thanks!!
27149 by: "Alex Miller" [EMAIL PROTECTED]

unsent mail in the queue
27150 by: Ray Marshall [EMAIL PROTECTED]
27151 by: "Petr Novotny" [EMAIL PROTECTED]
27152 by: Ray Marshall [EMAIL PROTECTED]
27153 by: Ray Marshall [EMAIL PROTECTED]
27154 by: "Timothy L. Mayo" [EMAIL PROTECTED]
27159 by: Harald Hanche-Olsen [EMAIL PROTECTED]
27160 by: "Timothy L. Mayo" [EMAIL PROTECTED]

failure notice
27155 by: Dave Sill [EMAIL PROTECTED]

qmail-local
27156 by: Dave Sill [EMAIL PROTECTED]
27158 by: Marcel Dan [EMAIL PROTECTED]

purging spam - here's what's working for me
27157 by: Dave Kitabjian [EMAIL PROTECTED]

Secondary MX Delivery Problems (Returns)
27161 by: "Karl Lellman" [EMAIL PROTECTED]
27162 by: Richard Letts [EMAIL PROTECTED]

Mail sort without using procmail,
27163 by: Ray Marshall [EMAIL PROTECTED]

Getting mail for several domains
27164 by: Amit Vadehra [EMAIL PROTECTED]

QMAIL / Exchange Server / DNS / Firewall
27165 by: Achim Gosse [EMAIL PROTECTED]

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To bug my human owner, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



On Thu, 24 Jun 1999, Anand Buddhdev wrote:

Ok,thank you both. BTW: what error message will see banned person? 
 man what? I should read if I wanna specify this message (if it
possble to have separate error reply to such people)?

 On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:
 control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
 to HUP qmail-send.
  this should be ok!
  do not forget to send a -HUP to qmail-send after editing the badmailfrom
  file!
  jodok
   Von:  olli [SMTP:[EMAIL PROTECTED]]
   Gesendet am:  Donnerstag, 24. Juni 1999 17:43
   Hi.
   We all at our office were tired of one person emailing us.. After a
   quick
   look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
   it
   enough to stop receiving mails from this guy , or I mess somth.? Any
   better solutions?
   Bye.Olli.


Bye.Olli.





On Thu, Jun 24, 1999 at 02:42:44PM -0300, olli wrote:

 On Thu, 24 Jun 1999, Anand Buddhdev wrote:
 
 Ok,thank you both. BTW: what error message will see banned person? 
  man what? I should read if I wanna specify this message (if it
 possble to have separate error reply to such people)?

The sender will be told:

553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)

This response is built into qmail-smtpd. If you want to change it, you have
to edit qmail-smtpd.c and recompile. However, you cannot customise it on a
per-user basis.

  On Thu, Jun 24, 1999 at 10:45:04AM +0200, 

Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Where is a copy of mesg822 this qmail-get on the mailing list returns something 
about virtuals!

What is the easiest way to do the following:

Any mail from [EMAIL PROTECTED] is fed to $USER/Qmail
Any mail from [EMAIL PROTECTED] is fed to $USER/Imp
etc

Any mail that doesn't meet these rules deliver to $USER/Maildir

Surely you can do this without feeding it to an external program i'm sure qmail 
can!

All mailing lists are subscribed as the main address ie. [EMAIL PROTECTED] for 
ease of maintence, I used to use [EMAIL PROTECTED] but it became a plain 
to maintain as some mailing lists would not let me post to them (I handled it 
via a .qmail-alias or whatever that had one line with the maildir to deliver 
to).

Cheers,
Chris
--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



QMAIL / Exchange Server / DNS / Firewall

1999-06-25 Thread Anonymous

hi,
we are using qmail and exchange for a year now, qmail works perfectly,
exchange you can forget...

ok
let's say:
linux internet ip=3D 195.195.195.195 (official ip address)
linux intranet ip=3D10.1.1.1
exc intranet ip=3D10.1.1.2


* make sure you have a MX record for your domain pointing to your linux
machine. let's say domain.com
  something like domain.com IN MX 10 195.195.195.195 (of course user
your machine name instead of ip numbers)

* add domain.com into control/rcpthosts

* add the lines
domain.com:[10.1.1.2]
:smtp.your.provider

   the first lines tell qmail to forward all mail for domain.com to exc
(of course internet mail connector must be running there!)
   the second lines tell qmail to deliver all mail to your provider
(smart relay host). if you have permanent internet connection you can=20
   delete this line!

that's it!

jodok



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

On 25 Jun 1999, Chris Bond wrote:

 Where is a copy of mesg822 this qmail-get on the mailing list returns something 
 about virtuals!
 
 What is the easiest way to do the following:
 
 Any mail from [EMAIL PROTECTED] is fed to $USER/Qmail
 Any mail from [EMAIL PROTECTED] is fed to $USER/Imp
 etc
 
 Any mail that doesn't meet these rules deliver to $USER/Maildir

Taken from one of Russ' previous replies on this same subject:


|if echo $SENDER | grep internic; then forward other-email-box
./Mailbox


Add the rules you'd like and change the last line to handle your
maildir delivery.  Take note, tho, $SENDER is the envelope sender 
address, not the From: address.  To get the From: address you'll 
need to use mess822 which is available on koobera.

Vince.
-- 
==
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
   # include std/disclaimers.h   TEAM-OS2
Online Campground Directoryhttp://www.camping-usa.com
   Online Giftshop Superstorehttp://www.cloudninegifts.com
==





Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Quoting Vince Vielhaber [EMAIL PROTECTED]:

 |if echo $SENDER | grep internic; then forward other-email-box
 ./Mailbox

Tried this and got the following:

Jun 25 14:00:43 trigger qmail: 930315643.589098 delivery 262: 
deferral: /bin/sh:_-c:_line_2:_syntax_error:_unexpected_end_of_file/

Regards,
Chris
--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Chris Bond writes:
  Quoting Vince Vielhaber [EMAIL PROTECTED]:
  
   |if echo $SENDER | grep internic; then forward other-email-box
   ./Mailbox
  
  Tried this and got the following:
  
  Jun 25 14:00:43 trigger qmail: 930315643.589098 delivery 262: 
  deferral: /bin/sh:_-c:_line_2:_syntax_error:_unexpected_end_of_file/

Try this:

|if echo $SENDER | grep internic; then forward other-email-box; fi
./Mailbox

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Quoting Russell Nelson [EMAIL PROTECTED]:

 |if echo $SENDER | grep internic; then forward other-email-box; fi
 ./Mailbox

Nearly there now, i've got the following:

.qmail
|if echo $SENDER | grep "[EMAIL PROTECTED]"; then forward chris-
[EMAIL PROTECTED] ;fi

.qmail-testdir
./Testdir/

.qmail-default
./Maildir/

Basically I don't include ./Maildir/ after the if statement on a new line 
because otherwise i get to copies of the mail.  Basically now any other mail 
apart from the ones in the if statements does not route the mail that does't 
match the critieria to the correct .qmail-default maildir!

I'm doing this on a test account so i can play i haven't done it on my main 
logics.co.uk virtual as i don't wanna loose mail!

Cheers,
Chris
--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



qmail-pop3d.init

1999-06-25 Thread Anonymous

I just saw you message about the qmail-pop3d.init script.  You wrote:

--
To summarize the rpm installs symbolic links to the qmail-pop3d.init
script in the rc.d subdirectories. However it gives them numbers lower
than the qmail.init script. This means that the pop3d script executes
before the rest of qmail. Since it depends on other parts of the qmail
system it fails.
--

First: the rpm does (you need to use chkconfig to set up qmail-pop3d)

lrwxrwxrwx   1 root root   20 May  4 11:59 S80qmail.init - 
../init.d/qmail.init
lrwxrwxrwx   1 root root   26 Jun 25 09:44 S83qmail-pop3d.init - 
../init.d/qmail-pop3d.init

Second: what do you think would happen (in less than half of a second) if
qmail-pop3d would be exceuted before qmail?

Mate
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



Re: qmail-pop3d.init errors

1999-06-25 Thread Anonymous

Alex's qmail-pop3d does listen to port 110.  It is accesible from his
local network, but not from the "outside".

His HOST in qmail-pop3d.init is 

HOST=$($QMAILHOME/bin/dnsfq $($QMAILHOME/bin/hostname))   

which gives r84aap011904.sbo-nwt.ma.cable.rcn.com.


Mate



CNAME Patch Didn't Stop the Problem

1999-06-25 Thread Anonymous

HELP!  We have just finished cutting over to an new Ultra 1 Server Running Solaris 2.7 
and Qmail 1.03.  
Everything appeared to be fine until we had run for about a day.  E-mail just started 
building up in the qmail queue, with none getting in or out.  
I have checked syslog and continue to see the following error whenever the problem 
occurs:

CNAME_lookup_failed_temporarily
Usually these are AOL addresses but I get it on several others too.

Yes, I have seen the blurb on the qmail.org website which lists this problem and a 
patch to fix it, the only problem is that we have install the 1.03 patch and we are 
still having the same problem.  Another thing which seems different that what everyone 
else is reporting on this issue is that  this problem stops all email until I reboot 
the server, sometimes it takes two reboots.  It anyone has any ideas or suggestions I 
would  greatly appreciate your help.  Thanks, Matt Morton
[EMAIL PROTECTED]



Re: running pop3d with a custom passwd backend

1999-06-24 Thread Anonymous

On Wed, Jun 23, 1999 at 07:46:59PM +0100, Kiril Mitev wrote:

Since we don't know what your code looks like, this is just a wild guess:
In your own auth program, do you have code to do a chdir to the directory
containing the Maildir? qmail-pop3d starts by checking for the presence of
a Maildir, and then tries to chdir into it, using a relative path. If these
2 calls fail, it dies complains that the user has no Maildir.

 Dear All
 
 here is the problem:
 i have setup a virtual host delivery system as per
 Paul Greg's instructions :-)
 
 
 he uses a checkpoppasswd program to read a 'custom' password
 file and do the authentication. i need to do something very similar
 but use my own authentication backend.
 
 it all *almost* works, but only "almost". i compared the preliminary setup
 done by checkpoppasswd and my checkpop.pl and they both seem to 
 be supplying an identical environment to qmail-pop3d.
 
 however, when i use my password checker, qmail-pop3d complains
 that the user 'does not have a /Maildir/', the famous
 -ERR this user has no $HOME/Maildir
 error
 
 to double-check, this is what i have done. i changed checkpassword
 to execvp() a small script that dumps the environment around it
 back to the network connection. i changed my program to do 
 the same, and compared the two. looks identical!
 the environment dumper then exec's qmail-pop3d
 
 please help/suggest/whatever if you can...
 
 
 here is the TELNET session of a connection made using Paul Greg's setup:
 
 # telnet 0 pop3
 Trying 0.0.0.0...
 Connected to 0.
 Escape character is '^]'.
 +OK [EMAIL PROTECTED]
 user tester
 +OK
 pass testpw
 checkpoppass about to exec! this is output by checkpoppasswd
 from here onwards 
output is by showenv 
 SHOWENV: BLOCKSIZE=[K]
 SHOWENV: HOME=[/var/qmail/popboxes/ideaglobal-com/tester]
 SHOWENV: MAIL=[/var/mail/root]
 SHOWENV: PATH=[/root/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin]
 SHOWENV: SHELL=[/sbin/nologin]
 SHOWENV: TERM=[su]
 SHOWENV: USER=[popuser]
 SHOWENV: 
inetd_dummy=[xxx]
 SHOWENV:
 SHOWENV: uids are 888 and 888
 SHOWENV: ARGV = /var/qmail/bin/qmail-pop3d Maildir
 SHOWENV: -
 
 showenv is done 
 +OK
 quit
 +OK
 those 3 lines are 
output by qmail-pop3d 
 at this point i 
could use LIST and RETR 
 and it works 
 Connection closed by foreign host.
message courtesy of 
/usr/bin/telnet 
 
  And here is the session of a connection made to my passwd program
 
 # telnet 0 pop3  
 Trying 0.0.0.0...
 Connected to 0.
 Escape character is '^]'.
 +OK [EMAIL PROTECTED]
 user tester
 +OK
 pass tester
  showenv starts 
 SHOWENV: HOME=[/var/qmail/popboxes/ideaglobal-com/tester]
 SHOWENV: SHELL=[/sbin/nologin]
 SHOWENV: USER=[popuser]
 SHOWENV:
 SHOWENV: uids are 888 and 888
 SHOWENV: ARGV = /var/qmail/bin/qmail-pop3d Maildir
 SHOWENV: -
  showenv ends 
 -ERR this user has no $HOME/Maildir
-ERR comes from qmail-pop3d 
 Connection closed by foreign host.
message courtesy of 
/usr/bin/telnet 
 
 
 = = = = = = 
 
 as you can see, the environment variables HOME/USER/SHELL are identical
 in both cases, the real and effective uids are set to 888 in both cases
 and the ARGV line which is used to exec() qmail-pop3d is identical
 
 
 what the hell am i doing wrong 
 
 Kiril

-- 
System Administrator
See complete headers for address, homepage and phone numbers



Re: uucp

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 09:00:23AM +1000, Kevin Waterson wrote:

FAQ #2.3 for outgoing uucp. Look at www.qmail.org for incoming uucp.

 Can qmail handle uucp?
 How is this acheved?

-- 
System Administrator
See complete headers for address, homepage and phone numbers



kill mail from remote user

1999-06-24 Thread Anonymous

Hi.

We all at our office were tired of one person emailing us.. After a quick
look in FAQ I added his email to /var/qmail/control/badmailfrom . Is it
enough to stop receiving mails from this guy , or I mess somth.? Any
better solutions?

Bye.Olli.



AW: kill mail from remote user

1999-06-24 Thread Anonymous

this should be ok!
do not forget to send a -HUP to qmail-send after editing the badmailfrom
file!

jodok


 -Ursprüngliche Nachricht-
 Von:  olli [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Donnerstag, 24. Juni 1999 17:43
 An:   [EMAIL PROTECTED]
 Betreff:  kill mail from remote user
 
 Hi.
 
 We all at our office were tired of one person emailing us.. After a
 quick
 look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
 it
 enough to stop receiving mails from this guy , or I mess somth.? Any
 better solutions?
 
 Bye.Olli.



Re: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:

control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
to HUP qmail-send.

 this should be ok!
 do not forget to send a -HUP to qmail-send after editing the badmailfrom
 file!
 
 jodok
 
 
  -Ursprüngliche Nachricht-
  Von:olli [SMTP:[EMAIL PROTECTED]]
  Gesendet am:Donnerstag, 24. Juni 1999 17:43
  An: [EMAIL PROTECTED]
  Betreff:kill mail from remote user
  
  Hi.
  
  We all at our office were tired of one person emailing us.. After a
  quick
  look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
  it
  enough to stop receiving mails from this guy , or I mess somth.? Any
  better solutions?
  
  Bye.Olli.

-- 
Anand



Re: Qmail's queue directory Linux

1999-06-24 Thread Anonymous


-Original Message-
From: Petri Kaukasoina [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Wednesday, June 23, 1999 6:24 PM
Subject: Re: Qmail's queue directory  Linux


On Wed, Jun 23, 1999 at 10:48:39AM +0300, Petri Kaukasoina wrote:


I got home and tried it myself. To my surprise, the "chattr +S" trick did
work. If testdir had the "S" attribute, testfile was in testdir after
reboot
but if the directory didn't have the attribute, fsck put the file in
lost+found. It worked in Linux versions 2.0.37 and 2.2.10. Either something
has changed in the kernel since I tried it last time or I did some mistake
then.

So, it seems that it's enough to
chattr +S
/var/qmail/queue/{bounce,info/*,intd,local/*,mess/*,remote/*,todo}
and the same for the new and cur subdirectories in every maildir.

Ah, that's a relief. It saves me from having to rearrange my partitions.

Thanks for checking...

Regards,
Peter van der Landen




Re: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Anand Buddhdev wrote:

Ok,thank you both. BTW: what error message will see banned person? 
 man what? I should read if I wanna specify this message (if it
possble to have separate error reply to such people)?

 On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:
 control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
 to HUP qmail-send.
  this should be ok!
  do not forget to send a -HUP to qmail-send after editing the badmailfrom
  file!
  jodok
   Von:  olli [SMTP:[EMAIL PROTECTED]]
   Gesendet am:  Donnerstag, 24. Juni 1999 17:43
   Hi.
   We all at our office were tired of one person emailing us.. After a
   quick
   look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
   it
   enough to stop receiving mails from this guy , or I mess somth.? Any
   better solutions?
   Bye.Olli.


Bye.Olli.



Mail sort without using procmail

1999-06-24 Thread Anonymous

Hi,

Does anybody know a decent program/script that can be called from .qmail to 
move messages according to to, cc, bcc, subject, etc into a certain Maildir?

I don't want to use procmail!

Cheers,
Chris

--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On 24 Jun 1999, Chris Bond wrote:

 Hi,
 
 Does anybody know a decent program/script that can be called from .qmail to 
 move messages according to to, cc, bcc, subject, etc into a certain Maildir?
 
 I don't want to use procmail!

Look at Dan's mess822.

Vince.
-- 
==
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
   # include std/disclaimers.h   TEAM-OS2
Online Campground Directoryhttp://www.camping-usa.com
   Online Giftshop Superstorehttp://www.cloudninegifts.com
==





Re: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 02:42:44PM -0300, olli wrote:

 On Thu, 24 Jun 1999, Anand Buddhdev wrote:
 
 Ok,thank you both. BTW: what error message will see banned person? 
  man what? I should read if I wanna specify this message (if it
 possble to have separate error reply to such people)?

The sender will be told:

553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)

This response is built into qmail-smtpd. If you want to change it, you have
to edit qmail-smtpd.c and recompile. However, you cannot customise it on a
per-user basis.

  On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:
  control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
  to HUP qmail-send.

-- 
Anand



Pine Maildir Patch

1999-06-24 Thread Anonymous

I am using the Pine Maildir patch that came with the Memphis distribution.
It is a patch of pine-3.96-9maildir

It seems to only partially support Maildirs. That is upon starting it for
any user that has a Maildir, it will happily recognize the Maildir as Inbox
but it will also create a Mail directory and in that directory create the
files saved-messages and sent-mail.

Is there a version of pine that is patched so that saved-messages,
sent-mail, and other "folders" not be in one big file (which is why mbox is
bad) but in a directory.

Alex Miller



Mutt and Maildir

1999-06-24 Thread Anonymous

I am using Mutt and have set my environment variables globally to use
Maildirs. In my /etc/bashrc file I put in the following lines:

MAIL=~/Maildir
export MAIL

This way every user will use Maildirs when they use Mutt. But when I quit
out of Mutt, it always asks the question "Move read messages to
/web/alex/mbox?: [n]"

One of the reasons I like Maildirs is that potentially I can write my own
programs to do interesting things with my mail. For example, I could write a
nice php/postgresql interface for organizine mail into cloned folders, that
is categorize them into folders without physically altering them, simply
listing the file id in a different postgres table.

Since every mail file is a separate file I don't have to worry about some
proprietary mailbox format. Just having my incoming mail separated into
unique files is insufficient. I'd like this for my read mail, etc.

Any idea if Mutt is actually doing something with this command? Is it just a
spurious leftover that is now meaningless?

Alex Miller



Re: Almost there.. thanks. Need some more help

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Sienna wrote:

 mail/mail notification is not working 
 
 Thank you for your replies to the other questions which worked but now
 having trouble getting the above thing to work.
 
 Now I can receive mail but when I type "mail", It shows I have no mail in
 my inbox.  However; if I go to the new mail under maildir I can see the
 mail.  Also, the log file shows the delivery of the mail. 

As others have noted, mail doesn't do maildirs.  However, qmail does come
with some small wrapper scripts to update a mbox from a maildir and run
your favourite mail program.  There are qail, pinq and elq, which run mail
pine and elm, respectively.

 Any suggestions?  Thanks again.
 
 Sienna
 
 
 
 

-- 
"Life is much too important to be taken seriously."
Thomas Erskine[EMAIL PROTECTED](613) 998-2836



Re: AW: kill mail from remote user

1999-06-24 Thread Anonymous

[EMAIL PROTECTED] writes:
  this should be ok!
  do not forget to send a -HUP to qmail-send after editing the badmailfrom
  file!

Not necessary.  badmailfrom is ready every time by qmail-smtpd.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: Mutt and Maildir

1999-06-24 Thread Anonymous

Alex Miller [EMAIL PROTECTED] wrote on Thu, 24 Jun 1999:
 This way every user will use Maildirs when they use Mutt. But when I quit
 out of Mutt, it always asks the question "Move read messages to
 /web/alex/mbox?: [n]"

You can change this behaviour with the $move quadoption in your .muttrc
(or /etc/Muttrc), eg. "set move=no".

 Any idea if Mutt is actually doing something with this command? Is it just a
 spurious leftover that is now meaningless?

I'm not sure I understand your question, but Mutt's question is there for
a purpose.  Mutt has functionality to move read messages from your inbox
into another mail folder, specified by the $mbox setting.  Whether you
want this to happen or not is up to you.


These questions are probably more appropriate to the Mutt list,
[EMAIL PROTECTED], subscription info available by sending a mail to
[EMAIL PROTECTED]

-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Today's subliminal message is " "



Re: kill mail from remote user

1999-06-24 Thread Anonymous

olli [EMAIL PROTECTED] wrote:

We all at our office were tired of one person emailing us.. After a quick
look in FAQ I added his email to /var/qmail/control/badmailfrom . Is it
enough to stop receiving mails from this guy , or I mess somth.? Any
better solutions?

That should be OK, but if he's persistent enough, he can get around it 
by sending as a different user.

-Dave



Re: What is *really* going on?

1999-06-24 Thread Anonymous

gene Campbell wrote:
 
   Question:  How important is it to understand all the details with regard
 to installation and starting up?  And, if you think it is important, what
 resources should I get ahold of to fast track the learning process?

I'd say very important. I've been using qmail on my external mail
gateway for a few months now. I convinced my boss that, while we were
setting our new external box, qmail was a much better solution that
sendmail. He let me go with it.

Since then, I have reached of point of "comfort" with qmail but I still
have a lot of work to do. I am still in a position, I think, that if
Something Bad Happened (tm) I'd be in a world of hurt, at least for a
little while.

Read the docs, man pages, READMEs, HOWTOs ... then read them again. It
might help you to install it on another system. I run qmail on my
workstation so I can play with the system w/o fear of breaking stuff.

-- 
___
Mark E DrummondRoyal Military College of Canada
[EMAIL PROTECTED]Computing Services
Linux Uber Allesperl || die

   ...there are two types of command interfaces in the world of
computing: good interfaces and user interfaces.
   - Dan Bernstein, Author of qmail

PGP Fingerprint = 503D A72D AF41 2AD1 D433 C514 98D9 9A39 B25A 2405



Re: AW: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999 [EMAIL PROTECTED] wrote:

 this should be ok!
 do not forget to send a -HUP to qmail-send after editing the badmailfrom
 file!
 
 jodok

NO.  badmailfrom is read by qmail-smtpd which is run for each SMTP
session.  There is absolutely NO reason to HUP qmail-send.  qmail-send
NEVER reads badmailfrom.  man qmail-control to see which process uses
which control file.

Adding the name to badmailfrom is sufficient to block mail from this user
as long as he doesn't change his address in his mail program.

 
 
  -Ursprüngliche Nachricht-
  Von:olli [SMTP:[EMAIL PROTECTED]]
  Gesendet am:Donnerstag, 24. Juni 1999 17:43
  An: [EMAIL PROTECTED]
  Betreff:kill mail from remote user
  
  Hi.
  
  We all at our office were tired of one person emailing us.. After a
  quick
  look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
  it
  enough to stop receiving mails from this guy , or I mess somth.? Any
  better solutions?
  
  Bye.Olli.
 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.  http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810- Phone
(412) 810-8886 Fax



RE: Implementation of Virtual Domains

1999-06-24 Thread Anonymous

"Alex Miller" [EMAIL PROTECTED] wrote:

Can QMail be configured to use both approaches, the single-uid virtual
domain approach and the many UID - independent user approach?

Sure. The single-uid method is the way simple qmail virtual domains
work. If you want multiple UID's/domain, you can use qmail-users to
direct specific addresses to various users.

See also:

http://Web.InfoAve.Net/~dsill/lwq.html#virtual-domains
http://Web.InfoAve.Net/~dsill/lwq.html#qmail-users

-Dave



Re: running pop3d with a custom passwd backend

1999-06-24 Thread Anonymous

 
 On Wed, Jun 23, 1999 at 07:46:59PM +0100, Kiril Mitev wrote:
 
 Since we don't know what your code looks like, this is just a wild guess:
 In your own auth program, do you have code to do a chdir to the directory
 containing the Maildir? qmail-pop3d starts by checking for the presence of
 a Maildir, and then tries to chdir into it, using a relative path. If these
 2 calls fail, it dies complains that the user has no Maildir.

Thanks, that was it.

slap me forehead

For the record:

keywords :-)
If you want to setup qmail-popup / qmail-pop3d / POP3 with qmail
with your own password-processing scheme, WHICH IS BASED on Paul
Greg's 'setting up a virtual domain/host' instructions, 
/keywords

1. read the qmail-popup man page carefully
2. in your password checker, read the username/passsword/cookie data
from file descriptor 3. (sample PERL code at end of mail)
3. make sure you have set the following:

ENVIRONMENT:
- HOME set to the fake 'user' home dir from /var/qmail/users/poppasswd
or what have you
- USER set to the REAL username that owns that HOME dir, normally
'popuser', if you have implemented PG's work verbatim. Ideally, this
should be read from /etc/passwd, but can be hardcoded grin
Also available from PG's /var/qmail/users/poppasswd
- SHELL set to a system-recognisable non-shell. on FreeBSD this is
'/sbin/nologin', also obtainable either from /etc/passwd or hardcoded

UID:
- both the uid and euid must be set to the REAL mail owner's uid. Again
if you are coming from PG's setup, this would be 888. obtainable from
either /etc/passwd or /var/qmail/users/poppassword or whatever

4. do a chdir() to the 'fake' home dir (i.e. the value of HOME that you
have just setup).

=
some Perl code snippets, useful under the assumption that you have
followed PG's instructions, and replaced /var/qmail/bin/checkpoppasswd
with your password checker in /etc/inetd.conf

I do not claim that this the optimal, or even decent code. It works, though.
Error checking is left as an exercise to the reader :-)


== reading from FD 3 ==
use IO::Handle;
my $fh = new_from_fd IO::Handle ( 3, "r" );
$fh-input_record_separator ( "\0" );
my $user = $fh-getline;
my $pass = $fh-getline;
my $time = $fh-getline;

# OR, skip input_record_separator(), slurp it in in one swell foop
# and use split()


== preparing and exec()-ing qmail-pop3d

undef ( %ENV );
$ENV{USER}=$popuser; # see note about environment above
$ENV{HOME}=$pwhome;  # ditto
$ENV{SHELL}='/sbin/nologin'; # hardcoded is easy :-)
$ = $ = $pwuid;# see UID note above;
unless ( chdir ( $pwhome ) ){
print LOG "no home dir $pwhome !!!\n"; 
# ONLY ASSUMING YOU HAVE A LOG FILE OPENED SOMEWHERE
exit 1; 
# this will make qmail-popup send an error and exit
}
unless ( exec ( @ARGV ) )   {
print LOG "EXEC failed for $ARGV[0] !!!\n"; 
# ONLY ASSUMING YOU HAVE A LOG FILE OPENED SOMEWHERE
exit 1; 
# this will make qmail-popup send an error and exit
}
  
===
 
  Dear All
  
  here is the problem:
  i have setup a virtual host delivery system as per
  Paul Greg's instructions :-)
  
  
  he uses a checkpoppasswd program to read a 'custom' password
  file and do the authentication. i need to do something very similar
  but use my own authentication backend.
  
  it all *almost* works, but only "almost". i compared the preliminary setup
  done by checkpoppasswd and my checkpop.pl and they both seem to 
  be supplying an identical environment to qmail-pop3d.
  
  however, when i use my password checker, qmail-pop3d complains
  that the user 'does not have a /Maildir/', the famous
  -ERR this user has no $HOME/Maildir
  error
  
  to double-check, this is what i have done. i changed checkpassword
  to execvp() a small script that dumps the environment around it
  back to the network connection. i changed my program to do 
  the same, and compared the two. looks identical!
  the environment dumper then exec's qmail-pop3d
  
  please help/suggest/whatever if you can...
  
  
  here is the TELNET session of a connection made using Paul Greg's setup:
  
  # telnet 0 pop3
  Trying 0.0.0.0...
  Connected to 0.
  Escape character is '^]'.
  +OK [EMAIL PROTECTED]
  user tester
  +OK
  pass testpw
  checkpoppass about to exec! this is output by checkpoppasswd
from here onwards 
output is by showenv 
  SHOWENV: BLOCKSIZE=[K]
  SHOWENV: HOME=[/var/qmail/popboxes/ideaglobal-com/tester]
  SHOWENV: MAIL=[/var/mail/root]
  SHOWENV: PATH=[/root/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin]
  SHOWENV: SHELL=[/sbin/nologin]
  SHOWENV: TERM=[su]
  SHOWENV: USER=[popuser]
  SHOWENV: 
inetd_dummy=[xxx]
  SHOWENV:
  

RE: Implementation of Virtual Domains

1999-06-24 Thread Anonymous

On Wed, 23 Jun 1999 22:59:06 -0400, Alex Miller wrote:

Can QMail be configured to use both approaches, the single-uid virtual
domain approach and the many UID - independent user approach?

users/assign controls the "right" to handle address extensions.

-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On 24 Jun 1999, Chris wrote:


 Does anybody know a decent program/script that can be called from .qmail
 to move messages according to to, cc, bcc, subject, etc into a certain
 Maildir?

 I don't want to use procmail!

I believe that there's a way to do this with ~/.qmail , but I can't
remember what the technique is.

/  Ray
+
Ray Marshall [EMAIL PROTECTED]| Unconditional Forgiveness  Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Ray Marshall wrote:

 On 24 Jun 1999, Chris wrote:
 
 
  Does anybody know a decent program/script that can be called from .qmail
  to move messages according to to, cc, bcc, subject, etc into a certain
  Maildir?
 
  I don't want to use procmail!
 
 I believe that there's a way to do this with ~/.qmail , but I can't
 remember what the technique is.

Two ways that I can think of, mess822 and MrSam's maildrop.

Vince.
-- 
==
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
   # include std/disclaimers.h   TEAM-OS2
Online Campground Directoryhttp://www.camping-usa.com
   Online Giftshop Superstorehttp://www.cloudninegifts.com
==





DNS/CNAME failure...

1999-06-24 Thread Anonymous

Hi all,

Another CNAME query. Mail to [EMAIL PROTECTED] fails from qmail sites with 
the following message:-

Hi. This is the qmail-send program at hotmail.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]:
CNAME lookup failed temporarily. (#4.4.3)
I'm not going to try again; this message has been in the queue too long.


Whereas, mail to [EMAIL PROTECTED] gets through ok. Our DNS is set up 
as follows

@   IN  MX 5liddell.cstr.ed.ac.uk.
IN  MX 8mailrelay.ed.ac.uk.

with the following entries for liddell...

liddell IN  A   129.215.91.1
liddell IN  A   129.215.41.124

The qmail FAQ states that CNAME lookup failures are a result of nameservers 
being down - but I've tried mailing to our site from qmail sites many times 
when the nameserver has definitely been up and it always fails. Is there 
something wrong with my DNS...? liddell is the router, nameserver and mailer 
for our site.

Murray.


__
Get Your Private, Free Email at http://www.hotmail.com



AW: DNS/CNAME failure...

1999-06-24 Thread Anonymous

there is a patch for this problem (DNS,  512 bytes ...) have a look at
the top of www.qmail.org!!!

jodok


 -Ursprüngliche Nachricht-
 Von:  Murray Walker [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Donnerstag, 24. Juni 1999 16:45
 An:   [EMAIL PROTECTED]
 Betreff:  DNS/CNAME failure...
 
 Hi all,
 
 Another CNAME query. Mail to [EMAIL PROTECTED] fails from qmail sites
 with 
 the following message:-
 
 Hi. This is the qmail-send program at hotmail.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]:
 CNAME lookup failed temporarily. (#4.4.3)
 I'm not going to try again; this message has been in the queue too
 long.
 
 
 Whereas, mail to [EMAIL PROTECTED] gets through ok. Our DNS is
 set up 
 as follows
 
 @   IN  MX 5liddell.cstr.ed.ac.uk.
 IN  MX 8mailrelay.ed.ac.uk.
 
 with the following entries for liddell...
 
 liddell IN  A   129.215.91.1
 liddell IN  A   129.215.41.124
 
 The qmail FAQ states that CNAME lookup failures are a result of
 nameservers 
 being down - but I've tried mailing to our site from qmail sites many
 times 
 when the nameserver has definitely been up and it always fails. Is
 there 
 something wrong with my DNS...? liddell is the router, nameserver and
 mailer 
 for our site.
 
 Murray.
 
 
 __
 Get Your Private, Free Email at http://www.hotmail.com



Re: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

   Stewart,
   
   You get the big reward for coming up with the solution to "most" of my
   pop-3d problems. What I don't understand is this. If the Memphis RPM
   automatically places in the directory /etc/rc3.d/ as Knqmail-pop3d.init
   instead of Saqmail-pop3d.init, how is it that the Memphis install works on
   any system? Is it random chance? For me the effect is clear. If I switch to
   S, reboot, I can get my mail through Pop (from my windows computer on my
   network using outlook). If I switch back to K, reboot, it fails. So your
   solution clearly works, but why is it apparently not necessary on most
   systems, since people do get the Memphis RPM to work without doing that.


With  the memphis rpm, to start qmail-pop3d, just do 

  install checkpassword (rpm is in my ftp dir)

  /etc/rc.d/init.d/qmail-pop3d.init start

and to start it automatically at boot up, do 

chkconfig qmail-pop3d.init on

If you decide not to run qmail-pop3d anymore, do

   /etc/rc.d/init.d/qmail-pop3d.init stop

   chkconfig qmail-pop3d.init off

I will change the README in my ftp dir to make the staff about pop
clearer. 

   
   Now, I have a wierder problem with Pop3, which I really don't understand. I
   can get my mail fine now using outlook on a computer on my network using pop
   (due to your solution). However, when I go to work and attempt to get my
   mail, using the same settings in MS Outlook, I get a failure to connect to
   the server!
   
   The only difference is wether I am coming from the outside, or I'm using my
   own network. Am I missing something?

Yes, please give us much more details.  For example, how did you set
up the tcprules for qmail-pop3d on the server?  

What do  you get when, on mail.cybergood.net, you telnet to port 110
(copy the whole session except passwd, of course).

Mate



remove all mail for a domain

1999-06-24 Thread Anonymous

Hi,

is there any simple way of removing all mail for a specific remote domain
that's sitting in my queue?
I was thinking of putting the domain in smtproutes and let it point to an
another qmail machine, and there put the domain in virtualdomains and let it
point to an alias that drops all mail.

Franky



AW: remove all mail for a domain

1999-06-24 Thread Anonymous

hi,
you can try this:
control/virtualdomains:
domain.to.drop:dropit

~alias/.qmail-dropit-default
| echo "dropped email for "$DEFAULT"@domain.to.drop: sender was $SENDER"
 /tmp/droplog

jodok

ps: do not forget to send HUP to qmail-send after changing
virtualdomains!

 -Ursprüngliche Nachricht-
 Von:  Van Liedekerke Franky [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Donnerstag, 24. Juni 1999 17:00
 An:   'qmail list'
 Betreff:  remove all mail for a domain
 
 Hi,
 
 is there any simple way of removing all mail for a specific remote
 domain
 that's sitting in my queue?
 I was thinking of putting the domain in smtproutes and let it point to
 an
 another qmail machine, and there put the domain in virtualdomains and
 let it
 point to an alias that drops all mail.
 
 Franky



RE: remove all mail for a domain

1999-06-24 Thread Anonymous

Nope,

because the domain is remote, changing virtualdomains won't cut it...

Franky

 --
 From:
 [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, June 24, 1999 5:05 PM
 To:   [EMAIL PROTECTED]
 Subject:  AW: remove all mail for a domain
 
 hi,
 you can try this:
 control/virtualdomains:
 domain.to.drop:dropit
 
 ~alias/.qmail-dropit-default
 | echo "dropped email for "$DEFAULT"@domain.to.drop: sender was $SENDER"
  /tmp/droplog
 
 jodok
 
 ps: do not forget to send HUP to qmail-send after changing
 virtualdomains!
 
  -Ursprüngliche Nachricht-
  Von:Van Liedekerke Franky
 [SMTP:[EMAIL PROTECTED]]
  Gesendet am:Donnerstag, 24. Juni 1999 17:00
  An: 'qmail list'
  Betreff:remove all mail for a domain
  
  Hi,
  
  is there any simple way of removing all mail for a specific remote
  domain
  that's sitting in my queue?
  I was thinking of putting the domain in smtproutes and let it point to
  an
  another qmail machine, and there put the domain in virtualdomains and
  let it
  point to an alias that drops all mail.
  
  Franky
 



RE: remove all mail for a domain

1999-06-24 Thread Anonymous

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Nope,
 
 because the domain is remote, changing virtualdomains won't cut it...

But it's a step in the right direction:
1. smtproutes entry
domain.to.drop:127.0.0.1
(make sure that 127.0.0.1 can relay, or put domain.to.drop in 
rcpthosts too)
2. proceed with that virtualdomain stuff
3. When ready, HUP qmail-send

-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBN3JbHlMwP8g7qbw/EQK82wCg3oraFgrtOuvnVoSg3aieCANLKIYAoKlY
X/CFgMfeNllxbevwDPKr+VgS
=tBWU
-END PGP SIGNATURE-
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]



Re: remove all mail for a domain

1999-06-24 Thread Anonymous

Van Liedekerke Franky wrote/schrieb/scribsit:
 is there any simple way of removing all mail for a specific remote domain
 that's sitting in my queue?
 I was thinking of putting the domain in smtproutes and let it point to an
 another qmail machine, and there put the domain in virtualdomains and let it
 point to an alias that drops all mail.

Instead of sending it to another qmail machine, you can go on your own:
# cd /var/qmail/control
# echo "dropthisdomain.dom:[`hostname -f`]"  smtproutes
# echo "dropthisdomain.dom"  rcpthosts
# echo in case localhost is not a RELAYCLIENT
# echo "dropthisdomain.dom:alias-bitbucket"  virtualdomains
# cd ../alias
# echo '#'  .qmail-bitbucket-default
# killproc -HUP /var/qmail/bin/qmail-send
# killproc -ALRM /var/qmail/bin/qmail-send

Then peek at the log and undo.

Stefan



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

Ray Marshall writes:
  On 24 Jun 1999, Chris wrote:
   Does anybody know a decent program/script that can be called from .qmail
   to move messages according to to, cc, bcc, subject, etc into a certain
   Maildir?
  
   I don't want to use procmail!
  
  I believe that there's a way to do this with ~/.qmail , but I can't
  remember what the technique is.

Depends on whether you want to write into the Maildir yourself.  It's
pretty low-tech, but if you don't, then do something like this (all on 
one line):

|qmail-local "$USER" "$HOME" "$LOCAL" "" "nodeliver" "$HOST" "$SENDER"
./Maildir`program-to-select-maildir | sed 's/\./:/g'`

All that program-to-select-maildir has to do is print the name of the
selected maildir to stdout.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Russ wrote:

 Ray Marshall writes:

   I believe that there's a way to do this with ~/.qmail , but I can't
   remember what the technique is.
 
 Depends on whether you want to write into the Maildir yourself.  It's
 pretty low-tech, but if you don't, then do something like this (all on 
 one line):
 
 |qmail-local "$USER" "$HOME" "$LOCAL" "" "nodeliver" "$HOST" "$SENDER"
 ./Maildir`program-to-select-maildir | sed 's/\./:/g'`
 
 All that program-to-select-maildir has to do is print the name of the
 selected maildir to stdout.

Russ, I was just trying to find the information you gave us at the Linux
Expo.  I thought I remembered you showing us that we could add some lines
to ~/.qmail, to get it to redirect selected messages (according to text in
To:, CC:, or From: lines) into selected mailboxes in ~/mail ; and let all
other messages go into ~/Mailbox.  Can you post that information here,
or point us to where it's documented with examples.

Thanks  /  Ray
+
Ray Marshall [EMAIL PROTECTED]| Unconditional Forgiveness  Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



RE: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

Mate asked:

 Yes, please give us much more details.  For example, how did you set
 up the tcprules for qmail-pop3d on the server?

I didn't set up any. I thought I read every set of instructions I could find
(even printing them out and organizing them - highlighting important stuff
but I don't remember reading anything about setting up tcprules. I'll look
again.

Mate asked:

 What do  you get when, on mail.cybergood.net, you telnet to port 110
 (copy the whole session except passwd, of course).

Well I get nothing. Using the windows telnet client:

start run telnet mail.cybergood.net
(I get a normal login)

start run telnet mail.cybergood.net 100
(I get the hour glass - then a connect failed)

I think you've hit on the problem, I need to set up tcp rules. I wonder why
it succeeds though on my network? My Linux machine is locally 192.168.0.1
and my windows machine is 192.168.0.2

 -Original Message-
 From: Mate Wierdl [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 24, 1999 11:11 AM
 To: Alex Miller
 Cc: Stewart Jeacocke; [EMAIL PROTECTED]
 Subject: Re: qmail-pop3d.init errors


Stewart,

You get the big reward for coming up with the solution to "most" of my
pop-3d problems. What I don't understand is this. If the Memphis RPM
automatically places in the directory /etc/rc3.d/ as
 Knqmail-pop3d.init
instead of Saqmail-pop3d.init, how is it that the Memphis
 install works on
any system? Is it random chance? For me the effect is clear.
 If I switch to
S, reboot, I can get my mail through Pop (from my windows
 computer on my
network using outlook). If I switch back to K, reboot, it
 fails. So your
solution clearly works, but why is it apparently not necessary on most
systems, since people do get the Memphis RPM to work without
 doing that.


 With  the memphis rpm, to start qmail-pop3d, just do

   install checkpassword (rpm is in my ftp dir)

   /etc/rc.d/init.d/qmail-pop3d.init start

 and to start it automatically at boot up, do

 chkconfig qmail-pop3d.init on

 If you decide not to run qmail-pop3d anymore, do

/etc/rc.d/init.d/qmail-pop3d.init stop

chkconfig qmail-pop3d.init off

 I will change the README in my ftp dir to make the staff about pop
 clearer.


Now, I have a wierder problem with Pop3, which I really don't
 understand. I
can get my mail fine now using outlook on a computer on my
 network using pop
(due to your solution). However, when I go to work and attempt
 to get my
mail, using the same settings in MS Outlook, I get a failure
 to connect to
the server!

The only difference is wether I am coming from the outside, or
 I'm using my
own network. Am I missing something?

 Yes, please give us much more details.  For example, how did you set
 up the tcprules for qmail-pop3d on the server?

 What do  you get when, on mail.cybergood.net, you telnet to port 110
 (copy the whole session except passwd, of course).

 Mate




Re: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 11:49:40AM -0400, Alex Miller wrote:
 Mate asked:
 
  Yes, please give us much more details.  For example, how did you set
  up the tcprules for qmail-pop3d on the server?
 
 I didn't set up any. I thought I read every set of instructions I could find
 (even printing them out and organizing them - highlighting important stuff
 but I don't remember reading anything about setting up tcprules. I'll look
 again.
 
 Mate asked:
 
  What do  you get when, on mail.cybergood.net, you telnet to port 110
  (copy the whole session except passwd, of course).
 
 Well I get nothing. Using the windows telnet client:
 
 start run telnet mail.cybergood.net
 (I get a normal login)
 
 start run telnet mail.cybergood.net 100
 (I get the hour glass - then a connect failed)

It's port 110, not 100. In any case, from where I'm sitting there doesn't
appear to be anything listening to port 110 on mail.cybergood.net.

If it works from your home LAN but not from anywhere else and you haven't set
up any tcp rules, then either you've bound tcpserver to just your internal
interface or your cable modem company is blocking the connection at their
routers. They don't seem to be blocking connections to other common ports (23,
25, 80 are the few that I checked) though.

What's the exact syntax of your tcpserver qmail-pop3d startup line? In
particular, what have you supplied for the "host" argument?

 I think you've hit on the problem, I need to set up tcp rules. I wonder why
 it succeeds though on my network? My Linux machine is locally 192.168.0.1
 and my windows machine is 192.168.0.2

If you don't have any tcp rules, then that's not your problem. Adding some when
you have none can only restrict what's allowed to connect.

Chris



RE: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

"Alex Miller" [EMAIL PROTECTED] wrote:
Mate asked:

 What do  you get when, on mail.cybergood.net, you telnet to port 110
 (copy the whole session except passwd, of course).

start run telnet mail.cybergood.net 100
(I get the hour glass - then a connect failed)

110  100

-Dave



RE: remove all mail for a domain

1999-06-24 Thread Anonymous

thanks all for the help, this works just fine!

Franky

 --
 From: Petr Novotny[SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, June 24, 1999 6:21 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: remove all mail for a domain
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
  Nope,
  
  because the domain is remote, changing virtualdomains won't cut it...
 
 But it's a step in the right direction:
 1. smtproutes entry
 domain.to.drop:127.0.0.1
 (make sure that 127.0.0.1 can relay, or put domain.to.drop in 
 rcpthosts too)
 2. proceed with that virtualdomain stuff
 3. When ready, HUP qmail-send
 
 -BEGIN PGP SIGNATURE-
 Version: PGP 6.0.2 -- QDPGP 2.60 
 Comment: http://community.wow.net/grt/qdpgp.html
 
 iQA/AwUBN3JbHlMwP8g7qbw/EQK82wCg3oraFgrtOuvnVoSg3aieCANLKIYAoKlY
 X/CFgMfeNllxbevwDPKr+VgS
 =tBWU
 -END PGP SIGNATURE-
 --
 Petr Novotny, ANTEK CS
 [EMAIL PROTECTED]
 http://www.antek.cz
 PGP key ID: 0x3BA9BC3F
 -- Don't you know there ain't no devil there's just God when he's drunk.
  [Tom Waits]
 



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

Ray Marshall writes:
  Russ, I was just trying to find the information you gave us at the Linux
  Expo.  I thought I remembered you showing us that we could add some lines
  to ~/.qmail, to get it to redirect selected messages (according to text in
  To:, CC:, or From: lines) into selected mailboxes in ~/mail ; and let all
  other messages go into ~/Mailbox.  Can you post that information here,
  or point us to where it's documented with examples.

Oh, well, the "proper" way to do it is create a .qmail file which
mentions every Mailbox or Maildir you intend to deliver mail to.  Then 
*if possible* you give out a user-mailbox name to separate the mail
out.  Typically that's not always possible, so you put things like the 
following into your .qmail file:

|condredirect "$USER-qmail" grep '^Delivered-To: mailing list [EMAIL PROTECTED]$'
|condredirect "$USER-spam" grep "^Subject: ADV'

Email headers are best parsed with Dan's mess822, as Vince pointed out.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Thanks!!

1999-06-24 Thread Anonymous

Thanks for the flurry of helpful advice I've just recieved.
As per good advice, I've already deleted the guest shell account, and
changed passwords.
When I get home from work, I'll try out these suggestions.

Alex



unsent mail in the queue

1999-06-24 Thread Anonymous

I was browsing around in /var/qmail/queue , and discovered some mail
that I had sent, but that obviously had not yet left my machine.  What
command to I issue to cause Qmail to attempt to transmit it?

Aren't there also commands that will show me what's sitting in the various
queues?  (With sendmail, I use to use `mailq" to see what's there, and 
`/usr/sbin/sendmail -q' to send mail them.)

Thanks  /  Ray
+
Ray Marshall [EMAIL PROTECTED]| Unconditional Forgiveness  Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]





Re: unsent mail in the queue

1999-06-24 Thread Anonymous

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 I was browsing around in /var/qmail/queue , and discovered some mail
 that I had sent, but that obviously had not yet left my machine.  What
 command to I issue to cause Qmail to attempt to transmit it?

If you don't want to wait, do
qmail-tcpok
to clear out the table of non-responding hosts and send qmail-send 
SIGALRM (if you're using BSD'ish system like Linux, killall -ALRM 
qmail-send; if SysVish, kill -SIGALRM pid_of_qmail_send_process;
svc -a if running it under supervise).

 Aren't there also commands that will show me what's sitting in the various
 queues?  (With sendmail, I use to use `mailq" to see what's there, and
 `/usr/sbin/sendmail -q' to send mail them.)

qmail-qread (as root or qmailq user)

-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBN3J9XFMwP8g7qbw/EQJLegCePEW+ED0FHRi+4AwWppr4YWNG5WIAn1U/
LCfc4qFKU77W8jQdmVZC7qCS
=1jd6
-END PGP SIGNATURE-
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

Petr,

Thank you very much; that's exactly what I was looking for.

I found three messages in the queue, that I want to just get rid of,
without any further attempts to deliver them.  Is there a command
for that, too?

Thanks  /  Ray
+
Ray Marshall [EMAIL PROTECTED]| Unconditional Forgiveness  Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: qmail-local

1999-06-24 Thread Anonymous

Marcel Dan [EMAIL PROTECTED] wrote:

I am unsure of how to change the default route of qmail for the entire
server.  I am using qmail with vchkpw so the domain is not virtual but
the users are and the message gets delivered by defualt into a users
/home/directory (which doesn't exist).  Everything else is working so
that I can upload messages and relay...etc.
I sincerely apprectiate any information/help.

I'm not familiar with vchkpw, but it's not clear exactly what you're
trying to accomplish. Does delivery to real users work? Have you
created maildirs for the virtual users?

-Dave



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

+ "Timothy L. Mayo" [EMAIL PROTECTED]:

| Changing timestamps while qmail is running is "fairly" safe.

Indeed, the one and only danger in doing that is the tiny risk that,
between the time you identified the message whose time stamp needs
changing and your doing it, that message has left the queue and a new
one has taking its place.  For messages that have been sitting in the
queue for a long time, that is a tiny risk indeed, but still nonzero.
And perhaps bigger than you might think, because message numbers are
frequently reused, as a quick look at a typical qmail log file will
show.

- Harald



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

I am aware of this risk.  Which is why I worded it as I did.  I personally
do not age any mail with a valid to address.  At worst under your
scenario, I bounce a message after only one delivery attempt.  The message
is still not "lost".

The real problem with aging the mail while qmail is delivering the mail is
if it get delivered, the inode number is NOT immediately reused and I
touch the info file for a non-existant message.  Again, because of the way
I use this, the chances are small.

On Thu, 24 Jun 1999, Harald Hanche-Olsen wrote:

 + "Timothy L. Mayo" [EMAIL PROTECTED]:
 
 | Changing timestamps while qmail is running is "fairly" safe.
 
 Indeed, the one and only danger in doing that is the tiny risk that,
 between the time you identified the message whose time stamp needs
 changing and your doing it, that message has left the queue and a new
 one has taking its place.  For messages that have been sitting in the
 queue for a long time, that is a tiny risk indeed, but still nonzero.
 And perhaps bigger than you might think, because message numbers are
 frequently reused, as a quick look at a typical qmail log file will
 show.
 
 - Harald
 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.  http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810- Phone
(412) 810-8886 Fax



Secondary MX Delivery Problems (Returns)

1999-06-24 Thread Anonymous

Guys,

I posted a message in to the mailing list a while ago (quite a while ago
actually) in regard to problems we were having with Qmail stepping to the
secondary MX/SMTP servers for a site when the primary failed.

After a lot of great help from the mailing list, we figured out that it was
actually the firewall (that Qmail was sitting behind) causing the problems.
The firewall is a proxy/application level based firewall and in the process
of proxying the connection out to the remote SMTP server, it is  accepting
the request from the Qmail server, then in turn trying the remote host,
timing out on the remote host and then dropping the connection that it had
already accepted from the Qmail server.

Because of the way that the Qmail MTA is written (thanks to Tim's
description below) it became apparent that Qmail will happily step to the
next MX record if it times out, but not if the connection is accepted and
then dropped.

I went off with this knowledge and worked my way through the support
processes with the firewall vendor and finally ended up talking to their
programmers/development team.  They agreed that the way in which their
firewall functions is creating the problem, and said that they would look
over the SMTP proxy code at some stage and maybe redevelop it, but that it
would be a major and they really thought that Qmail should deal with the
problem as that is a common way for all proxy/application level based
firewall to act.

Now rather than getting in a war with the firewall vendor or Dan, I've sat
back and decided that with the help of the mailing list, I'm far more likely
to get the Qmail code adjusted than getting the firewall code adjusted.
I've talked to a couple of guys who have written SMTP MTA's and they say
that they don't differentiate between a connection timeout or drop, they
just move on to the next MX record.

So my next question (as a non-programmer) is HELP!  Can someone have a look
at the code that Tim was talking about below and give me some assistance on
what I need to change in which file.

Thanks in advance.

Karl Lellman
Systems Consultant
Extranet Technologies Limited
Level 3, 60 Cook Street, Auckland, New Zealand
P.O. Box 7726, Wellesley Street, Auckland, New Zealand
Phone +64 9 3771122, Fax +64 9 3771109, Mobile +64 25 771188
e-mail:  [EMAIL PROTECTED]


-Original Message-
From: Tim Goodwin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 December 1998 23:56
To: [EMAIL PROTECTED]
Subject: Re: Secondary MX Delivery Problems


 Am I correct in understanding that if a SMTP server accepts the connection
 and then drops it that Qmail will assume that the secondary etc. servers
 will respond the same way and so keeps trying the primary server.  If so,
 will it only step down to the secondary if it can't find the primary at
all?

To lay this question to rest, here's some code at the end of
qmail-remote.c, with my annotations.

   for (i = 0;i  ip.len;++i) if (ip.ix[i].pref  prefme) {

Loop through all the relevant IP addresses discovered from the MX
records.

 if (tcpto(ip.ix[i].ip)) continue;

If we've recently timed out trying to connect to this address, skip it.

 smtpfd = socket(AF_INET,SOCK_STREAM,0);
 if (smtpfd == -1) temp_oserr();

Obtain the local end of the socket.

 if (timeoutconn(smtpfd,ip.ix[i].ip,(unsigned int)
port,timeoutconnect) == 0) {

Attempt to make a connection.  If it succeeds: ...

   tcpto_err(ip.ix[i].ip,0);
   partner = ip.ix[i].ip;

...mark this IP address as OK; stash it for later retrieval; and...

   smtp(); /* does not return */
 }

...try to send the mail.  (The comment is Dan's, and is---needless to
say---accurate.)

 tcpto_err(ip.ix[i].ip,errno == error_timeout);
 close(smtpfd);
   }

If the connection attempt didn't succeed: check for a timeout and record
it; tidy up the socket; and loop round for the next address.

   temp_noconn();

If we tried all the addresses, it's a temporary failure.

The important thing to notice is that *if* timeoutconn() to a particular
address succeeds, i.e. *if* we establish a TCP connection, then we
irrevocably go into the smtp() function, and no more addresses will be
tried.

Tim.



Re: Secondary MX Delivery Problems (Returns)

1999-06-24 Thread Anonymous

On Fri, 25 Jun 1999, Karl Lellman wrote:

 So my next question (as a non-programmer) is HELP!  Can someone have a look
 at the code that Tim was talking about below and give me some assistance on
 what I need to change in which file.

modify the routine smtp() to close the smtpfd socket and return if the
connection is dropped?

  if (smtpcode() != 220) { close(smtpto); return; };

near the top should probably do the trick.

notes... because of the way your firewall works you can't rely on qmail's
tcpto mechanism to prevent excessive connections to the firewall if its
demarc/internet connection fails -- qmail can't tell if it;s a problem
with the firewall or the remote end of the smtp connection. otherwise I'd
have re-ordered the code around the call to smtp() not to mark the mta as
'up'.

a better alternative is to install qmail as the application-layer proxy in
the firewall. In fact this is definately the better technical solution.

Richard
 




Re: Mail sort without using procmail,

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Russ wrote:

 Oh, well, the "proper" way to do it is create a .qmail file which
 mentions every Mailbox or Maildir you intend to deliver mail to.  Then 
 *if possible* you give out a user-mailbox name to separate the mail
 out.  Typically that's not always possible, so you put things like the 
 following into your .qmail file:
 
 |condredirect "$USER-qmail" grep '^Delivered-To: mailing list 
[EMAIL PROTECTED]$'
 |condredirect "$USER-spam" grep "^Subject: ADV'
 
 Email headers are best parsed with Dan's mess822, as Vince pointed out.

Russ, although I did install mess822, I decided that for now, I would
use the "improper" way, that is to actually use my already rather large
~/.procmailrc file.  I just added the following to the end of the file:

:0:
$HOME/Mailbox

And created a ~/.qmail file that contains just this single line:

| preline procmail

For now, this works just fine for me.  Later, when I'm through figuring
out how to do all of the things I use to with sendmail, then maybe I'll
go back and try to figure out how to implement all of my procmail mappings
in ~/.qmail.

I thank you for your assistance, and your gracious willingness to help all
of us Qmail newbies.

Thanks  /  Ray
+
Ray Marshall [EMAIL PROTECTED]| Unconditional Forgiveness  Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: Qmail's queue directory Linux

1999-06-23 Thread Anonymous


-Original Message-
From: Petri Kaukasoina [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Wednesday, June 23, 1999 7:22 AM
Subject: Re: Qmail's queue directory  Linux


On Tue, Jun 22, 1999 at 05:22:46PM -0700, Russell Steffen wrote:
 This obviously implies that having the queue on a separate partition or
 disk for Linux systems is a good thing (so that it can be mounted with
 "sync").

If you want to do that then you want a sync filesystem for the
Maildirs/mboxes too.


That's what the Cyrus documentation suggests.

The Cyrus documentation suggests using chattr -R +S on the queue directories
as well as the mailboxes. Would that be less effective than using a
sync-mounted filesystem?

Regards,
Peter




Re: Auto-reply after delivery

1999-06-23 Thread Anonymous

Try qmail vacation at
ftp://ftp.uniq.com.au/pub/tools/qmail/qmail-vacation-1.3.tar.gz

Dong

+--+-
+AHw-   /+AFw--/+AFw-Nguyen Dang Phuoc Dong  -  Phuong Nam Net. +AHw-
+AHw- ( o o )   System Administrator.  +AHw-
+AHw-   +AD4AfgA8-Email:  DongND+AEA-TLNET.COM.VN  +AHw-
+--+-

-Original Message-
From: Joaquim Homrighausen +ADw-joho+AEA-defsol.se+AD4-
To: qmail discussion list +ADw-qmail+AEA-list.cr.yp.to+AD4-
Date: Tuesday, June 22, 1999 8:36 PM
Subject: Auto-reply after delivery


+AD4-I hope this one isn't in the FAQ..
+AD4-
+AD4-.. what I'd like to do is to have something like:
+AD4-
+AD4-./Maildir/
+AD4-AutoReply..
+AD4-
+AD4-in a given .qmail+ACo- file so that mail is first delivered to the user's
+AD4-mailbox and then an automatically generated/canned reply is sent to
+AD4-the sender of the mail.
+AD4-
+AD4-Is this possible by using just qmail? If so, how? If not, what are the
+AD4-preferred packages.. ?
+AD4-
+AD4-
+AD4-
+AD4--/- who dares wins -/-
+AD4-
+AD4-
+AD4-



Re: Qmail's queue directory Linux

1999-06-23 Thread Anonymous

On Wed, Jun 23, 1999 at 08:04:53AM +0200, Peter van der Landen wrote:
 The Cyrus documentation suggests using chattr -R +S on the queue directories
 as well as the mailboxes. Would that be less effective than using a
 sync-mounted filesystem?

Dan fsyncs explicitely all the _files_ when needed, so there's no problem
with them. But in Linux the metadata, e.g. the directory entries are not
written synchronously by default. Suppose qmail receives a mail message,
writes it to the queue, fsyncs it and reports mail received. In case of
power failure at this point the file was written ok but its directory entry
was not on disk yet. After bootup fsck puts the message to /lost+found
where you can find it but it is not in the qmail queue.

The solution that Linus proposed was to fsync the _directory_ too in
addition to the _file_ and that is what my shared library does. Actually it
fsyncs the directories every time when link, unlink, open and rename system
calls are used (they update directory entries), needed or not.

Dan's suggestion is to mount all the file systems with option "sync". It
makes all writing to that file system synchronous which might be a bit
overkill when the problem is only with metadata.

chattr +S is a good idea but it doesn't work. I guess it works for _files_:
a file with that attribute is written synchronously. But there is no problem
in that field in case of qmail because Dan uses fsyncs. (With sendmail,
procmail, poppers and imappers it may be different.) But chattr +S does not
make writing the directory entries synchronous which is the problem. I
tested it a year ago and it didn't work for Linux kernels in use at that
time.

You can try it yourself to see if it works or not with kernels today:

1. mkdir testdir1 testdir2
2. chattr +S testdir2
3. killall -KILL update
4. sync
5. echo "without -S"  testdir1/file1
6. echo "with -S"  testdir2/file2
7. switch off the power
8. switch on the power
9. after fsck look for the files in the directories /lost+found, testdir1
   and testdir2.
   
If the chattr trick worked you would have the file "file2" in the
directory testdir2.



Re: IT WORKS! - Anyone who is stuggling might benefit from this ...

1999-06-23 Thread Anonymous

 Now you have to make qmail-pop3d run at boot
 Go to /etc/rc.d/rc3.d/ (or whatever runlevel you normally boot into)
 You should find that in this directory there is a link called
 Knqmail-pop3d.init , where n is a two digit number
 Now look for the link SNqmail.init, where N is another two digit
 number
 Rename Knqmail-pop3d.init to Saqmail-pop3d.init , where a is any
 two digit number you like as long as it is larger than N
 Restart or equivalent

Or use chkconfig, which manages all of the links for you and can give you
a summary of what's turned on and what's not.

 To summarize the rpm installs symbolic links to the qmail-pop3d.init
 script in the rc.d subdirectories. However it gives them numbers lower
 than the qmail.init script. This means that the pop3d script executes
 before the rest of qmail. Since it depends on other parts of the qmail
 system it fails.

What parts of the qmail system does qmail-pop3d depend on?

-- 
Russ Allbery ([EMAIL PROTECTED]) URL:http://www.eyrie.org/~eagle/



Re: Unsubbing...

1999-06-23 Thread Anonymous

Thanks for helping out.

In my header I see...

My Return-Path:[EMAIL PROTECTED]

So I sent a messageTo: [EMAIL PROTECTED]

I've received some qmail list items, now to see if I get this back!

Regards,

Markt



Re: Qmail's queue directory Linux

1999-06-23 Thread Anonymous

On Wed, Jun 23, 1999 at 09:49:27AM +0300, Petri Kaukasoina wrote:
 You can try it yourself to see if it works or not with kernels today:
 ...

Actually that might not be a valid test because file2 was not fsynced. It's
hard to remember what was done a year ago... But I used a program similar to
the attached one to create and fsync the test file. So this might be valid
now.

1.  gcc -o testprog testprog.c
2.  mkdir testdir
3.  chattr +S testdir
4.  cd testdir
5.  killall -KILL update
6.  sync
7.  ../testprog
8.  switch off the power
9.  switch on the power
10. after fsck look for the file "testfile" in the directories testdir and 
lost+found (under the mount point of the file system)

If the chattr trick worked you would have "testfile" in "testdir". Otherwise
you would find it in lost+found.


#include stdio.h
#include unistd.h
#include sys/types.h
#include sys/stat.h
#include fcntl.h
 
int main()
{
   int fd;
   char *message = "testing\n";
   if ((fd=open("testfile",O_CREAT|O_RDWR|O_EXCL,0666))==-1) perror("open");
   if (write(fd,message,strlen(message))==-1) perror("write");
   if (fsync(fd)==-1) perror("fsync");
   if (close(fd)==-1) perror("close");
   return 0;
}



virtual domains question

1999-06-23 Thread Anonymous


If I make a virtualdomains file, and make the usual .qmail-... files in
the given user's home directory, as forwarding to a real user of the
system,then the mail arrives in order to the expected place.

The mail envelope is the following:

From [EMAIL PROTECTED] Fri Jun 04 15:02:08 1999
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 15472 invoked by uid 514); 4 Jun 1999 15:02:08 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 15469 invoked by uid 0); 4 Jun 1999 15:02:08 -
Date: 4 Jun 1999 15:02:08 -
Message-ID: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
to: [EMAIL PROTECTED]


However, it is ugly to see a lot of delivered to lines with the real user
address [EMAIL PROTECTED], and even [EMAIL PROTECTED]
in the envelope.

How can I set up the system, so that qmail does not put these lines in the
envelope, or only one of it, and that containing the virtual domain
address [EMAIL PROTECTED]?

Or, 

is there a way, I can filter the incoming mail for a domain in the
control/locals and redirect the mail to another local user's mailbox,
or reject it with a no such user message, the same way, like in sendmail's
virtual user table feature?

Robert Varga



qmail Digest 23 Jun 1999 10:00:00 -0000 Issue 680

1999-06-23 Thread Anonymous


qmail Digest 23 Jun 1999 10:00:00 - Issue 680

Topics (messages 26989 through 27054):

qmail doesn't start properly
26989 by: Tero Niemi [EMAIL PROTECTED]
26990 by: Vince Vielhaber [EMAIL PROTECTED]
26991 by: Tero Niemi [EMAIL PROTECTED]
26997 by: Vince Vielhaber [EMAIL PROTECTED]

Unsubbing...
26992 by: Mark Turner [EMAIL PROTECTED]
26994 by: Harald Hanche-Olsen [EMAIL PROTECTED]
27008 by: Dave Sill [EMAIL PROTECTED]
27038 by: Harald Hanche-Olsen [EMAIL PROTECTED]
27049 by: Mark Turner [EMAIL PROTECTED]

relay ? kind of (I guess)
26993 by: "Claudiu Balciza" [EMAIL PROTECTED]
26998 by: Vince Vielhaber [EMAIL PROTECTED]
27030 by: Russell Nelson [EMAIL PROTECTED]

Auto-reply after delivery
26995 by: "Joaquim Homrighausen" [EMAIL PROTECTED]
26996 by: Anand Buddhdev [EMAIL PROTECTED]
27046 by: "Nguyen Dang Phuoc Dong" [EMAIL PROTECTED]

Host hiding
26999 by: [EMAIL PROTECTED]

qmail/dns resolution
27000 by: Peter van Dijk [EMAIL PROTECTED]

Free pop authentication before virtual domain smtp relay email package released
27001 by: "Alex Miller" [EMAIL PROTECTED]

Newbie Question - Please Read!
27002 by: "Alex Miller" [EMAIL PROTECTED]

etrn.pl replacement needed
27003 by: Ray Marshall [EMAIL PROTECTED]
27004 by: Peter van Dijk [EMAIL PROTECTED]
27009 by: Ray Marshall [EMAIL PROTECTED]
27045 by: Anand Buddhdev [EMAIL PROTECTED]

qmail Digest 21 Jun 1999 10:00:00 - Issue 678
27005 by: Mate Wierdl [EMAIL PROTECTED]

Dan's back in the news
27006 by: Vince Vielhaber [EMAIL PROTECTED]

qmail-smtp and MUA's speed
27007 by: Bill Parker [EMAIL PROTECTED]

Qmail binary packages license stuff
27010 by: "David Harris" [EMAIL PROTECTED]
27037 by: "Sam" [EMAIL PROTECTED]

Newbye troubles (qmail-pw2u)
27011 by: Dave Sill [EMAIL PROTECTED]

qmail + Maildir + procmail
27012 by: Dave Sill [EMAIL PROTECTED]
27015 by: Mikko Hänninen [EMAIL PROTECTED]

TEST.receive failure
27013 by: Dave Sill [EMAIL PROTECTED]

SAMBA and Memphis RPM
27014 by: Dave Sill [EMAIL PROTECTED]

alias problem
27016 by: Dave Sill [EMAIL PROTECTED]

Memphis RPM Pop3d
27017 by: Dave Sill [EMAIL PROTECTED]

changing domains
27018 by: Dave Sill [EMAIL PROTECTED]

Multiple accounts
27019 by: Dave Sill [EMAIL PROTECTED]

can qmail do this thing ?
27020 by: Dave Sill [EMAIL PROTECTED]

What is *really* going on?
27021 by: Roy Rapoport [EMAIL PROTECTED]
27022 by: "Scott D. Yelich" [EMAIL PROTECTED]
27024 by: Roy Rapoport [EMAIL PROTECTED]
27025 by: Dave Sill [EMAIL PROTECTED]
27028 by: Dave Sill [EMAIL PROTECTED]
27031 by: Russell Nelson [EMAIL PROTECTED]
27036 by: Peter van Dijk [EMAIL PROTECTED]

Implementation of Virtual Domains
27023 by: Dave Sill [EMAIL PROTECTED]
27033 by: Dave Kitabjian [EMAIL PROTECTED]

qmailanalog question
27026 by: Dave Sill [EMAIL PROTECTED]

How to let qmail delivert more letters at the same time?
27027 by: Dave Sill [EMAIL PROTECTED]

What You Need T0 Know, 20%/80%?
27029 by: Kevin King [EMAIL PROTECTED]

Users sharing home directory
27032 by: Conrad Heiney [EMAIL PROTECTED]
27034 by: Stefan Paletta [EMAIL PROTECTED]

Can't send through firewall (qmail+ipmasqerade)
27035 by: Jythexinvok [EMAIL PROTECTED]

Qmail's queue directory  Linux
27039 by: "D. J. Bernstein" [EMAIL PROTECTED]
27041 by: Russell Steffen [EMAIL PROTECTED]
27043 by: Petri Kaukasoina [EMAIL PROTECTED]
27044 by: "Peter van der Landen" [EMAIL PROTECTED]
27047 by: Petri Kaukasoina [EMAIL PROTECTED]
27050 by: Petri Kaukasoina [EMAIL PROTECTED]

qmail dying on stable system
27040 by: qmlist [EMAIL PROTECTED]
27042 by: qmlist [EMAIL PROTECTED]

IT WORKS! - Anyone who is stuggling might benefit from this ...
27048 by: Russ Allbery [EMAIL PROTECTED]

Multiple accounts-more questions
27051 by: "Techservice" [EMAIL PROTECTED]

WARNING: double delivery
27052 by: Stathakopoulos Giorgos [EMAIL PROTECTED]

trouble injecting bounce message
27053 by: Allen Versfeld [EMAIL PROTECTED]

virtual domains question
27054 by: Varga Robert [EMAIL PROTECTED]

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To bug my human owner, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



I have qmail installed and working but I have to start it again
manually. My qmail.init which is run from rc.local like this:

/path/to/qmail.init 

It starts something but not 

re-relaying mail for a a user

1999-06-23 Thread Anonymous

hi
i have qmail setup in our office to relay internet mail for users and to
deliver
local mail to the users pop account on the same server. the problem is that
one
of our users is in a remote office, so i need his mail (outgoing form our
office here)
 to be deliverd via a different smtp server (our isp's server).
so what i would like is that any mail for [EMAIL PROTECTED] is "re-relayed"
to a remote
smtp server but mail to [EMAIL PROTECTED] is deliverd localy with out
a dial up

i would very grateful for an answer as i have been banging my head against
the
wall on this one for a week now

j



Re: Qmail's queue directory Linux

1999-06-23 Thread Anonymous

Petri Kaukasoina writes:
  On Wed, Jun 23, 1999 at 08:04:53AM +0200, Peter van der Landen wrote:
   The Cyrus documentation suggests using chattr -R +S on the queue directories
   as well as the mailboxes. Would that be less effective than using a
   sync-mounted filesystem?
  
  Dan fsyncs explicitely all the _files_ when needed, so there's no problem
  with them. But in Linux the metadata, e.g. the directory entries are not
  written synchronously by default. Suppose qmail receives a mail message,
  writes it to the queue, fsyncs it and reports mail received. In case of
  power failure at this point the file was written ok but its directory entry
  was not on disk yet. After bootup fsck puts the message to /lost+found
  where you can find it but it is not in the qmail queue.
  
  The solution that Linus proposed was to fsync the _directory_ too in
  addition to the _file_ and that is what my shared library does. Actually it
  fsyncs the directories every time when link, unlink, open and rename system
  calls are used (they update directory entries), needed or not.

Right.  That's because it's a stupid idea to fsync metadata.  A
directory is just another file -- why should it automatically be
fsynced just because a different file got fsynced?  You want your
directories written to disk, you fsync them.

No, I don't worship Karels, et al.  The Berkeley CSRG made some
mistakes.  Instead of perpetuating these mistakes, as if they were
physical properties handed to us by God (186K miles/sec -- not just a
good idea, it's the law), Linus is trying to fix them.  Yes, it's
another "gratuitious" incompatibility, but it has serious efficiency
ramifications.

Just like Dan is introducing "gratuitious" incompatibilities.  :)
Only difference is that, unlike vendor gratuitious incompatibilities,
I *like* Dan's incompatibilities.  I wish Dan had the time to put
together a Linux distribution.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



wildcards in locals

1999-06-23 Thread Anonymous

Hi,

I know rcpthosts can have wildcards (something like .YYY.ZZZ to allow
all domains ending on YYY.ZZZ to relay) but does the control file locals
also support this?

Franky



Re: re-relaying mail for a a user

1999-06-23 Thread Anonymous


hi
 i have qmail setup in our office to relay internet mail for users and
  to
 deliver
 local mail to the users pop account on the same server. the problem is
 that one of our users is in a remote office, so i need his mail (outgoing
 form our office here)
  to be deliverd via a different smtp server (our isp's server).
 so what i would like is that any mail for [EMAIL PROTECTED] is
 "re-relayed"
 to a remote
 smtp server but mail to [EMAIL PROTECTED] is deliverd localy with
 out a dial up

Simply:

If bobo is a local user (and you're not using qmail-users
mechanism), put
[EMAIL PROTECTED]
into ~bobo/.qmail

If he's not local, do the same with ~alias/.qmail-bobo
If you're using fastworward (aliases), put it there
If you're using qmail-users mechanism, simply point bobo to the
right .qmail file containing the line above

mm..i not sure if it is that i'm explaining it wrong or that i don't fully
the solution above. both our users here and our guy in the remote
office have the same address suffix ie @bobo.com. our linux server
is set up to "trap" any mail going to [EMAIL PROTECTED] and deliver it to
users local pop a/c because the  guy in the remote office has no
access to "our" linux server he gets no mail from our office.
he recives his mail direct from our internet pop a/c ...

maybe this makes more sense as to the problem ... but from the
solution that was suggested it seems that .qmail files or ailias's
only work for mail going to a different domain ie it would forward
mail for [EMAIL PROTECTED] to [EMAIL PROTECTED] but this is not what i
want

j






Re: Auto-reply after delivery

1999-06-23 Thread Anonymous


On Tue, 22 Jun 1999 14:36:26 +0200  "Joaquim Homrighausen" wrote:

 Is this possible by using just qmail? If so, how? If not, what are the
 preferred packages.. ?

Needs an add on.  See the qmail page or:

http://www.nemeton.com.au/sw/autoreply/

Giles



  1   2   3   4   5   6   >