Re: postfix question

2001-05-28 Thread Sami Haahtinen
On Mon, May 28, 2001 at 05:29:36PM +0200, Russell Coker wrote:
> I have postfix running on an end-node.  I want to send mail from the machine 
> by running "mail user" and have it go to [EMAIL PROTECTED] (which is hosted 
> on 
> another machine).  However I want mail directly addressed to 
> [EMAIL PROTECTED] to be delivered locally.
> 
> This should be simple but seems very difficult (I've just spent an hour 
> tweaking postfix config options without success).

hmm.. i don't see the problem here...

use:

myhostname = Foo.Bar.com
myorigin = Bar.com

ofcourse you need to tweak mydestination, not to include $mydomain something
like this:

mydestination = $myhostname, localhost.$mydomain

 -- Sami

-- 
  -< Sami Haahtinen >-
-< 2209 3C53 D0FB 041C F7B1  F908 A9B6 F730 B83D 761C >-




Re: putty (Xfree terminal, talk)

2001-05-28 Thread Sami Haahtinen
On Mon, May 28, 2001 at 04:40:04PM +0200, Mark Janssen wrote:
> On Mon, May 28, 2001 at 04:34:03PM +0200, Marcel Hicking wrote:
> > "talk user" works fine for us, at least it has been
> > working fine 10 minutes ago ;-)
> > Make sure talk is configured correctly in /etc/inetd.conf
> 
> If a user has turned his messages off (mesg n) or they are off by
> default, and he hasn't turned them on, this will not work...
> Write will always work since it ignores the message setting.

not true, write uses the same method that talk use to inform about an incoming
talk session. write will fail if the user has used mesg to disable writing to
current tty.

--Snip--
(%:~)- mesg
is n
(%:~)- ls -laF /dev/pts/4
crw--w1 ressuressu136,   4 May 29 00:08 /dev/pts/4
(%:~)- mesg y
(%:~)- ls -laF /dev/pts/4
crw--w--w-1 ressuressu136,   4 May 29 00:08 /dev/pts/4
--Snap--

as you can see.. mesg has nothing to do with messaging, it just removes other
users write permissions to your current tty.

Sami

-- 
  -< Sami Haahtinen >-
-< 2209 3C53 D0FB 041C F7B1  F908 A9B6 F730 B83D 761C >-




Re: putty (Xfree terminal, talk)

2001-05-28 Thread Sami Haahtinen

On Mon, May 28, 2001 at 04:40:04PM +0200, Mark Janssen wrote:
> On Mon, May 28, 2001 at 04:34:03PM +0200, Marcel Hicking wrote:
> > "talk user" works fine for us, at least it has been
> > working fine 10 minutes ago ;-)
> > Make sure talk is configured correctly in /etc/inetd.conf
> 
> If a user has turned his messages off (mesg n) or they are off by
> default, and he hasn't turned them on, this will not work...
> Write will always work since it ignores the message setting.

not true, write uses the same method that talk use to inform about an incoming
talk session. write will fail if the user has used mesg to disable writing to
current tty.

--Snip--
(%:~)- mesg
is n
(%:~)- ls -laF /dev/pts/4
crw--w1 ressuressu136,   4 May 29 00:08 /dev/pts/4
(%:~)- mesg y
(%:~)- ls -laF /dev/pts/4
crw--w--w-1 ressuressu136,   4 May 29 00:08 /dev/pts/4
--Snap--

as you can see.. mesg has nothing to do with messaging, it just removes other
users write permissions to your current tty.

Sami

-- 
  -< Sami Haahtinen >-
-< 2209 3C53 D0FB 041C F7B1  F908 A9B6 F730 B83D 761C >-


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: postfix question

2001-05-28 Thread Alson van der Meulen
On Mon, May 28, 2001 at 05:29:36PM +0200, Russell Coker wrote:
> I have postfix running on an end-node.  I want to send mail from the machine 
> by running "mail user" and have it go to [EMAIL PROTECTED] (which is hosted 
> on 
> another machine).  However I want mail directly addressed to 
> [EMAIL PROTECTED] to be delivered locally.
> 
> This should be simple but seems very difficult (I've just spent an hour 
> tweaking postfix config options without success).
I think in exim it could be handled by using header rewriting (guess
the to address can be rewritten too). I'm not sure if postfix can do
that, I think so...

http://www.exim.org/exim-html-3.20/doc/html/spec_34.html#IDX1668
When I scan through this docs, it appears easy to do it with exim.
I'm not sure it it's possible with postfix too, are you really bound
to postfix?
-- 
,---.
> Name:   Alson van der Meulen  <
> Personal:   [EMAIL PROTECTED]   <
> School:   [EMAIL PROTECTED]<
`---'
The drive ate the tape but that's OK, I brought my screwdriver.
-




Re: postfix question

2001-05-28 Thread Alson van der Meulen

On Mon, May 28, 2001 at 05:29:36PM +0200, Russell Coker wrote:
> I have postfix running on an end-node.  I want to send mail from the machine 
> by running "mail user" and have it go to [EMAIL PROTECTED] (which is hosted on 
> another machine).  However I want mail directly addressed to 
> [EMAIL PROTECTED] to be delivered locally.
> 
> This should be simple but seems very difficult (I've just spent an hour 
> tweaking postfix config options without success).
I think in exim it could be handled by using header rewriting (guess
the to address can be rewritten too). I'm not sure if postfix can do
that, I think so...

http://www.exim.org/exim-html-3.20/doc/html/spec_34.html#IDX1668
When I scan through this docs, it appears easy to do it with exim.
I'm not sure it it's possible with postfix too, are you really bound
to postfix?
-- 
,---.
> Name:   Alson van der Meulen  <
> Personal:   [EMAIL PROTECTED]   <
> School:   [EMAIL PROTECTED]<
`---'
The drive ate the tape but that's OK, I brought my screwdriver.
-


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




postfix question

2001-05-28 Thread Russell Coker
I have postfix running on an end-node.  I want to send mail from the machine 
by running "mail user" and have it go to [EMAIL PROTECTED] (which is hosted on 
another machine).  However I want mail directly addressed to 
[EMAIL PROTECTED] to be delivered locally.

This should be simple but seems very difficult (I've just spent an hour 
tweaking postfix config options without success).

Any suggestions?

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page




Re: in.telnetd

2001-05-28 Thread Dietmar Schultz
On Mon, May 28, 2001 at 09:08:05AM -0400, Allen Ahoffman wrote:

> what packages contain telnetd?

You won't believe it: Package telnetd

> I need to tell the onsite person what to do to get telnetd running e.g.
> apt-get ... ... ... 

apt-get install telnetd

-- 
Bye,
Dietmar




Re: in.telnetd

2001-05-28 Thread Pedro Braga
Peter Billson wrote:

> Allen Ahoffman wrote:
> >
> > what packages contain telnetd?

Whenever you want to find something, try to use 'apt-cache search '

-- ex. ---
# apt-cache search telnetd
telnetd - The telnet server.
#


the response has the form:
 - 

and then, as Peter Billson said, 'apt-get install '

>
> > I see xinetd package for loading it but where is the basic telnetd
> > just loaded 2.2r2/i386 on a system but telnet isn't answering and i'm
> > remote now.
> > I need to tell the onsite person what to do to get telnetd running e.g.
> > apt-get ... ... ...
> > or
> > ftp ...
> > then install the package if I can remember the debianish comands
>
> apt-get install telnetd
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Pedro Braga
Eng. Telec. / Programador
http://www.iportalmais.pt





Re: putty (Xfree terminal, talk)

2001-05-28 Thread Mark Janssen
On Mon, May 28, 2001 at 04:34:03PM +0200, Marcel Hicking wrote:
> "talk user" works fine for us, at least it has been
> working fine 10 minutes ago ;-)
> Make sure talk is configured correctly in /etc/inetd.conf

If a user has turned his messages off (mesg n) or they are off by
default, and he hasn't turned them on, this will not work...
Write will always work since it ignores the message setting.

Mark Janssen Unix Consultant @ SyConOS IT
E-mail: [EMAIL PROTECTED]  GnuPG Key Id: 357D2178
http: maniac.nl, unix-god.[net|org], markjanssen.[com|net|org|nl]
Fax/VoiceMail: +31 84 8757555 Finger for GPG and GeekCode




Re: putty (Xfree terminal, talk)

2001-05-28 Thread Marcel Hicking
"talk user" works fine for us, at least it has been
working fine 10 minutes ago ;-)
Make sure talk is configured correctly in /etc/inetd.conf

Marcel


James <[EMAIL PROTECTED]> 28 May 2001, at 15:38:

> 
> 
> On Mon, 28 May 2001, Antonio Rodriguez wrote:
> 
> > I have two questions:
> > 1. How can I talk to an user who is accessing my computer through
> > putty from an windows machine? When I tried it would say that the
> > user refused to talk. Should I type "talk user", or I have somehow
> > to include info about the ip of the source machine?
> 
> write user
> 
> but it isn't very friendly :-)
> 
> > 2. Is there any way of gaining access to an XFree (tty7, standard
> > setting) terminal for a remote user?
> > 
> > 
> > --  
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 





Re: in.telnetd

2001-05-28 Thread Peter Billson
Allen Ahoffman wrote:
> 
> what packages contain telnetd?
> I see xinetd package for loading it but where is the basic telnetd
> just loaded 2.2r2/i386 on a system but telnet isn't answering and i'm
> remote now.
> I need to tell the onsite person what to do to get telnetd running e.g.
> apt-get ... ... ...
> or
> ftp ...
> then install the package if I can remember the debianish comands

apt-get install telnetd

Pete
-- 
http://www.elbnet.com
ELB Internet Services, Inc.
Web Design, Computer Consulting, Internet Hosting




Re: putty (Xfree terminal, talk)

2001-05-28 Thread James


On Mon, 28 May 2001, Antonio Rodriguez wrote:

> I have two questions:
> 1. How can I talk to an user who is accessing my computer through putty from
> an windows machine? When I tried it would say that the user refused to talk.
> Should I type "talk user", or I have somehow to include info about the ip of
> the source machine?

write user

but it isn't very friendly :-)

> 2. Is there any way of gaining access to an XFree (tty7, standard setting)
> terminal for a remote user?
> 
> 
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 




putty (Xfree terminal, talk)

2001-05-28 Thread Antonio Rodriguez
I have two questions:
1. How can I talk to an user who is accessing my computer through putty from
an windows machine? When I tried it would say that the user refused to talk.
Should I type "talk user", or I have somehow to include info about the ip of
the source machine?
2. Is there any way of gaining access to an XFree (tty7, standard setting)
terminal for a remote user?




in.telnetd

2001-05-28 Thread Allen Ahoffman
what packages contain telnetd?
I see xinetd package for loading it but where is the basic telnetd
just loaded 2.2r2/i386 on a system but telnet isn't answering and i'm
remote now.
I need to tell the onsite person what to do to get telnetd running e.g.
apt-get ... ... ... 
or 
ftp ...
then install the package if I can remember the debianish comands




postfix question

2001-05-28 Thread Russell Coker

I have postfix running on an end-node.  I want to send mail from the machine 
by running "mail user" and have it go to [EMAIL PROTECTED] (which is hosted on 
another machine).  However I want mail directly addressed to 
[EMAIL PROTECTED] to be delivered locally.

This should be simple but seems very difficult (I've just spent an hour 
tweaking postfix config options without success).

Any suggestions?

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: in.telnetd

2001-05-28 Thread Dietmar Schultz

On Mon, May 28, 2001 at 09:08:05AM -0400, Allen Ahoffman wrote:

> what packages contain telnetd?

You won't believe it: Package telnetd

> I need to tell the onsite person what to do to get telnetd running e.g.
> apt-get ... ... ... 

apt-get install telnetd

-- 
Bye,
Dietmar


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: in.telnetd

2001-05-28 Thread Pedro Braga

Peter Billson wrote:

> Allen Ahoffman wrote:
> >
> > what packages contain telnetd?

Whenever you want to find something, try to use 'apt-cache search '

-- ex. ---
# apt-cache search telnetd
telnetd - The telnet server.
#


the response has the form:
 - 

and then, as Peter Billson said, 'apt-get install '

>
> > I see xinetd package for loading it but where is the basic telnetd
> > just loaded 2.2r2/i386 on a system but telnet isn't answering and i'm
> > remote now.
> > I need to tell the onsite person what to do to get telnetd running e.g.
> > apt-get ... ... ...
> > or
> > ftp ...
> > then install the package if I can remember the debianish comands
>
> apt-get install telnetd
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Pedro Braga
Eng. Telec. / Programador
http://www.iportalmais.pt



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: putty (Xfree terminal, talk)

2001-05-28 Thread Mark Janssen

On Mon, May 28, 2001 at 04:34:03PM +0200, Marcel Hicking wrote:
> "talk user" works fine for us, at least it has been
> working fine 10 minutes ago ;-)
> Make sure talk is configured correctly in /etc/inetd.conf

If a user has turned his messages off (mesg n) or they are off by
default, and he hasn't turned them on, this will not work...
Write will always work since it ignores the message setting.

Mark Janssen Unix Consultant @ SyConOS IT
E-mail: [EMAIL PROTECTED]  GnuPG Key Id: 357D2178
http: maniac.nl, unix-god.[net|org], markjanssen.[com|net|org|nl]
Fax/VoiceMail: +31 84 8757555 Finger for GPG and GeekCode


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: putty (Xfree terminal, talk)

2001-05-28 Thread Marcel Hicking

"talk user" works fine for us, at least it has been
working fine 10 minutes ago ;-)
Make sure talk is configured correctly in /etc/inetd.conf

Marcel


James <[EMAIL PROTECTED]> 28 May 2001, at 15:38:

> 
> 
> On Mon, 28 May 2001, Antonio Rodriguez wrote:
> 
> > I have two questions:
> > 1. How can I talk to an user who is accessing my computer through
> > putty from an windows machine? When I tried it would say that the
> > user refused to talk. Should I type "talk user", or I have somehow
> > to include info about the ip of the source machine?
> 
> write user
> 
> but it isn't very friendly :-)
> 
> > 2. Is there any way of gaining access to an XFree (tty7, standard
> > setting) terminal for a remote user?
> > 
> > 
> > --  
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: in.telnetd

2001-05-28 Thread Peter Billson

Allen Ahoffman wrote:
> 
> what packages contain telnetd?
> I see xinetd package for loading it but where is the basic telnetd
> just loaded 2.2r2/i386 on a system but telnet isn't answering and i'm
> remote now.
> I need to tell the onsite person what to do to get telnetd running e.g.
> apt-get ... ... ...
> or
> ftp ...
> then install the package if I can remember the debianish comands

apt-get install telnetd

Pete
-- 
http://www.elbnet.com
ELB Internet Services, Inc.
Web Design, Computer Consulting, Internet Hosting


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




dselect problems

2001-05-28 Thread James

Hello

I have apache installed from the sources and mrtg from the packages, I
have
somehow managed to get into the situtaion where mrtg ios marqued as
to be unistalled, but when I try to mark is as installed, I then get the
dependencies of apache and apache common which are apparantly
obligitary... how do I get around this ? 

Thanks

James




Re: putty (Xfree terminal, talk)

2001-05-28 Thread James



On Mon, 28 May 2001, Antonio Rodriguez wrote:

> I have two questions:
> 1. How can I talk to an user who is accessing my computer through putty from
> an windows machine? When I tried it would say that the user refused to talk.
> Should I type "talk user", or I have somehow to include info about the ip of
> the source machine?

write user

but it isn't very friendly :-)

> 2. Is there any way of gaining access to an XFree (tty7, standard setting)
> terminal for a remote user?
> 
> 
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




putty (Xfree terminal, talk)

2001-05-28 Thread Antonio Rodriguez

I have two questions:
1. How can I talk to an user who is accessing my computer through putty from
an windows machine? When I tried it would say that the user refused to talk.
Should I type "talk user", or I have somehow to include info about the ip of
the source machine?
2. Is there any way of gaining access to an XFree (tty7, standard setting)
terminal for a remote user?


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




in.telnetd

2001-05-28 Thread Allen Ahoffman

what packages contain telnetd?
I see xinetd package for loading it but where is the basic telnetd
just loaded 2.2r2/i386 on a system but telnet isn't answering and i'm
remote now.
I need to tell the onsite person what to do to get telnetd running e.g.
apt-get ... ... ... 
or 
ftp ...
then install the package if I can remember the debianish comands


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




dselect problems

2001-05-28 Thread James


Hello

I have apache installed from the sources and mrtg from the packages, I
have
somehow managed to get into the situtaion where mrtg ios marqued as
to be unistalled, but when I try to mark is as installed, I then get the
dependencies of apache and apache common which are apparantly
obligitary... how do I get around this ? 

Thanks

James


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: server configuration strategies

2001-05-28 Thread Russell Coker
On Saturday 26 May 2001 23:15, Doug Alcorn wrote:
> Are there any strategy guides that talk about how/when to split up
> services on differnet servers?  Are different platforms better at

Split things up when they get slow.  There is no good guide to when they will 
get slow because each system is different and has different load patterns.

> different tasks (like network I/O, disk I/O, cpu)?  For instance,

Machines with Intel CPUs will beat almost anything for integer math, will 
perform OK for floating point math (which is fine as you hardly ever need it 
for an ISP), and will perform quite well for network and disk IO.

If you do some benchmarks expect the latest Intel/AMD-based machines to 
outperform your Sun and your Mac on every test.

IO is one area that PCs can really stand out.  Software RAID on Linux with 
ATA-100 hard drives can easily outperform Sun hardware RAID arrays costing 
100 times more money.

Another issue is that of reliability.  If something dies and you go off-line 
then you lose money!

Use RAID for all hard drives.  Wherever possible have several almost 
identical machines so that you can swap parts when things go wrong.  Having a 
Sun and an Apple is a bad idea IMHO.  If one of them breaks you can't easily 
get replacement parts.  With PCs you can have three identical PCs so if the 
most important machine dies you can swap parts with less important machines.

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page




Creating sample data for testing

2001-05-28 Thread Russell Coker
I am working on a new benchmark program and I need to create large amounts of 
sample data (say 10M entries which comprise 3G of data).  I am considering 
writing a programming language to generate sample data files, it would have 
basic variable assignment, loops, and the ability to call pre-defined 
functions (no facility to write your own functions).

Below is a sample of code needed to generate an LDIF file for input to an 
LDAP server.  The "[0-9]" type notation means to generate multiple values of 
a variable (or multiple copies of an entry depending on whether it's in the 
variable declaration or entry data part).  @file_name means to read a line 
from a text file, $R means a random number, $PWGEN() is a function to 
generate a "password" from the variable name using some basic hashing 
function.  This is designed so that a program to test password validation can 
know the password for an account without needing to lookup a table.  The 
$MD5() function is to generate an MD5 hash of the password (I also plan to 
support CRYPT, BLOWFISH, etc).

Now the question is, has someone done something like this before well enough 
to save me having to do it?  If not can anyone offer suggestions on 
implementation?  I anticipate that this will be easiest to write in Perl, but 
as I am not such a good Perl programmer I may code it in C++ anyway unless 
someone offers some Perl assistance.


dn: ou=people1, dc=coker, dc=com, dc=au
objectClass: organizationalUnit
ou: people1
 
dn: ou=people2, dc=coker, dc=com, dc=au
objectClass: organizationalUnit
ou: people2
 
$1=test[[0-9][a-z]
$2=2000..64000
$3=100+$2%1000
dn: uid=$1, ou=people[12], dc=coker, dc=com, dc=au
objectClass: posixAccount
objectClass: shadowAccount
uid: $1
uidNumber: $2
gidNumber: $3
homeDirectory: /home/$1
loginShell: /bin/false
cn: @names_file[$R]
userPassword: {crypt}$MD5($PWGEN($1))

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page




Re: ntpdate timeout

2001-05-28 Thread Russell Coker
On Friday 25 May 2001 22:44, Jeff Lee wrote:
> I've run into an interesting problem with ntpdate- we have it on most of
> our servers, run once on boot as is the standard. The /etc/init.d/ntpdate
> file is configured correctly, and for most of our systems it works fine.
> The other day, my manager moved a system to another part of the office,
> where it doesn't have network connectivity. When the ntpdate script
> executed, rather than timing out after about 5 seconds (1 sec default
> timeout on waiting for response from server * 5 loops), it hung the machine
> for over an hour before he decided to do a hard reset. The machine wouldn't

I think that should be a grave bug in the package.  Is it already reported as 
such in the BTS?

> that, one possibility is that when /etc/init.d/ntpdate is run, and ntpdate
> exits with an abnormal code, the system doesn't realize that ntpdate isn't
> running, and locks there? Any advice would be appreciated :)

Another thing you can do is enable the SAK which easily enables you to kill 
the offending process (such init script programs tend to have /dev/console 
open at the time they fail).

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page




Re: force queue Postfix

2001-05-28 Thread Teun Vink
On Mon, 28 May 2001, Manuel Trujillo wrote:

> Hi!
> 
> I'm reading the documentation of Postfix, but, I don't know if this is
> for my impatient, I don't see the manner of make a "force queue" with
> Postfix.
> 
> Can anybody help me, please??
> 
> Thank's for all, and excuse me my bad english... :(
> 
> Have a nice day  ;-)
> TooManySecrets
> 
> 

Hi,

Just check the postfix manpages:

   flush  Force delivery: attempt to deliver every message in
  the  deferred  mail  queue.  Normally,  attempts to
  deliver delayed mail happen at  regular  intervals,
  the interval doubling after each failed attempt.



grtz,


Teun

-- 
Teun Vink - [EMAIL PROTECTED] - icq: 15001247 - http://teun.moonblade.net




force queue Postfix

2001-05-28 Thread Manuel Trujillo
Hi!

I'm reading the documentation of Postfix, but, I don't know if this is for my 
impatient, I don't see the manner of make a "force queue" with Postfix.

Can anybody help me, please??

Thank's for all, and excuse me my bad english... :(

Have a nice day  ;-)
TooManySecrets




Creating sample data for testing

2001-05-28 Thread Russell Coker

I am working on a new benchmark program and I need to create large amounts of 
sample data (say 10M entries which comprise 3G of data).  I am considering 
writing a programming language to generate sample data files, it would have 
basic variable assignment, loops, and the ability to call pre-defined 
functions (no facility to write your own functions).

Below is a sample of code needed to generate an LDIF file for input to an 
LDAP server.  The "[0-9]" type notation means to generate multiple values of 
a variable (or multiple copies of an entry depending on whether it's in the 
variable declaration or entry data part).  @file_name means to read a line 
from a text file, $R means a random number, $PWGEN() is a function to 
generate a "password" from the variable name using some basic hashing 
function.  This is designed so that a program to test password validation can 
know the password for an account without needing to lookup a table.  The 
$MD5() function is to generate an MD5 hash of the password (I also plan to 
support CRYPT, BLOWFISH, etc).

Now the question is, has someone done something like this before well enough 
to save me having to do it?  If not can anyone offer suggestions on 
implementation?  I anticipate that this will be easiest to write in Perl, but 
as I am not such a good Perl programmer I may code it in C++ anyway unless 
someone offers some Perl assistance.


dn: ou=people1, dc=coker, dc=com, dc=au
objectClass: organizationalUnit
ou: people1
 
dn: ou=people2, dc=coker, dc=com, dc=au
objectClass: organizationalUnit
ou: people2
 
$1=test[[0-9][a-z]
$2=2000..64000
$3=100+$2%1000
dn: uid=$1, ou=people[12], dc=coker, dc=com, dc=au
objectClass: posixAccount
objectClass: shadowAccount
uid: $1
uidNumber: $2
gidNumber: $3
homeDirectory: /home/$1
loginShell: /bin/false
cn: @names_file[$R]
userPassword: {crypt}$MD5($PWGEN($1))

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: server configuration strategies

2001-05-28 Thread Russell Coker

On Saturday 26 May 2001 23:15, Doug Alcorn wrote:
> Are there any strategy guides that talk about how/when to split up
> services on differnet servers?  Are different platforms better at

Split things up when they get slow.  There is no good guide to when they will 
get slow because each system is different and has different load patterns.

> different tasks (like network I/O, disk I/O, cpu)?  For instance,

Machines with Intel CPUs will beat almost anything for integer math, will 
perform OK for floating point math (which is fine as you hardly ever need it 
for an ISP), and will perform quite well for network and disk IO.

If you do some benchmarks expect the latest Intel/AMD-based machines to 
outperform your Sun and your Mac on every test.

IO is one area that PCs can really stand out.  Software RAID on Linux with 
ATA-100 hard drives can easily outperform Sun hardware RAID arrays costing 
100 times more money.

Another issue is that of reliability.  If something dies and you go off-line 
then you lose money!

Use RAID for all hard drives.  Wherever possible have several almost 
identical machines so that you can swap parts when things go wrong.  Having a 
Sun and an Apple is a bad idea IMHO.  If one of them breaks you can't easily 
get replacement parts.  With PCs you can have three identical PCs so if the 
most important machine dies you can swap parts with less important machines.

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: ntpdate timeout

2001-05-28 Thread Russell Coker

On Friday 25 May 2001 22:44, Jeff Lee wrote:
> I've run into an interesting problem with ntpdate- we have it on most of
> our servers, run once on boot as is the standard. The /etc/init.d/ntpdate
> file is configured correctly, and for most of our systems it works fine.
> The other day, my manager moved a system to another part of the office,
> where it doesn't have network connectivity. When the ntpdate script
> executed, rather than timing out after about 5 seconds (1 sec default
> timeout on waiting for response from server * 5 loops), it hung the machine
> for over an hour before he decided to do a hard reset. The machine wouldn't

I think that should be a grave bug in the package.  Is it already reported as 
such in the BTS?

> that, one possibility is that when /etc/init.d/ntpdate is run, and ntpdate
> exits with an abnormal code, the system doesn't realize that ntpdate isn't
> running, and locks there? Any advice would be appreciated :)

Another thing you can do is enable the SAK which easily enables you to kill 
the offending process (such init script programs tend to have /dev/console 
open at the time they fail).

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: force queue Postfix

2001-05-28 Thread Teun Vink

On Mon, 28 May 2001, Manuel Trujillo wrote:

> Hi!
> 
> I'm reading the documentation of Postfix, but, I don't know if this is
> for my impatient, I don't see the manner of make a "force queue" with
> Postfix.
> 
> Can anybody help me, please??
> 
> Thank's for all, and excuse me my bad english... :(
> 
> Have a nice day  ;-)
> TooManySecrets
> 
> 

Hi,

Just check the postfix manpages:

   flush  Force delivery: attempt to deliver every message in
  the  deferred  mail  queue.  Normally,  attempts to
  deliver delayed mail happen at  regular  intervals,
  the interval doubling after each failed attempt.



grtz,


Teun

-- 
Teun Vink - [EMAIL PROTECTED] - icq: 15001247 - http://teun.moonblade.net


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]