mailbox dir

2000-06-16 Thread Vince



i configured qmail succesfully but my problem is whenever i sent an email
to one of the users where my qmail was install i cant find the mail. in
sendmail i know it was var/spool/mail where can i check that in qmail?




Re: mailbox dir

2000-06-16 Thread Kristina


What does your /var/qmail/control/defaultdelivery file say?

The most probable location is /home/username/Mailbox  or
/home/username/Maildir/cur, new, tmp

At 15:30 00/06/16 +0800, you wrote:
> 
> 
> i configured qmail succesfully but my problem is whenever i sent an email
> to one of the users where my qmail was install i cant find the mail. in
> sendmail i know it was var/spool/mail where can i check that in qmail?
>   




Re: mailbox dir

2000-06-16 Thread List

You may try a 'ps -ef|grep qmail` and see if the appropriate qmail programs are 
running. Looking also at your log files may help in case there are errors. It is also 
important to note how you configured your qmail to deliver messages.

This is what Vince said:

> 
> 
> i configured qmail succesfully but my problem is whenever i sent an email
> to one of the users where my qmail was install i cant find the mail. in
> sendmail i know it was var/spool/mail where can i check that in qmail?
> 



Re: mailbox dir

2000-06-16 Thread Vince


i have this message in my log file when i send a mail 

Jun 16 17:15:51 procmail qmail: 961146951.320518 delivery 25: deferral:
Uh-oh:_home_directory_is_writable._(#4.7.0)/
Jun 16 17:15:51 procmail qmail: 961146951.323302 status: local 0/10 remote
0/20



At 04:17 PM 6/16/00 +0800, you wrote:
>You may try a 'ps -ef|grep qmail` and see if the appropriate qmail
programs are running. Looking also at your log files may help in case there
are errors. It is also important to note how you configured your qmail to
deliver messages.
>
>This is what Vince said:
>
>> 
>> 
>> i configured qmail succesfully but my problem is whenever i sent an email
>> to one of the users where my qmail was install i cant find the mail. in
>> sendmail i know it was var/spool/mail where can i check that in qmail?
>> 
>
>




Re: mailbox dir

2000-06-16 Thread List

Remove the write permissions for group and others from the directory. Qmail is pretty 
strict on permissions.


This is what Vince said:

> 
> i have this message in my log file when i send a mail 
> 
> Jun 16 17:15:51 procmail qmail: 961146951.320518 delivery 25: deferral:
> Uh-oh:_home_directory_is_writable._(#4.7.0)/
> Jun 16 17:15:51 procmail qmail: 961146951.323302 status: local 0/10 remote
> 0/20
> 
> 
> 
> At 04:17 PM 6/16/00 +0800, you wrote:
> >You may try a 'ps -ef|grep qmail` and see if the appropriate qmail
> programs are running. Looking also at your log files may help in case there
> are errors. It is also important to note how you configured your qmail to
> deliver messages.
> >
> >This is what Vince said:
> >
> >> 
> >> 
> >> i configured qmail succesfully but my problem is whenever i sent an email
> >> to one of the users where my qmail was install i cant find the mail. in
> >> sendmail i know it was var/spool/mail where can i check that in qmail?
> >> 
> >
> >
> 



Re: qmqpc/+env docs

2000-06-16 Thread mwangu

Peter,

Thank you for your response. This will come in handy. 
The reason I was hoping there was a Perl way to do
this, i.e. qmqpc messages into the qmail queue is for
testing purposes for another app I am working on.

Mike.

--- Peter Samuel <[EMAIL PROTECTED]>
wrote:
> On Thu, 15 Jun 2000, mwangu wrote:
> 
> > Could anyone please point me to some good
> > documentation on how to use these to put messages
> in
> > the queue. I already have qmqpd running using
> > tcpserver and it appears to work.
> > 
> > If it can be done using perl that would be great.
> 
> Perl is not needed.
> 
> On the client machines (ie those machines that will
> be sending mail
> via QMQP to the server running qmqpd) do this: (DO
> NOT DO THIS ON THE
> SERVER RUNNING qmail-qmqpd!)
> 
> 1) find the IP address of the server running
> qmqpd. It MUST be the IP
>address. Let's assume it is 1.2.3.4
> 
>   cd /var/qmail/control
>   cp /dev/null ./locals
>   echo 1.2.3.4 > ./qmqpservers
> 
> 2) replace qmail-queue with the QMQP client
> program, qmail-qmqpc
> 
>   cd /var/qmail/bin
>   mv qmail-queue qmail-queue.orig
>   ln qmail-qmqpc qmail-queue
> 
> 3) wait for any mail queued on the client box to
> be delivered:
> 
>   qmail-qstat
>   messages in queue: 0
>   messages in queue but not yet preprocessed: 0
> 
>then stop qmail-send
> 
> Now, all mail that passes through this client will
> be sent to the
> server whose IP address is 1.2.3.4 via QMQP. 
> 
> Repeat for all your other null clients.
> 
> You might also want to set up a second box running
> qmail-qmqpd to
> queue mail just in case your first qmqpd servier is
> unavailable:
> 
> On the new server running qmail-qmqpd
> 
> 1)
>   cd /var/qmail/control
>   cp /dev/null ./locals
>   echo ":mailhost.your.domain" > ./smtproutes
> 
> On the null clients
> 
> 1)
>   cd /var/qmail/control
>   cp /dev/null ./locals
>   echo 1.2.3.5 >> ./qmqpservers
> 
> Regards
> Peter
> --
> Peter Samuel   
> [EMAIL PROTECTED]
> Technical Consultantor at
> present:
> eServ. Pty Ltd 
> [EMAIL PROTECTED]
> Phone: +61 2 9206 3410  Fax: +61
> 2 9281 1301
> 
> "If you kill all your unhappy customers, you'll only
> have happy ones left"
> 


__
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/



Re: mailbox dir

2000-06-16 Thread Kristina


Make sure you have this:

% groupadd -g 110 qmgr ( A group id above 100)
% useradd -u 120 -g 110 mailuser (A group id above 100)

% chgrp qmgr /home
% chmod 775 /home

Goodluck,
Kristina



At 17:09 00/06/16 +0800, you wrote:
> Remove the write permissions for group and others from the directory. Qmail
is pretty strict on permissions.
> 
> 
> This is what Vince said:
> 
> > 
> > i have this message in my log file when i send a mail 
> > 
> > Jun 16 17:15:51 procmail qmail: 961146951.320518 delivery 25: deferral:
> > Uh-oh:_home_directory_is_writable._(#4.7.0)/
> > Jun 16 17:15:51 procmail qmail: 961146951.323302 status: local 0/10 remote
> > 0/20
> > 
> > 
> > 
> > At 04:17 PM 6/16/00 +0800, you wrote:
> > >You may try a 'ps -ef|grep qmail` and see if the appropriate qmail
> > programs are running. Looking also at your log files may help in case th
ere
> > are errors. It is also important to note how you configured your qmail to
> > deliver messages.
> > >
> > >This is what Vince said:
> > >
> > >> 
> > >> 
> > >> i configured qmail succesfully but my problem is whenever i sent an
email
> > >> to one of the users where my qmail was install i cant find the mail. in
> > >> sendmail i know it was var/spool/mail where can i check that in qmail?
> > >> 
> > >
> > >
> > 
>   




qmail Digest 16 Jun 2000 10:00:00 -0000 Issue 1034

2000-06-16 Thread qmail-digest-help


qmail Digest 16 Jun 2000 10:00:00 - Issue 1034

Topics (messages 43130 through 43202):

Re: big-* patches and FD_SET()
43130 by: clemensF
43132 by: Petr Novotny

Re: Help on qmail-qstat
43131 by: clemensF
43142 by: Dave Kelly

qmail and pop3
43133 by: Andreas Keiser
43143 by: Dave Kelly
43163 by: clemensF

rcpthosts
43134 by: Vince
43136 by: Vince Vielhaber
43171 by: Irwan Hadi
43172 by: Bolivar Diaz Galarza

Re: Mass virtual hosting with qmail
43135 by: Nick Kew

8bit characters ... URGENT
43137 by: mwangu
43138 by: mwangu
43145 by: Paul Schinder
43148 by: mwangu
43152 by: Paul Schinder
43153 by: mwangu
43155 by: mwangu
43157 by: Steve Tylock
43159 by: Paul Schinder
43161 by: mwangu
43162 by: mwangu
43166 by: mwangu

VRFY patches
43139 by: Robert Varga
43140 by: Robert Varga
43141 by: Petr Novotny
43144 by: Robert Varga
43146 by: Petr Novotny
43154 by: Robert Varga

OpenMail?
43147 by: Derek Harkness
43160 by: Yiorgos Adamopoulos
43164 by: Toens Bueker

PINE +Qmail
43149 by: Javier Vino R.
43158 by: Robert Varga
43165 by: Ben Beuchler
43169 by: Steve Wolfe
43175 by: dd
43177 by: Adam McKenna
43178 by: Scott D. Yelich
43181 by: Charles Cazabon

Re: spam dissguised as bounce
43150 by: Markus Stumpf

MX and POP3 on 2 machines
43151 by: Michael T. Babcock

Re: ELM with Maildirs?
43156 by: melo.ip.pt

qmqpc/+env docs
43167 by: mwangu
43192 by: Peter Samuel
43201 by: mwangu

Help (off topic?) with selective relaying from behind a WebRamp box
43168 by: Rob Havens

vpopmail + qmail
43170 by: Paul Farber
43176 by: clemensF

Password problems:
43173 by: Z
43180 by: Chris Johnson
43186 by: Z
43190 by: Chris Johnson

Erroneous bounce behavior under duress
43174 by: Brian Murray

Re: PINE +Qmail (fwd)
43179 by: Scott D. Yelich

Forwarding to Groupwise
43182 by: Jorge Rocha
43184 by: Chris Johnson

[PATCH] Transparent maildir compression.
43183 by: Jedi/Sector One

filters for sqwebmail?
43185 by: John Stile

vacation
43187 by: Einar Bordewich
43191 by: Peter Samuel

Large Mail Cluster Questions
43188 by: DGranath.aol.com
43189 by: Alex

tcprules
43193 by: Vince
43194 by: Koji Hamamoto

Re: Maildir prob
43195 by: Eric Cox

mailbox dir
43196 by: Vince
43197 by: Kristina
43198 by: List
43199 by: Vince
43200 by: List
43202 by: Kristina

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]


--



> Toens Bueker:

> more than 509 available for a busy server.

what's that jazz with magic 509?  what does this number mean?

clemens




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 15 Jun 00, at 12:07, clemensF wrote:

> what's that jazz with magic 509?  what does this number mean?

The largest number N such that 2*N+5<1024. (1024 being system 
limit on select() call and 2*N+5 being the maximum number of 
handles qmail at concurrency N uses.)

-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOUidh1MwP8g7qbw/EQJebQCfV0Mjw1EykcNzxY7+ou1ZTYNEYikAni2M
te2GrFuEQI8DhPTlxZpvHrnL
=BIbi
-END PGP SIGNATURE-
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]




> System Administrator:

> but i have seen that when i check this queue with qmail-read i see mails
> in the queue which are 4-5 days old. can you help clear the queue, so that
> i have 0 messages in the queue.

svc -a  | skill -ALRM qmail-send

qmail-send needs an alrm-signal to wake up.  other than that there's
touching mails to rejuvenate them.

clemens




If you have messages in the queue that are 4-5 days old, chances are
probably good that they are messages that can't be delivered for one reason
or another.  After a week, they should clear themselves out by bouncing to
postmaster with a message stating why the were undeliverable.

You can change how long stuff remains in the queue by putting the number of
seconds you want in /var/qmail/control/queuelifetime.  The default is
604800, which is one week.

-D


- Original Message -
From: "System Administrator" 

Re: Help on qmail-qstat

2000-06-16 Thread System Administrator

Hi dave

thanks for your help.

but i have a problem now. i.e. there is no file with that name in the
control directory. just by creating that file, help ?

please let me know as soon as possible.

regards,

On Thu, 15 Jun 2000, Dave Kelly wrote:

> If you have messages in the queue that are 4-5 days old, chances are
> probably good that they are messages that can't be delivered for one reason
> or another.  After a week, they should clear themselves out by bouncing to
> postmaster with a message stating why the were undeliverable.
> 
> You can change how long stuff remains in the queue by putting the number of
> seconds you want in /var/qmail/control/queuelifetime.  The default is
> 604800, which is one week.
> 
> -D

Parag Mehta<[EMAIL PROTECTED]>
System Administrator.
Puretech Internet Pvt. Ltd.http://puretech.co.in/ 
77 Atlanta. Nariman Point.
Mumbai - 400021. India.Tel: +91-22-2833158  

Support is now available thru our Web Based Support System.
http://support.puretech.co.in







Re: Help on qmail-qstat

2000-06-16 Thread Steffan Hoeke

On Fri, Jun 16, 2000 at 07:02:55PM +0530, System Administrator wrote:
> Hi dave
> 
> thanks for your help.
> 
> but i have a problem now. i.e. there is no file with that name in the
> control directory. just by creating that file, help ?
> 
> please let me know as soon as possible.
If the file isn't there it defaults to the mentioned 604800, i.e. one week.
If you create the file with a lower value in it, that's the value that will be used.

 
> regards,
HTH,
 Steffan

> On Thu, 15 Jun 2000, Dave Kelly wrote:
> 
> > If you have messages in the queue that are 4-5 days old, chances are
> > probably good that they are messages that can't be delivered for one reason
> > or another.  After a week, they should clear themselves out by bouncing to
> > postmaster with a message stating why the were undeliverable.
> > 
> > You can change how long stuff remains in the queue by putting the number of
> > seconds you want in /var/qmail/control/queuelifetime.  The default is
> > 604800, which is one week.
> > 
> > -D
> 

-- 
http://therookie.dyndns.org




Re: Help on qmail-qstat

2000-06-16 Thread System Administrator

Hi steffan

thanks for your prompt reply. i will do the necessary.

On Fri, 16 Jun 2000, Steffan Hoeke wrote:

> On Fri, Jun 16, 2000 at 07:02:55PM +0530, System Administrator wrote:
> > please let me know as soon as possible.
> If the file isn't there it defaults to the mentioned 604800, i.e. one week.
> If you create the file with a lower value in it, that's the value that will be used.
> 
>  
> > regards,
> HTH,
>  Steffan
> 

Parag Mehta<[EMAIL PROTECTED]>
System Administrator.
Puretech Internet Pvt. Ltd.http://puretech.co.in/ 
77 Atlanta. Nariman Point.
Mumbai - 400021. India.Tel: +91-22-2833158  

Support is now available thru our Web Based Support System.
http://support.puretech.co.in







secondry mail server setup

2000-06-16 Thread mandarine

Hi there

What is the best way to setup qmail as a secondary mail server for a domain name, ie 
something.com has 2 MX records, second MX points to a mail server running qmail.
I need qmail to act as a fallback server, if the first (also qmail :) goes down or si 
busy. Whats the best way of doing this so that fallback will accept email and forward 
everything to a pop server.
Also, whats the best way to tweak both servers so that the server one has a nice 
threashold, and the fallback handles anything above that threashold of incoming mail.

thanks for any help

nicholas


--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.



Re: MX and POP3 on 2 machines

2000-06-16 Thread Michael T. Babcock

I'm going to try using a mini-qmail install as per the 'what about
firewalls' section of that page.


> I'm wondering what facilities exist for distributing some of the Qmail
> work across two machines in the following way:
>
> 'mx.ourdomain' accepts connections from the outside world and handles
> receiving mail for all hosted virtual domains.
> 'mstore.ourdomain' receives all the messages from 'mx' that are for the
> virtual domains and stores them for POP3 or IMAP retrieval.
> 'mx.ourdomain' is also the SMTP box for sending messages out to the
> Internet.

--
   _/~-=##=-~\_
   -=+0+=-< Michael T. Babcock >-=+0+=-
   ~\_-=##=-_/~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018






Re: [PATCH] Transparent maildir compression.

2000-06-16 Thread Michael T. Babcock

This would probably be most useful on machines with more CPU than drive
space.  Mind you, drive space does tend to be cheaper these days than CPU
time.

I'd be interested in stats on storage difference of 1000 E-mails with and
without the patch, as well as CPU time used with and without.  I doubt anyone
has time right now ... but.

Jedi/Sector One wrote:
 Here is an experimental patch against Qmail 1.03.

>   Messages will be saved in Maildir spools as gzip files, and the POP3
> server uncompresses them on-the-fly.
>   It may save a lot of hard disk space (especially on ReiserFS
> partitions with tails) and does not change anything to the POP3 nor SMTP
> protocols.

--
   _/~-=##=-~\_
   -=+0+=-< Michael T. Babcock >-=+0+=-
   ~\_-=##=-_/~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018






Re: [PATCH] Transparent maildir compression.

2000-06-16 Thread jedi


Michael T. Babcock écrit:

> This would probably be most useful on machines with more CPU than drive
> space.  Mind you, drive space does tend to be cheaper these days than CPU
> time.

  It depends on your email traffic. A small company usually has a single
box for web/ftp/mail/fax/dns and no more than 20 mails per hour. Nobody
will notice the compression CPU overhead, but more disk space will be
available. 
  And yes, disks are cheap these days, but RAID makes them expensive.

  Best regards.



Re: [PATCH] Transparent maildir compression.

2000-06-16 Thread John P. Looney (Kate)

On Fri, Jun 16, 2000 at 02:55:56PM +, [EMAIL PROTECTED] mentioned:
> Michael T. Babcock écrit:
> > This would probably be most useful on machines with more CPU than drive
> > space.  Mind you, drive space does tend to be cheaper these days than CPU
> > time.
> 
>   It depends on your email traffic. A small company usually has a single
>   box for web/ftp/mail/fax/dns and no more than 20 mails per hour.
>   Nobody will notice the compression CPU overhead, but more disk space
>   will be available. 
>   And yes, disks are cheap these days, but RAID makes them expensive.

 And it makes a lot of sense if some of your salesmen have 40MB doc files
or powerpoint presentations in their mailboxes every so often.

Kate

-- 
The words of the unwary are apt to cause needless pain and bloody violence.
- Zen Master Greg



Re: secondry mail server setup

2000-06-16 Thread Chris Johnson

On Fri, Jun 16, 2000 at 07:10:52AM -0700, mandarine   wrote:
> What is the best way to setup qmail as a secondary mail server for a domain
> name, ie something.com has 2 MX records, second MX points to a mail server
> running qmail.  I need qmail to act as a fallback server, if the first (also
> qmail :) goes down or si busy. Whats the best way of doing this so that
> fallback will accept email and forward everything to a pop server.

On the secondary server, put the domains for which you want to receive mail in
rcpthosts, but not in locals or virtualdomains. That's it!

> Also, whats the best way to tweak both servers so that the server one has a
> nice threashold, and the fallback handles anything above that threashold of
> incoming mail.

If you're using tcpserver to run qmail-smtpd, you can use the -c option to
limit the number of incoming connections.

Chris



Limiting SMTP connections

2000-06-16 Thread Michael T. Babcock

For those who know the SMTP protocol better than I:

If I limit my incoming SMTP connections on a box to something small, say
5, what does happens to further incomings; are they simply ignored, or
NAK'd, or what?  And on what % of servers out there will this mean that
the message bounces entirely instead of being retried?  Thanks.

Side question: is there some way to get the stats (out of qmailanalog,
etc.) as to how many simultaneous connections were happening on the
various services at various times?

IE:
peak usage: 48 simultaneous connections +/- 3 between 3 and 6 PM
 ... type of information.

--
   _/~-=##=-~\_
   -=+0+=-< Michael T. Babcock >-=+0+=-
   ~\_-=##=-_/~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018






tcprules script

2000-06-16 Thread Michael T. Babcock

Does anyone have a quick script to check if a given tcprules file is
newer than the .cdb version and generate the new one if it is?   I'm not
a big shell-script person.

In other words, I'll write it in C if I have to ...

--
   _/~-=##=-~\_
   -=+0+=-< Michael T. Babcock >-=+0+=-
   ~\_-=##=-_/~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018






Re: Limiting SMTP connections

2000-06-16 Thread mandarine

 the MTA connecting will fail and retry in which ever way it is configured, after 
having tried other IN MX on the domain.

nicholas
--

On Fri, 16 Jun 2000 11:19:27   Michael T. Babcock wrote:
>For those who know the SMTP protocol better than I:
>
>If I limit my incoming SMTP connections on a box to something small, say
>5, what does happens to further incomings; are they simply ignored, or
>NAK'd, or what?  And on what % of servers out there will this mean that
>the message bounces entirely instead of being retried?  Thanks.
>
>Side question: is there some way to get the stats (out of qmailanalog,
>etc.) as to how many simultaneous connections were happening on the
>various services at various times?
>
>IE:
>peak usage: 48 simultaneous connections +/- 3 between 3 and 6 PM
> ... type of information.
>
>--
>   _/~-=##=-~\_
>   -=+0+=-< Michael T. Babcock >-=+0+=-
>   ~\_-=##=-_/~
>http://www.linuxsupportline.com/~pgp/ ICQ: 4835018
>
>
>
>


--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.



Re: tcprules script

2000-06-16 Thread Michael T. Babcock

I need to quit answering myself ...
http://www.linuxsupportline.com/~pgp/linux/newer-0.1.tar.gz

Returns 1 if first file is newer, 2 if second is newer, 0 if neither is.

(I don't know if anyone else wanted this, but ...)

"Michael T. Babcock" wrote:

> Does anyone have a quick script to check if a given tcprules file is
> newer than the .cdb version and generate the new one if it is?   I'm not
> a big shell-script person.
>
> In other words, I'll write it in C if I have to ...

--
   _/~-=##=-~\_
   -=+0+=-< Michael T. Babcock >-=+0+=-
   ~\_-=##=-_/~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018






Re: Large Mail Cluster Questions

2000-06-16 Thread DGranath

I have to grow the system from a capability of 250K
msg/day up to as much as 2.5M/day. I have to add 
virus detection, spam filters, and seperation for
an encryption trunk. I'm assuming as many as five boxes
in the cluster - I will have the baseline system
online while I do this and then use the baseline as
a backup when I switch over.

I'm using a home built K7/AMD system because it's half
the price of the of the shelf and I've built a couple
of dozen - and tested them - so far so good...

As far as the 250Kmsg/day estimate per/box - I'm not
sure what going to happen once I turn on the virus
detection and spam filtering. I'd like to test it
before I go online with it also... 

>ummm... if you're only doing 250k external messages
>one box should suffice. 

On 15 Jun [EMAIL PROTECTED] said:
 : I'm setting up a large mail cluster and I'm trying to
 : hook up with other people who have done this. I need
 : advice on how to cluster boxes for about 250K external
 : msg/day. I'm using 750MHz AMD boxes I need an idea 
 : how many I need - including a backup capability.
 : I've only done single server units before and I need
 : to find out if there are different firewall configurations that I should
examine...





Re: Large Mail Cluster Questions

2000-06-16 Thread markd

On Fri, Jun 16, 2000 at 04:13:18PM +, [EMAIL PROTECTED] wrote:
> I have to grow the system from a capability of 250K
> msg/day up to as much as 2.5M/day. I have to add 
> virus detection, spam filters, and seperation for
> an encryption trunk. I'm assuming as many as five boxes
> in the cluster - I will have the baseline system
> online while I do this and then use the baseline as
> a backup when I switch over.
> 
> I'm using a home built K7/AMD system because it's half
> the price of the of the shelf and I've built a couple
> of dozen - and tested them - so far so good...
> 
> As far as the 250Kmsg/day estimate per/box - I'm not
> sure what going to happen once I turn on the virus
> detection and spam filtering. I'd like to test it
> before I go online with it also... 

You might want to consider a two-staged mail system
where the front/visible ones run your spam filtering
and virus scanning and then forward to your
backend systems that deliver to users mailboxes.

Real virus scanning can be quite a resource intensive
process as it has to crack open attachments, untar and
unzip files searching for nested archives and so on.
Consequently you may find that the system requirements
for a front-end/virus/spam scanner are significantly
different from a backend, mail delivery system.


Regards.



Interesting disclosure of domains subscribed to qmail list

2000-06-16 Thread markd

I know, I know, posting to both lists? But, tinydns made this
easy and qmail is the list in question, so...

I was just watching the tinydns logs when I mailed a message to
the qmail mailing list.

All of a sudden the query rate on my reply-address domain shot up as
the log tail slid across the screen. It occurred to me that a lot of
those queries are probably doing reverse lookups or anti-spam
checks ensuring a valid reply domain.

The reason I'm pointing this out is that I find it interesting
that it indirectly exposes some domains which are likely to be
subscribed to the list.


Regards.



ucspi-ipc is now available

2000-06-16 Thread William E. Baxter

The message below went to [EMAIL PROTECTED] yesterday.  A number of
people I expected to see it evidently did not.  Please pardon the
scattershot approach.

W.


The ucspi-ipc-0.50 package is now available.  Please see the ucspi-ipc
home page:

http://www.superscript.com/ucspi-ipc/intro.html

ucspi-ipc is an UCSPI protocol for the local domain.  It requires an
implementation of getpeereid() to allow servers to obtain the
credentials of clients that request connections.  It includes tools
similar to those in ucspi-tcp: ipcserver, ipcrules, ipcrulescheck, and
ipcclient.  Documentation is available via the ucspi-ipc home page.

The current ucspi-ipc package includes implementations of getpeereid() for:

* Linux kernels that support SO_PEERCRED with getsockopt().

* OpenBSD 2.6 with experimental extensions.  I'll make the kernel
  modifications available as soon as possible.


There is a mailing list for discussion of ucspi-ipc and other UCSPI
protocols:

[EMAIL PROTECTED]


In a remarkable and amusing coincidence, Bruce Guenter released his
ucspi-unix only yesterday.  See

http://em.ca/~bruceg/ucspi-unix/

While ucspi-unix and ucspi-ipc are similar in concept, the
implementations are completely different.  For example, ucspi-ipc is a
djblib-based project; that is, it borrows heavily from actual DJB
source code.

Evidently, Bruce and I duplicated one another's efforts to some
degree.  If you have registered or implemented an UCSPI protocol,
please share the protocol description with the ucspi mailing list.
The description for ucspi-ipc appears below.

W.


IPC UCSPI protocol definition
Copyright 2000
SuperScript Technology, Inc.  [EMAIL PROTECTED]

This document defines the IPC protocol for UCSPI-1996 tools. An IPC
client communicates with a IPC server on the same machine through a
local-domain stream socket. The descriptors passed to an UCSPI
application are copies of that socket, dup()ed from a single connect()
or accept().

[address] consists of one argument: [path].

A [path] is a file name associated with a local-domain socket.

The server sets up the following environment variables:

   PROTO: the string IPC
   IPCLOCALPATH: the local path identifying the local-domain socket
   IPCREMOTEPATH: the remote path identifying the local-domain socket
   IPCREMOTEEUID: the remote effective user id
   IPCREMOTEEGID: the remote effective group id

The client sets up the following environment variables:

   PROTO: the string IPC
   IPCLOCALPATH: the local path identifying the local-domain socket



Re: Large Mail Cluster Questions

2000-06-16 Thread Steve Wolfe

> I have to grow the system from a capability of 250K
> msg/day up to as much as 2.5M/day. I have to add
> virus detection, spam filters, and seperation for
> an encryption trunk. I'm assuming as many as five boxes
> in the cluster - I will have the baseline system
> online while I do this and then use the baseline as
> a backup when I switch over.

   I'd guess that in this case, virus scanning may be the crippler.  At 2.5
million per day, that's an *average* of 6 per second per machine to scan
and deliver.  Accounting for peak traffic periods, each machine could
conceivably have to scan 30-60 messages per second to keep up with traffic.
Depending on the virus scanner, that may (or may not) happen.

   You may want to consider dual-processor boards.  It's much cheaper to
build the box with BP6 motherboards and dual celerons than to put together
two single-CPU machines.  That way, you could at least have two virus
scanning processes going in parallel.

steve




Problems downloading via POP3

2000-06-16 Thread Andy Grimberg

I just recently setup a qmail server with vpopmail as the virtual
domain / pop manager.  I'm encountering a problem though.

Users with "large" messages >10K are having problems retrieving their
messages.  The clients start pulling the messages but get stuck and
eventually timeout on these messages.  I've checked tcpdump and I don't
seem to be getting any activety from the server to the clients or
clients to the server once they hit the messages.

here's my pop3d supervise startup:
#!/bin/sh
service=pop3d
.. /usr/lib/qmail/run-functions
uid="`id -u vpopmail`"
gid="`id -g vpopmail`"
hostname="`hostname`"
readdefault concurrency concurrencypop3d 20
readdefault checkpass checkpassword checkpassword
do_ulimits

exec tcpserver -u "$uid" -g "$gid" -c "$concurrency" -v -Hl -t5 -R -X \
-D -x /etc/tcpcontrol/pop3.cdb 0 pop-3 \
/var/qmail/bin/qmail-popup "$hostname" \
$checkpass \
qmail-pop3d Maildir/

This gives me a proccess executing as this:

tcpserver -u 510 -g 502 -c 40 -v -Hl -t5 -R -X -D -x
/etc/tcpcontrol/pop3.cdb 0 pop-3 /var/qmail/bin/qmail-popup mailbot
/home/vpopmail/bin/vchkpw qmail-pop3d Maildir

Any ideas what the solution is?
Thanks,
-Andy-

-- 
Andrew J. Grimberg
Programmer
WebSuite.com
206-988-2233



Re: Large Mail Cluster Questions

2000-06-16 Thread DGranath

The original estimate was that this would be evenly
split 50/50 in/out. But I don't believe this. Our
marketing/sales guys are really pushing the volume up on the outbound side. And new 
services will be added...
I don't think I'll get real numbers 
until it's too late. I'm looking for a scalable solution - but part of the scaling has 
to be able
to allow me to adapt to a change quickly if I have 
to. 

If the numbers slide more toward outbound what kind
of configuration change would I need???



>What is the estimated mail volume incoming?  And how >much outgoing?
>You say 250K up to 2.5M, but if that's all  incoming, >you need to
>do one thing; if it's all outgoing, there's another >set of issues.





NT / Qmail interoperation

2000-06-16 Thread Jackson, Robert

Currently, we receive our incoming mail via NT Exchange server.  We do not
currently use our IBM RS6000 for any internet email purposes (ie, I am in
unfamiliar territory with this project).

Since our core business applications exist on the IBM system, I would like
to develop the application that would form the email message, shell to AIX,
and invoke Qmail which would then send the email to NT Exchange server.  My
reasons for this routing are:  1) There are security concerns governed by
the network department over which I have no responsibility; 2) I don't want
any email messages coming back to the RS6000.  3) Since I cannot influence
the security policies, I want to transmit the email to a trusted source
(Exchange) and let that source deal with the firewall, security issues, etc.
Therefore, the RS6000 will only be sending email to the NT Exchange server.
Hopefully, then, the NT Exchange server will then send out the email
appropriately.

I imagine someone is doing this and would appreciate constructive input.  If
you've got an installation similar to this and would like to correspond
"offlist", please feel free to email me directly.  Thanks.

--robert
[EMAIL PROTECTED]




RE: tcprules script

2000-06-16 Thread Kevin Bucknum

test also works with the newer than parm

if test file1 -nt file2; then
 do something
fi

man test for all the options

-Original Message-
From: mbabcock [mailto:mbabcock]On Behalf Of Michael T. Babcock
Sent: Friday, June 16, 2000 11:04 AM
To: qmail list
Subject: Re: tcprules script

I need to quit answering myself ...
http://www.linuxsupportline.com/~pgp/linux/newer-0.1.tar.gz

Returns 1 if first file is newer, 2 if second is newer, 0 if neither is.

(I don't know if anyone else wanted this, but ...)

"Michael T. Babcock" wrote:

> Does anyone have a quick script to check if a given tcprules file is
> newer than the .cdb version and generate the new one if it is?   I'm not
> a big shell-script person.
>
> In other words, I'll write it in C if I have to ...

--
   _/~-=##=-~\_
   -=+0+=-< Michael T. Babcock >-=+0+=-
   ~\_-=##=-_/~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018






Re: NT / Qmail interoperation

2000-06-16 Thread markd

This is pretty trivial to do. All you need is a standard qmail
install with a single entry in /var/qmail/control/smtproutes which
points to your exchange server.

That way all mail submitted to qmail will be forward via smtp to
your exchange server.

You may want to set concurrencyremote downwards to make
life a little smoother for the NT server.


Regards.

On Fri, Jun 16, 2000 at 01:59:42PM -0500, Jackson, Robert wrote:
> Currently, we receive our incoming mail via NT Exchange server.  We do not
> currently use our IBM RS6000 for any internet email purposes (ie, I am in
> unfamiliar territory with this project).
> 
> Since our core business applications exist on the IBM system, I would like
> to develop the application that would form the email message, shell to AIX,
> and invoke Qmail which would then send the email to NT Exchange server.  My
> reasons for this routing are:  1) There are security concerns governed by
> the network department over which I have no responsibility; 2) I don't want
> any email messages coming back to the RS6000.  3) Since I cannot influence
> the security policies, I want to transmit the email to a trusted source
> (Exchange) and let that source deal with the firewall, security issues, etc.
> Therefore, the RS6000 will only be sending email to the NT Exchange server.
> Hopefully, then, the NT Exchange server will then send out the email
> appropriately.
> 
> I imagine someone is doing this and would appreciate constructive input.  If
> you've got an installation similar to this and would like to correspond
> "offlist", please feel free to email me directly.  Thanks.
> 
> --robert
> [EMAIL PROTECTED]
> 



Re: Large Mail Cluster Questions

2000-06-16 Thread markd

On Fri, Jun 16, 2000 at 07:07:51PM +, [EMAIL PROTECTED] wrote:
> The original estimate was that this would be evenly
> split 50/50 in/out. But I don't believe this. Our
> marketing/sales guys are really pushing the volume up on the outbound side. And new 
>services will be added...
> I don't think I'll get real numbers 
> until it's too late. I'm looking for a scalable solution - but part of the scaling 
>has to be able
> to allow me to adapt to a change quickly if I have 
> to. 
> 
> If the numbers slide more toward outbound what kind
> of configuration change would I need???

Kida hard to tell as it depends on how the outbound is submitted. But in
general, a remote email consumes less system resources than a local email
delivery.


Regards.



Re: Password problems:

2000-06-16 Thread Z

well, what i decided to do was switch to qpopper and use the 
--enable-home-dir-mail=Mailbox and it worked fine.  

now one thing that i don't understand is the rcpthosts file.
it seems like it would be a file that would decide who gets to use
qmail as the SMTP server, but when i try to send a message to somewhere
like freak.net, it tells me that the address is not in the rcpthosts
file.  so is this to say where you can send to?  do they have something
for address that can use the SMTP server?  are they one in the same?
i put '.net' in the rcpthosts file and it sent fine.
thanks,
Z

On Thu, 15 Jun 2000, Chris Johnson wrote:

> On Thu, Jun 15, 2000 at 04:50:37PM -0500, Z wrote:
> > From what I've heard many MUA's don't handle the maildir
> > very easily.  
> 
> MUAs like mutt, and I believe recent versions of Pine (and if not there are
> patches to make Pine understand maildirs), handle maildirs just fine. Clients
> that use POP to retrieve mail don't know or care what kind of storage you're
> using.
> 
> > the exact error message i'm getting is:
> > 
> > -ERR this user has no $HOME/Maildir
> > 
> > and i can't even have the pop server find it even if i create Maildir.
> 
> You'd have to create a maildir called "Mailbox," given the tcpserver invocation
> from your previous message.
> 
> > i think i'm going to switch over to qpopper or ipop3d to fix the problem 
> > unless someone has another suggestion.  
> 
> If you don't use maildir delivery, you'll have to use another POP3 server,
> since qmail-pop3d handles only maildirs.
> 
> Chris
> 




Help with startup Script

2000-06-16 Thread Jürgen Hoffmann

Hi everyone,

first I am new to qmail and I am using qmail with vpopmail and mysql
support. I have several questions: Using the startup-scripts from
www.inter7.com plus the startup scripts from My Life with qmail (of course I
have adjusted the scripts from life with qmail to the needs of vpopmail as
suggested by the authors) leads into an endless loop of

tcpserver fatal error: unable to bind address

messages. Where is my mistake? Scripts are posted at the end of the mail...

Question 2:
How does vpopmail put the mail? If there are no user accounts right? if you
want to have ./Maildir/ support do you have to setup homedirs for every
popaccount? what about dups?

Question 3:
Is there a qmail-pop3d hack out there which supports ./Mailbox formats and
vchkpw?

now to my scripts...

/sbin/init.d/qmail...
#!/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.pidecho -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

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -x /etc/tcp.smtp.cdb -c20 -u 507 -g101 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &

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

-

/var/qmail/supervise/qmail-pop3d/run ... and log/run ...

#!/bin/sh

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver 0 pop3 /var/qmail/bin/qmail-popup mail.byteaction.de \
/var/qmail/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &

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

-

Any Help from the pros is highly appreciated

kind regards

Juergen Hoffmann




Ascii art summary

2000-06-16 Thread Alan Chandler

I am new to this list having just about set up qmail on a home network
linux server for the first time.  I spent hours over a number of days
pouring through the documentation and the qmail.org web site looking
for help - and whilst I think I now have a picture NOWHERE could I
find a summary of what all the control files did and in what order so
that I could actually get qmail do what I wanted it to. There were
plenty of simple guides if you wanted to set it up one particular way,
but none of them were quite how I wanted it.

Eventually, in order to understand I drew a flow chart, see below, to
try and help my understand the process.  Somewhat nervously I post it
here (nervous because netiquette normally dictates that you lurk for
while - I just was so desparate for this info that I felt it was worth
the risk of making a complete plonker of myself) for two purposes.

1)  To get verification that what I have summised is correct, AND
2)  If we can get it correct to plead for someone to put it in a
prominent place (like off www.qmail.org ) so that newcomers who come
after me have a model to work with.

--
   'me' can be used as default for a number of files
   do a 'man qmail-control' to get a list

user = login account on system
mail is being sent to [EMAIL PROTECTED] and can enter in two ways

qmail-inject   qmail-smtpd 
 |  (use smtpgreeting)
 |  |
"from"[EMAIL PROTECTED]  is RELAYCLIENT defined?-Y-+
  or [EMAIL PROTECTED]||
 |  N|
 |  ||
 |   REJECT MAIL--N-is y.z in 'rcpthosts'|
 |  ||
 |  Y|
 |  ||
 |  V|
 +--++
|
 set "deliverto" = [EMAIL PROTECTED]
|
 +->|
 |  |
 |  V
 |  qmail-queue
 |  |
 |  |
 |  qmail-send
 |  |
 | if "from" has no @ use 'envnoathost'
 |  |
 |   is y.z in 'locals'-Y-+
 |  | |
 |  N  set "account" = x
 |  | |
 |is any of [EMAIL PROTECTED] in 'virtualdomains' |
 ||  ||
 |N  Y|
 ||  ||
 |   qmail-rspawnlookup "account" (see below) |
 ||  add -x to end of |
 |   qmail-remote   "account" |
 ||  ||
 |   is y.z in 'smtproute'   +--->|
 || | |
 |N Y qmail-lspawn
 || | |
 |   lookup MX for y.z  | |
 | and sendlookup route   |
 |and sendis any of "account"
 |  +-N-in 'users/assign'
 |  | |
 |  set "user" =  Y
 |part of "account" before '-'|
 |  |lookup "user"
 |  | |
 |  |<+
 |  |
 |is "user" qmailable (not root etc)
 |   ||
 |   NY
 |   ||
 |  set "user" = alias|
 |   ||
 |   |<---+
 |

Re: Ascii art summary

2000-06-16 Thread Chris Johnson

On Fri, Jun 16, 2000 at 11:04:59PM +0100, Alan Chandler wrote:
> NOTE: you must restart qmail whenever one of 'control files' are
> changed.

That's only true for some of them. Lots of them are read for every invocation
of qmail-smtpd or qmail-remote, for example, and qmail-send can be told of new
a locals or virtualdomains file with a SIGHUP.

Chris



Re: Password problems:

2000-06-16 Thread Chris Johnson

On Fri, Jun 16, 2000 at 03:33:20PM -0500, Z wrote:
> well, what i decided to do was switch to qpopper and use the 
> --enable-home-dir-mail=Mailbox and it worked fine.  
> 
> now one thing that i don't understand is the rcpthosts file.
> it seems like it would be a file that would decide who gets to use
> qmail as the SMTP server, but when i try to send a message to somewhere
> like freak.net, it tells me that the address is not in the rcpthosts
> file.  so is this to say where you can send to?  do they have something
> for address that can use the SMTP server?  are they one in the same?
> i put '.net' in the rcpthosts file and it sent fine.

Don't do that. Read http://www.palomine.net/qmail/relaying.html and
http://www.palomine.net/qmail/selectiverelay.html instead.

Chris



Re: mailbox dir

2000-06-16 Thread Markus Stumpf

On Fri, Jun 16, 2000 at 06:52:49PM +0900, Kristina wrote:
> 
> Make sure you have this:
> 
> % groupadd -g 110 qmgr ( A group id above 100)
> % useradd -u 120 -g 110 mailuser (A group id above 100)
> 
> % chgrp qmgr /home
> % chmod 775 /home

The user "mailuser" is allowed to create file/directories in /home ???
What should that be good for?

Even if you meant /home/mailuser it should read
% chmod 755 /home/mailuser
 *
(i.e. no write permission), otherwise a vanilla qmail won't deliver
emails for that user.

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Stress is when you wake
Research & Development| mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| realize you haven't
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  | fallen asleep yet.



Re: Interesting disclosure of domains subscribed to qmail list

2000-06-16 Thread Markus Stumpf

[EMAIL PROTECTED] deleted from recipients.

On Fri, Jun 16, 2000 at 09:34:43AM -0700, [EMAIL PROTECTED] wrote:
> I know, I know, posting to both lists? But, tinydns made this
> easy and qmail is the list in question, so...

> The reason I'm pointing this out is that I find it interesting
> that it indirectly exposes some domains which are likely to be
> subscribed to the list.

Nope, not necessarily domains but mailservers handling mail traffic for
users in domains subscribed to the list.
But nevertheless these mail servers are IMHO broken.

As ezmlm replaces the original Sender information with e.g.
[EMAIL PROTECTED]
the only domain that should get DNS queries on rcpt of the message
should be list.cr.yp.to to verify a valid bounce host and probably
the host serving the RDNS space of the mailserver sending out the list
mails.

Checking the content of the From: field for a valid address is IMHO
paranoid and even as a SPAM check it will have too many false positives ;-)

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Stress is when you wake
Research & Development| mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| realize you haven't
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  | fallen asleep yet.



Blocking a specific address

2000-06-16 Thread Bolivar Diaz Galarza

One of my clients does not like to receive e-mail from
exposed.freewebsites.com, how do I block this server? it is ot in the
mail-abuse or orbs.org database

Bolivar,




Re: Blocking a specific address

2000-06-16 Thread Troy Frericks

Search the FAQ for an explanation of the 'badmailfrom' file.
#

At 07:00 AM 6/16/00 , Bolivar Diaz Galarza wrote:
>One of my clients does not like to receive e-mail from
>exposed.freewebsites.com, how do I block this server? it is ot in the
>mail-abuse or orbs.org database
>
>Bolivar,




Re: Blocking a specific address

2000-06-16 Thread Markus Stumpf

On Fri, Jun 16, 2000 at 07:00:26AM -0500, Bolivar Diaz Galarza wrote:
> One of my clients does not like to receive e-mail from
> exposed.freewebsites.com, how do I block this server? it is ot in the
> mail-abuse or orbs.org database

There is a patch for  qmail-smtpd.c  floating around (sorry, I don't
have it handy, and I can't extract one as my qmail-smtpd is *heavily*
patched) that basically checks for a environment variable
BOUNCEMAIL and if set sends back the contents of this variable in
smtp_rcpt() before the "250 ok".

As a way to go modify qmail-smtpd.c

near "char *relayclient;" add a line
char *bouncemail;

near "void err_bmf() { ... }" add a line
void err_bouncemail(s) char *s; { out(s); out(" (#5.7.1)\r\n"); }

in setup() before "dohelo()" add a line
bouncemail = env_get("BOUNCEMAIL");

in smtp_rcpt() after "if (flagbarf) { ...}" add a line
if (bouncemail) { err_bouncemail(bouncemail); return; }


This allows using tcprules like:
216.65.1.3:allow,BOUNCEMAIL="521 we do not accept messages from this server"

Please note, that this will not only filter out messages to one of your
client, but affects your qmail system as a whole. It will reject all
messages from 216.65.1.3 (i.e. exposed.freewebsites.com).

If you want the filtering to be client specific the solution depends
on how your client gets his email delivered.

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Stress is when you wake
Research & Development| mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| realize you haven't
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  | fallen asleep yet.



Re: Blocking a specific address

2000-06-16 Thread Markus Stumpf

On Fri, Jun 16, 2000 at 07:07:19PM -0500, Troy Frericks wrote:
> Search the FAQ for an explanation of the 'badmailfrom' file.

This is useless if you try to block a whole server - unless all messages
have a sender address *@domain of course.

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Stress is when you wake
Research & Development| mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| realize you haven't
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  | fallen asleep yet.



RE: Blocking a specific address

2000-06-16 Thread Bolivar Diaz Galarza

Thanks for the tip, I will try that monday and post the results.

Bolivar,



- Original Message -
From: Markus Stumpf <[EMAIL PROTECTED]>
To: Bolivar Diaz Galarza <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 16, 2000 7:39 PM
Subject: Re: Blocking a specific address


> On Fri, Jun 16, 2000 at 07:00:26AM -0500, Bolivar Diaz Galarza wrote:
> > One of my clients does not like to receive e-mail from
> > exposed.freewebsites.com, how do I block this server? it is ot in the
> > mail-abuse or orbs.org database
>
> There is a patch for  qmail-smtpd.c  floating around (sorry, I don't
> have it handy, and I can't extract one as my qmail-smtpd is *heavily*
> patched) that basically checks for a environment variable
> BOUNCEMAIL and if set sends back the contents of this variable in
> smtp_rcpt() before the "250 ok".
>
> As a way to go modify qmail-smtpd.c
> 
> near "char *relayclient;" add a line
> char *bouncemail;
> 
> near "void err_bmf() { ... }" add a line
> void err_bouncemail(s) char *s; { out(s); out(" (#5.7.1)\r\n"); }
> 
> in setup() before "dohelo()" add a line
> bouncemail = env_get("BOUNCEMAIL");
> 
> in smtp_rcpt() after "if (flagbarf) { ...}" add a line
> if (bouncemail) { err_bouncemail(bouncemail); return; }
> 
>
> This allows using tcprules like:
> 216.65.1.3:allow,BOUNCEMAIL="521 we do not accept messages from this
server"
>
> Please note, that this will not only filter out messages to one of your
> client, but affects your qmail system as a whole. It will reject all
> messages from 216.65.1.3 (i.e. exposed.freewebsites.com).
>
> If you want the filtering to be client specific the solution depends
> on how your client gets his email delivered.
>
> \Maex
>
> --
> SpaceNet GmbH |   http://www.Space.Net/   | Stress is when you
wake
> Research & Development| mailto:[EMAIL PROTECTED] | up screaming and
you
> Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| realize you
haven't
> D-80807 Muenchen  |  Fax: +49 (89) 32356-299  | fallen asleep yet.
>




Re: Blocking a specific address

2000-06-16 Thread Johan Almqvist

On Fri, Jun 16, 2000 at 08:14:50AM -0500, Bolivar Diaz Galarza wrote:
> Thanks for the tip, I will try that monday and post the results.

Another way to go is to put the offending host into your smtp.rules or
what it's called in your setup with

10.0.1.1:deny

so they can't even connect. Be sure to rebuild the .cdb file after that.
This will not work if you can't do it on all your MX's, though (which I,
for one, can't - bummer!)

-Johan
-- 
Johan Almqvist



queue internals...

2000-06-16 Thread Ben Beuchler

I'm putting together program to assist in viewing/managing the queue.
Yes, I've seen qmHandle and it is indeed spiffy.  I just want to make my
own.

Anyway, in the 'remote' and 'local' files for a queued message, individual
recipients are marked with 'D' if they are done and 'T' if they are still
pending, correct?

Are there any other markers I should be aware of?

Thanks,
Ben

-- 
The spectre of a polity controlled by the fads and whims of voters who
actually believe that there are significant differences between Bud Lite
and Miller Lite, and who think that professional wrestling is for real, is
naturally alarming to people who don't.
-- Neal Stephenson