qmail install troubles

2001-03-20 Thread Nick Kocharhook

Hello, all. I have been trying to install qmail on a RedHat 6.2 box, but it
doesn't quite work, and the documentation, FAQs and HOWTOs haven't cleared
things up.

I was using the qmail HOWTO to guide my installation.
 Everything went fine, no
errors. I chose Maildir over mbox. Then I got to step 11. While starting
/etc/rc.d/init.d/svscan (where I put the script) did start all the qmail
processes there were still two problems:

1. echo to: username | /var/qmail/bin/qmail-inject  did nothing.
2. there was nothing in /var/log/maillog (the mail log specified in
/etc/syslog.conf)

Then I stumbled across the fact that I needed .qmail files in the home
directories of users that intended to get mail, so I added those. They are
properly chowned and each contains only "./Maildir/".

I also tried a suggestion that I found in the archives of this list: I added
/var/qmail/bin to my path, and I executed 'qmail-start ./Maildir/ splogger
qmail &'.

Now #1 above works just fine, and username receives the mail in
~username/Maildir/new/. However, I still don't have any messages at all
about qmail in maillog (startup, mail sent, nothing), or in the rest of
/var/log/* for that matter.

A couple of other things:

*) LWQ, in step 2.8.5, mentions that I should use '/usr/local/sbin/qmail
start' to start qmail. But I don't have anything named qmail in
/usr/local/sbin/. Is this something one would use instead of services?

*) I started qmail with qmail-start after shutting down svscan. (I tried to
start svscan after that, but all I got was an error in maillog -- the only
thing printed in that file.) Before, I could stop the bevy of qmail
processes by typing '/etc/rc.d/init.d/svscan stop'. However, there is no
qmail-stop. How do I stop the processes properly? And if I'm not going to be
using svscan, how should I set up qmail to start at boot time? Just a script
w/ 'qmail-start' et al in /etc/rc.d/init.d/ with a corresponding link in
rc3.d?

Thanks for any suggestions you can provide!

-- 
Nick Kocharhook -- <[EMAIL PROTECTED]>




Re: X-Sender

2001-03-20 Thread David L. Nicol

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> Which qmail process write the X-Sender field in the headers? I would like
> to remove it, or to rewrite it, because it uses the name of my
> host/domain, which are not real. BTW, how can i rewrite any header of my
> outgoing mail?
> 
> David Gómez
> 
> "The question of whether computers can think is just like the question of
>  whether submarines can swim." -- Edsger W. Dijkstra

I wrote a patch to have qmail-smtpd add the hostname to an incomplete
 Sender: header you could do something similar to leave the sender field
the hell out.

My patches are at http://davidnicol.com/qmail.html

> Yes, it's true. But another idea of mine emerges - is there a way (in
> qmail) to _globally_ add my custom header to all outgoing mail ?
> 
> Cheers,
> -- 
> Lukasz Felsztukier

Edit your qmail-remote program to stick it in there



-- 
  David Nicol 816.235.1187 [EMAIL PROTECTED]
  He who says it's impossible shouldn't interrupt the one doing it.




Re: Multiple QMAIL-SMTPD on same box?

2001-03-20 Thread Sean Chittenden

Ahhh...  light blinks on.  If you're going to put the queues
on multiple disks, then your assumption is very correct.  How are you
going to handle distributing the load to the queues?  Round robin in
the script that'll send the emails out?  As for the multiple smtp
sessions, here's a run file for 'ya that has worked for me in the past:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
IP=`cat /var/qmail/control/primary_incoming_smtp_ip`
MAXSMTPD=`cat /var/qmail/control/concurrency_incoming`
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -p -c "$MAXSMTPD" \
-u $QMAILDUID -g $NOFILESGID $IP smtp /usr/local/bin/rblsmtpd \
/usr/local/bin/rblsmtpd -rdialups.mail-abuse.org \
/usr/local/bin/rblsmtpd -rrelays.mail-abuse.org \
/var/qmail/bin/qmail-smtpd 2>&1

It goes w/o saying that I recommend using the daemontools to
monitor your smtpd services.  -sc

On Tue, Mar 20, 2001 at 05:43:08PM -0800, Brandon Yu wrote:
> Delivered-To: [EMAIL PROTECTED]
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: Brandon Yu <[EMAIL PROTECTED]>
> To: 'Sean Chittenden' <[EMAIL PROTECTED]>
> Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Multiple QMAIL-SMTPD on same box?
> Date: Tue, 20 Mar 2001 17:43:08 -0800
> X-Mailer: Internet Mail Service (5.5.2650.21)
> 
> I just understand that qmail has a difficult time with so I/O when you have
> tons of email to send out (2million). Unfortunately, the emails are
> customized to each user. By having a separate qmail install on each disk,
> the idea is to spread the load around.  Would you agree? I will look into
> binding tcpserver with different addresses. 
> 
> Thanks,
> Brandon
> 
> > -Original Message-
> > From: Sean Chittenden [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 20, 2001 5:27 PM
> > To: Brandon Yu
> > Cc: List - Qmail (E-mail)
> > Subject: Re: Multiple QMAIL-SMTPD on same box?
> > 
> > 
> > Howdy.  I've done this before: it's cake, but I'm not sure why
> > you would want to do mutliple queues.  As for modifying tcpserver, why
> > not just run multiple copies and bind them to different 
> > addresses?  -sc
> > 
> > On Tue, Mar 20, 2001 at 05:19:05PM -0800, Brandon Yu wrote:
> > > Delivered-To: [EMAIL PROTECTED]
> > > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > > Precedence: bulk
> > > Delivered-To: mailing list [EMAIL PROTECTED]
> > > From: Brandon Yu <[EMAIL PROTECTED]>
> > > To: "List - Qmail (E-mail)" <[EMAIL PROTECTED]>
> > > Subject: Multiple QMAIL-SMTPD on same box? 
> > > Date: Tue, 20 Mar 2001 17:19:05 -0800
> > > X-Mailer: Internet Mail Service (5.5.2650.21)
> > > 
> > > I am setting up multiple Qmail installations on the same 
> > box. I am doing
> > > this because I am sending out a large number of emails that 
> > can't be sent
> > > out via a mailing list. By having multiple installs, I 
> > intend to lessen the
> > > I/O burden of just having 1 queue structure. My question is 
> > how to setup
> > > multiple qmail-smtpd processes all binding to port 25 using 
> > different IP
> > > addresses. I intend to setup multiple IPs to the same NIC 
> > using IP Aliasing.
> > > I think I will be modifying TCPSERVER, but not 100% sure.
> > > 
> > > Thanks
> > > 
> > > 
> > 
> > -- 
> > Sean Chittenden[EMAIL PROTECTED]
> > 

-- 
Sean Chittenden[EMAIL PROTECTED]

 PGP signature


RE: Multiple QMAIL-SMTPD on same box?

2001-03-20 Thread Brandon Yu

I just understand that qmail has a difficult time with so I/O when you have
tons of email to send out (2million). Unfortunately, the emails are
customized to each user. By having a separate qmail install on each disk,
the idea is to spread the load around.  Would you agree? I will look into
binding tcpserver with different addresses. 

Thanks,
Brandon

> -Original Message-
> From: Sean Chittenden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 5:27 PM
> To: Brandon Yu
> Cc: List - Qmail (E-mail)
> Subject: Re: Multiple QMAIL-SMTPD on same box?
> 
> 
>   Howdy.  I've done this before: it's cake, but I'm not sure why
> you would want to do mutliple queues.  As for modifying tcpserver, why
> not just run multiple copies and bind them to different 
> addresses?  -sc
> 
> On Tue, Mar 20, 2001 at 05:19:05PM -0800, Brandon Yu wrote:
> > Delivered-To: [EMAIL PROTECTED]
> > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > Precedence: bulk
> > Delivered-To: mailing list [EMAIL PROTECTED]
> > From: Brandon Yu <[EMAIL PROTECTED]>
> > To: "List - Qmail (E-mail)" <[EMAIL PROTECTED]>
> > Subject: Multiple QMAIL-SMTPD on same box? 
> > Date: Tue, 20 Mar 2001 17:19:05 -0800
> > X-Mailer: Internet Mail Service (5.5.2650.21)
> > 
> > I am setting up multiple Qmail installations on the same 
> box. I am doing
> > this because I am sending out a large number of emails that 
> can't be sent
> > out via a mailing list. By having multiple installs, I 
> intend to lessen the
> > I/O burden of just having 1 queue structure. My question is 
> how to setup
> > multiple qmail-smtpd processes all binding to port 25 using 
> different IP
> > addresses. I intend to setup multiple IPs to the same NIC 
> using IP Aliasing.
> > I think I will be modifying TCPSERVER, but not 100% sure.
> > 
> > Thanks
> > 
> > 
> 
> -- 
> Sean Chittenden[EMAIL PROTECTED]
> 



RE: Qmail Scanner

2001-03-20 Thread Ross Cooney

hi Jason,

Have you tested qmail-scanner with the Command Antivirus Linux scanner?

I am trying it out at the moment...any tips?

Thanks,


Ross




Re: Multiple QMAIL-SMTPD on same box?

2001-03-20 Thread Sean Chittenden

Howdy.  I've done this before: it's cake, but I'm not sure why
you would want to do mutliple queues.  As for modifying tcpserver, why
not just run multiple copies and bind them to different addresses?  -sc

On Tue, Mar 20, 2001 at 05:19:05PM -0800, Brandon Yu wrote:
> Delivered-To: [EMAIL PROTECTED]
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: Brandon Yu <[EMAIL PROTECTED]>
> To: "List - Qmail (E-mail)" <[EMAIL PROTECTED]>
> Subject: Multiple QMAIL-SMTPD on same box? 
> Date: Tue, 20 Mar 2001 17:19:05 -0800
> X-Mailer: Internet Mail Service (5.5.2650.21)
> 
> I am setting up multiple Qmail installations on the same box. I am doing
> this because I am sending out a large number of emails that can't be sent
> out via a mailing list. By having multiple installs, I intend to lessen the
> I/O burden of just having 1 queue structure. My question is how to setup
> multiple qmail-smtpd processes all binding to port 25 using different IP
> addresses. I intend to setup multiple IPs to the same NIC using IP Aliasing.
> I think I will be modifying TCPSERVER, but not 100% sure.
> 
> Thanks
> 
> 

-- 
Sean Chittenden[EMAIL PROTECTED]

 PGP signature


Multiple QMAIL-SMTPD on same box?

2001-03-20 Thread Brandon Yu



I am setting up 
multiple Qmail installations on the same box. I am doing this because I am 
sending out a large number of emails that can't be sent out via a mailing 
list. By having multiple installs, I intend to lessen the I/O burden of 
just having 1 queue structure. My question is how to setup multiple qmail-smtpd 
processes all binding to port 25 using different IP addresses. I intend to 
setup multiple IPs to the same NIC using IP Aliasing. I think I will 
be modifying TCPSERVER, but not 100% sure.
Thanks


RE: Qmail Scanner

2001-03-20 Thread Ross Cooney

Hi Brett,

I suppose I can answer most of your questions...


The qmail-scanner tar file contains a few files with the prefix "sub-" these
contain stuff you needI used the one "sub-iscan.pl" for the Trend micro
scanner, but you have to choose the one that suits you and your AV scanner.
Apend this code to the end of your "qmail-scanner-queue.pl" file.

I made a few changes to this codeI added the following lines:
  $ENV{'SAV_IDE'} = '';
  delete $ENV{'SAV_IDE'} if ($ENV{'SAV_IDE'} eq "");
and I also edited the following line:
  $DD=`$iscan_binary -za -a -u -nl $iscan_verbose $scandir/$file_id
$extra_file 2>&1`;
I have listed the fill addition at the end of this email [1].

Then in the "qmail-scanner-queue.pl" file edit some of the variablessuch
as the path to the scanner [2] and also the scanner array variable[3].

Then run the "tail -f qmail-queue.log" command and debug till your heart is
broken!

As a newby I was very happy with the results!

Ross


[1]

**START**
sub iscan_scanner {
  local($start_iscan_time)=[gettimeofday];
  &debug("iscanner: starting scan of directory \"$scandir/$file_id\"...");
  $ENV{'SAV_IDE'} = '';
  delete $ENV{'SAV_IDE'} if ($ENV{'SAV_IDE'} eq "");
  local($iscan_verbose)="-v" if ($DEBUG);
  &debug("run  $iscan_binary /etc/iscan/vscan -za -a -u $iscan_verbose
$scandir/$file_id $extra_file 2>&1");
  $DD=`$iscan_binary -za -a -u -nl $iscan_verbose $scandir/$file_id
$extra_file 2>&1`;
  $iscan_status=($? >> 8);
  &debug("--output of iscan was:\n$DD--");

  if ( $DD =~ /\*\*\*\s+Found(.*) in file/  ) {
$virus_description=$1;
&debug("There be a virus! ($virus_description)");
$virus_found++;
#$DD =~ s/\n//g;
$description .= "\n---iscan results ---\n$DD";
$section=$apptype=$save_filename=$filename="";
  } elsif ( $iscan_status > 0 ) {
#This implies a corrupt set of DAT files or resource problems...
&tempfail("corrupt scanner/resource problems - exit status
$iscan_status");
  }
  local($stop_iscan_time)=[gettimeofday];
  $iscan_time = tv_interval ($start_iscan_time, $stop_iscan_time);
  &debug("iscaner: finished scan of dir \"$scandir/$file_id\" in $iscan_time
secs");
}
**END**


[2]I added
$iscan_binary='/etc/iscan/vscan';

[3]I added
@scanner_array=("sweep_scanner", "iscan_scanner");)










-Original Message-
From: Brett Randall [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 23:12
To: Jason Haar
Cc: 'Qmail Mailing List'
Subject: Re: Qmail Scanner


> "Jason" == Jason Haar <[EMAIL PROTECTED]> writes:



> You will need to reinstall Q-S. I specifically wrote Q-S so that it
> only contains code specific to your system. You have added another
> virus scanner, so you'll need to do another "./configure etc" to
> rebuild the app with support for Trend.

Hey Jason

We are looking at running a second virus scanner with our Q-S soon as
well. The only thing is that we have MAJORLY modified Q-S to work in
our environment (changed the messages that go out to people, depending
on the extensions of the files and who specifically is sending the
e-mail). We can't really just `reinstall' Q-S since it would require
hours of work to make it work again the way we want it to. Are you
able to quickly outline the variables and commands that change? I
guess I could read the configure script, but if you could tell us that
would be great! TIA
--
"I'm not dumb. I just have a command of throughly useless
information."

- Calvin, of Calvin and Hobbes





Re: multiple checkpassword routines

2001-03-20 Thread Jörgen Persson

On Tue, Mar 20, 2001 at 12:36:13PM -0500, Peter Green wrote:
[snip]
>   #!/bin/bash2
> 
>   # check vmailmgr first; save the environment
>   # /tmp/scr just executes /usr/bin/id
>   ENVIRON = $(/usr/bin/checkvpw /tmp/scr Maildir/)
>   rc=$?
>   if [ $rc -ne 0 ]; then
>   # failed; try vpopmail
>   ENVIRON = $(/usr/local/vpopmail/bin/vchkpw /tmp/scr Maildir/)
>   rc=$?
>   if [ $rc -ne 0 ]; then
>   # failed all
>   echo "-ERR Authorization failed"
>   exit $rc
>   else
>   export $ENVIRON
>   exec qmail-pop3d "$@"
>   fi
>   else
>   export $ENVIRON
>   exec qmail-pop3d "$MAILDIR"
>   fi
> 
> It mostly works, since all child processes inherit FD 3 properly. However,
> if the first method fails, it cannot try the second method, since FD 3 has
> already hit EOF; how can I rewind this from bash? Also, if it succeeds, the
> exec line simply does not work; the error is always ``-ERR this user has no
> $HOME/Maildir''. I have double-checked the environment with
> ``env>>/tmp/debug'' after the export call, and home get set properly.
[snip]

You can rewind by saving FD3 to an ordinary file. Try this example:

#! /bin/sh
exec 0<&3
cat>/tmp/pwd

exec 3


Re: "Request for Confirmation"-script for qmail ?

2001-03-20 Thread Olivier M.

On Wed, Mar 21, 2001 at 12:40:00AM +0100, Peter van Dijk wrote:
> > well, it may be something "like" ezmlm, but then a highly hacked version.
> > If I send a mails to the "@php.net" address, the mail will then
> > be put in "quarantaine" until I send the confirmation: I don't
> > think ezmlm does that out of the box... Or maybe I'm wrong?
> 
> ezmlm-idx can do that.

out of the box ? Mmm, http://www.ezmlm.org/faq-0.40/index.html is
huge, but I didn't saw such feature on it. That would be a kind
of unique auto moderation. Btw, sending a mail to the 
emailaddress-unsubscribe bounces :)

Olivier
-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch



Re: "Request for Confirmation"-script for qmail ?

2001-03-20 Thread Peter van Dijk

On Wed, Mar 21, 2001 at 12:37:40AM +0100, Olivier M. wrote:
> On Wed, Mar 21, 2001 at 12:18:37AM +0100, Peter van Dijk wrote:
> > > gni ? :) I'm not asking for a mailing list software! read my post :)
> > 
> > I'm just telling you what php.net is using, and that message
> > definitely came out of ezmlm.
> 
> well, it may be something "like" ezmlm, but then a highly hacked version.
> If I send a mails to the "@php.net" address, the mail will then
> be put in "quarantaine" until I send the confirmation: I don't
> think ezmlm does that out of the box... Or maybe I'm wrong?

ezmlm-idx can do that.

Greetz, Peter.



Re: "Request for Confirmation"-script for qmail ?

2001-03-20 Thread Olivier M.

On Wed, Mar 21, 2001 at 12:18:37AM +0100, Peter van Dijk wrote:
> > gni ? :) I'm not asking for a mailing list software! read my post :)
> 
> I'm just telling you what php.net is using, and that message
> definitely came out of ezmlm.

well, it may be something "like" ezmlm, but then a highly hacked version.
If I send a mails to the "@php.net" address, the mail will then
be put in "quarantaine" until I send the confirmation: I don't
think ezmlm does that out of the box... Or maybe I'm wrong?

And there are no ezmlm usual headers in the mail... 
To be continued :)
Olivier
-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch



Re: "Request for Confirmation"-script for qmail ?

2001-03-20 Thread Peter van Dijk

On Wed, Mar 21, 2001 at 12:16:07AM +0100, Olivier M. wrote:
> On Wed, Mar 21, 2001 at 12:03:52AM +0100, Peter van Dijk wrote:
> > On Tue, Mar 20, 2001 at 11:55:36PM +0100, Olivier M. wrote:
> > [snip]
> > > The headers tells that qmail is used on the php.net server : is there
> > > an open-source script that does that somewhere ? Just looked on 
> > > google and freshmeat without success.
> > 
> > That's probably ezmlm, by the qmail author. Try
> > http://cr.yp.to/ezmlm.html or http://www.ezmlm.org/
> 
> gni ? :) I'm not asking for a mailing list software! read my post :)

I'm just telling you what php.net is using, and that message
definitely came out of ezmlm.

Greetz, Peter.



Re: "Request for Confirmation"-script for qmail ?

2001-03-20 Thread Olivier M.

On Wed, Mar 21, 2001 at 12:03:52AM +0100, Peter van Dijk wrote:
> On Tue, Mar 20, 2001 at 11:55:36PM +0100, Olivier M. wrote:
> [snip]
> > The headers tells that qmail is used on the php.net server : is there
> > an open-source script that does that somewhere ? Just looked on 
> > google and freshmeat without success.
> 
> That's probably ezmlm, by the qmail author. Try
> http://cr.yp.to/ezmlm.html or http://www.ezmlm.org/

gni ? :) I'm not asking for a mailing list software! read my post :)

It's somethink like "mapSoN" : ftp://ftp.gmd.de/gmd/mapson/, but
for qmail. 

Olivier
-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch

 PGP signature


Re: "Request for Confirmation"-script for qmail ?

2001-03-20 Thread Peter van Dijk

On Tue, Mar 20, 2001 at 11:55:36PM +0100, Olivier M. wrote:
[snip]
> The headers tells that qmail is used on the php.net server : is there
> an open-source script that does that somewhere ? Just looked on 
> google and freshmeat without success.

That's probably ezmlm, by the qmail author. Try
http://cr.yp.to/ezmlm.html or http://www.ezmlm.org/

Greetz, Peter.



Re: Qmail Scanner

2001-03-20 Thread Brett Randall

> "Jason" == Jason Haar <[EMAIL PROTECTED]> writes:



> You will need to reinstall Q-S. I specifically wrote Q-S so that it
> only contains code specific to your system. You have added another
> virus scanner, so you'll need to do another "./configure etc" to
> rebuild the app with support for Trend.

Hey Jason

We are looking at running a second virus scanner with our Q-S soon as
well. The only thing is that we have MAJORLY modified Q-S to work in
our environment (changed the messages that go out to people, depending
on the extensions of the files and who specifically is sending the
e-mail). We can't really just `reinstall' Q-S since it would require
hours of work to make it work again the way we want it to. Are you
able to quickly outline the variables and commands that change? I
guess I could read the configure script, but if you could tell us that
would be great! TIA
-- 
"I'm not dumb. I just have a command of throughly useless
information."

- Calvin, of Calvin and Hobbes



"Request for Confirmation"-script for qmail ?

2001-03-20 Thread Olivier M.

Hello,

When I send a mail to the @php.net addresses for the first time,
I get this kind of mail:

>Subject: Request for Confirmation [automatic reply] [5526ba3c03d2348cc94e2b8947e61905]
>From: "PHP Group" <[EMAIL PROTECTED]>
>Date: 20 Mar 2001 22:45:23 -
>
>Hi,
>
>This is an automatic reply to an email you sent to the PHP Group.
>
>Please verify your email address by simply replying to this email.
>Your email address will then be stored so that future emails will be
>accepted instantly
>
>Address to be registered: [EMAIL PROTECTED]
>
>This is a simple form of spam protection which aims at saving the valuable
>time of the volunteers working on the PHP Project.
>
>Sorry for the extra hassle, and thank you.


The headers tells that qmail is used on the php.net server : is there
an open-source script that does that somewhere ? Just looked on 
google and freshmeat without success.

Regards,
Olivier

-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch

 PGP signature


Re: qmail large usuage

2001-03-20 Thread Peter van Dijk

On Tue, Mar 20, 2001 at 10:39:24PM +, Mark Delany wrote:
[snip]
> 
> My guess is that PeterM is sending unique emails, perhaps tailored TV
> programs? My second guess is that PeterD is sending a single
> untailored email to many recipients.

You got me right.

That is a relevant detail indeed :)

Greetz, Peter.



Re: Qmail Scanner

2001-03-20 Thread Jason Haar

On Tue, Mar 20, 2001 at 06:53:10PM -, Ross Cooney wrote:
> Hi List!
> 
> We have been using the qmail-scanner patch for a few weeks and we are very
> happy with it.

Great to hear :-)

> 
> Currently our system only uses one AV scanner the sophos product, and I want
> to use a second AV scanner in parrallel. The second scanner I want to use is
> the Trend Micro scanner.

You will need to reinstall Q-S. I specifically wrote Q-S so that it only
contains code specific to your system. You have added another virus scanner,
so you'll need to do another "./configure etc" to rebuild the app with
support for Trend.

Simply read the first few lines of your existing
/var/qmail/bin/qmail-scanner-queue.pl. It contains the "./configure..." call
you did to build it in the first place. Just run it again :-)


-- 
Cheers

Jason Haar

Unix/Special Projects, Trimble NZ
Phone: +64 3 9635 377 Fax: +64 3 9635 417



Re: qmail large usuage

2001-03-20 Thread Mark Delany

On Tue, Mar 20, 2001 at 11:31:37PM +0100, Peter van Dijk wrote:
> On Wed, Mar 21, 2001 at 08:32:29AM +1100, [EMAIL PROTECTED] wrote:
> > Hi, we do a mailout of about 40,000 - 50,000 emails per day to our
> > clients and there clients (not spam). I have been trying to get qmail to
> > work on getting up and over the 250 limitation of simulataneous
> > connections.
> > 
> > We are running hp netserver pIII 833 with 1 gig ram, the mail queue is
> > running on raid 0. So I am sure we have the hardware to do it.
> 
> I have a dual PIII-550 with 1 gig, queue on a dedicated scsi-disk. It
> sends out a mailinglist to the first 10.000 recipients in just over 3
> minutes, with concurrencyremote set to 256.
> 
> So you should have no trouble at all  :)

My guess is that PeterM is sending unique emails, perhaps tailored TV
programs? My second guess is that PeterD is sending a single
untailored email to many recipients.


Regards.



Re: qmail large usuage

2001-03-20 Thread Peter van Dijk

On Wed, Mar 21, 2001 at 08:32:29AM +1100, [EMAIL PROTECTED] wrote:
> Hi, we do a mailout of about 40,000 - 50,000 emails per day to our
> clients and there clients (not spam). I have been trying to get qmail to
> work on getting up and over the 250 limitation of simulataneous
> connections.
> 
> We are running hp netserver pIII 833 with 1 gig ram, the mail queue is
> running on raid 0. So I am sure we have the hardware to do it.

I have a dual PIII-550 with 1 gig, queue on a dedicated scsi-disk. It
sends out a mailinglist to the first 10.000 recipients in just over 3
minutes, with concurrencyremote set to 256.

So you should have no trouble at all  :)

[note that this machine is handling a couple local deliveries (NFS)
and forwards per second in the meantime, too]

Greetz, Peter.



looking for tms v0.22

2001-03-20 Thread Jason R. Mastaler

Does anyone have a local and recent copy of tms (tagged message
sender) written by Thomas Erskine?  The link referenced on
www.qmail.org (http://silverlock.dgim.crc.ca/~terskine/qmail/tms.html)
is no longer working, and I've lost my copy.  I've also been unable to
reach Thomas at <[EMAIL PROTECTED]> as I've been able to in the
past.

Thanks.




Re: setting QMAILMFTFILE

2001-03-20 Thread Charles Cazabon

Brett <[EMAIL PROTECTED]> wrote:
> 
> I've got qmail set up and it's working okay for single messages sent locally
> with qmail-inject from a perl script. I need to set it up for a mailing list
> application but one in which only portions of the mailing list can be
> selected to receive mail based on details about specific list members. (I
> mention this so you realize why I don't just use ezmlm. Ezmlm does not allow
> you to selectively mail certain list members but rather implements an all or
> nothing approach as far as I can tell).

Possible ezmlm solution:  create separate ezmlm lists for each topic/subject
you will mail on, and subscribe users to multiple lists.  This won't work if
you want to mail to multiple topics (users might receive multiple identical
messages) or you can't determine the topic divisions in advance.

> So when I call qmail-inject I want to do so with a filename of people. It
> seems I need to set this QMAILMFTFILE environment variable in order to do
> this. I set it with 'setenv QMAILMFTFILE /../list.txt' and I can then see the
> new env var with 'printenv' but qmail-inject ignores it.

QMAILMFTFILE only controls whether qmail-inject sets the Mail-Followup-To:
header in the outgoing message, nothing else.  And even if it did what
you want to do, the value "/../list.txt" isn't likely to be meaningful.

What you can do instead is something like:
xargs 
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



setting QMAILMFTFILE

2001-03-20 Thread Brett

Forgive me and my novice-ness but I have a fairly simple problem...

I've got qmail set up and it's working okay for single messages sent locally
with qmail-inject from a perl script. I need to set it up for a mailing list
application but one in which only portions of the mailing list can be
selected to receive mail based on details about specific list members. (I
mention this so you realize why I don't just use ezmlm. Ezmlm does not allow
you to selectively mail certain list members but rather implements an all or
nothing approach as far as I can tell). So when I call qmail-inject I want
to do so with a filename of people. It seems I need to set this QMAILMFTFILE
environment variable in order to do this. I set it with 'setenv QMAILMFTFILE
/../list.txt' and I can then see the new env var with 'printenv' but
qmail-inject ignores it. Is qmail looking at a different set of environment
variables and if so how do I alter those? Thanks in advance.





Re: qmail large usuage

2001-03-20 Thread Charles Cazabon

[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, we do a mailout of about 40,000 - 50,000 emails per day to our
> clients and there clients (not spam). I have been trying to get qmail to
> work on getting up and over the 250 limitation of simulataneous
> connections.

See www.qmail.org -- there's a section on large servers.  The big-concurrency
patch is probably what you're looking for.

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.
---



qmail large usuage

2001-03-20 Thread peter . milburn
 BDY.RTF


Re: vsm-style Maildir?

2001-03-20 Thread Peter van Dijk

On Tue, Mar 20, 2001 at 09:04:55PM +0100, Peter van Dijk wrote:
[snip]
> I use safecat and a small tool that calculates hashed /var/spool/mail
> names for this.
> 
> This should work for you: (untested!):
> 
> env - PATH="/var/qmail/bin:$PATH" \
> qmail-start '|maildir /var/spool/mail/$USER/' splogger qmail
> 
> where 'maildir' is the maildir tool in the safecat package.

Alternatively, you could put '/var/spool/mail/username/' into each
user's .qmail file.

Greetz, Peter.



Re: vsm-style Maildir?

2001-03-20 Thread Peter van Dijk

On Tue, Mar 20, 2001 at 11:32:18AM -0600, Drew Raines wrote:
> This seems like it would be a common question, but I haven't found a
> clear answer.  I would like to merge the stability and speed of
> Maildirs with the administrative convenience of VSM (nice, clean,
> all-in-one directory tree).  I've tried starting qmail's rc with
> something like
> 
>env - PATH="/var/qmail/bin:$PATH" \
>qmail-start /var/spool/mail/$USER/ splogger qmail
> 
> after doing a maildirmake on /var/spool/mail/$USER, but I get the
> dreaded Unable_to_chdir_to_maildir error.  I've only set up qmail with
> regular vsm support before  Could someone point me in the right
> direction or tell me why I wouldn't want to set this up this way?

I use safecat and a small tool that calculates hashed /var/spool/mail
names for this.

This should work for you: (untested!):

env - PATH="/var/qmail/bin:$PATH" \
qmail-start '|maildir /var/spool/mail/$USER/' splogger qmail

where 'maildir' is the maildir tool in the safecat package.

Greetz, Peter.



Re: Trouble with qmail on Redhat 6.2

2001-03-20 Thread Dave Sill

"Iain Morrison" <[EMAIL PROTECTED]> wrote:

>The run file for qmail-smtpd is:
>
>#!/bin/sh
>QMAILDUID='is -u qmaild'
>NOFILESGID='id -g qmaild'
>MAXSMTPD='cat /var/qmail/control/concurrencyincoming'

Should be back quotes (`) not single quotes (').

-Dave



Re: Autoresponder help!!

2001-03-20 Thread Nick Papageorge

To put it in the words of a very happy person.

WOO HOOO!!

You were partially right.

What I had to do was keep: 

| /usr/local/bin/autorespond 1 5 
|/home/vpopmail/domains/marketingtips.com/nick-vacation-message   
|/home/vpopmail/domains/marketingtips.com/nick.papageorge/

as one entire line and then add:

| /usr/local/bin/autorespond 1 5 
|/home/vpopmail/domains/marketingtips.com/nick-vacation-message 
|/home/vpopmail/domains/marketingtips.com/nick.papageorge/
/home/vpopmail/domains/marketingtips.com/nick.papageorge/Maildir/

Boom, that's all it took!



Thanks for pointing me in the right direction!

Nick Papageorge




At 01:33 PM 3/20/2001 -0600, Charles Cazabon wrote:
>Nick Papageorge <[EMAIL PROTECTED]> wrote:
>> 
>> Well, I'm having massive problems actually getting it working.
>> 
>> I've tried creating a .qmail-nick:papageorge file and placing the
>> following line:
>> 
>> | /usr/local/bin/autorespond 1 5 
>/home/vpopmail/domains/marketingtips.com/nick-vacation-message 
>/home/vpopmail/domains/marketingtips.com/nick.papageorge/
>
>I'm not sure which autoresponder you're using, or what arguments it takes.
>But with qmail, if you create a .qmail file to deliver to a script, you have
>to remember to add another line for deliveyr to a Maildir or mbox if the
>script itself doesn't save the message for you.
>
>In this case, you might want the .qmail-nick:papageorge file to contain:
>| /usr/local/bin/autorespond 1 5 
>/home/vpopmail/domains/marketingtips.com/nick-vacation-message
>/home/vpopmail/domains/marketingtips.com/nick.papageorge/
>
>i.e., one line to deliver to the autoresponder program, and a separate line
>delivering into the appropriate Maildir.
>
>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 Scanner

2001-03-20 Thread MIS - Ben Murphy

Ross,

I dont write in perl, but in PHP and others,
i believe you should be using...

@scanner_array=("sweep_scanner", "iscan_scanner");

Here's a link for a perl syntax tutorial.
http://www.comp.leeds.ac.uk/Perl/

And i find your answer here...

http://www.comp.leeds.ac.uk/Perl/arrays.html

Best Regards,

Ben Murphy,
Technical Director,
murphx Innovative Solutions

tel:+44 (0) 870 757 1650
fax:+44 (0) 870 757 1651
e-mail: [EMAIL PROTECTED]

This e-mail is confidential and may contain legally privileged information.
If you are not named above as an addressee it may be unlawful for you to
read,
copy, distribute, disclose or otherwise use the information contained within
this e-mail.
Any views or opinions presented are solely those of the author,
and may not represent those of murphx Innovative Solutions.

> -Original Message-
> From: Ross Cooney [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 6:53 PM
> To: 'Qmail Mailing List'
> Subject: Qmail Scanner
>
>
> Hi List!
>
> We have been using the qmail-scanner patch for a few weeks
> and we are very
> happy with it.
>
> Currently our system only uses one AV scanner the sophos
> product, and I want
> to use a second AV scanner in parrallel. The second scanner I
> want to use is
> the Trend Micro scanner.
>
> The "qmail-scanner-queue.pl" file has a the following line:
> @scanner_array=("sweep_scanner");
> This is where it calls another function which actually calls
> the scanner.
>
>
> Does anybody know how to edit this so that two scanners are used?
>
> Is it:
> @scanner_array=("sweep_scanner & iscan_scanner");
>
> or
> @scanner_array=("sweep_scanner" & "iscan_scanner");
>
> Etc...
>
> I can get them to scan independently...but cant get them to
> scan together!
>
>
> Thanks,
>
> Ross Cooney
>
> __
> ___
> Technical Director
> Cyber Sentry Ltd, 101 Johnstown Road, Dun Laoghaire, Co
> Dublin, Ireland.
>
> Email:[EMAIL PROTECTED]
> Telephone:+ 353 1 2352546
> Fax:  + 353 1 2847263
>
>
> This communication contains information which is confidential and
> may also be privileged.  It is for the exclusive use of the
> intended recipient(s).  If you are not the intended recipient(s),
> please note that any distribution, copying or use of this
> communication or the information in it is strictly prohibited.
> If you have received this communication in error, please notify
> the sender immediately and then destroy any copies of it.
> __
> ___
>
>
>
>
>
> **
> This email has been scanned by Pro-Web for all known Viruses
> For more information please visit our web site at www.pro-web.ie
> **
>
>




Re: Autoresponder help!!

2001-03-20 Thread Charles Cazabon

Nick Papageorge <[EMAIL PROTECTED]> wrote:
> 
> Well, I'm having massive problems actually getting it working.
> 
> I've tried creating a .qmail-nick:papageorge file and placing the
> following line:
> 
> | /usr/local/bin/autorespond 1 5 
>/home/vpopmail/domains/marketingtips.com/nick-vacation-message 
>/home/vpopmail/domains/marketingtips.com/nick.papageorge/

I'm not sure which autoresponder you're using, or what arguments it takes.
But with qmail, if you create a .qmail file to deliver to a script, you have
to remember to add another line for deliveyr to a Maildir or mbox if the
script itself doesn't save the message for you.

In this case, you might want the .qmail-nick:papageorge file to contain:
| /usr/local/bin/autorespond 1 5 
/home/vpopmail/domains/marketingtips.com/nick-vacation-message
/home/vpopmail/domains/marketingtips.com/nick.papageorge/

i.e., one line to deliver to the autoresponder program, and a separate line
delivering into the appropriate Maildir.

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.
---



Autoresponder help!!

2001-03-20 Thread Nick Papageorge

Hi all,

I'm dealing with a bit of an issue here.  Forgive me if
I don't use the proper verbiage, I'm just starting out.

We have qmail installed, I gather that the set-up is
pretty standard.  We have specific domains and
within those folders, there are sub-folders for each
user's email address.  Mine is:

/home/vpopmail/domains/marketingtips.com/nick.papageorge/

We also have a great deal of aliases, which in turn 
point to our specific and personal mail directories.

For example .qmail-nick has the following line in it:

/home/vpopmail/domains/marketingtips.com/nick.papageorge/Maildir/

Again, forgive me if I'm giving redundant information.

Anyway, my problem is that I need to do is set up an autoresponder
that will do the following when an email is sent to 
[EMAIL PROTECTED]:

 - Respond with a message created by yours truly
 - Drop the email into my maildir
 - Allow me to check my email and see the message in my
   inbox.

This seems simple enough, right?

Well, I'm having massive problems actually getting it working.

I've tried creating a .qmail-nick:papageorge file and placing the
following line:

| /usr/local/bin/autorespond 1 5 
|/home/vpopmail/domains/marketingtips.com/nick-vacation-message 
|/home/vpopmail/domains/marketingtips.com/nick.papageorge/

AND I've even tried the same with adding:

&[EMAIL PROTECTED]

I've also tried using the web interface to create an autoresponder, 
which creates a NICK.PAPAGEORGE/ directory and, guess what,
it doesn't work..

I'm banging my head against a wall, and I need to get an autoresponder
up and working for the owner of our company (see the importance and
dire need to get this working?).

Any help will be overwhelmingly appreciated.

Nick Papageorge




Re: /var/qmail/users/cdb

2001-03-20 Thread Charles Cazabon

Brad Dameron <[EMAIL PROTECTED]> wrote:
>   
> What is the command to make this file out of the assign file?

It's clearly mentioned in the documentation -- try reading the man page for
qmail-users; it will direct you to the appropriate manual page for the
command itself.

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.
---



/var/qmail/users/cdb

2001-03-20 Thread Brad Dameron


What is the command to make this file out of the assign file?

---
Brad Dameron[EMAIL PROTECTED]
Network Account Executive   877-663-4349
TSCNet Online Services  www.tscnet.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/2001




RE: Qmail Scanner

2001-03-20 Thread schoon

This still depends on how the @scanner_array is used to determine the
name of the scanner. If all it is looking for is a list of names of
scanners, then you are correct Charles. The single & is used as a
bitwise operator - probably not what Ross wants!

.mark

>--
>From:  Charles Cazabon[SMTP:[EMAIL PROTECTED]]
>Sent:  Tuesday, March 20, 2001 10:45 AM
>To:'Qmail Mailing List'
>Subject:   Re: Qmail Scanner
>
>Ross Cooney <[EMAIL PROTECTED]> wrote:
>> 
>> The "qmail-scanner-queue.pl" file has a the following line:
>> @scanner_array=("sweep_scanner");
>> This is where it calls another function which actually calls the scanner.
>> 
>> Does anybody know how to edit this so that two scanners are used?
>> 
>> Is it:
>> @scanner_array=("sweep_scanner & iscan_scanner");
>> 
>> or
>> @scanner_array=("sweep_scanner" & "iscan_scanner");
>
>I'm not a Perl coder, but neither of those look right.  I would guess it
>is something closer to:
>
>@scanner_array=("sweep_scanner", "iscan_scanner");
>
>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: /usr/bin/sendmail -t

2001-03-20 Thread Charles Cazabon

Alex Le Fevre <[EMAIL PROTECTED]> wrote:
> OK, that's cool...but now I have (presumably) one last question. I've got my
> script printing From: $usermail to /usr/bin/sendmail, and it's working well
> enough both to trap the address the user enters and put it into the From:
> field. My question is, what field to I need to put $usermail into so that I
> can send a message to [EMAIL PROTECTED] and fool ezmlm?

Do a quick & dirty parse of the address, splitting it at the _last_ occurrence
of "@", so you get userlocal and userdomain parts.  Then just send a (blank)
mail to:

[EMAIL PROTECTED]

This works well for us -- we use it for web-based initiation of
subscription/unsubscription requests to ezmlm lists.

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 Scanner

2001-03-20 Thread Charles Cazabon

Ross Cooney <[EMAIL PROTECTED]> wrote:
> 
> The "qmail-scanner-queue.pl" file has a the following line:
> @scanner_array=("sweep_scanner");
> This is where it calls another function which actually calls the scanner.
> 
> Does anybody know how to edit this so that two scanners are used?
> 
> Is it:
> @scanner_array=("sweep_scanner & iscan_scanner");
> 
> or
> @scanner_array=("sweep_scanner" & "iscan_scanner");

I'm not a Perl coder, but neither of those look right.  I would guess it
is something closer to:

@scanner_array=("sweep_scanner", "iscan_scanner");

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: /usr/bin/sendmail -t

2001-03-20 Thread Alex Le Fevre

OK, that's cool...but now I have (presumably) one last
question. I've got my script printing From: $usermail
to /usr/bin/sendmail, and it's working well enough
both to trap the address the user enters and put it
into the From: field. My question is, what field to I
need to put $usermail into so that I can send a
message to [EMAIL PROTECTED] and fool ezmlm?

Alex

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Qmail Scanner

2001-03-20 Thread Ross Cooney

Hi List!

We have been using the qmail-scanner patch for a few weeks and we are very
happy with it.

Currently our system only uses one AV scanner the sophos product, and I want
to use a second AV scanner in parrallel. The second scanner I want to use is
the Trend Micro scanner.

The "qmail-scanner-queue.pl" file has a the following line:
@scanner_array=("sweep_scanner");
This is where it calls another function which actually calls the scanner.


Does anybody know how to edit this so that two scanners are used?

Is it:
@scanner_array=("sweep_scanner & iscan_scanner");

or
@scanner_array=("sweep_scanner" & "iscan_scanner");

Etc...

I can get them to scan independently...but cant get them to scan together!


Thanks,

Ross Cooney

_
Technical Director
Cyber Sentry Ltd, 101 Johnstown Road, Dun Laoghaire, Co Dublin, Ireland.

Email:  [EMAIL PROTECTED]
Telephone:  + 353 1 2352546
Fax:+ 353 1 2847263


This communication contains information which is confidential and
may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s),
please note that any distribution, copying or use of this
communication or the information in it is strictly prohibited.
If you have received this communication in error, please notify
the sender immediately and then destroy any copies of it.
_





**
This email has been scanned by Pro-Web for all known Viruses
For more information please visit our web site at www.pro-web.ie
**




Re: /usr/bin/sendmail -t

2001-03-20 Thread Johan Almqvist

* Alex Le Fevre <[EMAIL PROTECTED]> [010320 19:03]:
> > EOF -- close the fd.
> If I'm actually typing my info in -- after calling
> /usr/bin/sendmail -t from a command line -- is that
> Ctrl-z? 

No. Ctrl-z just stops the program.

Ctrl-d is what you want.

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/

 PGP signature


Re: /usr/bin/sendmail -t

2001-03-20 Thread Kirill Miazine

On Tue, Mar 20, 2001 at 10:03:13AM -0800, Alex Le Fevre wrote:
> > EOF -- close the fd.
> 
> If I'm actually typing my info in -- after calling
> /usr/bin/sendmail -t from a command line -- is that
> Ctrl-z? 

Ctrl-d

> 
> Alex
> 
> 
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
-- 
Kirill



Re: /usr/bin/sendmail -t

2001-03-20 Thread Alex Le Fevre

> EOF -- close the fd.

If I'm actually typing my info in -- after calling
/usr/bin/sendmail -t from a command line -- is that
Ctrl-z? 

Alex


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: multiple checkpassword routines

2001-03-20 Thread Peter Green

* Jörgen Persson <[EMAIL PROTECTED]> [010320 09:27]:
> On Tue, Mar 20, 2001 at 06:26:35AM -0500, Peter Green wrote:
> [snip]
> > Sure, but the mycheckpasswd part is hanging me up. Specifically, writing to
> > the numbered FDs is hanging me up, and I didn't have a lot of time to figure
> > this out, so I was hoping something already existed.
> > 
> > If anyone could whip up the important bits (the IO redirection and the
> > execution string), I could easily figure out the rest. And I'd be extremely
> > grateful. :-)
> > 
> > Thanks,
> 
> Sorry for the delay but I'm at work... Well, here's some help with the 
> file descriptors, I tested the following successfully under bash-2.03.
> 
> # checkpassword echo $? 3< /tmp/dummypwd
> 0
> # od -c /tmp/dummypwd
> 000   d   u   m   m   y  \0   d   u   m   m   y   d   u   m   m   y
> 020  \0   9   8   5   0   9   3   2   3   9 004
> 
> Check out http://cr.yp.to/checkpwd/interface.html

Thanks for the help, Jörgen! However, it wasn't the format of the string
checkpassword (and friends) expects; it's the IO. For example, let's say I
wanted to do this in bash2. I might do, simply:

  #!/bin/bash2

  # check vmailmgr first; save the environment
  # /tmp/scr just executes /usr/bin/id
  ENVIRON = $(/usr/bin/checkvpw /tmp/scr Maildir/)
  rc=$?
  if [ $rc -ne 0 ]; then
  # failed; try vpopmail
  ENVIRON = $(/usr/local/vpopmail/bin/vchkpw /tmp/scr Maildir/)
  rc=$?
  if [ $rc -ne 0 ]; then
  # failed all
  echo "-ERR Authorization failed"
  exit $rc
  else
  export $ENVIRON
  exec qmail-pop3d "$@"
  fi
  else
  export $ENVIRON
  exec qmail-pop3d "$MAILDIR"
  fi

It mostly works, since all child processes inherit FD 3 properly. However,
if the first method fails, it cannot try the second method, since FD 3 has
already hit EOF; how can I rewind this from bash? Also, if it succeeds, the
exec line simply does not work; the error is always ``-ERR this user has no
$HOME/Maildir''. I have double-checked the environment with
``env>>/tmp/debug'' after the export call, and home get set properly.

This is simply out of my league, I think. Any additional thoughts before I
throw in the towel? Would this be useful for other situations?

Thanks for the continued help!

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
If Bill Gates is the Devil then Linus Torvalds must be the Messiah.
(Unknown source)




vsm-style Maildir?

2001-03-20 Thread Drew Raines

This seems like it would be a common question, but I haven't found a
clear answer.  I would like to merge the stability and speed of
Maildirs with the administrative convenience of VSM (nice, clean,
all-in-one directory tree).  I've tried starting qmail's rc with
something like

   env - PATH="/var/qmail/bin:$PATH" \
   qmail-start /var/spool/mail/$USER/ splogger qmail

after doing a maildirmake on /var/spool/mail/$USER, but I get the
dreaded Unable_to_chdir_to_maildir error.  I've only set up qmail with
regular vsm support before  Could someone point me in the right
direction or tell me why I wouldn't want to set this up this way?

thanks
-drew 








Re: /usr/bin/sendmail -t

2001-03-20 Thread Charles Cazabon

Alex Le Fevre <[EMAIL PROTECTED]> wrote:
> I'm currently putting together a small Perl script that sends an e-mail with
> a user-entered value as the from: value. I want to test my syntax by using my
> sendmail wrapper with the -t flag, but I don't know how to tell it I'm done
> with a message. What command do I issue to tell the mailwrapper I'm done?

EOF -- close the fd.

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.
---



/usr/bin/sendmail -t

2001-03-20 Thread Alex Le Fevre

I'm currently putting together a small Perl script
that sends an e-mail with a user-entered value as the
from: value. I want to test my syntax by using my
sendmail wrapper with the -t flag, but I don't know
how to tell it I'm done with a message. What command
do I issue to tell the mailwrapper I'm done?

Alex Le Fevre

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: qmail-rspawn not starting under svscan

2001-03-20 Thread Tetsu Ushijima

Golden_Eternity writes:
> Now, I can get qmail to accept mail from other systems when I start it under
> svscan, but qmail-rspawn doesn't start.

Is it only qmail-rspawn that doesn't start? What about other
qmail daemons, that is, qmail-send, qmail-clean, and
qmail-lspawn? None of them can be found in the ps output.
(There is ``supervise qmail-send'', but it's supervise,
not qmail-send.)

What's logged in /var/log/qmail/qmail-send/current?
What happens if you do ``svc -u /service/qmail-send''?
What happens if you do ``svstat /service/qmail-send''?

-- 
Tetsu Ushijima



Re: Alias not forwading to .qmail-foo-default

2001-03-20 Thread Tetsu Ushijima

Todd A. Jacobs writes:
> > Try .qmail-15dmziMUy-default instead.
> 
> It doesn't work, regardless of whether I put it in ~alias or $HOME. I
> still get "no mailbox."

Try ~alias/.qmail-15dmzimuy-default (all in lowercase letters).

> It works fine if I forward to a real user. The point is that I want to
> forward it to another dot-qmail extension.

Are you saying that messages to 15dmziMUy-foo are forwarded
to a real user when you put that real user's name in
~alias/.qmail-15dmziMUy-default? I can hardly believe.

--
Tetsu Ushijima




controlling alias access

2001-03-20 Thread dan kelley


hi all-

i'm using fastforward in /var/qmail/aliases/.qmail-default like so:

| /var/qmail/bin/fastforward -d /etc/aliases.cdb

i'd like to control access to certain email aliases; i.e. only certaing
users should be able to send emails to certain site-wide aliases.

simple 'from' checking is probably enough, although it would be nice to
have something better.

the only option i can think of is writing some type of wrapper to stick in
.qmail-default that sits before fastforward.

has someone seen a better way to do this?

thanks-

dan


Dan Kelley
www.otec.com
212-840-8600




Re: Delivering to pipe - I need "Return-Path:"

2001-03-20 Thread Alex Kramarov

Roger Walker wrote


> We need to set up something special for a domain and to do so, we
> need to capture all of the headers, including the "Return-Path:". If we
> pipe the messages to a script in the ".qmail-default", qmail-local strips
> off that and other headers we may need. Is there any way to over-ride
> this behavior or otherwise force qmail-local to provide those headers to
> the pipe?

If you can alter the program you pipe to, just grab the enviropment variable
RPLINE for the return-path in the program you pipe to - it is set by
qmail-local in the delivery time. The same is with the delivered to header,
it's in DTLINE.

Put

| /usr/bin/env > /tmp/enviropment_dump

in .qmail

to check out all the enviropment variables set by qmail-local






Re: Delivering to pipe - I need "Return-Path:"

2001-03-20 Thread Roger Walker

On Tue, 20 Mar 2001, Kirill Miazine wrote:

> A similar thing has been discussed today,

I just joined the list, so I missed it.

> read 'man preline' and/or use something like
>
> |preline -f /your/command
>
> in your .qmail-default

Yes, I had just thought to check that after seeing the example in
dot-qmail man page. I think it will work. Thanks.

-- 
Roger Walker 
Voice/Fax 1-780-440-2685 
"HIS Pain; YOUR Gain"





Re: Delivering to pipe - I need "Return-Path:"

2001-03-20 Thread Charles Cazabon

Roger Walker <[EMAIL PROTECTED]> wrote:
> We need to set up something special for a domain and to do so, we
> need to capture all of the headers, including the "Return-Path:". If we
> pipe the messages to a script in the ".qmail-default", qmail-local strips
> off that and other headers we may need. Is there any way to over-ride
> this behavior or otherwise force qmail-local to provide those headers to
> the pipe?

If you just want to capture, keep a copy of the messages by saving them
directly into a Maildir via an appropriate .qmail file.  If necessary,
use QUEUE_EXTRA.

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: Delivering to pipe - I need "Return-Path:"

2001-03-20 Thread Kirill Miazine

A similar thing has been discussed today, read 'man preline' and/or use something like 

|preline -f /your/command

in your .qmail-default


On Tue, Mar 20, 2001 at 09:13:42AM -0700, Roger Walker wrote:
>   We need to set up something special for a domain and to do so, we
> need to capture all of the headers, including the "Return-Path:". If we
> pipe the messages to a script in the ".qmail-default", qmail-local strips

from 'man qmail-command':

   WARNING: The mail  message  does  not  begin  with  qmail-
   local's usual Return-Path and Delivered-To lines.


> off that and other headers we may need. Is there any way to over-ride
> this behavior or otherwise force qmail-local to provide those headers to
> the pipe?
> 
>   Thanks.
> 
> -- 
> Roger Walker 
> Voice/Fax 1-780-440-2685 
> "HIS Pain; YOUR Gain"
> 
> 
-- 
Kirill



Delivering to pipe - I need "Return-Path:"

2001-03-20 Thread Roger Walker

We need to set up something special for a domain and to do so, we
need to capture all of the headers, including the "Return-Path:". If we
pipe the messages to a script in the ".qmail-default", qmail-local strips
off that and other headers we may need. Is there any way to over-ride
this behavior or otherwise force qmail-local to provide those headers to
the pipe?

Thanks.

-- 
Roger Walker 
Voice/Fax 1-780-440-2685 
"HIS Pain; YOUR Gain"





Re: Qmail newbie question

2001-03-20 Thread Noah Sematimba

Well have you tried to start tcpserver anyway?

On Mon, 19 Mar 2001, Johnson, Garrett wrote:

> Please forgive my ignorance. I'm trying to learn.
> 
> I have set up a secondary Qmail server on RedHat 7.0 and it 
> seems to have come up without a problem, but I'm having a 
> hair-pulling time trying to test if it works properly. It has 
> passed some basic tests. For instance I can use qmail-inject 
> to email other servers. But the number of processes being run 
> is awfully small.
> This is what I get from ps -ef | grep qmail:
> 
> root   503   502  0 Mar16 ?00:00:00 supervise qmail-send
> root   505   502  1 Mar16 ?00:54:39 supervise qmail-smtpd
> qmaill 507   504  0 Mar16 ?00:00:00 /usr/local/bin/multilog t
> qmails 508   503  0 Mar16 ?00:00:00 qmail-send
> qmaill 510   506  0 Mar16 ?00:00:00 /usr/local/bin/multilog t
> root   520   508  0 Mar16 ?00:00:00 qmail-lspawn ./Mailbox
> qmailr 521   508  0 Mar16 ?00:00:00 qmail-rspawn
> qmailq 522   508  0 Mar16 ?00:00:00 qmail-clean
> root  3883   505  0 12:20 ?00:00:00 supervise qmail-smtpd
> 
>   Should there be more processes running? Why isn't tcpserver
> running (keeping in mind that it isn't passing any email right now)?
>   Something more disturbing is that when I run mconnect without
> arguments I get:
> 
> tcpclient: unable to connect to 127.0.0.1 port 25: connection refused
> 
>   When I run a portsniff from another computer port 25 doesn't
> show up? Is this some sort of security or is something wrong?
> Maybe I'm worrying about nothing, but this seems weird.
> Please be patient with the Qmail newbie. I'd be glad to supply
> more information if required.
> 
> -Garrett
> [EMAIL PROTECTED]
> 
> 




Re: multiple checkpassword routines

2001-03-20 Thread Jörgen Persson

On Tue, Mar 20, 2001 at 03:27:07PM +0100, Jörgen Persson wrote:
[snip]
> # checkpassword echo $? 3< /tmp/dummypwd
> 0
[snip]

I realized $? is misleading since it's the previous error code. Change
it to ''pwd'' or whatever:

# checkpassword pwd 3< /tmp/dummypwd 
/home/dummy
# echo $?
0
# checkpassword pwd 3< /tmp/badpwd
# echo $?
1

Jörgen



Re: Trouble with qmail on Redhat 6.2

2001-03-20 Thread James Raftery

On Tue, Mar 20, 2001 at 11:48:55AM -, Iain Morrison wrote:
> The problem is that I am unable to connect to the SMTP server even via the 
> loopback address. When I telnet to port 25 I get connected but get a dead 
> prompt.
[snip]

> The run file for qmail-smtpd is:

...riddled with typos...

> #!/bin/sh
> QMAILDUID='is -u qmaild'

"is" should be "id".

> NOFILESGID='id -g qmaild'
> MAXSMTPD='cat /var/qmail/control/concurrencyincoming'
> exec /usr/local/bin/softlimit -m 200 \
> /usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "MAXSMTPD" \

"MAXSMTPD" should be "$MAXSMTPD".

> -u "$QMAILDUID" -g "$NOFILESGIS" 0 smtp /var/qmail/bin/qmail-smtpd 

"$NOFILESGIS" should be "$NOFILESGID"


Regards,
james
-- 
James Raftery (JBR54)
  "It's somewhere in the Red Hat district"  --  A network engineer's
   freudian slip when talking about Amsterdam's nightlife at RIPE 38.



qmail-smtp status 256?

2001-03-20 Thread Marcus Korte

Hi,

I am running qmail on RH6.2 with daemontools,ucspi-tcp, vpopmail,...

2001-03-20 10:28:25.327350500 tcpserver: status: 1/20
2001-03-20 10:28:25.327505500 tcpserver: pid 12754 from 145.228.95.229
2001-03-20 10:28:25.328352500 tcpserver: ok 12754
lycmail1-1.lycos.de:62.52.69.35:25 :145.228.95.229::3722
2001-03-20 10:28:27.410687500 tcpserver: end 12754 status 256
2001-03-20 10:28:27.410713500 tcpserver: status: 0/20

For some reason some of my clients cannot send/relay mail.
smtp-log just says "status 256" see above.

What does it mean? Is there somewhere an explaination for this status?

Regards,
Marcus

-- 
Sent through GMX FreeMail - http://www.gmx.net




Re: multiple checkpassword routines

2001-03-20 Thread Jörgen Persson

On Tue, Mar 20, 2001 at 06:26:35AM -0500, Peter Green wrote:
[snip]
> Sure, but the mycheckpasswd part is hanging me up. Specifically, writing to
> the numbered FDs is hanging me up, and I didn't have a lot of time to figure
> this out, so I was hoping something already existed.
> 
> If anyone could whip up the important bits (the IO redirection and the
> execution string), I could easily figure out the rest. And I'd be extremely
> grateful. :-)
> 
> Thanks,

Sorry for the delay but I'm at work... Well, here's some help with the 
file descriptors, I tested the following successfully under bash-2.03.

# checkpassword echo $? 3< /tmp/dummypwd
0
# od -c /tmp/dummypwd
000   d   u   m   m   y  \0   d   u   m   m   y   d   u   m   m   y
020  \0   9   8   5   0   9   3   2   3   9 004

Check out http://cr.yp.to/checkpwd/interface.html

G'luck
Jörgen



Re: virtual domains

2001-03-20 Thread Kirill Miazine

On Tue, Mar 20, 2001 at 08:42:47AM -0500, Peter Green wrote:
> > 
> > qmail doesn't add the Return-Path and Delivered-To lines when delivering
> > to programs:
> 
> Gotcha.
> 
> > vpopmail adds Return-Path and Delivered-To itself:
> > 
> > from vdelivermail.c:
> > [...]   
> > sprintf(msgbuf, "%sDelivered-To: %s@%s\n",
> > getenv("RPLINE"), TheUser, TheDomain);
> > [...]
> 
> But as far as I can tell, vpopmail doesn't have anything to say about the
> format of the Delivered-To: line, since qmail-send has already ``mangled''
> the local part of the e-mail address, right? I guess vpopmail could revert
> the local information to a pre-virtualdomains state before writing the
> Delivered-To: line, but that doesn't seem like it would make much sense...

Assumed I understood you correctly, that's exactly what vpopmail does, but it 
constructs it's own Delivered-To line rather than reverting anything

> 
> /pg
> -- 
> Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
> ---
> panic("Splunge!");
> (Panic message in the kernel.)
> 
-- 
Kirill



Re: virtual + real users in same domain

2001-03-20 Thread Charles Cazabon

Todd A. Jacobs <[EMAIL PROTECTED]> wrote:
> I know a few people have asked this question (including me) and gotten the
> answer that, yes, it can be done. However, neither LWQ nor qmail.org
> really have any how-to's that cover this particular type of setup--in
> particular, a useful discussion of how users can retrieve POP3 mail from
> both types of accounts using the same daemon.

I believe vmailmgr handles this situation, and therefore contains the
necessary pieces of software to do so.

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 can i send mails serially

2001-03-20 Thread Charles Cazabon

[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> I do have a file comcurrencyremote in /var/qmail/control  and it has a value
> 120.
> 
> And still i am facing problem bcoz qmail try to send mails simultaneuosly
> with destination server and establish multiple smtp connection with
> destination server and bandwidth get choked.
> 
> Is there any way by which i can establish only one single conection with
> remote server and can send all the pending mails to the destination server

qmail is designed for well-connected hosts.  If your host is not well
connected, you might want to add on Dan's serialmail package.  It is
designed for this.

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: virtual domains

2001-03-20 Thread Peter Green

* Kirill Miazine <[EMAIL PROTECTED]> [010320 08:36]:
> On Tue, Mar 20, 2001 at 08:25:38AM -0500, Peter Green wrote:
> > I'm not sure what you mean. If ``example.com'' is in virtualdomains as, say:
> > 
> >   example.com:exampleuser
> > 
> > Then the Delivered-To: line of:
> > 
> >   [EMAIL PROTECTED]
> > 
> > will be added for <[EMAIL PROTECTED]> regardless of whether vpopmail is
> > being used or not. For instance, I see this exact same behavior with
> > vmailmgr.
> 
> qmail doesn't add the Return-Path and Delivered-To lines when delivering
> to programs:

Gotcha.

> vpopmail adds Return-Path and Delivered-To itself:
> 
> from vdelivermail.c:
> [...]   
> sprintf(msgbuf, "%sDelivered-To: %s@%s\n",
> getenv("RPLINE"), TheUser, TheDomain);
> [...]

But as far as I can tell, vpopmail doesn't have anything to say about the
format of the Delivered-To: line, since qmail-send has already ``mangled''
the local part of the e-mail address, right? I guess vpopmail could revert
the local information to a pre-virtualdomains state before writing the
Delivered-To: line, but that doesn't seem like it would make much sense...

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
panic("Splunge!");
(Panic message in the kernel.)




Re: virtual domains

2001-03-20 Thread Kirill Miazine

On Tue, Mar 20, 2001 at 08:25:38AM -0500, Peter Green wrote:
> * Kirill Miazine <[EMAIL PROTECTED]> [010320 08:21]:
> > On Tue, Mar 20, 2001 at 08:11:40AM -0500, Peter Green wrote:
> > > * Frank Tegtmeyer <[EMAIL PROTECTED]> [010320 08:08]:
> > > > > [EMAIL PROTECTED] Is it possible to configure that all mail
> > > > > to [EMAIL PROTECTED] whill be with line [EMAIL PROTECTED] in the
> > > > > Delivered to line not with [EMAIL PROTECTED] ?
> > > > 
> > > > Not that I like this behaviour: the vpopmail package does that.
> > > 
> > > Not strictly speaking; qmail-send does that.
> > 
> > well, he's talking about vpopmail's Delivere-To line, it's
> > [EMAIL PROTECTED] in this case
> 
> I'm not sure what you mean. If ``example.com'' is in virtualdomains as, say:
> 
>   example.com:exampleuser
> 
> Then the Delivered-To: line of:
> 
>   [EMAIL PROTECTED]
> 
> will be added for <[EMAIL PROTECTED]> regardless of whether vpopmail is
> being used or not. For instance, I see this exact same behavior with
> vmailmgr.

qmail doesn't add the Return-Path and Delivered-To lines when delivering to programs:

from `man qmail-command':
[...]
   WARNING: The mail  message  does  not  begin  with  qmail-
   local's usual Return-Path and Delivered-To lines.
[...] 


vpopmail adds Return-Path and Delivered-To itself:

from vdelivermail.c:
[...]   
sprintf(msgbuf, "%sDelivered-To: %s@%s\n",
getenv("RPLINE"), TheUser, TheDomain);
[...]

> 
> But maybe I'm just misunderstanding...wouldn't be the first time. :-)
> 
> /pg
> -- 
> Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
> ---
> panic("esp: Mr. Potatoe Head is on the loose!");
> (Panic message in the kernel.)
> 
-- 
Kirill



Re: virtual domains

2001-03-20 Thread Peter Green

* Frank Tegtmeyer <[EMAIL PROTECTED]> [010320 08:08]:
> > [EMAIL PROTECTED] Is it possible to configure that all mail
> > to [EMAIL PROTECTED] whill be with line [EMAIL PROTECTED] in the
> > Delivered to line not with [EMAIL PROTECTED] ?
> 
> Not that I like this behaviour: the vpopmail package does that.

Not strictly speaking; qmail-send does that.

   virtualdomains
List  of  virtual  users or domains, one per line.  A
virtual user has the form user@domain:prepend,  with­
out  any  extra  spaces.   When  qmail-send  sees the
recipient address  user@domain,  it  converts  it  to
prepend-user@domain and treats it as local.

> But it's better to leave it untouched. Like Chris wrote it's ther to 
> prevent mail loops.

Yeppers.

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
panic("esp: Heading to the promised land.");
(Panic message in the kernel.)




Re: virtual domains

2001-03-20 Thread Frank Tegtmeyer

> [EMAIL PROTECTED] Is it possible to configure that all mail
> to [EMAIL PROTECTED] whill be with line [EMAIL PROTECTED] in the
> Delivered to line not with [EMAIL PROTECTED] ?

Not that I like this behaviour: the vpopmail package does that.
But it's better to leave it untouched. Like Chris wrote it's ther to 
prevent mail loops.

Regards, Frank



Re: virtual domains

2001-03-20 Thread Chris Johnson

On Tue, Mar 20, 2001 at 03:22:11PM +0300, ediknovl wrote:
> I've installed virtual domains on qmail, so that all incoming mail for
> domain example.com is getting in mailbox mailb. But qmail adds a
> mailbox name in to Delivered to line that is not should be there, for example:
> mail to [EMAIL PROTECTED] whill be delivered whith line
> [EMAIL PROTECTED] Is it possible to configure that all mail
> to [EMAIL PROTECTED] whill be with line [EMAIL PROTECTED] in the
> Delivered to line not with [EMAIL PROTECTED] ?

The Delivered-To header is there to prevent loops. Why don't you just ignore
it?

Chris

 PGP signature


virtual domains

2001-03-20 Thread ediknovl

Hello All,

I've installed virtual domains on qmail, so that all incoming mail for
domain example.com is getting in mailbox mailb. But qmail adds a
mailbox name in to Delivered to line that is not should be there, for example:
mail to [EMAIL PROTECTED] whill be delivered whith line
[EMAIL PROTECTED] Is it possible to configure that all mail
to [EMAIL PROTECTED] whill be with line [EMAIL PROTECTED] in the
Delivered to line not with [EMAIL PROTECTED] ?
  

-- 
Best regards,
Eduard
mailto:[EMAIL PROTECTED]





Re: Trouble with qmail on Redhat 6.2

2001-03-20 Thread Yves Caetano

hi,
> 
> After qmail has supposedly started up I have the following processes
> running:
> 
> PID TTY  STAT   TIME COMMAND
>   415 ?S  0:00 svscan
>   416 ?S  0:00 supervise qmail-send
>   417 ?S  0:00 supervise qmail-smtpd
>   418 ?S  0:00 /usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c
> MAXS
>   419 ?S  0:00 qmail-send
>   426 ?S  0:00 qmail-lspawn ./Maildir/
>   427 ?S  0:00 qmail-rspawn
>   428 ?S  0:00 qmail-clean
>   437 ?S  0:00 lpd
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

i am not sure but shouldn't the line of qmail-smtpd in the tcpserver
line like:

/usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c MAXS qmail-smtpd

you have also to specifiy to the tcpserver which port to connect like 25

here is my ps -auxww | grep qmail:

qmails  92  0.0  0.2   876  268 ?SMar16   0:01
qmail-send
qmaild  93  0.0  0.2   852  284 ?SMar16   0:00
/usr/local/bin/tcpserver -p -x /etc/tcp.smtp.cdb -u 1001 -g 101 0 smtp
/usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd
qmaill  94  0.0  0.2   840  296 ?SMar16   0:00 splogger
qmail
root95  0.0  0.1   836  232 ?SMar16   0:00
qmail-lspawn |preline procmail
qmailr  96  0.0  0.1   836  232 ?SMar16   0:00
qmail-rspawn
qmailq  97  0.0  0.1   832  224 ?SMar16   0:00
qmail-clean


hope that i helped you :-))

cu ycae


--
Yves Caetano
Server Support Engineer
Tel: 295383 254
Fax: 295383 222
email: [EMAIL PROTECTED]http://www.incotech.lu



Trouble with qmail on Redhat 6.2

2001-03-20 Thread Iain Morrison

I am in the process of setting up qmail on a Redhat 6.2 Box 2.2.14-5.0 
kernel.

The problem is that I am unable to connect to the SMTP server even via the 
loopback address. When I telnet to port 25 I get connected but get a dead 
prompt.

I am able to inject mail for qmail to process and this works without any 
problems at all for local addresses and external addresses. I am able to 
retrieve mail via pop3 with no trouble, I just cant send it the SMTP server.

I have enclosed below the various startup and config files used for this 
system.

Any ideas are gratefully recieved.

TIA

Iain Morrison

*-*-*-*-*-*-*

Qmail RC file:

#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by 
default

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

*-*-*

The above script uses the defaultdelivery file below:

./Maildir/

*-*-*

The qmail start script is below:

#!/bin/sh

PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

case "$1" in
  start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
env - PATH="$PATH" svscan &
echo $! > /var/run/svscan.pid
echo "."
;;
  stop)
echo -n "Stopping qmail: svscan"
kill `cat /var/run/svscan.pid`
echo -n " qmail"
svc -dx /var/qmail/supervise/*
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
;;
  stat)
cd /var/qmail/supervise
svstat * */log
;;
  doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/qmail/supervise/qmail-send
;;
  queue)
qmail-qstat
qmail-qread
;;
  reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/qmail/supervise/qmail-send
;;
  pause)
echo "Pausing qmail-send"
svc -p /var/qmail/supervise/qmail-send
echo "Pausing qmail-smtpd"
svc -p /var/qmail/supervise/qmail-smtpd
;;
  cont)
echo "Continuing qmail-send"
svc -c /var/qmail/supervise/qmail-send
echo "Continuing qmail-smtpd"
svc -c /var/qmail/supervise/qmail-smtpd
;;
  restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /var/qmail/supervise/qmail-smtpd
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /var/qmail/supervise/qmail-send
echo "* Restarting qmail-smtpd."
svc -u /var/qmail/supervise/qmail-smtpd
;;
  cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp*
echo "Reloaded /etc/tcp.smtp."
;;
  help)
cat <&1

The qmail-smtpd - log run file is:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/sm
tpd

The run file for qmail-send:

#!/bin/sh
exec /var/qmail/rc

The qmail-send - log run file is:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail

*-*-*

After qmail has supposedly started up I have the following processes 
running:

PID TTY  STAT   TIME COMMAND
  415 ?S  0:00 svscan
  416 ?S  0:00 supervise qmail-send
  417 ?S  0:00 supervise qmail-smtpd
  418 ?S  0:00 /usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c 
MAXS
  419 ?S  0:00 qmail-send
  426 ?S  0:00 qmail-lspawn ./Maildir/
  427 ?S  0:00 qmail-rspawn
  428 ?S  0:00 qmail-clean
  437 ?S  0:00 lpd



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




Re: multiple checkpassword routines

2001-03-20 Thread Peter Green

* Jörgen Persson <[EMAIL PROTECTED]> [010320 04:24]:
> On Mon, Mar 19, 2001 at 04:08:41PM -0500, Peter Green wrote:
> > I have some domains in vpopmail and some in vmailmgr, both of which need to
> > do POP. Before I go requesting another IP address, is there a checkpassword
> > dropin that actually executes an arbitrary number of other checkpassword
> > dropins and, finding one that works, executes the rest of the command line?
> > 
> > Does that make sense? Thanks for the help,
> 
> Shouldn't a simple shell script as a wrapper do the trick?? Starting
> tcpserver something like:
> 
>   tcpserver 0 pop3 qmail-popup myhost.invalid \
>   mycheckpasswd qmail-pop3d Maildir

Sure, but the mycheckpasswd part is hanging me up. Specifically, writing to
the numbered FDs is hanging me up, and I didn't have a lot of time to figure
this out, so I was hoping something already existed.

If anyone could whip up the important bits (the IO redirection and the
execution string), I could easily figure out the rest. And I'd be extremely
grateful. :-)

Thanks,

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
"And it _really_ moves"
G Galilei
(Linus Torvalds, announcing a yet better kernel)




qmail Digest 20 Mar 2001 11:00:01 -0000 Issue 1309

2001-03-20 Thread qmail-digest-help


qmail Digest 20 Mar 2001 11:00:01 - Issue 1309

Topics (messages 59275 through 59343):

a tool/script to print the biggest mail servers in queue
59275 by: Simon K. Grabowski

Need testing.
59276 by: Kirill Miazine

qmail-rspawn not starting under svscan
59277 by: Golden_Eternity

[OT] supervise sshd?
59278 by: Peter Cavender
59279 by: Peter van Dijk
59280 by: Robin S. Socha

Just a little question
59281 by: Simone Pirovano
59282 by: Peter van Dijk
59300 by: Joost van Baal

Re: multilog and missing info
59283 by: Chris Bolt

Re: Repeated Identical Messages
59284 by: dan kelley
59295 by: Moutsos Georgios
59312 by: Kep Brown
59315 by: Charles Cazabon
59318 by: dan kelley
59322 by: Kep Brown
59326 by: Keary Suska

help - tcprules flaking out
59285 by: dan kelley
59286 by: Charles Cazabon
59287 by: Peter Green
59289 by: Kris Kelley

relay tools from : http://www.abuse.net/relay.html
59288 by: ffx
59290 by: Peter van Dijk

qmail assign file ...
59291 by: Alex Kramarov
59292 by: Peter van Dijk
59297 by: Charles Cazabon

vpopmail ip-alias-domains
59293 by: Eric Bockstahler
59296 by: Charles Cazabon
59311 by: Ken Jones
59336 by: Sumith

MAIL FROM: <#@[]>
59294 by: Jamin A. Brown
59303 by: Dave Sill
59306 by: Jamin A. Brown
59308 by: Jeremy Suo-Anttila

Question about the REMOVE.binmail document
59298 by: Michael Molloy

Log's.
59299 by: Brad Dameron
59301 by: Dave Sill

Qmail newbie question
59302 by: Johnson, Garrett
59305 by: Chris Johnson
59307 by: Gerrit Pape
59309 by: Kurth Bemis
59313 by: Johnson, Garrett

[OT] tcpserver configuration
59304 by: Mario Thaten

multiple checkpassword routines
59310 by: Peter Green
59339 by: Jörgen Persson

Control files
59314 by: Brad Dameron
59316 by: Peter van Dijk
59317 by: Mark Delany
59319 by: Chris Johnson
59320 by: Kris Kelley
59321 by: Charles Cazabon
59323 by: Kirti S. Bajwa

plusdomain
59324 by: Brad Dameron
59325 by: Peter van Dijk

Message queue growing and not sending.
59327 by: Brad Dameron
59331 by: Greg White
59343 by: Peter van Dijk

Strange problem...
59328 by: Marcelo .
59333 by: Manvendra Bhangui

virtual domains ONLY?
59329 by: Sean Brown
59330 by: Russell Nelson

how can i send mails serially
59332 by: lkhanna.hughes-ecomm.com
59334 by: Sean Chittenden
59335 by: lkhanna.hughes-ecomm.com
59337 by: Csaba Bobak

virtual + real users in same domain
59338 by: Todd A. Jacobs

newbie: migrating from sendmail to qmail
59340 by: - = k o l i s k o = -
59341 by: Jörgen Persson
59342 by: Frank Tegtmeyer

Administrivia:

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

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

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

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


--



I have noticed that whenever a large mail server is down
(i.e. mail.com or yahoo.com) queue gets much bigger.
This is normal and understandable, but sometimes a huge
queue lags message delivery to mail servers that are working okay.

Is there a tool / script that'd print the biggest mail servers
in queue. i.e. in a list...
yahoo.com5684 (messages in queue)
mail.com1243 etc.

I know that postfix has a tool that does that...

What about qmail?


-- Simon





Hi,
I've made a mail-system. It's perl/qmail/postgre based. I need some testing and bug 
reports before I can release the code to the public.

https://devnull.krot.org/signup

nb: max 100 test users and 25 megs per user.

please send bugs/questions/comments to [EMAIL PROTECTED]

-- 
Kirill




Well, I had qmail running fine when I was starting it using a SysV style
init script (out of the old qmail howto), but when I tried to install
djbdns, I ran into some trouble so I figured I'd try out svscan /service.

Now, I can get qmail to accept mail from other systems when I start it under
svscan, but qmail-rspawn doesn't start. I shut that down stumbled around a
bit and got it partially started back up under the SysV init script but it
wouldn't accept connections (tcpserver wouldn't start)... it did send the
queued mail, though. ;)

To get this message out, qmail started under svscan and then I ran the SysV
init script on top of that... I did get qmail-rspawn started that way, but
its a big ugly mess...

supervise is starting qmail-send and qmail-smtpd (and the two loggers) fine.
I see two copies of multilog running and one copy of tcpser

Re: Message queue growing and not sending.

2001-03-20 Thread Peter van Dijk

On Mon, Mar 19, 2001 at 08:52:58PM -0800, Greg White wrote:
[snip]
> Never seen qmail do it to itself, tho.

A simple .qmail containing
|qmail-inject localusername

will create an endless loop easily.

Greetz, Peter.



Re: newbie: migrating from sendmail to qmail

2001-03-20 Thread Frank Tegtmeyer


> Problem is, that i am using sendmail on my server where is more then =
> 1500 active users

For the sending side simply use the instructions of the INSTALL* documents
in the Qmail tarball.
Because the instructions are rather old now you should be aware that there 
are some better setup options:

- Use tcpserver (part of ucspi-tcp) instead of inetd
- use daemontools to control all qmail services (daemontools package)
- use multilog instead of splogger (part of daemontools package)

Additional:
- control your resources - you may use softlimit for this (part of 
  daemontools)

> and I would like easy migrate to qmail .. without any problem. So I am =
> looking=20
> for best introduction (documentation) how to migrate from sendmail to =
> qmail.

You should provide some information about your setup. Is this one domain 
or are there many? Is your server used for POP access or do the users use
a MUA on the server etc.

Study the Qmail FAQ and see www.qmail.org or www.lifewithqmail.org for 
more information.

Regards, Frank



Re: newbie: migrating from sendmail to qmail

2001-03-20 Thread Jörgen Persson

On Tue, Mar 20, 2001 at 10:52:24AM +0100, - = k o l i s k o = - wrote:
> Hi all!
> 
> I red that qmail is better than sendmail.=20
> 
> This is the reason why migrate to qmail.
> Problem is, that i am using sendmail on my server where is more then =
> 1500 active users
> and I would like easy migrate to qmail .. without any problem. So I am =
> looking=20
> for best introduction (documentation) how to migrate from sendmail to =
> qmail.
> 
> Please could you help me?
[snip]

Take a look at Bernstein's FAQ at http://cr.yp.to/qmail/faq.html

Jörgen



newbie: migrating from sendmail to qmail

2001-03-20 Thread - = k o l i s k o = -

Hi all!

I red that qmail is better than sendmail.=20

This is the reason why migrate to qmail.
Problem is, that i am using sendmail on my server where is more then =
1500 active users
and I would like easy migrate to qmail .. without any problem. So I am =
looking=20
for best introduction (documentation) how to migrate from sendmail to =
qmail.

Please could you help me?

ANSWER PLEASE ON THE EMAIL mailto:[EMAIL PROTECTED]  TOO!

Thank You very much!


S pozdravem,
Michal Kolesar
+420 608 225025
[EMAIL PROTECTED]
http://www.egarden.cz
server of free unix services





Re: multiple checkpassword routines

2001-03-20 Thread Jörgen Persson

On Mon, Mar 19, 2001 at 04:08:41PM -0500, Peter Green wrote:
> I have some domains in vpopmail and some in vmailmgr, both of which need to
> do POP. Before I go requesting another IP address, is there a checkpassword
> dropin that actually executes an arbitrary number of other checkpassword
> dropins and, finding one that works, executes the rest of the command line?
> 
> Does that make sense? Thanks for the help,

Shouldn't a simple shell script as a wrapper do the trick?? Starting
tcpserver something like:

tcpserver 0 pop3 qmail-popup myhost.invalid \
mycheckpasswd qmail-pop3d Maildir

Jörgen