Help wanted

2001-06-18 Thread Schajee Achmad

Hi there,

Let me introdce myself first. My name is Schajee and I'm a web developer. My
company requires me to setup a complete Hotmail styled email service for use
by its employees.

I've been searching a solution to this problem and I found a lot of them but
none matched my requirement, so I was forced to look for other solutions. I
found qmail by accident and I kinda liked it. I've been using it for a some
days now and I think it meets my requirments.

So the question is how do you setup a mail service like Hotmail. I'm ready to
develop a web based MUA which works with qmail and hopefull this should do the
trick.

So, anybody out there who has either worked on it before or has some
experiance in working for such a thing... please let know so that we can sit
down and talk about this.

Thanks
Schajee


Get free email and a permanent address at http://www.netaddress.com/?N=1



Discarding mailer_daemon mail....

2001-06-18 Thread Greg Moeller

Is there any way to discard any Email the mailer daemon generates?
Each day, the queue on our server builds up between 7000-1 Email in the 
queue that the mailer daemon's trying to return. (All spam, of course, the 
return address being bogus in some way)
I have to run a script every night that deletes all DAEMON mail then restart 
the queuing system in order to not have the queue utterly overload. (much over 
15000-2 in the queue and the system bogs down trying to sort out what 
Email it's trying to send)  If I let the system sort this out on it's own, by 
the time the 4 day waiting period was up there'd be 45000 Email laying about 
the queue.

Or maybe some way to limit the 4 day delivery time to maybe 18-24 hours.
(This system is only for local delivery, it does no outgoing SMTP other than 
trying to return Email)

Greg





RE: Help wanted

2001-06-18 Thread Troy Settle


Schagee,

I've only just started playing with it, but squirrelmail has an awesome look
and feel and seems to be extremly fast against courier-imapd.  It runs under
PHP4, is open-source, and ready to rock-and-roll.  It took me all of about 2
minutes to install, configure, and run my first test.  It loaded up my IMAP
account (with over 80 folders and 30k messages) in less than 5 seconds.
It's even faster on a more normal account.

Anyways, the URL is http://www.squirrelmail.org

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Schajee Achmad [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 7:30 AM
** To: [EMAIL PROTECTED]
** Subject: Help wanted
**
**
** Hi there,
**
** Let me introdce myself first. My name is Schajee and I'm a web
** developer. My
** company requires me to setup a complete Hotmail styled email
** service for use
** by its employees.
**
** I've been searching a solution to this problem and I found a lot
** of them but
** none matched my requirement, so I was forced to look for other
** solutions. I
** found qmail by accident and I kinda liked it. I've been using it
** for a some
** days now and I think it meets my requirments.
**
** So the question is how do you setup a mail service like Hotmail.
** I'm ready to
** develop a web based MUA which works with qmail and hopefull this
** should do the
** trick.
**
** So, anybody out there who has either worked on it before or has some
** experiance in working for such a thing... please let know so
** that we can sit
** down and talk about this.
**
** Thanks
** Schajee
**
** 
** Get free email and a permanent address at http://www.netaddress.com/?N=1
**
**




Re: Discarding mailer_daemon mail....

2001-06-18 Thread Jörgen Persson

On Mon, Jun 18, 2001 at 03:15:10AM -0500, Greg Moeller wrote:
 Is there any way to discard any Email the mailer daemon generates?
 Each day, the queue on our server builds up between 7000-1 Email
 in the queue that the mailer daemon's trying to return. (All spam, of
 course, the return address being bogus in some way)

Consider the use of rblsmtpd[1] to block incoming spam.


 Or maybe some way to limit the 4 day delivery time to maybe 18-24
 hours. 

Set /var/qmail/control/queuelifetime to control the number of seconds a
message can stay in the queue (default 604800, i.e. a week).

Jörgen
[1] http:/cr.yp.to/ucspi-tcp/rblsmtpd.html



Re: Help wanted

2001-06-18 Thread Oden Eriksson

Take a peek at sqwebmail at www.inter7.com/sqwebmail/ wich Í have been 
satisfied with many years. That's a nice piece of work. 

Troy Settle writes: 

 
 Schagee, 
 
 I've only just started playing with it, but squirrelmail has an awesome look
 and feel and seems to be extremly fast against courier-imapd.  It runs under
 PHP4, is open-source, and ready to rock-and-roll.  It took me all of about 2
 minutes to install, configure, and run my first test.  It loaded up my IMAP
 account (with over 80 folders and 30k messages) in less than 5 seconds.
 It's even faster on a more normal account. 
 
 Anyways, the URL is http://www.squirrelmail.org 
 
 --
   Troy Settle
   Pulaski Networks
   540.994.4254 
 
 
 ** -Original Message-
 ** From: Schajee Achmad [mailto:[EMAIL PROTECTED]]
 ** Sent: Monday, June 18, 2001 7:30 AM
 ** To: [EMAIL PROTECTED]
 ** Subject: Help wanted
 **
 **
 ** Hi there,
 **
 ** Let me introdce myself first. My name is Schajee and I'm a web
 ** developer. My
 ** company requires me to setup a complete Hotmail styled email
 ** service for use
 ** by its employees.
 **
 ** I've been searching a solution to this problem and I found a lot
 ** of them but
 ** none matched my requirement, so I was forced to look for other
 ** solutions. I
 ** found qmail by accident and I kinda liked it. I've been using it
 ** for a some
 ** days now and I think it meets my requirments.
 **
 ** So the question is how do you setup a mail service like Hotmail.
 ** I'm ready to
 ** develop a web based MUA which works with qmail and hopefull this
 ** should do the
 ** trick.
 **
 ** So, anybody out there who has either worked on it before or has some
 ** experiance in working for such a thing... please let know so
 ** that we can sit
 ** down and talk about this.
 **
 ** Thanks
 ** Schajee
 **
 ** 
 ** Get free email and a permanent address at http://www.netaddress.com/?N=1
 **
 ** 
 
 


 --
Kindest regards // Oden Eriksson
CEO Kvikkjokk Networks 



Re: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-18 Thread peter green

* Troy Settle [EMAIL PROTECTED] [010617 17:20]:
 Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
 ~alias/.qmail-default, but that would appear to be for all domains, which I
 do not want to do.
 
 So, I put that line into ~vpopmail/domains/foo.com/.qmail-default, but that
 resulted in mail being forwarded to [EMAIL PROTECTED]

s/LOCAL/DEFAULT/g

 In postfix, this is easy stuff with virtualmaps:
 
   @domain.com:@otherdomain.com
 
 Is there nothing similar in qmail?

If you are using vmailmgr, yes there is. Since all domains are handled by
individual system users, just point both domains at the same system user:

[/var/qmail/control/virtualdomains]
  # format is ``domain:system_user''
  # I name system users after the domain, just to be simple
  example.com:example.com
  # domain alias for example.com
  example.net:example.com

(I'm sure it's possible w/o vmailmgr; that's just what I know.) The nice
thing about this method is that it avoids the add'l delivery of a forward
(which is what the FAQ suggests). We use this all the time.

HTH,

/pg
-- 
Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
---
panic(esp: penguin doesn't disconnect after status msg-ack.);
(Panic message in the kernel.)




Re: [SLE] how to forward 2 different network IP

2001-06-18 Thread kengheng


Kernel IP routing 
tableDestination 
Gateway 
Genmask Flags Metric 
Ref 
UseIface10.1.0.0 
0.0.0.0 
255.255.255.0 U 
0 0 0 
eth1128.1.0.0 
0.0.0.0 
255.255.0.0 U 
0 0 0 
eth00.0.0.0 
128.1.0.244 
0.0.0.0 UG 
0 0 0 
eth0


RE: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-18 Thread Troy Settle


Peter, Edward,

Thanks for the input on this, I'll be playing with it more today.

One important thing I forgot to mention in my last post, is that I'm only a
MX for these domains, the customer runs his own server to handle the mail.
Normally, I'd just set up an SMTP route to send all the mail to the
customer's server, but they're running exchange, and for those who don't
know, it's not fun to admin an exchange server when you have hundreds of
users to configure to accept mail at dozens of domains (actually only 2 or
3, but still a pain).

Thanks,

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: peter green [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 8:22 AM
** To: [EMAIL PROTECTED]
** Subject: Re: Rewrite (.*)@foo.com to \\[EMAIL PROTECTED]
**
**
** * Troy Settle [EMAIL PROTECTED] [010617 17:20]:
**  Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
**  ~alias/.qmail-default, but that would appear to be for all
** domains, which I
**  do not want to do.
** 
**  So, I put that line into
** ~vpopmail/domains/foo.com/.qmail-default, but that
**  resulted in mail being forwarded to [EMAIL PROTECTED]
**
** s/LOCAL/DEFAULT/g
**
**  In postfix, this is easy stuff with virtualmaps:
** 
**@domain.com:@otherdomain.com
** 
**  Is there nothing similar in qmail?
**
** If you are using vmailmgr, yes there is. Since all domains are handled by
** individual system users, just point both domains at the same system user:
**
** [/var/qmail/control/virtualdomains]
**   # format is ``domain:system_user''
**   # I name system users after the domain, just to be simple
**   example.com:example.com
**   # domain alias for example.com
**   example.net:example.com
**
** (I'm sure it's possible w/o vmailmgr; that's just what I know.) The nice
** thing about this method is that it avoids the add'l delivery of a forward
** (which is what the FAQ suggests). We use this all the time.
**
** HTH,
**
** /pg
** --
** Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
** ---
** panic(esp: penguin doesn't disconnect after status msg-ack.);
** (Panic message in the kernel.)
**
**




When bouncesaying messages bounce...

2001-06-18 Thread Ed Weinberg

When bouncesaying messages bounce I get a failure notice.  Usually it
is about bouncing to username which does not exist because the
original bounce messages was spam from a bogus email address.  Is
there any way to stop getting these bounced bounced messages and
still get legitimate failed emails?


Ed Weinberg, Q5 Comm, LLC.
[EMAIL PROTECTED]
tel 914-713-7222
fax 914-713-7227 
Connecting you to the internet...



how may i discard msgs

2001-06-18 Thread Deslions Nicolas

Hi
i'm currently receiving a lot of virus generated messages the To: looks
like :  SMTP:[EMAIL PROTECTED] 
i've tried to discard those messages using some .qmail alias files like
.qmail-SMTP-default , .qmail-SMTP:[EMAIL PROTECTED] etc etc but none seems
to work.
Any idea ?

Thanks

Nicolas Deslions
System, network and security admin

Net2one.com, France
20 rue du Sentier 75002 Paris
Mail: [EMAIL PROTECTED]
http://www.net2one.com



RE: Discarding mailer_daemon mail....

2001-06-18 Thread Deslions Nicolas

i guess you could just put # in /var/qmail/alias/.qmail-mailer-daemon


 -Message d'origine-
 De : Greg Moeller [mailto:[EMAIL PROTECTED]]
 Envoyé : Monday, June 18, 2001 10:15
 À : [EMAIL PROTECTED]
 Objet : Discarding mailer_daemon mail
 
 
 Is there any way to discard any Email the mailer daemon generates?
 Each day, the queue on our server builds up between 
 7000-1 Email in the 
 queue that the mailer daemon's trying to return. (All spam, 
 of course, the 
 return address being bogus in some way)
 I have to run a script every night that deletes all DAEMON 
 mail then restart 
 the queuing system in order to not have the queue utterly 
 overload. (much over 
 15000-2 in the queue and the system bogs down trying to 
 sort out what 
 Email it's trying to send)  If I let the system sort this out 
 on it's own, by 
 the time the 4 day waiting period was up there'd be 45000 
 Email laying about 
 the queue.
 
 Or maybe some way to limit the 4 day delivery time to maybe 
 18-24 hours.
 (This system is only for local delivery, it does no outgoing 
 SMTP other than 
 trying to return Email)
 
 Greg
 



Re: Discarding mailer_daemon mail....

2001-06-18 Thread Charles Cazabon

Greg Moeller [EMAIL PROTECTED] wrote:
 Is there any way to discard any Email the mailer daemon generates?

No easy, built-in way, but then again, you shouldn't need it.  queue
management in qmail is completely automatic.

 Each day, the queue on our server builds up between 7000-1 Email in the
 queue that the mailer daemon's trying to return. (All spam, of course, the
 return address being bogus in some way) I have to run a script every night
 that deletes all DAEMON mail then restart the queuing system in order to not
 have the queue utterly overload. (much over 15000-2 in the queue and the
 system bogs down trying to sort out what Email it's trying to send)

Your system is misconfigured.  What split value are you using?  What
filesystem on what operating system?  What kind of disk/array is the queue on?
If your system bogs down because of the number of (basically inactive)
messages in the queue, you've configured your system with values which are
inappropriate for the load you're trying to serve.

 Or maybe some way to limit the 4 day delivery time to maybe 18-24 hours.

qmail's default queuelifetime is 7 days.  You can lower it to whatever you
want.  However, reducing it too far will cause mail to bounce which would
otherwise be delivered successfully.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: [Q] qmail and supervise

2001-06-18 Thread Dave Sill

Bernhard Graf [EMAIL PROTECTED] wrote:

Gerrit Pape wrote

 svscan should be started at boot time and never stopped until
 shutdown.  That ensures your services are always running with the
 same (known and wanted) environment and limits.

But I don't want to bypass run levels.

Would you approve creating a 'down' file in the service directories and
running 'svc -u / svc -d' in init.d scripts on each service?

That's a nice idea, but it doesn't work. svscan started via inittab
isn't started until *after* the init.d scripts are run. I only tested
this on Red Hat 7.1, but I suspect its widespread.

-Dave



ACL

2001-06-18 Thread rosita



Hi all

I've Qmail,Vpopmail and Courier Imap.
I need to implement something like Exchange 
Acl,
many users need access to a single mailbox 
with
their own credentials.

Thanks


Re: [Q] qmail and supervise

2001-06-18 Thread Charles Cazabon

Dave Sill [EMAIL PROTECTED] wrote:
 
 Would you approve creating a 'down' file in the service directories and
 running 'svc -u / svc -d' in init.d scripts on each service?
 
 That's a nice idea, but it doesn't work. svscan started via inittab
 isn't started until *after* the init.d scripts are run. I only tested
 this on Red Hat 7.1, but I suspect its widespread.

I could be mistaken, but I believe this behaviour depends on the order of the
various lines in inittab -- if you put svscan before the stuff called in the
standard runlevels, it should work.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: how may i discard msgs

2001-06-18 Thread Dave Sill

Deslions Nicolas [EMAIL PROTECTED] wrote:

i'm currently receiving a lot of virus generated messages the To: looks
like :  SMTP:[EMAIL PROTECTED] 
i've tried to discard those messages using some .qmail alias files like
.qmail-SMTP-default , .qmail-SMTP:[EMAIL PROTECTED] etc etc but none seems
to work.

The default break character is a dash (-), so none of the extension
.qmail files you're trying will work.

Any idea ?

Sure, try the qmail-users facility:

  http://www.lifewithqmail.org/lwq.html#qmail-users

A wildcard entry like:

+smtp:alias:aliasuid:aliasgid:/var/qmail/alias::-smtp-:

Should direct mail to smtpanything@yourdomain to
/var/qmail/alias/.qmail-smtp-default.

-Dave



need to log in a database.

2001-06-18 Thread Federico



I now it is not too legal and a right thing, but I 
must register in a Database, possibly MySQL or PostgreSQL, every single 
incoming/outgoing mail with: 

+ sender
+ receiver
+ body of the mail
+ possibly also any attachment


how it is possible?


thx.


Re: Discarding mailer_daemon mail....

2001-06-18 Thread Larry M. Smith

I am currently working on a dblbounce manager...

Still in testing... but it's just a perl script that automatically add a 
sender's envelope to badmailfrom if it bounces.




Re: [Q] qmail and supervise

2001-06-18 Thread Dave Sill

Charles Cazabon [EMAIL PROTECTED] wrote:

I could be mistaken, but I believe this behaviour depends on the order of the
various lines in inittab -- if you put svscan before the stuff called in the
standard runlevels, it should work.

Hmm, that could be it. If so, it's unfortunate that DJB's daemontools
installation instructions specifically say to put the SV entry at the
end of the file.

-Dave



Re: need to log in a database.

2001-06-18 Thread Chris Johnson

On Mon, Jun 18, 2001 at 04:55:06PM +0200, Federico wrote:
 I now it is not too legal and a right thing, but I must register in a
 Database, possibly MySQL or PostgreSQL, every single incoming/outgoing mail
 with: 
 
 + sender
 + receiver
 + body of the mail
 + possibly also any attachment

Use the method in FAQ 8.2, and in ~alias/.qmail-log you can pipe the message
into a program or script that puts it in the database.

Chris

 PGP signature


RE: how may i discard msgs

2001-06-18 Thread Deslions Nicolas

Thanks but it doesn't seems to work
i think the problem maybe comes from the : character...


 -Message d'origine-
 De : Dave Sill [mailto:[EMAIL PROTECTED]]
 Envoyé : Monday, June 18, 2001 16:54
 À : [EMAIL PROTECTED]
 Objet : Re: how may i discard msgs
 
 
 Deslions Nicolas [EMAIL PROTECTED] wrote:
 
 i'm currently receiving a lot of virus generated messages 
 the To: looks
 like :  SMTP:[EMAIL PROTECTED] 
 i've tried to discard those messages using some .qmail alias 
 files like
 .qmail-SMTP-default , .qmail-SMTP:[EMAIL PROTECTED] etc 
 etc but none seems
 to work.
 
 The default break character is a dash (-), so none of the extension
 .qmail files you're trying will work.
 
 Any idea ?
 
 Sure, try the qmail-users facility:
 
   http://www.lifewithqmail.org/lwq.html#qmail-users
 
 A wildcard entry like:
 
 +smtp:alias:aliasuid:aliasgid:/var/qmail/alias::-smtp-:
 
 Should direct mail to smtpanything@yourdomain to
 /var/qmail/alias/.qmail-smtp-default.
 
 -Dave
 



Multiple users, single mailbox

2001-06-18 Thread marco1




Hi all

I've Qmail,Vpopmail and Courier Imap.
I need to implement something like Exchange 
Acl,
many users need access to a single mailbox 
with
their own credentials.

Thanks


smtp router

2001-06-18 Thread Federico



I need to make this possible with 
qmail:

I've this structure 
INTERNETQMAIL-EXCHANGE

i need that ALL incoming mail from internet are 
sent directly to exchange and the outgoing mail are sent normally.

it is possible? 
how?



Re: [Q] qmail and supervise

2001-06-18 Thread Adrian Ho

On Mon, 18 Jun 2001, Charles Cazabon wrote:

 I could be mistaken, but I believe this behaviour depends on the order
 of the various lines in inittab -- if you put svscan before the stuff
 called in the standard runlevels, it should work.

SysVinit, which I believe is quite common on Linux systems, constructs a
linked list in pretty much the same order listed in /etc/inittab, so your
method would work here.

However, this feature is usually poorly documented (if at all), so
caveat implementor as always.

-- 
Adrian Ho   [EMAIL PROTECTED]




Re: need to log in a database.

2001-06-18 Thread Charles Cazabon

Federico [EMAIL PROTECTED] wrote:
 I now it is not too legal and a right thing, but I must register in a
 Database, possibly MySQL or PostgreSQL, every single incoming/outgoing mail
[...]
 how it is possible?

djb has instructions on logging every message qmail handles.  Use that.  Then
in the appropriate .qmail file, feed the message to a script which extract the
information you want and sticks it into the database.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



UW-IMAP + qmail + vpopmail

2001-06-18 Thread Claudiu Costin

   Hello friends,

   Is there a patch/distro for UW-IMAP
or else IMAP server (forget about Courier IMAP)
which work with vpopmail authentication?

  I know and download version  with Maildir
support, but it use PAM, passwd. I want
to use imapdlogin - authvchkpw -uw-imap with modification

uw-imap with modification I'll want. Somebody was 
make this before. I think is necessary to cut 
auth part.

kind regards,
-- 
Claudiu Costin
[EMAIL PROTECTED]



Re: smtp router

2001-06-18 Thread Peter van Dijk

On Mon, Jun 18, 2001 at 05:14:48PM +0200, Federico wrote:
 I need to make this possible with qmail:
 
 I've this structure INTERNETQMAIL-EXCHANGE
 
 i need that ALL incoming mail from internet are sent directly to exchange and the 
outgoing mail are sent normally.
 
 it is possible? 

Yes.

 how?

Put your qmail box as primary MX in DNS. Set smtproutes entries (man
qmail-remote) for all domains, to your exchange box. Read the FAQ on
how to allow your (internal) network to use the qmail box as a relay.
Configure the exchange box to use your qmail box as a smarthort.

Greetz, Peter
-- 
Against Free Sex!   http://www.dataloss.nl/Megahard_en.html



Re: smtp router

2001-06-18 Thread Charles Cazabon

Federico [EMAIL PROTECTED] wrote:

 it is possible?  how?
 
`man qmail-control`.  Follow the reference to smtproutes.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: smtp router

2001-06-18 Thread Ahmad Ridha

Federico writes: 

 I need to make this possible with qmail: 
 
 I've this structure INTERNETQMAIL-EXCHANGE 
 
 i need that ALL incoming mail from internet are sent directly to exchange and the 
outgoing mail are sent normally. 
 
 it is possible? 
 how? 
 

(In /var/qmail/control/)
Create a file called smtproutes containing: 

:IP of Exchange server 

and remove the entries of locals and virtualdomains 

Regards, 

Ahmad Ridha



Re: Spam Removal

2001-06-18 Thread Ed Weinberg

On Sun, 17 Jun 2001 17:13:51 -0500, Jeremy Suo-Anttila
[EMAIL PROTECTED] wrote:

I have already done this and yes i do have pop b4 smtp setup and running so
i am not asking about me being a relay as some people on the list think.
Does anyone know a good how to or site where i can get info on rejecting all
mail that is not addressed directly to me or my users ?

Sounds like you have a default mailbox set up.  Just remove that
mailbox and make sure each user has a .qmail file and those messages
will be bounce.

As to denying the servers they are using, I have been watching them.
They originate from a different address that traced to .kr or .cn or
some other unfriendly country, so you can't email their provider to
turn them off.

They also relay from a different relay each time.

Every time they start these campaigns I get their spam for a few days,
then every email address on their list gets 10 times the spam for a
while.

I am considering screening out ALL .cn and .kr mailservers.  Is there
an easy way to do that?


Ed Weinberg, Q5 Comm, LLC.
[EMAIL PROTECTED]
tel 914-713-7222
fax 914-713-7227 
Connecting you to the internet...



Re: smtp router

2001-06-18 Thread Greg White

On Mon, Jun 18, 2001 at 05:14:48PM +0200, Federico wrote:
 I need to make this possible with qmail:
 
 I've this structure INTERNETQMAIL-EXCHANGE
 
 i need that ALL incoming mail from internet are sent directly to exchange and the 
outgoing mail are sent normally.
 
 it is possible? 
 how?
 

It's trivial, presuming that all incoming domains are known -- use
/var/qmail/control/smtproutes. Warning, ISTR that Exchange servers are
vulnerable to dirty percenthack relay vulnerabilites, and it is
non-trivial to disable.

Other than that, we used that exact setup when execs at a former company
of mine insisted that Exchange was the only way to go, and all the
admins refused to connect the Exchange server directly to the internet.
;)

-- 
Greg White



RE: Spam Removal

2001-06-18 Thread Jeremy Suo-Anttila

Please let know if you find a way to block all of the domains you mentioned.
Also do you think someone like arin.net would have there blocks of ips on
file and then we can just block them ?

Thanks

Jps



From: Ed Weinberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 10:13 AM Subject: Re: Spam Removal


On Sun, 17 Jun 2001 17:13:51 -0500, Jeremy Suo-Anttila
[EMAIL PROTECTED] wrote:

I have already done this and yes i do have pop b4 smtp setup and running so
i am not asking about me being a relay as some people on the list think.
Does anyone know a good how to or site where i can get info on rejecting
all
mail that is not addressed directly to me or my users ?

Sounds like you have a default mailbox set up.  Just remove that
mailbox and make sure each user has a .qmail file and those messages
will be bounce.

As to denying the servers they are using, I have been watching them.
They originate from a different address that traced to .kr or .cn or
some other unfriendly country, so you can't email their provider to
turn them off.

They also relay from a different relay each time.

Every time they start these campaigns I get their spam for a few days,
then every email address on their list gets 10 times the spam for a
while.

I am considering screening out ALL .cn and .kr mailservers.  Is there
an easy way to do that?


Ed Weinberg, Q5 Comm, LLC.
[EMAIL PROTECTED]
tel 914-713-7222
fax 914-713-7227
Connecting you to the internet...




RE: courier-imap and tcpserver ?

2001-06-18 Thread Michael Boyiazis

this is working nicely for me...

http://www.ornl.gov/its/archives/mailing-lists/qmail/2000/04/msg01189.html

-- 
Michael Boyiazis
[EMAIL PROTECTED]
Mail Architect, NetZero, Inc.

 -Original Message-
 From: Oden Eriksson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 16, 2001 8:45 AM
 To: [EMAIL PROTECTED]
 Subject: courier-imap and tcpserver ?
 
 
 Hi list,
 
 I wonder if anyone has courier-imap running under tcpserver, 
 and if so could 
 share how it was done?
 
 Thanks in advance.
 
 -- 
 
 Regards // Oden Eriksson
 Kvikkjokk Networks
 






Re: smtp router

2001-06-18 Thread Henning Brauer

On Mon, Jun 18, 2001 at 03:48:23PM +, Ahmad Ridha wrote:
 Federico writes:  
  I need to make this possible with qmail: 
  I've this structure INTERNETQMAIL-EXCHANGE 
  i need that ALL incoming mail from internet are sent directly to exchange and the 
outgoing mail are sent normally. 
  it is possible? 
  how? 
 (In /var/qmail/control/)
 Create a file called smtproutes containing: 
 :IP of Exchange server 
 and remove the entries of locals and virtualdomains 

Definitely not. This causes a loop.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Discarding mailer_daemon mail....

2001-06-18 Thread Greg Moeller

 Greg Moeller [EMAIL PROTECTED] wrote:
  Is there any way to discard any Email the mailer daemon generates?
 
 No easy, built-in way, but then again, you shouldn't need it.  queue
 management in qmail is completely automatic.
 

 
 Your system is misconfigured.  What split value are you using?  What
 filesystem on what operating system?  What kind of disk/array is the queue on?
 If your system bogs down because of the number of (basically inactive)
 messages in the queue, you've configured your system with values which are
 inappropriate for the load you're trying to serve.
The system is dual processor Sparc 450, and an A1000 storage array.  Qmail is 
running stock standard, as Dan intended.  :)
The queue was running on it's own bit of the array, multi spindle, mirrored.
I've since moved it to /tmp, performance has gotten much nicer since then, 
almost a system crash will eat it. (see below for why I don't really care)
Also, a large spam hit might eat the machine's RAM/swap(which I care about a 
bit more) (512 Meg of RAM, 256 of spool)
The system delivers locally about 250,000 Email/day.
 
  Or maybe some way to limit the 4 day delivery time to maybe 18-24 hours.
 
 qmail's default queuelifetime is 7 days.  You can lower it to whatever you
 want.  However, reducing it too far will cause mail to bounce which would
 otherwise be delivered successfully.
The only deliveries this server does is local, which I hope wouldn't take more 
than a few seconds, anything in the queue for remote delivery is a bounce.
(which is why I don't care if the queue is lost, since all I lose is bounces)
 
 Charles
 -- 
Greg





Re: smtp router

2001-06-18 Thread Greg White

On Mon, Jun 18, 2001 at 03:48:23PM +, Ahmad Ridha wrote:
 Federico writes: 
 
  I need to make this possible with qmail: 
  
  I've this structure INTERNETQMAIL-EXCHANGE 
  
  i need that ALL incoming mail from internet are sent directly to exchange and the 
outgoing mail are sent normally. 
  
  it is possible? 
  how? 
  
 
 (In /var/qmail/control/)
 Create a file called smtproutes containing: 
 
 :IP of Exchange server 
 
 and remove the entries of locals and virtualdomains 
 
 Regards, 
 
 Ahmad Ridha

Umm, that would be, to put it mildly, bad, unless you intend to _relay_
all mail from the Exchange server as well as sending all inbound mail to
it. If the OP sets up his Exchange server with qmail as the smarthost
(which is what he sounds like he wants), this will create a mail loop.
Only domains in rcpthosts should be in smtproutes with the setup it
sounds to me like he's asking for...

-- 
Greg White



pop3-problem with vmailmgr

2001-06-18 Thread Severin Olloz

Hello...

Today I have setup a qmail-server with vmailmgr and omail for testing and hey 
it works very well - I will soon replace my sendmail-server :-)

But I have a problem with the pop3-server. I can connect and the server 
accept my passwor, but I can't get any mails form it. I see always this 
message: this user has no $HOME Maildir.

So vmailmgr save the mails in $HOME/users/username and not in $HOME/Maildir!?

Must I patch the pop3-server? I found nothing about this problem! I read 
follow in the vmailmgr-howto:



Configure qmail-popup/qmail-pop3d to use `checkvpw` as the password checker. 
This step is dependant on how you have installed qmail.

Replace `checkpassword` in the command you use to invoke 
qmail-popup/qmail-pop3d (either in `/etc/inet.conf` or in a `tcpserver` 
command) with `checkvpw`.

And/Or at the prompt type: `echo checkvpw  /var/qmail/control/checkpassword`


So my command-line of the pop3-server shows like this:

tcpserver 0 110 /var/qmail/bin/qmail-popup servername /usr/local/bin/checkvpw 
/var/qmail/bin/qmail-pop3d 

But I doesn't work :-(

Thanks

Severin Olloz



RE: how may i discard msgs

2001-06-18 Thread Dave Sill

Deslions Nicolas [EMAIL PROTECTED] wrote:

Thanks but it doesn't seems to work
i think the problem maybe comes from the : character...

It works. I just tested it.

Did you remember to substitute the correct UID and GID in the assign
entry? I suggested:

 +smtp:alias:aliasuid:aliasgid:/var/qmail/alias::-smtp-:

You should have replaced aliasuid and aliasgid with the uid of
user alias and the gid of group nofiles.

The assign file must be ended with a line containing only a ., and
you also have to run qmail-newu. E.g.:

  # cat assign 
  +smtp:alias:49492:31314:/var/qmail/alias::-smtp-:
  .
  # /var/qmail/bin/qmail-newu
  #

-Dave



RE: smtp router

2001-06-18 Thread Kirti S. Bajwa



Federico:

I have 
same arrangement on my system. I have setup Exchange to check mail on Qmail 
every 5 minutes. I do not know if there is any setup in qmail to automatically 
send the mail to Exchange. If you received a suggestion to accomplish it, fine, 
otherwise, email me in couple of days and I will guide you to setup Exchange to 
retrieve mail from qmail.
Kirti 

  -Original Message-From: Federico 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 18, 2001 8:15 
  AMTo: [EMAIL PROTECTED]Subject: smtp 
  router
  I need to make this possible with 
  qmail:
  
  I've this structure 
  INTERNETQMAIL-EXCHANGE
  
  i need that ALL incoming mail from internet are 
  sent directly to exchange and the outgoing mail are sent 
normally.
  
  it is possible? 
  how?
  


qmail Multiple MX Problem

2001-06-18 Thread mjt mjt

Hi all

I have this problem delivering mail to certain hosts
that have multiple MX entries.  Other than that
everything is working fine.  Let me explain the
scenario more.

I have mail being sent to some user at server A and
server B.  Server A and B have 3 MX entries in their
lookup.  The first two entries in these are higher in
preference but are unavailable to the net traffic (for
some reason ).  What i think is happening is that
qmail is trying to connect to the first MX entry and
for some reason the server sends SMTP serrvice not
available to qmail at my end.  So the mail is put in
queue and then qmail retries the first server in MX
entry.

I have found a work-around in the sense that i entered
smtproute individually for thse two servers A and B. 
It is working now, but i was wondering if anyone had
more insight on why qmail was not looking up the other
3 mx records.

Thanks in advance all, Saleem


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



RE: Spam Removal

2001-06-18 Thread Roger Walker

You Wrote:

Please let know if you find a way to block all of the domains you mentioned.
Also do you think someone like arin.net would have there blocks of ips on
file and then we can just block them ?

I believe IANA has the master list of IP blocks that lists where
they are assigned to (high level):

http://www.isi.edu/in-notes/iana/assignments/ipv4-address-space

-- 
Roger Walker
Tier III Messaging/News Team
Internet Applications, National Consumer IP
TELUS Corporation 780-493-2471




RE: Help wanted

2001-06-18 Thread Willy De la Court

Schajee,

I use a combination of qmail, vmailmgr, omail-admin, courier-imap and squirrelmail to 
do just what you need.

Willy De la Court
QUINT NS NV

On Monday, June 18, 2001 13:30, Schajee Achmad [SMTP:[EMAIL PROTECTED]] wrote:
 
 Hi there,
 
 Let me introdce myself first. My name is Schajee and I'm a web developer. My
 company requires me to setup a complete Hotmail styled email service for use
 by its employees.
 
 I've been searching a solution to this problem and I found a lot of them but
 none matched my requirement, so I was forced to look for other solutions. I
 found qmail by accident and I kinda liked it. I've been using it for a some
 days now and I think it meets my requirments.
 
 So the question is how do you setup a mail service like Hotmail. I'm ready to
 develop a web based MUA which works with qmail and hopefull this should do the
 trick.
 
 So, anybody out there who has either worked on it before or has some
 experiance in working for such a thing... please let know so that we can sit
 down and talk about this.
 
 Thanks
 Schajee
 
 
 Get free email and a permanent address at http://www.netaddress.com/?N=1



Re: Spam Removal

2001-06-18 Thread Ruprecht Helms

Hi,
...
I am considering screening out ALL .cn and .kr mailservers.  Is there
an easy way to do that?

how about the badmailfrom-file. I think append/inserting .cn and .kr to/in 
that file and all mails from that top-level domains will be rejected.

Regards,
Ruprecht




Re: Discarding mailer_daemon mail....

2001-06-18 Thread Charles Cazabon

Greg Moeller [EMAIL PROTECTED] wrote:
  Greg Moeller [EMAIL PROTECTED] wrote:
   Is there any way to discard any Email the mailer daemon generates?
  
  No easy, built-in way, but then again, you shouldn't need it.  queue
  management in qmail is completely automatic.
 
  Your system is misconfigured.  What split value are you using?  What
  filesystem on what operating system?  What kind of disk/array is the queue
  on?  If your system bogs down because of the number of (basically
  inactive) messages in the queue, you've configured your system with values
  which are inappropriate for the load you're trying to serve.

 The system is dual processor Sparc 450, and an A1000 storage array.  Qmail
 is running stock standard, as Dan intended.  :) The queue was running on
 it's own bit of the array, multi spindle, mirrored.  I've since moved it to
 /tmp, performance has gotten much nicer since then, almost a system crash
 will eat it. (see below for why I don't really care) Also, a large spam hit
 might eat the machine's RAM/swap(which I care about a bit more) (512 Meg of
 RAM, 256 of spool) The system delivers locally about 250,000 Email/day.

You didn't explicitly answer my question about conf-split, but by stock
standard, I'll assume it's the default of 23.  This is probably too low for
your system -- if you have five or ten thousand bounce messages sitting in the
queue, you're getting lots of files in each directory.  This is likely what
causes your mail system to bog down when there's a bunch of bounce messages
waiting in the queue.  On a properly configured system, messages which are
just sitting in the queue waiting for their next delivery attempt won't have
much effect on qmail's performance.

  qmail's default queuelifetime is 7 days.  You can lower it to whatever you
  want.  However, reducing it too far will cause mail to bounce which would
  otherwise be delivered successfully.

 The only deliveries this server does is local, which I hope wouldn't take
 more than a few seconds, anything in the queue for remote delivery is a
 bounce.  (which is why I don't care if the queue is lost, since all I lose
 is bounces)

Once your system accepts a message from the internet, and issues a 2xx code in
response to the DATA command of the SMTP conversation, you have agreed to do
one of the following things:

-deliver the message successfully to its final destination
-return a bounce message to the envelope sender stating why delivery
failed

If you're discarding bounces, you're violating these conditions.  That's
unacceptable to many/most mail admins.

Instead of trying to fix the symptoms (mail system bogs down when lots of
inactive messages in the queue, most of which are bounces which have been
deferred), why not fix the problem (inappropriate setup of MTA)?

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: qmail Multiple MX Problem

2001-06-18 Thread Greg White

On Mon, Jun 18, 2001 at 10:03:20AM -0700, mjt mjt wrote:
 Hi all
 
 I have this problem delivering mail to certain hosts
 that have multiple MX entries.  Other than that
 everything is working fine.  Let me explain the
 scenario more.
 
 I have mail being sent to some user at server A and
 server B.  Server A and B have 3 MX entries in their
 lookup.  The first two entries in these are higher in
 preference but are unavailable to the net traffic (for
 some reason ).  What i think is happening is that
 qmail is trying to connect to the first MX entry and
 for some reason the server sends SMTP serrvice not
 available to qmail at my end.  So the mail is put in
 queue and then qmail retries the first server in MX
 entry.

If the recieving server answers on SMTP, AFAIK qmail is _obligated_ to
talk to it -- if it cannot accept mail, it should not accept
connections. Whether or not this is a requirement, this is the way qmail
behaves. The recieving servers are being silly -- if you're too busy to
accept connections, why open a connection to say so??
 
 I have found a work-around in the sense that i entered
 smtproute individually for thse two servers A and B. 
 It is working now, but i was wondering if anyone had
 more insight on why qmail was not looking up the other
 3 mx records.

See above -- qmail is looking up all three, and talking to the best
preference. What is the receiving MTA for this domain? I'd like to know
for future reference -- it's behaving quite badly...

-- 
Greg White



restart without rebooting

2001-06-18 Thread Virginia Chism

I need to learn how to restart qmail on my BSDi system.  I have not been
able to locate a qmail-restart in any of the qmail directories.

Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
thus rebooting the entire system.  I don't like doing this.

Someone told me to try 'killall -SIGHUP qmail', but someone else said this
might kill everything running - that the machine would not read to the
'qmail' at the end of the line.

Any suggestions?




Re: Discarding mailer_daemon mail....

2001-06-18 Thread Adam McKenna

On Mon, Jun 18, 2001 at 09:48:02AM -0500, Larry M. Smith wrote:
 I am currently working on a dblbounce manager...
 
 Still in testing... but it's just a perl script that automatically add a 
 sender's envelope to badmailfrom if it bounces.

Er, what exactly do you think this will help?

Bounces come from , so adding something to badmailfrom won't stop them.

--Adam



Re: qmail Multiple MX Problem

2001-06-18 Thread Chris Johnson

On Mon, Jun 18, 2001 at 10:03:20AM -0700, mjt mjt wrote:
 I have mail being sent to some user at server A and
 server B.  Server A and B have 3 MX entries in their
 lookup.  The first two entries in these are higher in
 preference but are unavailable to the net traffic (for
 some reason ).  What i think is happening is that
 qmail is trying to connect to the first MX entry and
 for some reason the server sends SMTP serrvice not
 available to qmail at my end.  So the mail is put in
 queue and then qmail retries the first server in MX
 entry.

If a connection to the SMTP port is made but the transaction cannot be
completed, qmail won't try lower preference mail exchangers. It'll only try
them if it can't connect at all.

Chris

 PGP signature


Re: smtp router

2001-06-18 Thread Ahmad Ridha

Greg White writes: 

 (In /var/qmail/control/)
 Create a file called smtproutes containing:  
 
 :IP of Exchange server  
 
 and remove the entries of locals and virtualdomains  
 
 Regards,  
 
 Ahmad Ridha
 
 Umm, that would be, to put it mildly, bad, unless you intend to _relay_
 all mail from the Exchange server as well as sending all inbound mail to
 it. If the OP sets up his Exchange server with qmail as the smarthost
 (which is what he sounds like he wants), this will create a mail loop.
 Only domains in rcpthosts should be in smtproutes with the setup it
 sounds to me like he's asking for... 
 
 -- 
 Greg White

Oops, sorry, didn't think about that. Yes, you're right. The qmail server
should *only* relay e-mails from the Exchange server, shouldn't it? 

Regards, 

Ahmad Ridha



Re: restart without rebooting

2001-06-18 Thread Charles Cazabon

Virginia Chism [EMAIL PROTECTED] wrote:
 I need to learn how to restart qmail on my BSDi system.  I have not been
 able to locate a qmail-restart in any of the qmail directories.

Depends how you're starting qmail.  If you're using svscan, which then spawns
a supervise process for qmail-start (qmail-send), then the following will
work:

  svc -d service_name
  svc -u service_name

where service_name is the name of the service directory for
qmail-send/qmail-start.

If you're not using svscan, you'll need to find the PID of qmail, and send it
a SIGTERM to tell it to exit cleanly.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: restart without rebooting

2001-06-18 Thread Chris Johnson

On Mon, Jun 18, 2001 at 01:24:23PM -0500, Virginia Chism wrote:
 I need to learn how to restart qmail on my BSDi system.  I have not been able
 to locate a qmail-restart in any of the qmail directories.
 
 Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
 thus rebooting the entire system.  I don't like doing this.
 
 Someone told me to try 'killall -SIGHUP qmail', but someone else said this
 might kill everything running - that the machine would not read to the
 'qmail' at the end of the line.

HUPing only makes qmail reread locals and virtualdomains. (And there is no
process called qmail, so killall -HUP qmail won't do anything on any system.)
Some changes require you to restart qmail--not just HUP it--and some don't
require any restart at all.

Do you use svscan/supervise to start qmail? If so, all you need to do to
restart qmail is svc -t /service/qmail (assuming your qmail service directory
is called /service/qmail). To HUP it, use svc -h instead of svc -t.

If you don't supervise qmail, you'll need to find qmail-send's pid, kill it,
and rerun the script you started it with. If killall on your system is not of
the variety that kills all running processes, you can killall qmail-send and
then restart it.

What you really need to do is to read a book on basic Unix administration. This
question really has nothing to do with qmail at all.

Chris

 PGP signature


Re: restart without rebooting

2001-06-18 Thread Jeff Palmer




At 01:24 PM 6/18/01 -0500, you wrote:
I need to learn how to restart qmail on my BSDi system.  I have not been
able to locate a qmail-restart in any of the qmail directories.

Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
thus rebooting the entire system.  I don't like doing this.


If you have to ask a  question like this,   it makes me wonder why you are 
attempting to administrate a mail server.

This is basic administration.

ps -ax | grep qmail-sendyou'll see something like
17950  p0  I  0:00.03 qmail-send

the first number is important.

kill -HUP whatever the first number is
IE:   kill -HUP 17950


Now,qmail reloads its configuration files.

Might I suggest you familiarize yourself with unix basics BEFORE trying to 
run a mail server?  Might make it a little easier for you.


Jeff Palmer
[EMAIL PROTECTED]




error

2001-06-18 Thread Nick

2001-06-18 12:38:27.274620500 delivery 22712: deferral:
Unable_to_switch_to_/var/qmail/alias:_access_denied._(#4.3.0)/
2001-06-18 12:38:27.274635500 status: local 0/10 remote 1/60

I checked the permission on the alias dir
and the alias files.
I don't understand where it's failing.
anyone have any idea's?
Thanks in advance

~Nick






Re: restart without rebooting

2001-06-18 Thread Todd Grimes

On my FreeBSD systems my qmail startup scripts are in /usr/local/sbin.  you 
might look there or /usr/local/bin




At 01:24 PM 6/18/2001 -0500, Virginia Chism wrote:
I need to learn how to restart qmail on my BSDi system.  I have not been
able to locate a qmail-restart in any of the qmail directories.

Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
thus rebooting the entire system.  I don't like doing this.

Someone told me to try 'killall -SIGHUP qmail', but someone else said this
might kill everything running - that the machine would not read to the
'qmail' at the end of the line.

Any suggestions?

=
Todd Grimes [EMAIL PROTECTED]
Internet Systems Specialist   [EMAIL PROTECTED]
Bass Pro Outdoors Online, L.L.C.(417)873-4354





Re: restart without rebooting

2001-06-18 Thread Russell Nelson

Virginia Chism writes:
  I need to learn how to restart qmail on my BSDi system.  I have not been
  able to locate a qmail-restart in any of the qmail directories.
  
  Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
  thus rebooting the entire system.  I don't like doing this.
  
  Someone told me to try 'killall -SIGHUP qmail', but someone else said this
  might kill everything running - that the machine would not read to the
  'qmail' at the end of the line.
  
  Any suggestions?

Yes.  If you've installed qmail as per http://www.lifewithqmail.org,
then you need only do this:
svc -t /service/qmail-send

If you haven't installed qmail as per LQW, it's never to late to
reinstall.

-- 
-russ nelson [EMAIL PROTECTED]  http://russnelson.com
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 



Re: restart without rebooting

2001-06-18 Thread arjen-qmail


On Mon, 18 Jun 2001, Virginia Chism wrote:

 I need to learn how to restart qmail on my BSDi system.  I have not been
 able to locate a qmail-restart in any of the qmail directories.
 
 Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
 thus rebooting the entire system.  I don't like doing this.
 
 Someone told me to try 'killall -SIGHUP qmail', but someone else said this
 might kill everything running - that the machine would not read to the
 'qmail' at the end of the line.

That is not true, killall only kills the specified command with the
specified signal.

killall -HUP qmail-send 

should work. 

But i don't think BSDi knows the killall command.



kill -HUP `ps auwx | grep qmail-send | grep -v grep | awk -F  {'print
$2'}`

(all on 1 line) should also do it. 


Or maybe even (if you have bash)

for PID in  \
`ps auwx | grep qmail-send | grep -v grep | awk -F  {'print $2'}`; do \
kill -HUP $PID; done

(not on 1 line but don't miss the backslashes)


Grtz, 

Arjen.





.qmail files and list delivery

2001-06-18 Thread Joshua Nichols

I'm having a problem getting an ezmlm list setup.  I know that it has a
seperate list, but I think this is a qmail configuration problem.

Here is users/assign (yes, I ran qmail-newu):

+:jjn:500:500:/home/jjn:::
+soccer:soccer:514:514:/home/soccer:::
=jjn:jjn:500:500:/home/jjn:::
[snip - standard, functioning users, and yes, it ends with a single .]

The list is called soccer-sunday.

here is /home/soccer:
total 16
drwxr-xr-x5 soccer   soccer   4096 Jun 18 13:43 Desktop
drwx--5 soccer   soccer   4096 Jun 18 15:41 Maildir
drwx--8 soccer   soccer   4096 Jun 18 15:48 sunday
drwx--2 soccer   soccer   4096 Jun 18 13:43 supervise

and here is the .qmail-sunday file:
|/usr/bin/ezmlm-check /home/soccer/sunday
|/usr/bin/ezmlm-reject '/home/soccer/sunday'
|/usr/bin/ezmlm-send '/home/soccer/sunday'
|/usr/bin/ezmlm-warn '/home/soccer/sunday' || exit 0


I put ezmlm-check in to see is the mail was even hitting the file.  It
isn't.

The problem is this:

All the messages sent to soccer-sunday@host are being delivered to the 'jjn'
account.  Shouldn't the more precise wildcard assignment '+soccer' take
precedence over the less precise '+'?

What am I missing?  Why isn't qmail delivering to either the Maildir for
soccer or to the list?



thanks,

--joshua.






Re: Discarding mailer_daemon mail....

2001-06-18 Thread Greg Moeller


 
 You didn't explicitly answer my question about conf-split, but by stock
 standard, I'll assume it's the default of 23.  This is probably too low for
 your system -- if you have five or ten thousand bounce messages sitting in the
 queue, you're getting lots of files in each directory.  This is likely what
 causes your mail system to bog down when there's a bunch of bounce messages
 waiting in the queue.  On a properly configured system, messages which are
 just sitting in the queue waiting for their next delivery attempt won't have
 much effect on qmail's performance.
Hmmm, ok, what would a good split be for 7-10 in the queue?
(about how many would build up over a weeks time before they started getting 
tossed anyway)
 
 
 Once your system accepts a message from the internet, and issues a 2xx code in
 response to the DATA command of the SMTP conversation, you have agreed to do
 one of the following things:
 
 -deliver the message successfully to its final destination
 -return a bounce message to the envelope sender stating why delivery
 failed
 
 If you're discarding bounces, you're violating these conditions.  That's
 unacceptable to many/most mail admins.
 
 Instead of trying to fix the symptoms (mail system bogs down when lots of
 inactive messages in the queue, most of which are bounces which have been
 deferred), why not fix the problem (inappropriate setup of MTA)?
 
Well, let's have a look at the queue for today. (it's past 5000 already)
There seems to be a few thousand from batfly.net letting non-existant users of 
ours know about the fact they won the first round of something or other.
(wow, so many winners, I'm impressed :) About 3500 of them trying to wing 
their way back home.

There's a bunch from Mike at usa.com trying to sell webhosting..
(Hey, that's special, he addressed it to himself too)

There's a heap from netway.com trying to sell masterCD2001.
(interesting, one of the received from: lines is about 1000 '.'s

Oh, here's an original bunch.. [EMAIL PROTECTED]  Trying to sell a XXX biz. (what a 
shock :)


Anyway, yeah, I'd love to care for every one of these Emails, but for some 
reason I just can't. These wonderful folk have utterly wasted my server too 
many times by firing tens of thousands of Emails at the server within an 
hour or two and caused me to have to work for hours trying to clean up the 
mess.

Greg





Re: Relay IP address ranges - NEWBIE

2001-06-18 Thread Stephen Froehlich

Thanks for your help - all of you.  Based on your advice, I nixed xinetd and
tcpserver is happy as a clam - so it is reading its config files and
forwarding is working.  If/when I need ssh, I'll set that up with tcpserver.




Re: restart without rebooting

2001-06-18 Thread Greg Moeller

One problem with stopping a large Qmail system is waiting for everything to 
actually end cleanly.
qmail-remotes can take some time to get done.
At the moment, my system is:
992894705.645395 status: local 78/250 remote 110/250
Those remotes can take a very long time to time out. (10-20 minutes maybe)
I tried automating a qmail stop/start sequence and even with killing all the 
remotes to help speed things up, I still couldn't get it stable.
(occasionally the queue process would get confused and think there were still 
a few local or remote processes and there were none to be found, or if the 
queue were particularly chubby, just cleaning up after all the remotes were 
gone would take 2-3 minutes)
This would cause the restart section of the script to fail because the 
qmail-start thought qmail was still going. (which of course it wasn't)

Anyway, the moral of the story is on little systems it's not problem, on large 
ones it can be diceier. 

Greg





Re: restart without rebooting

2001-06-18 Thread Dave Sill

Chris Johnson [EMAIL PROTECTED] wrote:

HUPing only makes qmail reread locals and virtualdomains. (And there is no
process called qmail, so killall -HUP qmail won't do anything on
any system.)

Except possibly on Solaris:

NAME
 killall - kill all active processes

SYNOPSIS
 /usr/sbin/killall [ signal ]

DESCRIPTION
 killall is used by shutdown(1M) to kill all active processes
 not directly related to the shutdown procedure.

 killall terminates all processes with open files so that the
 mounted file systems will be unbusied and can be unmounted.

 killall sends signal (see kill(1)) to the active  processes.
 If no signal is specified, a default of 15 is used.

 The killall command can be run only by the super-user.

(I haven't tried it to see what it does with unexpected options and an
invalid signal name.)

-Dave



Re: error

2001-06-18 Thread Chris Johnson

On Mon, Jun 18, 2001 at 12:38:21PM -0700, Nick wrote:
 2001-06-18 12:38:27.274620500 delivery 22712: deferral:
 Unable_to_switch_to_/var/qmail/alias:_access_denied._(#4.3.0)/
 2001-06-18 12:38:27.274635500 status: local 0/10 remote 1/60
 
 I checked the permission on the alias dir
 and the alias files.

And they were...

Chris



RE: restart without rebooting

2001-06-18 Thread Virginia Chism


 But I don't think BSDi knows the killall command.

That is exactly correct.  I was able to find the PID and restart the
qmail-send.  Thanks to all who responded.

I am working on the Unix books, but find some of them are written in
techno-shorthand.  I need a dictionary to go along with them.




Re: restart without rebooting

2001-06-18 Thread MarkD

On Mon, Jun 18, 2001 at 09:55:24PM +0200, [EMAIL PROTECTED] allegedly wrote:
 kill -HUP `ps auwx | grep qmail-send | grep -v grep | awk -F  {'print
 $2'}`
 
 Or maybe even (if you have bash)
 
 for PID in  \
 `ps auwx | grep qmail-send | grep -v grep | awk -F  {'print $2'}`; do \
 kill -HUP $PID; done
 
 (not on 1 line but don't miss the backslashes)

vs svc -d /service/qmail-send

As Russ says, it's never too late to change over to supervise.


Regards.



Re: restart without rebooting

2001-06-18 Thread Charles Cazabon

[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 On Mon, 18 Jun 2001, Virginia Chism wrote:
 
  Someone told me to try 'killall -SIGHUP qmail', but someone else said this
  might kill everything running - that the machine would not read to the
  'qmail' at the end of the line.
 
 That is not true, killall only kills the specified command with the
 specified signal.

Be careful!  killall on some systems (Solaris, notably) sends the signal to
every running process, as the original someone warned her.  killall is
therefore not considered a portable way of doing anything in shell scripts.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: restart without rebooting

2001-06-18 Thread peter green

* [EMAIL PROTECTED] [EMAIL PROTECTED] [010618 16:37]:
 On Mon, 18 Jun 2001, Virginia Chism wrote:
  Someone told me to try 'killall -SIGHUP qmail', but someone else said this
  might kill everything running - that the machine would not read to the
  'qmail' at the end of the line.
 That is not true, killall only kills the specified command with the
 specified signal.

Sure about that? On *every* machine?

It even says in the killall(1) man page:

  Be warned that typing killall name may not have the desired effect on
  non- Linux systems, especially when done by a privileged user.

Ooh, how about the Solaris 2.6 killall(1M) man page?

  killall is used by shutdown(1M) to kill all active processes
  not directly related to the shutdown procedure.

  killall terminates all processes with open files so that the
  mounted file systems will be unbusied and can be unmounted.

  killall sends signal (see kill(1)) to the active  processes.
  If no signal is specified, a default of 15 is used.

So it's probably not a good idea...

/pg
-- 
Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
---
Avoid the Gates of Hell.  Use Linux
(Unknown source)




Re: restart without rebooting

2001-06-18 Thread Ruprecht Helms

Hi Virginia,

I need to learn how to restart qmail on my BSDi system.  I have not been
able to locate a qmail-restart ...

There is nothing of such a program, otherwise you have written a 
shellscript called qmail-restart.

To start qmail you have to start such other programms like splogger, 
qmail-start, ...

The best you kill all the processes you have started in the stop- part. To 
see what is started after the startingscript type

ps aux|grep qmail

The best tool for creating a system-start-stop-script is using webmin. Here 
you have a special site for creating such things.

Regards,
Ruprecht




Re: qmail-remote (cry wolf?)

2001-06-18 Thread Claudio Nieder

Hi,

  [Summary: Some systems leave the fd_sets alone when select times out.]
 I think it isn't relevant. qmail-remote doesn't seem to use select,

It does. timeoutread.c:

int timeoutread(t,fd,buf,len) int t; int fd; char *buf; int len;
{
  fd_set rfds;
  struct timeval tv;

  tv.tv_sec = t;
  tv.tv_usec = 0;

  FD_ZERO(rfds);
  FD_SET(fd,rfds);

  if (select(fd + 1,rfds,(fd_set *) 0,(fd_set *) 0,tv) == -1) return -1;
  if (FD_ISSET(fd,rfds)) return read(fd,buf,len);

  errno = error_timeout;
  return -1;
}

When select returns -1 (error case) everything is fine. When select
returns 0, i.e. in the timeout case, read is called if select has
not cleared the fd bit out of rfds. So if there really exist OS
which do not clear the bits, then qmail will potentially block in
read on those OS.

 As to different OS behaviour, Solaris 2.6 (and 7) both say:
  and  errorfds  arguments  are  not modified.  If the timeout
  interval expires without the specified condition being  true
  for  any  of  the  specified  file  descriptors, the objects
  pointed to by the readfs, writefs,  and  errorfds  arguments
  have all bits set to 0.

On Solaris the above code would work without flaws.

 whereas SunOS 4.1.4 (my usual 'old bsd system' benchmark) says:
  descriptor sets.  0 indicates that the time  limit  referred
  to  by  timeout  expired.   On failure, select() returns -1,
  sets errno to indicate the error, and  the  descriptor  sets
  are not changed.

It doesn't tell explicitly what it does when it returns 0, but as
it's mentioned only in the error case, that the bits are not cleared,
one supposes that in timeout situations they are cleared, and thus
qmail will not have any problems.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch



Re: restart without rebooting

2001-06-18 Thread Greg White

On Mon, Jun 18, 2001 at 09:55:24PM +0200, [EMAIL PROTECTED] wrote:
 
 That is not true, killall only kills the specified command with the
 specified signal.
 

Bzzt! Wrong! Some *nixes have a killall command that kills all
processes. See:

http://www.doc.ic.ac.uk/csg/manuals/all-manual-pages/solaris/usr/man/man1m/killall.1m.html

(pardon possible bad linewrap)

There _is_ a reason people don't say 'use killall' in generic advice --
it does not necessarily do the same thing on all platforms.

Sent to the list in case some poor soul on Solaris (or other platform,
who knows?) actually used this advice

-- 
Greg White



Re: Discarding mailer_daemon mail....

2001-06-18 Thread Charles Cazabon

Greg Moeller [EMAIL PROTECTED] wrote:
 
  You didn't explicitly answer my question about conf-split, but by stock
  standard, I'll assume it's the default of 23.  This is probably too low
  for your system -- if you have five or ten thousand bounce messages
  sitting in the queue, you're getting lots of files in each directory.
  This is likely what causes your mail system to bog down when there's a
  bunch of bounce messages waiting in the queue.  On a properly configured
  system, messages which are just sitting in the queue waiting for their
  next delivery attempt won't have much effect on qmail's performance.

 Hmmm, ok, what would a good split be for 7-10 in the queue?
 (about how many would build up over a weeks time before they started getting 
 tossed anyway)

It depends on a lot of factors, including hardware speed and filesystem
efficiency.  Solaris is particularly disgusting in this regard; on a high-end
E4K with 15kRPM RAID, performance degrades unacceptably for an application of
ours when there are as few as 200 files per directory.  On low-end commodity
PC hardware running on a Linux box with the ext2 filesystem, we get good
performance with as many as 1000 files per directory.

You said you're running on a Sun box.  Try increasing conf-split so that your
maximum expected queue load puts 200 files in each directory.  For 10
messages, you'd need a conf-split of 500 or higher.  Okay, that sounds too
high to me, even.  Let's try a limit of 1000 files per directory -- conf-split
then has to be 100 or higher.  The first prime after 100 is 101, so I'd try
that.

 Anyway, yeah, I'd love to care for every one of these Emails, but for some 
 reason I just can't. These wonderful folk have utterly wasted my server too 
 many times by firing tens of thousands of Emails at the server within an 
 hour or two and caused me to have to work for hours trying to clean up the 
 mess.

A bounce message that never gets delivered uses very little bandwidth.  The
only resource it's really using is some disk space and a few queue inodes.
Can you spare those?

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: restart without rebooting

2001-06-18 Thread Mike Jackson

[EMAIL PROTECTED] wrote:

  Someone told me to try 'killall -SIGHUP qmail', but someone else said this
  might kill everything running - that the machine would not read to the
  'qmail' at the end of the line.
 
 That is not true, killall only kills the specified command with the
 specified signal.

Oh yeah? Try using the killall command on Digital Unix OSF1 v4.0 and see
what happens. It kills all processes for whatever user you are logged in
as (try to image root).

Mike



Re: Spam Removal

2001-06-18 Thread Nick (Keith) Fish

Ruprecht Helms wrote:
 
 Hi,
 ...
 I am considering screening out ALL .cn and .kr mailservers.  Is there
 an easy way to do that?
 
 how about the badmailfrom-file. I think append/inserting .cn and .kr to/in
 that file and all mails from that top-level domains will be rejected.
 
 Regards,
 Ruprecht

That will only help if .cn/.kr appears as the envelope sender.  You're
better of using tcpserver's rules file to block by domain address,
assuming they don't have false DNS entries to hide their origin, in which
case you would need to block by IP address.

-- 
Nick (Keith) Fish
Network Engineer
Triton Technologies, Inc.



Qmail MIB?

2001-06-18 Thread Mike Jackson

Hi,
 Has anyone written a MIB for qmail, so that snmp can be used to gather
stats+

Thanks,
Mike



Re: qmail-remote (cry wolf?)

2001-06-18 Thread MarkD

On Mon, Jun 18, 2001 at 11:05:34PM +0200, Claudio Nieder allegedly wrote:

 On Solaris the above code would work without flaws.
 
  whereas SunOS 4.1.4 (my usual 'old bsd system' benchmark) says:
   descriptor sets.  0 indicates that the time  limit  referred
   to  by  timeout  expired.   On failure, select() returns -1,
   sets errno to indicate the error, and  the  descriptor  sets
   are not changed.
 
 It doesn't tell explicitly what it does when it returns 0, but as
 it's mentioned only in the error case, that the bits are not cleared,
 one supposes that in timeout situations they are cleared, and thus
 qmail will not have any problems.

Same with FreeBSD 4.3 - by implication.

 ...  On return, select() replaces the given descriptor sets with
 subsets consisting of those descriptors that are ready for the
 requested operation.

...

RETURN VALUES

 ... If select() returns with an error, including one due to an
 interrupted call, the descriptor sets will be unmodified.



For this who are having significant recurrences of this problem, are
you in a position to change timeoutread.c to check for a zero return
from select? It sure would help isolate this problem if you can.


Regards.



Re: restart without rebooting

2001-06-18 Thread Claudio Nieder

Hi,

 Sent to the list in case some poor soul on Solaris (or other platform,
 who knows?) actually used this advice

these too:

HP-UX:
http://devresource.hp.com/STK/man/11.00/killall_1m.html 

AIX:
http://www.unet.univie.ac.at/aix/cmds/aixcmds3/killall.htm

Tru64Unix:
http://www.tru64unix.compaq.com/faqs/publications/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN8/0181.HTM

So really beware of just executing killall -HUP qmail without consulting
the man page of your particular Unix.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch



Re: qmail-remote (cry wolf?)

2001-06-18 Thread Mark Jefferys

On Sun, Jun 17, 2001 at 08:56:13PM +0100, James R Grinter wrote:

% I think it isn't relevant. qmail-remote doesn't seem to use select,
% or at least it's nowhere in the path where my qmail-remote wedges.

Go look at timeoutread(), which *is* in your path.  The select is in
the line right before where you wedge.

% As to different OS behaviour, Solaris 2.6 (and 7) both say:

[Man page claims it doesn't do this.]

% whereas SunOS 4.1.4 (my usual 'old bsd system' benchmark) says:

[Man page unclear.]

% and I can tell you that I've not seen the problem happen with
% qmail-remote on SunOS 4.1.4.

Well, I don't necessarily trust man pages to tell the truth,
especially if this was added accidentally (i.e. if it's a bug).

And I still haven't seen anything to really convince me that any OS
actually does this.  I've only seen that a few people think some do,
that it could easily happen as a bug, and that it could explain the
hung qmail-remotes.  And it's easily fixed if it is the problem.

In other words, I'm not saying that this is the cause, only that it's
possible.

%  Indeed, I think DJB's code (and most
% other people's) compensates for both behaviours by setting the
% necessary FD's each time anyway.

It doesn't.  (Don't know about other people's.)  It assumes that the
fd_sets will be cleared on timeout.  Setting the fd_sets each time is
always necessary and doesn't protect against this issue, anyway.


In any case, since I did see (one) stuck process recently I built
myself a test to see if I could reproduce it.  I wasn't.  At least on
a RedHat linux 2.2.19-6.2.1 or -6.2.1smp, it looks like select acts
sanely on a timeout, at least some of the time.

I also put a debugging version of qmail-remote on my system, so if it
ever decides to hang again I can fling gdb at it.


Mark




Please help me, a problem in qmail!!

2001-06-18 Thread cool dragon
Title: ÇçÀÊ




Dear Sir,I am very sorry to 
taste your time with such problem. But it troubles me for a long time.I am 
raring to have a help from you.I am building a mailserver in local 
net in redhat, using qmail. After I configured the qmail and start it, I 
can conect to the mailserver from outlook, but when I try to send 
a mail form the outlook to myself, It is failed, I checked the mailog in 
/var/log in the mail server, it shows like the 
following:"alert: unable to opendir to do, 
sleeping.."could you tell me what the problem it 
is.Thank you very muchRegards.Jianlong 
Chen
 
'



Re: Qmail MIB?

2001-06-18 Thread Lars Hansson

If you use net-snmp (formerly known as ucd-snmp) it's fairly easy. Just
configure snmpd to execute some external script, like any of the
qmail-mrtg-* things (I use the qmail-mrtg-multilog package).

Examples:
 snmpd.conf -

rocommunity myreadonlycommunity your-ipaddress-here

syscontact  Whatever
syslocation Some place

exec .1.3.6.1.4.1.2021.50 qmail-mrtg /var/qmail/bin/qmail-snmpstat.sh


 qmail-snmpstat.sh 
#!/bin/sh
/bin/cat /var/log/qmail/qmail-send/@* /var/log/qmail/qmail-send/current  |
/usr/local/bin/qmailmrtg -4
/usr/local/bin/qmail-mrtg-queue
/bin/cat /var/log/qmail/qmail-send/@* /var/log/qmail/qmail-send/current  |
/usr/local/bin/qmailmrtg -3
/bin/cat /var/log/qmail/qmail-send/@* /var/log/qmail/qmail-send/current  |
/usr/local/bin/qmailmrtg -1
/bin/cat /var/log/qmail/qmail-send/@* /var/log/qmail/qmail-send/current  |
/usr/local/bin/qmailmrtg -2


This will put the printed output from the commands into a table under the
1.3.6.1.4.1.2021.50 OID. I use this to get stats into Cricket/RRDTool. It's
a bit slow though, it takes some 5-10 seconds to process the logfiles.

Cheers
Lars Hansson
Technical Consultant
Universal Joint Network Tecnologies, Inc.
Philippines


 Hi,
  Has anyone written a MIB for qmail, so that snmp can be used to gather
stats+
 
 Thanks,
 Mike





Re: Please help me, a problem in qmail!!

2001-06-18 Thread Charles Cazabon

cool dragon [EMAIL PROTECTED] wrote:
  
 [...] when I try to send a mail form the outlook to myself, It is failed, I
 checked the mailog in /var/log in the mail server, it shows like the
 following:
  
 alert: unable to opendir to do, sleeping..

Sounds like the permissions or location of the todo directory in the queue
aren't correct.  There's probably other problems with the queue as well.
To fix this, you could blindly do the following:

1. stop qmail
2.  cd to your qmail source directory (where you unpacked the .tar.gz file).
3.  do `make setup check'

Or, send another message to this list, including the unedited output of the
`qmail-showctl` command, and the output of
`ls -ld / /var /var/qmail /var/qmail/queue /var/qmail/queue/*`

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



RE: qmail-remote (cry wolf?)

2001-06-18 Thread Troy Settle


Mark,

How would I need to go about building a dubug version of qmail-remote?
Also, how to terminate the process so that I can 'fling' gdb at it?

With a little I can probably have output from gdb within a couple hours.

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Mark Jefferys [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 9:27 PM
** To: James R Grinter
** Cc: [EMAIL PROTECTED]
** Subject: Re: qmail-remote (cry wolf?)
**
**
** On Sun, Jun 17, 2001 at 08:56:13PM +0100, James R Grinter wrote:
**
** % I think it isn't relevant. qmail-remote doesn't seem to use select,
** % or at least it's nowhere in the path where my qmail-remote wedges.
**
** Go look at timeoutread(), which *is* in your path.  The select is in
** the line right before where you wedge.
**
** % As to different OS behaviour, Solaris 2.6 (and 7) both say:
**
** [Man page claims it doesn't do this.]
**
** % whereas SunOS 4.1.4 (my usual 'old bsd system' benchmark) says:
**
** [Man page unclear.]
**
** % and I can tell you that I've not seen the problem happen with
** % qmail-remote on SunOS 4.1.4.
**
** Well, I don't necessarily trust man pages to tell the truth,
** especially if this was added accidentally (i.e. if it's a bug).
**
** And I still haven't seen anything to really convince me that any OS
** actually does this.  I've only seen that a few people think some do,
** that it could easily happen as a bug, and that it could explain the
** hung qmail-remotes.  And it's easily fixed if it is the problem.
**
** In other words, I'm not saying that this is the cause, only that it's
** possible.
**
** %  Indeed, I think DJB's code (and most
** % other people's) compensates for both behaviours by setting the
** % necessary FD's each time anyway.
**
** It doesn't.  (Don't know about other people's.)  It assumes that the
** fd_sets will be cleared on timeout.  Setting the fd_sets each time is
** always necessary and doesn't protect against this issue, anyway.
**
**
** In any case, since I did see (one) stuck process recently I built
** myself a test to see if I could reproduce it.  I wasn't.  At least on
** a RedHat linux 2.2.19-6.2.1 or -6.2.1smp, it looks like select acts
** sanely on a timeout, at least some of the time.
**
** I also put a debugging version of qmail-remote on my system, so if it
** ever decides to hang again I can fling gdb at it.
**
**
** Mark
**
**




administrative copy of qmail mails

2001-06-18 Thread Raymond Hui




Dear Sir/Madam,

 I have read the Life With Qmail in the web. 
I have found it very interested and i have set up my mail server using Qmail and 
i found it is very great!!
 I have a problem here about Qmail, would you 
please kindly help me to find out the answer..??
 I have set up my qmail server and it can run 
properly in the past month till now As some reasons, we decided to have make 
some configures..
 I need to configure the qmail server which 
can automatically keep a copy of in and out mail of some specified address in 
some domains. For example, in the domain abc.com there are three email address: 
[EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED]. And all email send from or to [EMAIL PROTECTED] will need to have another copy of the mail 
in the email box [EMAIL PROTECTED].
 For incoming email, i think it can easily 
handled by ".qmail" files. However, for outgoing mail. How can i do 
so...??
 Or is there any integrated method that i can 
do both in a simple manner.
 Hope you can answer me.

Best Regards,
Raymond Hui


Re: restart without rebooting

2001-06-18 Thread arjen-qmail

On Mon, 18 Jun 2001, Greg White wrote:

 On Mon, Jun 18, 2001 at 09:55:24PM +0200, [EMAIL PROTECTED] wrote:
  
  That is not true, killall only kills the specified command with the
  specified signal.
  
 
 Bzzt! Wrong! Some *nixes have a killall command that kills all
 processes. See:
 

[sNap]

 Sent to the list in case some poor soul on Solaris (or other platform,
 who knows?) actually used this advice

Sorry for the assumtion I made. Seen all the replies it is clear now that
killall has varying functions on different *nix flavors...



Grtz, 

Arjen.





Re: qmail-remote (cry wolf?)

2001-06-18 Thread Mark Jefferys

On Mon, Jun 18, 2001 at 11:20:36PM -0400, Troy Settle wrote:

% How would I need to go about building a dubug version of qmail-remote?

I set conf-cc and conf-ld to 'gcc -g', edited timeoutread.c slightly
to save the return value of the select in a variable, then built
qmail-remote and put it in place of the live one.  I'll attach a patch
matching what I did to timeoutread.c.

% Also, how to terminate the process so that I can 'fling' gdb at it?

I wasn't planning on terminating it.  Rather I was thinking of using
gdb's attach command to take over the process, and then start
examining variables.  Mostly, I was going to wing it.

I expect the full attachment sequence to look something like this:

(gdb) attach pid-of-stuck-qmail-remote
(gdb) symbol-file /var/qmail/bin/qmail-remote
(gdb) directory path-to-qmail-source-with-modified-timeoutread.c
(gdb) bt
(gdb) up   -- repeat until at timeoutread() stack frame
(gdb) p res
(gdb) p fd
(gdb) p rfds   -- or something like that

% With a little I can probably have output from gdb within a couple hours.

Good luck, then.


Mark



--- timeoutread.c   Mon Jun 15 03:53:16 1998
+++ timeoutread.c   Mon Jun 18 22:23:24 2001
@@ -7,6 +7,7 @@
 {
   fd_set rfds;
   struct timeval tv;
+  int res;
 
   tv.tv_sec = t;
   tv.tv_usec = 0;
@@ -14,7 +15,8 @@
   FD_ZERO(rfds);
   FD_SET(fd,rfds);
 
-  if (select(fd + 1,rfds,(fd_set *) 0,(fd_set *) 0,tv) == -1) return -1;
+  res = select(fd + 1,rfds,(fd_set *) 0,(fd_set *) 0,tv);
+  if (res == -1) return -1;
   if (FD_ISSET(fd,rfds)) return read(fd,buf,len);
 
   errno = error_timeout;



administrative copy of qmail mails

2001-06-18 Thread Raymond Hui





Dear Sir/Madam,

 I have read the Life With Qmail in the web. 
I have found it very interested and i have set up my mail server using Qmail and 
i found it is very great!!
 I have a problem here about Qmail, would you 
please kindly help me to find out the answer..??
 I have set up my qmail server and it can run 
properly in the past month till now As some reasons, we decided to have make 
some configures..
 I need to configure the qmail server which 
can automatically keep a copy of in and out mail of some specified address in 
some domains. For example, in the domain abc.com there are three email address: 
[EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED]. And all email send from or to [EMAIL PROTECTED] will need to have another copy of the mail 
in the email box [EMAIL PROTECTED].
 For incoming email, i think it can easily 
handled by ".qmail" files. However, for outgoing mail. How can i do 
so...??
 Or is there any integrated method that i can 
do both in a simple manner.
 Hope you can answer me.

Best Regards,
Raymond 
Hui