Re: Perl and Qmail

2001-08-12 Thread Henning Brauer

On Fri, Aug 10, 2001 at 08:44:56AM -0700, Greg White wrote:
 I'm not aware of any _reason_ you'd want to recieve mail in a Perl
 program -- that's what your MTA is there for.

Ever thought about Mailrobots? I've written tons of them - how do you think
all the domains get registered?


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



Re: pop3d question

2001-08-12 Thread Henning Brauer

On Fri, Aug 10, 2001 at 01:42:27PM -0600, Charles Cazabon wrote:
 Good idea.  Wouldn't the simplest way to accomplish this be to wrap
 qmail-pop3d with a shell script that did something like:
 
   qmail-pop3d ./Maildir/
   rm -f ./Maildir/cur/*

That's _very_ dangerous. What about dropped connections before all mail is
retrieved? And AFAIK there are clients connecting once, auth'ing, LIST and
QUIT (our script deletes all Mail then) and reconnecting later to actually
fetch mails (would fetch mails - your script deleted them all then...)
- pop3 webmail clients (IMHO broken by design, but anyway...) come to my mind.

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



Re: qmail-lspawn patch for hosting multiple local domains

2001-08-12 Thread Henning Brauer

On Fri, Aug 10, 2001 at 08:26:43PM +, MarkD wrote:
  argument, the name of the local user to verify.  This patch makes
  qmail-lspawn call qmail-getpw with two arguments; the name and the domain
  of the local user to verify.  This, together with a modified qmail-getpw,
  will enable qmail to differentiate between the local domains that the
  server is hosting.
 
 I have never checked, but I wonder whether the qmail-ldap guys have
 had to do the same thing?

No. You need to forget aboy some qmail stuff when using qmail-ldap. We just
have user accounts and assigned mail addresses. VEry straightforward. A
simple (simplyfied) user entry looks like

dn: cn=brahe, ou=intern, dc=bsws, dc=de
cn: brahe
userPassword: {crypt}censored
uid: brahe
mail: [EMAIL PROTECTED]
mailAlternateAddress: [EMAIL PROTECTED]
mailAlternateAddress: [EMAIL PROTECTED]

and so on.
Basically, in qmail-lspawn a search using the filter
(|(mail=address)(mailalternateaddress=address))
is done, where address is the full rcpt address.

For auth'ing the uid and userPassword attributes count. There is no need in
qmail-ldap to distinguisch between local part and domain part in an address,
and there is no relation between email addresses and uids except that they
belong to an user account. 
-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



qmail anti-virii

2001-08-12 Thread Averroes

Hi There,

I am new in qmail and want to migrate qmail with security purposes
but I want to know how to deal with virus, worms, etc.

It is possible to configure qmail with some tools
which check the contents of mail, attached docs, etc.

All my server are Linux powered and all clients are Win2k.
This is why of my mail.

Docs, Tutorials, etc. will be helpful.

In advance Thanks!

#--
# Averroes A. Ayshahttp://www.keyserver.net/en/
# Think Linux, Think Slackware!
# Network Security Auditor (NSA)
# [EMAIL PROTECTED]
# Fingerprint = 73B7 2559 2968 5094 3B95 5C70 4E85 5F94 6068 1DD8
#--



rblsmtpd and 'tagging' emails

2001-08-12 Thread Qmail

Hi Folks,

Is there any way to use rblsmtpd to simply set a header in qmail, rather
than bouncing emails?

Thanks,

Lance



Re: rblsmtpd and 'tagging' emails

2001-08-12 Thread Henning Brauer

On Sun, Aug 12, 2001 at 02:46:02PM -0700, Qmail wrote:
 Hi Folks,
 
 Is there any way to use rblsmtpd to simply set a header in qmail, rather
 than bouncing emails?

Already posted the URL some weeks ago,
http://www.lamer.de/maex/creative/software/qmail/

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



Re: qmail anti-virii

2001-08-12 Thread Eduardo Augusto Alvarenga

Averroes [EMAIL PROTECTED] wrote:

 I am new in qmail and want to migrate qmail with security purposes
 but I want to know how to deal with virus, worms, etc.
 It is possible to configure qmail with some tools
 which check the contents of mail, attached docs, etc.
 All my server are Linux powered and all clients are Win2k.
 This is why of my mail.

I encourage you to take a look at the AMaViS project at
http://www.amavis.org. Totally qmail compatible.

Best Regards,

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Eduardo Augusto Alvarenga - Analista de Suporte - #179653
Blumenau - Santa Catarina. Tel. (47) 9102-3303
   http://www.netron.com.br/~eduardo
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Re: qmail anti-virii

2001-08-12 Thread Noel Mistula

You can also try this script;

http://www.ornl.gov/its/archives/mailing-lists/qmail/2001/03/msg01041.html

don't forget to use the -i flag on all grep commands so that you won't
miss the upper case characters.

cheers


Eduardo Augusto Alvarenga wrote:
 
 Averroes [EMAIL PROTECTED] wrote:
 
  I am new in qmail and want to migrate qmail with security purposes
  but I want to know how to deal with virus, worms, etc.
  It is possible to configure qmail with some tools
  which check the contents of mail, attached docs, etc.
  All my server are Linux powered and all clients are Win2k.
  This is why of my mail.
 
 I encourage you to take a look at the AMaViS project at
 http://www.amavis.org. Totally qmail compatible.
 
 Best Regards,
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Eduardo Augusto Alvarenga - Analista de Suporte - #179653
 Blumenau - Santa Catarina. Tel. (47) 9102-3303
http://www.netron.com.br/~eduardo
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-- 
Noel G. Mistula
Network  Systems Administrator
Meriton Apartments Pty Ltd



Re: qmail anti-virii

2001-08-12 Thread Bill Arlofski

I am working through a few last minor issues, but Kaspersky Antivirus 
for Linux servers has a nice qmail integration piece.

http://www.kaspersky.com   (You'll want at least the August 1st 3.5 
build 136 version - mime problems with earlier versions)

Basically, you start the antivirus daemon, rename the original 
qmail-queue file, drop Kaspersky's qmail-queue in it's place. 
 qmail-smtpd passes inbound mail to the Kaspersky qmail-queue which 
performs the scan via the running daemon process, then passes off 
virus-free email to the original qmail-queue program.

Logging is to syslog, or a file, or both. You have options of emailing 
the offending users that they have sent infected email (most of these I 
am finding are getting bounced for all the obvious reasons). You can 
also send an administrative mail to your network admins to keep you up 
to date on incoming (or outgoing) email virus activity.

I am pretty happy with it. I'd be glad to comment more, show configs, or 
help in any way.. I just don't want to clog up the list on my first day 
here.  grin



Averroes wrote:

Hi There,

I am new in qmail and want to migrate qmail with security purposes
but I want to know how to deal with virus, worms, etc.

It is possible to configure qmail with some tools
which check the contents of mail, attached docs, etc.

All my server are Linux powered and all clients are Win2k.
This is why of my mail.

Docs, Tutorials, etc. will be helpful.

In advance Thanks!

#--
# Averroes A. Aysha   http://www.keyserver.net/en/
# Think Linux, Think Slackware!
# Network Security Auditor (NSA)
# [EMAIL PROTECTED]
# Fingerprint = 73B7 2559 2968 5094 3B95 5C70 4E85 5F94 6068 1DD8
#--








Qmail, tcpserver, environment variables, and qmail-smtpd

2001-08-12 Thread Bill Arlofski

Quick question regarding tcpserver, environment variables,  and 
qmail-smtpd.

I'd like to be able to stop inbound smtp connections for systems that 
don't have at least a DNS A record. I mean, c'mon... If you are running 
a mail server, it should have a valid DNS entry, no?   Anyway, here is 
where tcpserver comes in, or so I thought. I figure I can use the 
default -h option (or -p 'parinoid')  to set the $TCPREMOTEHOST variable 
for inbound servers with valid DNS entries, and have inbound connections 
stopped or allowed based on that, right?  Wrong. (or so far it appears 
to be wrong)

I am trying to understand the purpose of being able to set environment 
variables like $TCPREMOTEHOST with tcpserver for incoming connections 
(ie: using the -h option or -p 'paranoid' option to perform reverse DNS 
lookups) and set or unset the $TCPREMOTEHOST variable based on DNS 
information. when qmail-smtpd does not seem to care, or make any use of it.

Is a shell script to be called in place of qmail-smtpd to check 
environment variables, then pass control back onto qmail-smtpd?  

Any comments, or pointers would be appreciated, even if you are just 
going to tell me I am being too paranoid.:)  

Bill Arlofski
Unix Systems Administrator
The Hotchkiss School
[EMAIL PROTECTED]




temporary qmail-inject error

2001-08-12 Thread KY Lui
Title: temporary qmail-inject error





hello


i found temporary qmail-inject error in qmail log file
what's the meaning?


thanks


regards
KY





qmail-pop3d

2001-08-12 Thread qmail

After I test the qmail-smtpd and qmail-send is ok,it seems to me ok.
I try to install qmail-pop3d and start this service.
I add the run script in /var/qmail/supervise/qmail-pop3d
I use the method to test the checkpasswd program, the response is ok.
#!/bin/sh
exec /usr/local/bin/softlimit -m 200 /usr/local/bin/tcpserver -v -R
-H -l 0 0 110 /var/qmail/bin/qmail-popup sbs01.helka.com.hk
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21

but I find a process:
root  8461  0.0  0.0 00 ?Z11:17   0:00
[supervise defunction

is it ok?
I can't check the pop3 with email client.

anything that I should install after enable qmail-pop3d?



Re: qmail-pop3d

2001-08-12 Thread Greg White

On Mon, Aug 13, 2001 at 11:42:25AM -0400, qmail wrote:
 After I test the qmail-smtpd and qmail-send is ok,it seems to me ok.
 I try to install qmail-pop3d and start this service.
 I add the run script in /var/qmail/supervise/qmail-pop3d
 I use the method to test the checkpasswd program, the response is ok.
 #!/bin/sh
 exec /usr/local/bin/softlimit -m 200 /usr/local/bin/tcpserver -v -R
 -H -l 0 0 110 /var/qmail/bin/qmail-popup sbs01.helka.com.hk
 /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21
 
 but I find a process:
 root  8461  0.0  0.0 00 ?Z11:17   0:00
 [supervise defunction
 
 is it ok?
 I can't check the pop3 with email client.
 
 anything that I should install after enable qmail-pop3d?

I have two questions for you:

1. What is the output of 'svstat /service/*' ?
2. Is it just linewrap issues, or is 'run' really multilined without
escape characters like that?

-- 
Greg White