Re: newbie on qmail

1999-07-26 Thread Scott Schwartz

Joel Gatdula Pira [EMAIL PROTECTED] writes:
| In sendmail, I fetched my mail from an Exchange Server and used my local
 *
| machine for outgoing mails.
  **

I assume you mean that you used SMTP to inject that mail into your
local machine.  In that case, the underlined words above are a hint
about which network address qmail should be configured to accept relays
from.

| 203.172.10.50:allow,RELAYCLIENT=""
| 127.0.0.1:allow,RELAYCLIENT=""
| :allow
|
| 203.172.10.50 is where I get my mail.

So you have authorized the remote Exchange Server to relay through your
qmail?  That's probably not what you intended to do.



Re: Qmail::Queue

1999-07-26 Thread johnjohn

On Sun, Jul 25, 1999 at 11:02:53PM -0700, Russ Allbery wrote:
 Russell Nelson [EMAIL PROTECTED] writes:
 
  Anybody written a Perl module for Qmail::Queue?
 
 For talking to qmail-queue?  Not quite, but it would be almost trivial to
 turn my mjinject code into one.
 
As someone who's looked at the code, I second that comment.

-- 
John White johnjohn
 at
   triceratops.com
PGP Public Key: http://www.triceratops.com/john/public-key.pgp



Recipientmap dead?

1999-07-26 Thread Ira Abramov



In a new installation I'm doing for a client, I found the need  for the
/var/qmail/control/recipientmap I used to use back in the 1.01 days. now
it seems not to respond, it's not even in the qmail-control manpage. was
it really canceled? is there an equivalent, i.e. so I won't need to break
up the old sendmail rules file into 11300 little .qmail files!!!


btw: the egroups post function still attempts to post to djb-qmail@koobera
which bounces. please fix it to post here (whoever is the liason) so I can
subscribe for digests.


TIA, Ira



Re: Recipientmap dead?

1999-07-26 Thread Martijn Koster

On Mon, Jul 26, 1999 at 12:09:21PM +0300, Ira Abramov wrote:
 
 
 In a new installation I'm doing for a client, I found the need  for the
 /var/qmail/control/recipientmap I used to use back in the 1.01 days. now
 it seems not to respond, it's not even in the qmail-control manpage. was
 it really canceled? is there an equivalent, i.e. so I won't need to break
 up the old sendmail rules file into 11300 little .qmail files!!!

A grep through the source 1.03 directory turns up UPGRADE:

  WARNING for upgrades from 1.01: recipientmap is gone. The virtualdomains
  mechanism has been expanded to support virtual users.

-- Martijn Koster, [EMAIL PROTECTED]



Re: relaying redundancy

1999-07-26 Thread torben fjerdingstad

I wish smtproutes could take a prioritized list of destinations.

Our workstations has jam.net.uni-c.dk defined as "smarthost",
using smtproutes, which contains
:jam.net.uni-c.dk

If that host is down, my outgoing mail is deferred, and I
am not notified.

It would be nice if having

:jam.net.uni-c.dk
:nn.net.uni-c.dk

in smtproutes would try jam first, then nn.

What are my options? I cannot send mail out directly because
of a firewall.

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

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



Re: relaying redundancy

1999-07-26 Thread Ira Abramov

On Mon, 26 Jul 1999, torben fjerdingstad wrote:

 I wish smtproutes could take a prioritized list of destinations.
 
 Our workstations has jam.net.uni-c.dk defined as "smarthost",
 using smtproutes, which contains
 :jam.net.uni-c.dk
 
 If that host is down, my outgoing mail is deferred, and I
 am not notified.
 
 It would be nice if having
 
 :jam.net.uni-c.dk
 :nn.net.uni-c.dk
 
 in smtproutes would try jam first, then nn.
 
 What are my options? I cannot send mail out directly because
 of a firewall.

a little simplistic, but I'd run a script on cron once, say, every 10
minutes that will ping a packet to Jam, and swap to a backup version of
smtproutes and notify you if there's no echo, only to be swapped back and
check again in the next execution. pinging when up will return exit code
of 0, ping timed out will return 1 and host doesn't exist gives 2 (DNS
dead?). I'm not aware of an internal qmail solution.

taking it a step forward, you could use serialmail and check the load
balances on those two relays before releasing outgoing mail once a minute,
but that's just an overkill and delays mail :)



qmail Digest 26 Jul 1999 10:00:01 -0000 Issue 709

1999-07-26 Thread qmail-digest-help


qmail Digest 26 Jul 1999 10:00:01 - Issue 709

Topics (messages 28171 through 28188):

Personal name  qmail's sendmail replacement
28171 by: [EMAIL PROTECTED]
28177 by: Keith Burdis [EMAIL PROTECTED]

supervision of tcpserver qmptd
28172 by: "Alex Miller" [EMAIL PROTECTED]
28173 by: Chris Johnson [EMAIL PROTECTED]
28174 by: "Alex Miller" [EMAIL PROTECTED]
28175 by: Chris Johnson [EMAIL PROTECTED]

Maildir quotas.
28176 by: "Sam" [EMAIL PROTECTED]

Brought to you by www.privacyx.com --  ReDate: Sun, 25 Jul 1999 15:07:27 -0700
28178 by: "Wil Boucher" [EMAIL PROTECTED]

Qmail::Queue
28179 by: Russell Nelson [EMAIL PROTECTED]
28181 by: Russ Allbery [EMAIL PROTECTED]
28184 by: [EMAIL PROTECTED]

Logging Failed POP attempts
28180 by: Doug Lumpkin [EMAIL PROTECTED]

newbie on qmail
28182 by: Joel Gatdula Pira [EMAIL PROTECTED]
28183 by: Scott Schwartz [EMAIL PROTECTED]

Recipientmap dead?
28185 by: Ira Abramov [EMAIL PROTECTED]
28186 by: Martijn Koster [EMAIL PROTECTED]

relaying redundancy
28187 by: torben fjerdingstad [EMAIL PROTECTED]
28188 by: Ira Abramov [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]


--



Hello!

What is the proper environment variable to use for setting
the personal name in the From: field when sending mail by
invoking qmail's sendmail replacement?

I'm getting a lite tired of "[EMAIL PROTECTED]" being the only
thing showing up in the From: field in people's mail clients :)

Thanks!

/ Peter Schuller

--

PGP userID: 0x5584BD98 or 'Peter Schuller [EMAIL PROTECTED]'
Key retrival: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch

 PGP signature



On Sun 1999-07-25 (17:09), [EMAIL PROTECTED] wrote:
 Hello!
 
 What is the proper environment variable to use for setting
 the personal name in the From: field when sending mail by
 invoking qmail's sendmail replacement?
 
 I'm getting a lite tired of "[EMAIL PROTECTED]" being the only
 thing showing up in the From: field in people's mail clients :)

I use:

 export NAME=`perl -e 'print ((split(/,/,(getpwnam($ENV{USER}))[6]))[0]);'`

in my /etc/profile.

It sets the name to the first part of the gecos field.

  - Keith

 / Peter Schuller

-- 
Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa  
Email   : [EMAIL PROTECTED]
WWW : http://www.rucus.ru.ac.za/~keith/
IRC : Panthras  JAPH

"Any technology sufficiently advanced is indistinguishable from a perl script"

Standard disclaimer.
---




I have noticed that my hard disk light clicks on every 2/3 second or so.

It seems that a new process that supervises the tcpserver is created, then
destroyed and created again with a new process number.

the "status" file in /var/lock/qmail-qmtpd keeps getting recreated, even if
I delete it.

The "solution", for lack of a better term, maybe "diagnostic cure", is to
delete the stable process that seems to be spawning the flashing process.

ps -axw yielded 2 processes almost identical.

I kill the one that is stable (and earlier)
it'll be something like where 12345 is the PID

12345 supervise /var/lock/qmail-qmtpd tcpserver -u -c40 -u81 -g80 0 qmtp
qmail-qmtpd

I then execute
kill 12345

This stops the flashing (supervision has been terminated)

I am using Mate's memphis RPM.

Has anyone else seen this? Should supervision be so disk intensive to create
and destroy a file 60+ times a minute?

When I kill that process my disk is mostly silent, unless I am doing
something.

Alex Miller





On Sun, Jul 25, 1999 at 12:13:48PM -0400, Alex Miller wrote:
 I have noticed that my hard disk light clicks on every 2/3 second or so.
 
 It seems that a new process that supervises the tcpserver is created, then
 destroyed and created again with a new process number.
 
 the "status" file in /var/lock/qmail-qmtpd keeps getting recreated, even if
 I delete it.
 
 The "solution", for lack of a better term, maybe "diagnostic cure", is to
 delete the stable process that seems to be spawning the flashing process.
 
 ps -axw yielded 2 processes almost identical.
 
 I kill the one that is stable (and earlier)
 it'll be something like where 12345 is the PID
 
 12345 supervise /var/lock/qmail-qmtpd tcpserver -u -c40 -u81 -g80 0 qmtp
 qmail-qmtpd

Look at how you're calling tcpserver: you're not providing an argument to the
-u (the first one), so tcpserver prints an error message (which you're not
seeing) and exits. supervise notices tcpserver's death and starts it again,
which is what it's supposed to do.

Fix your tcpserver invocation 

Re: relaying redundancy

1999-07-26 Thread Sergei Kolobov

torben fjerdingstad wrote:
 I wish smtproutes could take a prioritized list of destinations.
[snip]
 If that host is down, my outgoing mail is deferred, and I
 am not notified.
[snip]
 What are my options? I cannot send mail out directly because
 of a firewall.

Assuming your firewall also runs qmail you can also use qmqp.
You can specify several qmqp servers and if the primary server
is not responding for some reason qmqp client will fall
back to backup server(s).
Hope this helps.

sgk



Re: Recipientmap dead?

1999-07-26 Thread Ira Abramov

On Mon, 26 Jul 1999, Martijn Koster wrote:

 On Mon, Jul 26, 1999 at 12:09:21PM +0300, Ira Abramov wrote:
  
  
  In a new installation I'm doing for a client, I found the need  for the
  /var/qmail/control/recipientmap I used to use back in the 1.01 days. now
  it seems not to respond, it's not even in the qmail-control manpage. was
  it really canceled? is there an equivalent, i.e. so I won't need to break
  up the old sendmail rules file into 11300 little .qmail files!!!
 
 A grep through the source 1.03 directory turns up UPGRADE:
 
   WARNING for upgrades from 1.01: recipientmap is gone. The virtualdomains
   mechanism has been expanded to support virtual users.

it doesn't really give the same functionality since it adds a prepend
instead of translating...

to illustrate: my current set of rules for sendmail looks like this:

@bothers.com[EMAIL PROTECTED]
@building.com   [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]
@stooge.com [EMAIL PROTECTED]
  .
  .
  .

so user or entire domain (full or as fallback) are forwarded to local
users. I don't need prepends here. furthermore, it's rare but I may
sometimes need to forward one of those users' Email out (and not to
mail.inter.net.il)

right now the only compact solution I see is to send this file to a filter
that will chop up and 'sort -u' to forward them all to virtualdomains
which in turn will send them all to virforward-user@localhost, then
~alias/.qmail-virforward-default will peel $LOCAL and change the '@' into
'=', then forward it to a fastforward patched to look at a special
aliases.cdb which I made from the original rules file by changing @ to =
and changing the double tab to a colon.

as for catch-all @domain.com domains, they even complicate things further.

seems like I'll have to break it down to a gazillion .qmail files, which
is something that will not be fun to manage.

anyone knows a better, cleaner way? :-( 




multiple aliases

1999-07-26 Thread Maria Zevenhoven

I can only put one entry for every username in my assign - file? why's that?
e.g. if I put
=maria7:maria7:501:501:/home/maria7:::
=maria.zevenhoven:maria7:501:501:/home/maria7:::

only the first one works...

-Maria



Re: multiple aliases

1999-07-26 Thread Maria Zevenhoven

now that I tried something more, I noticed another thing:
from qmail-newu I get the error message: qmail-newu: fatal: bad format in
users/assign.
my assign file reads the following:

=maria7:maria7:501:501:/home/maria7:::
=tilaukset:root:0:0:/root:::
=root:root:0:0:/root:::
=info:root:0:0:/root:::
=eof:root:0:0:/root:::
=helpdesk:root:0:0:/root:::
=maria.zevenhoven:maria7:501:501:/home/maria7:::
=holo:holo:503:503:/home/holo:::
=otso.ollikainen:holo:503:503:/home/holo:::
=aldaron:aldaron:500:500:/home/aldaron:::
=jonni.lehtiranta:aldaron:500:500:/home/aldaron:::
=wolven:wolven:502:502:/home/wolven:::
=mikko.kari:wolven:502:502:/home/wolven:::

Do you see anything I don't?

-Maria

 I can only put one entry for every username in my assign - file? why's
that?
 e.g. if I put
 =maria7:maria7:501:501:/home/maria7:::
 =maria.zevenhoven:maria7:501:501:/home/maria7:::

 only the first one works...

 -Maria





Re: multiple aliases

1999-07-26 Thread Daniel Jovius - Telenordia AB /Algonet



I think you should add a last line with a dot by itself in it. I think
it's in the manpage for qmail-users.

Like this:

...
=jonni.lehtiranta:aldaron:500:500:/home/aldaron:::
=wolven:wolven:502:502:/home/wolven:::
=mikko.kari:wolven:502:502:/home/wolven:::
.


On Mon, 26 Jul 1999, Maria Zevenhoven wrote:

 now that I tried something more, I noticed another thing:
 from qmail-newu I get the error message: qmail-newu: fatal: bad format in
 users/assign.
 my assign file reads the following:
 
 =maria7:maria7:501:501:/home/maria7:::
 =tilaukset:root:0:0:/root:::
 =root:root:0:0:/root:::
 =info:root:0:0:/root:::
 =eof:root:0:0:/root:::
 =helpdesk:root:0:0:/root:::
 =maria.zevenhoven:maria7:501:501:/home/maria7:::
 =holo:holo:503:503:/home/holo:::
 =otso.ollikainen:holo:503:503:/home/holo:::
 =aldaron:aldaron:500:500:/home/aldaron:::
 =jonni.lehtiranta:aldaron:500:500:/home/aldaron:::
 =wolven:wolven:502:502:/home/wolven:::
 =mikko.kari:wolven:502:502:/home/wolven:::
 
 Do you see anything I don't?
 
 -Maria
 
  I can only put one entry for every username in my assign - file? why's
 that?
  e.g. if I put
  =maria7:maria7:501:501:/home/maria7:::
  =maria.zevenhoven:maria7:501:501:/home/maria7:::
 
  only the first one works...
 
  -Maria
 
 
 
 

/ daj



Re: multiple aliases

1999-07-26 Thread Tomasz Papszun

On Mon, 26 Jul 1999 at 14:03:49 +0300, Maria Zevenhoven wrote:
 now that I tried something more, I noticed another thing:
 from qmail-newu I get the error message: qmail-newu: fatal: bad format in
 users/assign.
 my assign file reads the following:
 
 =maria7:maria7:501:501:/home/maria7:::
 =tilaukset:root:0:0:/root:::
 =root:root:0:0:/root:::
 =info:root:0:0:/root:::
 =eof:root:0:0:/root:::
 =helpdesk:root:0:0:/root:::
 =maria.zevenhoven:maria7:501:501:/home/maria7:::
 =holo:holo:503:503:/home/holo:::
 =otso.ollikainen:holo:503:503:/home/holo:::
 =aldaron:aldaron:500:500:/home/aldaron:::
 =jonni.lehtiranta:aldaron:500:500:/home/aldaron:::
 =wolven:wolven:502:502:/home/wolven:::
 =mikko.kari:wolven:502:502:/home/wolven:::
 
 Do you see anything I don't?


Has users/assign got . (single period) in the last line? It must.

-- 
 Tomasz Papszun   SysAdm @ TP S.A. Lodz, Poland  | And it's only
 [EMAIL PROTECTED]   http://www.lodz.tpsa.pl/   | ones and zeros.



Re: multiple aliases

1999-07-26 Thread Vince Vielhaber

On Mon, 26 Jul 1999, Daniel Jovius - Telenordia AB /Algonet wrote:

 
 
 I think you should add a last line with a dot by itself in it. I think
 it's in the manpage for qmail-users.
 
 Like this:
 
 ...
 =jonni.lehtiranta:aldaron:500:500:/home/aldaron:::
 =wolven:wolven:502:502:/home/wolven:::
 =mikko.kari:wolven:502:502:/home/wolven:::
 .

Yep, here it is from the man page:

   /var/qmail/users/assign  is  a  series of assignments, one
   per line.  It ends with a line containing  a  single  dot.
   Lines must not contain NUL.


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: Personal name qmail's sendmail replacement

1999-07-26 Thread Robert Varga



On Mon, 26 Jul 1999, Sergei Kolobov wrote:

 [EMAIL PROTECTED] wrote:
  What is the proper environment variable to use for setting
  the personal name in the From: field when sending mail by
  invoking qmail's sendmail replacement?
  
  I'm getting a lite tired of "[EMAIL PROTECTED]" being the only
  thing showing up in the From: field in people's mail clients :)
 
 Get a decent mail client program - it should do it for you.
 Personally, I use mutt - http://www.mutt.org
 
 sgk
 

The variable is any of QMAILNAME, MAILNAME, NAME
See it in FAQ and qmail pictures.

Robert Varga



RE: supervision of tcpserver qmptd

1999-07-26 Thread Dave Sill

"Alex Miller" [EMAIL PROTECTED] wrote:

It seems to me though that since this script is unmodified from the memphis
rpm that everyone who uses the memphis rpm should have the identical
symptom, or am I missing something?

Yeah: few people use qmtp, and most of those who do are "advanced"
users who are unlikely to do it using an RPM.

-Dave



Re: Recipientmap dead?

1999-07-26 Thread Russell Nelson

Ira Abramov writes:
  In a new installation I'm doing for a client, I found the need  for the
  /var/qmail/control/recipientmap I used to use back in the 1.01 days. now
  it seems not to respond, it's not even in the qmail-control manpage. was
  it really canceled? is there an equivalent,

Yes.  You can now put a recipient on a virtualdomain rule.  So on my
desktop (which also has my wife's mail on it, but not others
@crynwr.com), I have in my virtualdomains:

[EMAIL PROTECTED]:nelson-vd
[EMAIL PROTECTED]:heather-vd

and I also have ~nelson-vd-nelson which has "nelson" and
a ~heather-vd-heather which has "heather".

All other mail @crynwr.com goes to my server, which is the real @crynwr.com.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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: relaying redundancy

1999-07-26 Thread Russell Nelson

torben fjerdingstad writes:
  I wish smtproutes could take a prioritized list of destinations.

Point smtproutes at a domain name which has multiple A record.  Not
exactly what you asked for, but a reasonable facsimile.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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: Recipientmap dead?

1999-07-26 Thread Russell Nelson

Ira Abramov writes:
  to illustrate: my current set of rules for sendmail looks like this:
  
  @bothers.com [EMAIL PROTECTED]
  @building.com[EMAIL PROTECTED]
  [EMAIL PROTECTED]   [EMAIL PROTECTED]
  [EMAIL PROTECTED][EMAIL PROTECTED]
  @stooge.com  [EMAIL PROTECTED]

So?


#!/usr/bin/perl

sub writefile {
  open(F,"$_[0]") || die;
  print F "$_[1]\n" || die if $_[1];
  close F or die;
}

writefile("/var/qmail/control/virtualdomains", "");

while() {
  chomp;
  ($in,$out) = split;
  ($left,$right) = split(/@/, $in);
  $right =~ s/\./:/g;
  writefile("/var/qmail/control/virtualdomains", "$in:alias-$right");
  if ($left) {
writefile(".qmail-$right-$left", "$out");
  } else {
writefile(".qmail-$right-default", "$out");
  }
}

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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!



AtDot and qmail

1999-07-26 Thread aw

Hi,
I am looking for a happy user of AtDot package running with qmail. Have
some problems to send
mails. AtDot says, mail is sent but in fact it is only faked mail.
Need help and appreciate your time spent on this subject.
Andrzej



RE: AtDot and qmail

1999-07-26 Thread Van Liedekerke Franky

I've used Atdot some time ago, and I found it is still buggy: problems with
showing CC, retrieving messages through pop, But I found that most
problems can be fixed..., see the Atdot mailing list, a number of qmail
fanatics are on there as well...

Franky

 --
 From: aw[SMTP:[EMAIL PROTECTED]]
 Sent: Monday, July 26, 1999 6:27 PM
 To:   [EMAIL PROTECTED]
 Subject:  AtDot and qmail
 
 Hi,
 I am looking for a happy user of AtDot package running with qmail. Have
 some problems to send
 mails. AtDot says, mail is sent but in fact it is only faked mail.
 Need help and appreciate your time spent on this subject.
 Andrzej
 



qmail-pop3d and Netscape

1999-07-26 Thread Scott Moorhouse


After recently changing from sendmail/qpopper setup to qmail 1.03 and 
qmail-pop3d (with Maildir storage) for mail services, clients don't
get a progress meter in Netscape Messanger (4.5, 4.6) anymore while
downloading their mail using POP3.  I have confirmed this behavior on
my own workstation by sending myself an extremely large attachment.  

Has anyone else encountered this behavior before?  I'm puzzled.  UIDL
seems to be working.



Null

1999-07-26 Thread Tony Wade

Hi there, 

How does one dump mail to /dev/null , 

say i want the user [EMAIL PROTECTED] to dump the message. 

i have edited the .qmail-null and put /dev/null in it. this as i can see
from the qmail mail logs tried to deliver to the user /dev/null. 

Anyone ? 

Tony Wade
The Internet Solution
Tel:(+27 11) 283 5483
Fax:(+27 11) 283 5401
E-mail: [EMAIL PROTECTED] 
Web:http://www.is.co.za
#include std/disclaimer.h




Re: Null

1999-07-26 Thread Chris Johnson

On Mon, Jul 26, 1999 at 04:13:28PM +0200, Tony Wade wrote:
 Hi there, 
 
 How does one dump mail to /dev/null , 
 
 say i want the user [EMAIL PROTECTED] to dump the message. 
 
 i have edited the .qmail-null and put /dev/null in it. this as i can see
 from the qmail mail logs tried to deliver to the user /dev/null. 

echo '#'  .qmail-null

Chris



Re: Null

1999-07-26 Thread Timothy L. Mayo

This is covered in the FAQ and is in the list archive.

.qmail-null:

#

(.qmail-null contains a single line containing the comment character and
NOTHING else.)

qmail sees this as an instruction to simply discard the mail.

On Mon, 26 Jul 1999, Tony Wade wrote:

 Hi there, 
 
 How does one dump mail to /dev/null , 
 
 say i want the user [EMAIL PROTECTED] to dump the message. 
 
 i have edited the .qmail-null and put /dev/null in it. this as i can see
 from the qmail mail logs tried to deliver to the user /dev/null. 
 
 Anyone ? 
 
 Tony Wade
 The Internet Solution
 Tel:  (+27 11) 283 5483
 Fax:  (+27 11) 283 5401
 E-mail:   [EMAIL PROTECTED] 
 Web:  http://www.is.co.za
 #include std/disclaimer.h
 
 
 

-
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: supervision of tcpserver qmptd

1999-07-26 Thread Mate Wierdl


12345 supervise /var/lock/qmail-qmtpd tcpserver -u -c40 -u81 -g80 0 qmtp
qmail-qmtpd

Where the heck is that extra -u  coming from?  The initscript does

$VERBOSE=-v

and not

$VERBOSE=-u

Mate



Erm

1999-07-26 Thread Tony Wade

Looks like i may have a solution 

in .qmail-null 

| cat  /dev/null 

is this correct ? 

Tony Wade
The Internet Solution
Tel:(+27 11) 283 5483
Fax:(+27 11) 283 5401
E-mail: [EMAIL PROTECTED] 
Web:http://www.is.co.za
#include std/disclaimer.h




Re: Null

1999-07-26 Thread Russell Nelson

Tony Wade writes:
  Hi there, 
  
  How does one dump mail to /dev/null , 

hand waves wildly in the air I know!  I know!  Pick me!  Pick me!

echo '#' .qmail

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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: Erm

1999-07-26 Thread Russell Nelson

Tony Wade writes:
  Looks like i may have a solution 
  
  in .qmail-null 
  
  | cat  /dev/null 
  
  is this correct ? 

It'll work, but it's far too much work.  You have to run a shell, it
has to open /dev/null, and exec cat, and cat has to copy each and
every mail to /dev/null.  Much better to just deliver the mail to a
comment.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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: Null

1999-07-26 Thread Ira Abramov

On Mon, 26 Jul 1999, Russell Nelson wrote:

 Tony Wade writes:
   Hi there, 
   
   How does one dump mail to /dev/null , 
 
 hand waves wildly in the air I know!  I know!  Pick me!  Pick me!
 
 echo '#' .qmail
 

I thought it would discard it as a null file hat way, so ever since I
started using qmail (and it's been 3 years now I think, maybe more) I'd
use:

| cat  /dev/null

(it's also more descriptive of where the mail went :)



Re: Recipientmap dead?

1999-07-26 Thread Ira Abramov

On Mon, 26 Jul 1999, Russell Nelson wrote:

 Ira Abramov writes:
   to illustrate: my current set of rules for sendmail looks like this:
   
   @bothers.com   [EMAIL PROTECTED]
   @building.com  [EMAIL PROTECTED]
   [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 So?
 
 #!/usr/bin/perl
  .
  .
  .
   if ($left) {
 writefile(".qmail-$right-$left", "$out");
   } else {
 writefile(".qmail-$right-default", "$out");

there you go, again it means a gazillion files (well 11394 at the current
count, this is an ISP) and that's both a waste of inodes, a mess in your
eyes, and doesn't solve removing of the .qmail files as aliases are
cancled. the current mechanism is the support person updatiing the file
through a web interface, the cron pushes the file (with the additions or
substractions) onto the mail server. 

hey, I'll time that perl script, if it's under a few seconds to parse the
entire rules file I'll just chmod +t, delete all .qmail files and recreate
them, then chmod -t. it's a kludge, it's heavier than  want it, but it
will work (still open to cleaner ideas, people)



Restricting outgoing messages

1999-07-26 Thread SJ Burns

I've looked through the mailing list archives, but couldn't find anything
to help me with this one. I run a network in a school, and have been using
qmail for nearly a year. It runs well, but some people (ie the kids here)
are using the system for trivial and (occasionally) abusive purposes.
Apart from locking the accounts of those responsible, I would like to
implement a system where each user nominates the people he would like to
email -- say, a list of five people. Any mail to any other destination
won't get through. Those people I trust could get unrestricted access.

I can hack perl quite proficiently, so if any coding is required that's
what I would like to use. Could anyone provide me with a few pointers as
to how to devise such a system? Thanks in advance.

Simon Burns.

/---\
| SJ Burns   | http://www.wincoll.ac.uk | Tel: 01962 621115 |
| Winchester College |"Powered by Linux"| Fax: 01962 621116 |
|  Protect your privacy: http://www.bigbrotherinside.org/   |
\---/




Re: Null

1999-07-26 Thread Russell Nelson

Ira Abramov writes:
  (it's also more descriptive of where the mail went :)

Oy vey!  So be that way if you want!

cat EOF .qmail
# Ira Abramov says a comment in a .qmail file needs an explanation.
# Every delivery line in a .qmail file is interpreted according to
# the first character of the line.  If the character is an '#' the
# line is interpreted as a comment.  So, if you only have comments
# in your file, then the email will be delivered to /dev/null asap.
# Guess what?  Each of these lines has a comment, and they are the
# the only types of delivery in this file therefore the only place
# that the mail is delivered is into the big bit-bucket in the sky.
EOF

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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: Recipientmap dead?

1999-07-26 Thread Dustin Marquess

At 10:37 AM 7/26/99 , Ira Abramov wrote:
On Mon, 26 Jul 1999, Russell Nelson wrote:

 Ira Abramov writes:
   to illustrate: my current set of rules for sendmail looks like this:
   
   @bothers.com  [EMAIL PROTECTED]
   @building.com [EMAIL PROTECTED]
   [EMAIL PROTECTED][EMAIL PROTECTED]
 
 So?
 
 #!/usr/bin/perl
  .
  .
  .
   if ($left) {
 writefile(".qmail-$right-$left", "$out");
   } else {
 writefile(".qmail-$right-default", "$out");

there you go, again it means a gazillion files (well 11394 at the current
count, this is an ISP) and that's both a waste of inodes, a mess in your
eyes, and doesn't solve removing of the .qmail files as aliases are
cancled. the current mechanism is the support person updatiing the file
through a web interface, the cron pushes the file (with the additions or
substractions) onto the mail server. 

hey, I'll time that perl script, if it's under a few seconds to parse the
entire rules file I'll just chmod +t, delete all .qmail files and recreate
them, then chmod -t. it's a kludge, it's heavier than  want it, but it
will work (still open to cleaner ideas, people)

Use fastforward?  It supports /etc/aliases.

-Dustin



Re: Recipientmap dead?

1999-07-26 Thread Russell Nelson

Ira Abramov writes:
  there you go, again it means a gazillion files (well 11394 at the current
  count, this is an ISP)

Oh, well you didn't say you had *that* many.  Stuff 'em into a CDB and
use a database delivery from a .qmail-default, as explained at
http://www.qmail.org/top.html#databaselookup .

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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: Restricting outgoing messages

1999-07-26 Thread Dave Sill

SJ Burns [EMAIL PROTECTED] wrote:

I've looked through the mailing list archives, but couldn't find anything
to help me with this one. I run a network in a school, and have been using
qmail for nearly a year. It runs well, but some people (ie the kids here)
are using the system for trivial and (occasionally) abusive purposes.
Apart from locking the accounts of those responsible, I would like to
implement a system where each user nominates the people he would like to
email -- say, a list of five people. Any mail to any other destination
won't get through. Those people I trust could get unrestricted access.

I can hack perl quite proficiently, so if any coding is required that's
what I would like to use. Could anyone provide me with a few pointers as
to how to devise such a system? Thanks in advance.

It looks like a wrapper around qmail-remote would do the trick. E.g.,
create a script like the following and put it in
/var/qmail/bin/qmail-remote after renaming the real qmail-remote to
qmail-remote-real:

#!/bin/pseudoperl

$host=$1;
$sender=$2;
$recip=$3;  # could be multiple recipients

# check table of senders/recips

if $ok
exec /var/qmail/bin/qmail-remote-real;
else
die "$sender can't send to $recip\@$host";

-Dave



Re: qmail-pop3d and Netscape

1999-07-26 Thread admin

Scott Moorhouse wrote:
 
 After recently changing from sendmail/qpopper setup to qmail 1.03 and
 qmail-pop3d (with Maildir storage) for mail services, clients don't
 get a progress meter in Netscape Messanger (4.5, 4.6) anymore while
 downloading their mail using POP3.  I have confirmed this behavior on
 my own workstation by sending myself an extremely large attachment.
 
 Has anyone else encountered this behavior before?  I'm puzzled.  UIDL
 seems to be working.


[Raises hand].

This happens with Netscape 4.0 too, BTW. I'm not sure, however, of
whether this is a Netscape bug or a qmail/qmail-pop3d problem...



Paulo Jan.
DDnet.



How to remove qmail ?

1999-07-26 Thread Dimitri SZAJMAN

Hi !

I installed qmail months ago and I'm very happy with it : fast, secure...
But I need to do some tests with sendmail, so I have to remove qmail to
reinstall sendmail.
Can someone tell me the procedure to remove qmail ? Should I then get
sendmail, compile and install it ?

Thank you for answers.


___
Dimitri SZAJMAN - [EMAIL PROTECTED]

"Summer vacation is a time when parents realize that teachers are grossly
underpaid." (Anonymous)



Industry name for various email services? (repost)

1999-07-26 Thread Dave Kitabjian


What are the industry-standard names for the following email services:

--
1) They can have:

any_name@their_domain

and a separate POP for each. (.qmail-any_name)
--
2) They can have:

any_name@their_domain

but they get only a single pop account, "default", for retrieval of all the 
mail (.qmail-default).
--
3) All mail to

any_name@their_domain_2

is treated as

any_name@their_domain_1

(by virtualdomains entry: their_domain_2:their_domain_1)
--

We've been calling these variously "Full Domain email", "POP domain email", 
"Alias Domain email", etc. But I want to know what the *real* names are for 
these. Thanks very much!

Dave



Re: How to remove qmail ?

1999-07-26 Thread Aaron L. Meehan

Quoting Dimitri SZAJMAN ([EMAIL PROTECTED]):
 Hi !
 
 I installed qmail months ago and I'm very happy with it : fast, secure...
 But I need to do some tests with sendmail, so I have to remove qmail to
 reinstall sendmail.
 Can someone tell me the procedure to remove qmail ? Should I then get
 sendmail, compile and install it ?

I'm sure that many others will point out that there is no need to
uninstall anything.  The only important points I can think of:

- Make sure tcpserver on port 25 isn't running, or if you are using inetd,
  comment out smtp in /etc/inetd.conf and send inetd a HUP.
- If you'll be rebooting the machine during testing, make sure to disable
  the scripts that start qmail-send and tcpserver at bootup.
- Classic sendmail install will overwrite your /usr/sbin/sendmail symlink
  to /var/qmail/bin/sendmail.  Make sure to symlink that again after your
  tests with sendmail are complete.
- You should be able to safely keep qmail-send running if you still have
  messages in the queue.
- If you chmod'd /var/spool/mail to 000 as per the qmail install 
  instructions, you'll obviously need to fix its perms.

Others please provide more if I've missed something.

Aaron



Qmail and Virus Protection

1999-07-26 Thread Paul Gregg

Well everyone, my new hobbyhorse is Anti-Virus (or Virus Protection) of
Qmail systems.

Essentially, I don't believe that anyone is actually running anything
like this at this point in time.

There is probably two options:

1) In .qmail pipe the incoming email *for delivery* through a traditional
   antivirus package.  Possibly using Amavis.

2) Write a qmail-queue wrapper which reads in the email as normal,
   sweeps it using an external virus sweeper, if clean passes it to
   the real qmail-queue.

There are problems and advantages with both. Neither of which I like.
1 allows fine grained control over who's email does and doesn't get
sweeped, but unless the antivirus is a clientserver model will take
ungodly amounts of resources in startup per email.
2 - I really don't like interrupting the smtpd-queue process with an
external program.  Plus qmail-queue can't print diagnostics.

The third option is perhaps the "best".  DJB in qmail-2.0 needs to
have an external "hook" to sweep emails via an external 3rd party daemon or
command.  The hook could either be in qmail-queue as a central point, or
in qmail-inject and qmail-smtpd.  Either option needs to be able to return
an errordiagnosic message.

I'm sure this message will touch nice/sore spot with most readers and
is something that will in the near future will become something with which
we must all deal with, so lets get the ball rolling.

Paul Gregg
-- 
Email pgregg at tibus.netT: +44 (0)  1232 424190  |  CLUB24  INTERNET  | 
Technical Director   F: +44 (0)  1232 424709  |Free  Access| 
The Internet Business LtdW: http://www.tibus.net  |  www.club24.co.uk  | 



Re: How to remove qmail ?

1999-07-26 Thread Russell Nelson

Dimitri SZAJMAN writes:
  I installed qmail months ago and I'm very happy with it : fast, secure...
  But I need to do some tests with sendmail, so I have to remove qmail to
  reinstall sendmail.
  Can someone tell me the procedure to remove qmail ? Should I then get
  sendmail, compile and install it ?

Disassociate /usr/lib/sendmail from /var/qmail/bin/sendmail

# rm /usr/lib/sendmail (or /usr/sbin/sendmail depending on your machine)
# ln -s /usr/lib/sendmail.orig  /usr/lib/sendmail ( or .../sbin/...)

Disassociate /var/qmail/bin/qmail-smtpd from port 25

# svc -d /var/run/smtpd (presuming you're running supervise)
  or
# kill `ps ax | grep "tcpserver.*[ ]25 " | awk '{print $1}'` (presuming tcpserver)
  or
# perl -pi.bak -e 's/^smtp/#$/;' /etc/inetd.conf
# kill `ps ax | grep "inetd" | awk '{print $1}'` (presuming inetd)

Run sendmail with some reasonable parameters, e.g.:

# /usr/lib/sendmail -q 15m -bd

No need to uninstall qmail.

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr sells support for free 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!



Aliases / Locals

1999-07-26 Thread Nelson Ferreira Jr. (listas)

 (sorry about sending the message twice)

 I want qmail working with several domains, in the following way:
 If there's a incoming message to  [EMAIL PROTECTED] it will be
delivered to user, whatever the host could be. (assuming there is an
account user in my system)
 But I also want to set up aliases for those hosts.
 In other words, I want qmail looking for an alias (.qmail-host-user) 
first, and if it can't find one, try to deliver the message as local. 
 The problem is that I cannot get both things working together. Either
I set up a domain as "local" or as "virtualhost".  My first aproach to
solve this is to configure all my domains as "virtualhost" and set up a
alias .qmail-host-user for every user in my system, but I think there's a
easier way to do this.

 Any comments ?


 Thank you.




Re: Aliases / Locals

1999-07-26 Thread Chris Johnson

On Mon, Jul 26, 1999 at 04:54:59PM -0300, Nelson Ferreira Jr. (listas) wrote:
  (sorry about sending the message twice)
 
  I want qmail working with several domains, in the following way:
  If there's a incoming message to  [EMAIL PROTECTED] it will be
 delivered to user, whatever the host could be. (assuming there is an
 account user in my system)
  But I also want to set up aliases for those hosts.
  In other words, I want qmail looking for an alias (.qmail-host-user) 
 first, and if it can't find one, try to deliver the message as local. 
  The problem is that I cannot get both things working together. Either
 I set up a domain as "local" or as "virtualhost".  My first aproach to
 solve this is to configure all my domains as "virtualhost" and set up a
 alias .qmail-host-user for every user in my system, but I think there's a
 easier way to do this.

Set the domain up as a virtual domain.

In control/virtualdomains:

example.com:someuser-example

In ~someuser/.qmail-example-default:

| forward ${DEFAULT}

Chris



Re: Industry name for various email services? (repost)

1999-07-26 Thread Ira Abramov

On Mon, 26 Jul 1999, Dave Kitabjian wrote:

 
 What are the industry-standard names for the following email services:

I doubt it's a standard in some ISO or IEEE book, it's not even an RFC.
let your marketing guy sit with a copywriter and find a name for these
packages so they SELL :-)

   any_name@their_domain
 
 and a separate POP for each. (.qmail-any_name)

ISP-based virtual mail domain


   any_name@their_domain
 
 but they get only a single pop account, "default", for retrieval of all the 
 mail (.qmail-default).

single-mailbox domain forwarding, AKA lame.

 3) All mail to
   any_name@their_domain_2
 is treated as
   any_name@their_domain_1
 (by virtualdomains entry: their_domain_2:their_domain_1)

full domain overlay? symetric domain forwarding? let your copywriter think
it up for you :)



serialmail

1999-07-26 Thread qmail

Hi all,

I have installed AutoTURN and serial mail

I have not quite understood the instructions in serial mail
and I see different usages on this list mentioned by Dave and others

Could you kindly indicate where I can get a lwq or HOWTO on serial mail.

Thanks
Jacob



Re: qmail-pop3d and Netscape

1999-07-26 Thread Anand Buddhdev

On Mon, Jul 26, 1999 at 09:04:09AM -0500, Scott Moorhouse wrote:

I believe this is a Netscape problem. It doesn't use the message size
value from the LIST command, but instead expects the message size to be
given after the OK to the RETR command, like this:

...
RETR 1
+OK 345 octets
...
message follows...
...

.

I have a small patch to qmail-pop3d that works around this Netscape
stupidity, but I'm travelling at the moment, and I don't know where the
file is. When I get back in 2 days time, I can send it to you.

 After recently changing from sendmail/qpopper setup to qmail 1.03 and 
 qmail-pop3d (with Maildir storage) for mail services, clients don't
 get a progress meter in Netscape Messanger (4.5, 4.6) anymore while
 downloading their mail using POP3.  I have confirmed this behavior on
 my own workstation by sending myself an extremely large attachment.  
 
 Has anyone else encountered this behavior before?  I'm puzzled.  UIDL
 seems to be working.

--
Anand