Blocking certain attachments

2000-12-23 Thread Anonymous user


I am not hapy about my users receiving certain attachments.

What I want to do is block the following

(1) Attachments bigger than a certain size

(2) Attachment of a certain type (mine type?). For example I would like to
block .exe files. 

I would like to do both elegantly. If I block a message, I want to send a
message to both the sender and recipient telling them what has happened.
Even better I would like to send on the original message without the
attachment.

Anybody point me in the right direction.

PS. I use vpopmail, sqwebmail etc... All virtual domains and users, no
local.



Logging Messages - qmail newbie

2000-12-23 Thread Anonymous user


I have been running qmail for a few days now and it works well.

I have a problem though... I need to keep a copy of all messages sent and
received. I followed the instructions in the faq, creating a .qmail-log
file in /var/qmail/alias with ./msg-log in it. 

This does the job as described, but I am now just accumulating one huge
file with attachments and all sorts in it.

Has anybody got a more elegant way of doing this?

I have been trying to work something out for myself, but there are a few
things that I can't find much about/don't understand in the documentation.

There is little info about the alias directory. Am I correct in assuming
that the alias files .qmail- work the same way as a .qmail file in ones
home directory?

Thinking this I tried to construct a Maildir for my messages by putting
./MaildirLog/ in .qmail-log and creating a maildir in the alias directory -
it didn't work (I got can chdir to directory messages in the log). I am now
wondering though if I should have created the Maildir owned by a particular
user - any info?

One more thing. Can I put the |script type construct in the .qmail-log file
to process the messages myself? If so, I am not sure how it works. Does
this mean that the routine you specify will get the whole message on STDIN?
Does the system expect any output or can you do anything you like with the
message in the script?

Any help appreciated. I am very impressed with qmail so far, although the
docs could be better I think (and yes, for once I did read everything I
could find before posting).

Thanks



RE: new environment variable for qmail-local!!

1999-06-28 Thread Anonymous


Try:

struct stat filesize_stat;
char filesize_str[30];

if ( !fstat(0, &filesize_stat) && filesize_stat )
if ( sprintf(filesize_str, "%i", filesize_stat.st_size) )
   env_put2("MESSAGESIZE", filesize_str);

Warning: This is not debugged, just off the top of my head.

 - David Harris
   Principal Engineer, DRH Internet Services


-Original Message-
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent:   Monday, June 28, 1999 10:54 AM
To: [EMAIL PROTECTED]
Subject:new environment variable for qmail-local!!

hi,

some days ago i posted to this list asking for the possibility to add a
environment variable to qmail-local.
here again my question:
anybody got an idea how to add an environment variable MESSAGESIZE to
qmail-local? this would be great
for message routing depending on their size.
i tried this with several `wc -c` commands but it's is not a good
approach. working with env var. would be
much more better!

i am a poor programmer so i do not have any idea how to add this feature
to qmail-local. i had a look into
the sources and i found the place where all the other env. var. are set.
i think it must be easy for a skilled
programmer to add a system-call getting the message size from the file
in the mess directory!

regards
jodok



Re: Mbox to Maildir conversion issues

1999-06-28 Thread Anonymous


On 28 Jun 1999 17:55:16 -0400  [EMAIL PROTECTED]
wrote:

> Once you have both, the appropriate command is:
> 
>formail -I 'From ' -s safecat MAILDIR/tmp MAILDIR/new
> 
> Note also that safecat can store anything you like in a Maildir. Some
> of DJB's tools, notably serialmail, assume that the messages were
> delivered by qmail; in particular they assume that "Return-Path" and
> "Delivered-To" are the first two headers in the message, in that
> order.

I wrote Yet Another program to deliver to maildirs.  It is more
specific to delivering email than safecat.

- temporary errors are reported with exit code 111 (if running under
  sendmail) or 75 otherwise for sendmail and its clones

- $RPLINE and $DTLINE are added, if present in the environment

  This just sounds strange; much in the way that Dan provides
  'forward' a maildir writer is useful from scripts sometimes.

- If $RPLINE is not present the first line of the input is
  examined and if it is a "From " line it is translated to
  a Return-Path line.

Available from:

  ftp://ftp.nemeton.com.au/pub/src/deliver-maildir.shar

Regards,

Giles





RE: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous


I got around this with a wrapper before and after checkpassword.. I call it
logpopauth-pre and logpopauth-post. It is written in perl and works quite
fine with both tcpserver and inetd.

The logpopauth-pre program sets up a filehandle to whatever you want to log
to, places the fd number in the environment, and execs checkpassword. Then
logpopauth-post runs right after checkpassword and prints the authentication
line out to fd identified in the environment, closes the fd, and then execs
qmail-pop3d.

This is a part of my POP before SMTP-replay package, smtp-poplock:

http://www.davideous.com/smtp-poplock/

Or just grab the two files you need:


http://www.davideous.com/smtp-poplock/distrib/smtp-poplock-2.01/logpopauth-p
re

http://www.davideous.com/smtp-poplock/distrib/smtp-poplock-2.01/logpopauth-p
ost

Note: you will have to slightly modify logpopauth-pre to not read
configuration from /etc/smtp-poplock.conf, but this should be a snap to do.

 - David Harris
   Principal Engineer, DRH Internet Services


-Original Message-
From:   Albert Hopkins [mailto:[EMAIL PROTECTED]]
Sent:   Monday, June 28, 1999 11:46 AM
To: Qmail Mailing List
Subject:does qmail-pop3d not record logins?


I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
my log files.  Does qmail-pop3d not support this?




--
Albert Hopkins
Sr. Systems Specialist
Dynacare, Inc
[EMAIL PROTECTED]



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

On Mon, Jun 28, 1999 at 11:39:07PM +0200, Stefan Paletta wrote:
> Albert Hopkins wrote/schrieb/scribsit:
> > I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
> > my log files.  Does qmail-pop3d not support this?
> 
> $ cat /var/qmail/bin/qmail-pop3d-log
> #!/bin/sh
> logger -p local2.info -t pop3d "$USER logged in from $TCPREMOTEHOST [$TCPREMOTEIP]"
> exec /var/qmail/bin/qmail-pop3d $1

Or... to use Russ's original number of messages post:

--
#!/bin/sh

NEW=`ls $1/new|wc -l | sed 's; ;;g'`
OLD=`ls $1/cur|wc -l | sed 's; ;;g'`

logger -p local2.info -t qmail-pop3d "User $USER messages: $NEW new, $OLD old: 
Accessing from $TCPREMOTEIP"

exec /var/qmail/bin/qmail-pop3d $1
--

-- 
Brad Shelton  On Line Exchange  http://ole.net

810.939.7604Phone - Tech Support
810.264.7051Fax   - Tech Support
313.961.7100Phone - Main Office
313.961.7101Fax   - Main Office



Re: Mbox to Maildir conversion issues

1999-06-28 Thread Anonymous

Albert Hopkins <[EMAIL PROTECTED]> writes:

> ...My problem now is getting mail from users stored in ~/Mailbox to
> convert to Maildir...Is there a utility or spec to do this?

Yes, there is: formail (part of the procmail package) to split the mbox,
and safecat to deposit each one in a maildir. You can get safecat at my
web page: .

Once you have both, the appropriate command is:

   formail -I 'From ' -s safecat MAILDIR/tmp MAILDIR/new

Note also that safecat can store anything you like in a Maildir. Some
of DJB's tools, notably serialmail, assume that the messages were
delivered by qmail; in particular they assume that "Return-Path" and
"Delivered-To" are the first two headers in the message, in that
order.

Len.

-- 
It is not good to accept the person of the wicked, to overthrow the
righteous in judgment. --Proverbs 18:5



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Albert Hopkins wrote/schrieb/scribsit:
> I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
> my log files.  Does qmail-pop3d not support this?

$ cat /var/qmail/bin/qmail-pop3d-log
#!/bin/sh
logger -p local2.info -t pop3d "$USER logged in from $TCPREMOTEHOST [$TCPREMOTEIP]"
exec /var/qmail/bin/qmail-pop3d $1

Stefan
 



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Balazs Nagy writes:
 > On Mon, 28 Jun 1999, Russell Nelson wrote:
 > 
 > > Balazs Nagy writes:
 > >  > And where will you log?  I think you'll directly to stdout...
 > > 
 > > If you're using inetd, sure.  Inetd is stupid, broken, and susceptible
 > > to slow-motion denial of service attacks.  Don't use it.  Use
 > > tcpserver instead.
 > 
 > ;) Iam using supervise/tcpserver.  AFAIK qmail-popup dup(2)s stdout to
 > stderr just before checkpassword (line 91), due to the stupidity of some
 > inetd implementations.

Damn.  Could be.  Well, thanks for checking it.  :(

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999, Russell Nelson wrote:

> Balazs Nagy writes:
>  > And where will you log?  I think you'll directly to stdout...
> 
> If you're using inetd, sure.  Inetd is stupid, broken, and susceptible
> to slow-motion denial of service attacks.  Don't use it.  Use
> tcpserver instead.

;) Iam using supervise/tcpserver.  AFAIK qmail-popup dup(2)s stdout to
stderr just before checkpassword (line 91), due to the stupidity of some
inetd implementations.
-- 
Regards: Kevin (Balazs)



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Balazs Nagy writes:
 > And where will you log?  I think you'll directly to stdout...

If you're using inetd, sure.  Inetd is stupid, broken, and susceptible
to slow-motion denial of service attacks.  Don't use it.  Use
tcpserver instead.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999, Russell Nelson wrote:

> Albert Hopkins writes:
>
> > I've got qmail-pop3d piped to splogger, but I am not seeing any logins
> > in my log files.  Does qmail-pop3d not support this?
> 
> qmail-pop3d has nothing to say about what it does.  You could write a
> shell script wrapper around any one of qmail-popup, checkpassword, or
> qmail-pop3d.  For the latter, e.g.:
> 
> #!/bin/sh
> NEW=`ls $1/new|wc -l`
> echo "$USER has $NEW new messages" >&2
> exec /var/qmail/bin/qmail-pop3d $1

And where will you log?  I think you'll directly to stdout...

[root@zweiblumen /var/qmail/bin]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user julian7
+OK 
pass xxx
julian7 has   1 new messages
+OK 

By the way I don't think it's a HA solution but sounds good ;)
-- 
Regards: Kevin (Balazs)



Re: onelist.com?

1999-06-28 Thread Anonymous

Dave Kitabjian wrote:
> 
> Does anyone know if "onelist.com" uses Qmail/ezmlm?
> 
> We seem to get a lot of mail to our customers from "onelist.com" of the form:
> 
> <[EMAIL PROTECTED]>
> 
> Or do other mailing lists use the "joeuser=domain.com" syntax?
> 
Yes, we use qmail. Everything else is custom written. VERPs are great
for bounce handling.

Cheers,


Mark
ONElist Team



Re: help with Child Crashing during delivery

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999 14:42:11 -0400, Peter Mahnke wrote:

>930589844.541445 delivery 74: deferral: Aack,_child_crashed._(#4.3.0)/

This is the only line in your except that refers to delivery 74. Most
likely, you have a program delivery in the particular .qmail file and
that program crashes. If delivery 77 is a result of delivery 74, then
you probably have a program further down than "vdeliver" that crashes.
This causes redelivery to the .qmail file with redelivery to "vdeliver"
and your crashing program, etc, etc.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




Re: onelist.com?

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999 13:33:09 -0400, Dave Kitabjian wrote:

>Does anyone know if "onelist.com" uses Qmail/ezmlm?

They used to use ezmlm+ezmlm-idx, but seem to have since made their own
software (strongly ezmlm-influenced) that uses a database back-end.
Their system appears user centered whereas ezmlm is list centered. They
also acknowledge MySQL, so my guess is that they use a MySQL database
with a user table, a list table, and a table that links user<->list.
This makes it easy to list all the lists you're a subscriber of when
you log in to their site (in contrast to std ezmlm where you'd have a
table per list).

They do appear to use essentially straight qmail.

<[EMAIL PROTECTED]>

A guess is that for errors-default they use ezmlm-weed pretty much as
is, then a hacked version of ezmlm-return. "joeuser=domain.com" is
standard VERP per DJB. "159" is the message number. "34435" is most
likely the record number of this list in the list table. With a
user-centered approach it becomes easiest to keep track of bounces per
user [as opposed to per list per user as for std ezmlm]. Probably, they
store bounces in the database rather than as 2 files as ezmlm does. I
don't know if they tell users about messages missed (as ezmlm) or just
unsubscribe them after a given number/density of bounces. The latter is
less "proper" but a lot less resource-using.

ezmlm uses listlocal-return- in place of "errors-". It does this since
it is mainly to allow different users on a system to create independent
lists. You'd need a .qmail link (or users/assign entry) per list, which
scales poorly for very many lists. Setting the return address as
onelist.com does allows the use of a single link, and of course they
[presumably] handle all the lists under a single "unix" user.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




help with Child Crashing during delivery

1999-06-28 Thread Anonymous

Hello,

I have a problem with deliveries of mail seeming to crash in the server
during delivery.  The mail headers get delivered, but the system attempts to
redeliver the email every minute or so, crashing , but devilering the
headers, creating a real headache

I have included the qmail log as well as a few diagnostic programs.

Also, I am running vmailmgr... but there are no errors in its log file.

Any ideas?

Thanks in advance,

Peter Mahnke


/var/log/qmail/currentlog OUTPUT

930589844.541360 starting delivery 77: msg 72873 to local
[EMAIL PROTECTED]
930589844.541414 status: local 2/10 remote 1/20
930589844.541445 delivery 74: deferral: Aack,_child_crashed._(#4.3.0)/
930589844.541487 status: local 1/10 remote 1/20
930589844.649928 delivery 77: success:
vdeliver:_Delivered_to_maildir:_./users/vbuddha/did_0+0+1/
930589844.649988 status: local 0/10 remote 1/20
930589844.650019 end msg 72873
930589850.387299 delivery 76: success:
205.180.60.13_accepted_message./Remote_host_said:_250_ok_dirdel/
930589850.387367 status: local 0/10 remote 0/20
930589850.387420 end msg 72874




QMAIL-QREAD OUTPUT

bash# /var/qmail/bin/qmail-qread
25 Jun 1999 04:56:45 GMT  #72889  3667  <[EMAIL PROTECTED]>
local   [EMAIL PROTECTED]
26 Jun 1999 23:15:50 GMT  #72869  7144  <[EMAIL PROTECTED]>
local   [EMAIL PROTECTED]
28 Jun 1999 15:01:39 GMT  #72870  1140  <[EMAIL PROTECTED]>
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
27 Jun 1999 18:01:40 GMT  #72871  3423  <>
remote  [EMAIL PROTECTED]
28 Jun 1999 15:03:15 GMT  #72872  1181  <[EMAIL PROTECTED]>
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]
local   [EMAIL PROTECTED]



QMAIL-QSTAT OUTPUT

bash# /var/qmail/bin/qmail-qstat
messages in queue: 5
messages in queue but not yet preprocessed: 0



QMAIL-SHOWCTL OUTPUT

bash# /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 80, 81, 82, 0, 83, 84, 85, 86.
group ids: 80, 81.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is baby.internal.network.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is baby.internal.network.

defaulthost: (Default.) Default host name is baby.internal.network.

doublebouncehost: (Default.) 2B recipient host: baby.internal.network.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is baby.internal.network.

helohost: (Default.) SMTP client HELO host name is baby.internal.network.

idhost: (Default.) Message-ID host name is baby.internal.network.

localiphost: (Default.) Local IP address becomes baby.internal.network.

locals:
Messages for baby.internal.network are delivered locally.

me: My name is baby.internal.network.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is baby.internal.network.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at baby.internal.network.
SMTP clients may send messages to recipients at transitionelement.com.
SMTP clients may send messages to recipients at boilard.com.
SMTP clients may send messages to recipients at siteforyou.com.
SMTP clients may send messages to recipients at siteforher.com.
SMTP clients may send messages to recipients at siteforhim.com.
SMTP clients may send messages to recipients at baramerica.com.
SMTP clients may send messages to recipients at computerclassifieds.com.
SMTP clients may send messages to recipients at bwanazulia.com.
SMTP clients may send messages to recipients at queenswest.com.
SMTP clients may send messages to recipients at atwood.org.
SMTP clients may send messages to recipients at mahnke.net.
SMTP clients may send messages to recipients at tannic.com.
SMTP clients may send messages to recipients at marinucci.com.
SMTP clients may send messages to recipients at vbuddha.com.
SMTP clients may send messages to recipients at web-reports.net.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 baby.internal.network.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.



virtualdomains:
Virtual domain: transitionelement.com:transitionelement
Virtual domain: boilard.com:boilard
Virtual domain: siteforyou.com:siteforyou
Virtual dom

Re: onelist.com?

1999-06-28 Thread Anonymous

On Mon, Jun 28, 1999 at 01:33:09PM -0400, Dave Kitabjian wrote:
> Does anyone know if "onelist.com" uses Qmail/ezmlm?

They at least use qmail :

orion:/var/named/sirius $ telnet www.onelist.com 25
Trying 209.207.164.201...
Connected to www.onelist.com.
Escape character is '^]'.
220 onelist.com ESMTP
help
214 qmail home page: http://pobox.com/~djb/qmail.html


Cheers,
Olivier



onelist.com?

1999-06-28 Thread Anonymous


Does anyone know if "onelist.com" uses Qmail/ezmlm?

We seem to get a lot of mail to our customers from "onelist.com" of the form:

<[EMAIL PROTECTED]>

Or do other mailing lists use the "joeuser=domain.com" syntax?

Dave



Re: PTR issue / question

1999-06-28 Thread Anonymous

Quoting Scott D. Yelich ([EMAIL PROTECTED]):
> > > > Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
> > > > dig -x output...
> > > > ;; ANSWER SECTION:
> > > > 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
> > > > 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
> 
> Well, I don't want to get into a pissing contest -- but I hate to make
> hacks on software (ie: qmail/tcp-env) to allow a special case to work. 
> I'm going to wait and continue to investigate if this is a tcp-env snafu
> or a loose bind implementation, etc.

The problem here is, as DJB pointed out, tcp wrappers can't do a
lookup on 216.221.160.30 and cobalt.propagation.net and get the
responses to jive.  cobalt.propagation.net=216.221.160.30 but
216.221.160.30=cobalt.  Why do you have two PTR entries?  The second,
correct PTR record is sufficient, unless I'm really missing something.

Tcp wrappers behaves like this if compiled with D_PARANOID set or
something, or "ALL: PARANOID" is in /etc/hosts.deny.

In any case, if you dropped the first entry, it would probably work
fine.  I'd just use tcpserver, really, as Dan suggested quite
vehemently :-).

Aaron



Re: does qmail-pop3d not record logins?

1999-06-28 Thread Anonymous

Albert Hopkins writes:
 > 
 > I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
 > my log files.  Does qmail-pop3d not support this?

qmail-pop3d has nothing to say about what it does.  You could write a
shell script wrapper around any one of qmail-popup, checkpassword, or
qmail-pop3d.  For the latter, e.g.:

#!/bin/sh
NEW=`ls $1/new|wc -l`
echo "$USER has $NEW new messages" >&2
exec /var/qmail/bin/qmail-pop3d $1

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: how to deal with mail over quota limit

1999-06-28 Thread Anonymous

On Mon, 28 Jun 1999 10:03:07 -0500, [EMAIL PROTECTED] wrote:

>What is the normal policy for handling email that goes
>over a users quota?

Looking at logs for a number of mailing lists, it's about 50:50. There
are even sites that bounce mail for "user is over hourly mail quota".

IMHO, you bounce mail for permanent problems, defer it for temporary
problems. Over quota is clearly a temporary problem.

Another interesting possibility is to do a quota check (soft) in .qmail
and redirect excess mail to a place where the customer can "buy it
out", i.e. they can pay for an increased quota or you deliver the
excess mail with an e.g. 7 day delay provided that the quota then
permits (else bounce). The first message to the "holding maildir"
generates a message directly to the users maildir informing him/her
about this.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




how to deal with mail over quota limit

1999-06-28 Thread Anonymous


What is the normal policy for handling email that goes
over a users quota?

Is the mail normally bounced back to the sender, just dropped
or something else?

I'm looking at adding user quota's to vchkpw, which uses a single
/etc/passwd user for all pop mail accounts. 

Ken Jones
Inter7



new environment variable for qmail-local!!

1999-06-28 Thread Anonymous

hi,

some days ago i posted to this list asking for the possibility to add a
environment variable to qmail-local.
here again my question:
anybody got an idea how to add an environment variable MESSAGESIZE to
qmail-local? this would be great
for message routing depending on their size.
i tried this with several `wc -c` commands but it's is not a good
approach. working with env var. would be 
much more better!

i am a poor programmer so i do not have any idea how to add this feature
to qmail-local. i had a look into
the sources and i found the place where all the other env. var. are set.
i think it must be easy for a skilled
programmer to add a system-call getting the message size from the file
in the mess directory!

regards
jodok




How do I fix up messages from broken SMTP clients?

1999-06-28 Thread Anonymous

Hi.
Two FAQ was found as mailer measures by which Message-ID/Date header 
was not put up.  
1. Header supplementation by qmail-inject which uses virtualdomain 
2. Ofmipd operates instead of qmail-smtpd.  

I want to supplement similar header with the qmail-smtpd unit.  
Please teach if you know such Patch or the method.  

-- Hideki



small "stat" bug in qmail-pop3d.c

1999-06-27 Thread Anonymous


Stat is only supposed to include un-marked-for-deletion messages for 
both the size and enumeration values, not just the size as qmail
is doing.


*** dist/qmail-1.03/qmail-pop3d.c   Mon Jun 15 03:53:16 1998
--- local/qmail-1.03/qmail-pop3d.c  Sun Jun 27 09:11:40 1999
***
*** 150,160 
  {
int i;
unsigned long total;
   
total = 0;
!   for (i = 0;i < numm;++i) if (!m[i].flagdeleted) total += m[i].size;
puts("+OK ");
!   put(strnum,fmt_uint(strnum,numm));
puts(" ");
put(strnum,fmt_ulong(strnum,total));
puts("\r\n");
--- 198,213 
  {
int i;
unsigned long total;
+   unsigned int count;
   
total = 0;
!   count = 0;
!   for (i = 0;i < numm;++i) if (!m[i].flagdeleted) {
! total += m[i].size;
! count += 1;
!   }
puts("+OK ");
!   put(strnum,fmt_uint(strnum,count));
puts(" ");
put(strnum,fmt_ulong(strnum,total));
puts("\r\n");



-- 
Aaron Nabil



Re: PTR issue / question

1999-06-26 Thread Anonymous

-BEGIN PGP SIGNED MESSAGE-



On Sat, 26 Jun 1999 [EMAIL PROTECTED] wrote:
> > > Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
>gethostbyname(cobalt) failed
> > > Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
> > > dig -x output...
> > > ;; ANSWER SECTION:
> > > 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
> > > 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
> > > Since I don't know... I'm asking... is that reverse pointer for that
> > > host wrong?  It can't be just cobalt. and/or there can't be two?
> > yes. it might be (on a private network using IP, but this isn't). 
> > there can only be one. 
> There CAN be more than one.  I've used as many as 7 PTR's on one IP before.
> Maybe there's not _supposed_ _to_ be, but it _can_ be.  Maybe qmail won't
> support more than one, but it can get more than one.  I did get all 7 PTRs
> and the above example shows that the 2 records do come through.  So why
> would BIND support it if it's not supposed to be?


Well, I don't want to get into a pissing contest -- but I hate to make
hacks on software (ie: qmail/tcp-env) to allow a special case to work. 
I'm going to wait and continue to investigate if this is a tcp-env snafu
or a loose bind implementation, etc.

Scott



-BEGIN PGP SIGNATURE-
Version: 2.6.2

iQCVAwUBN3VboB4PLs9vCOqdAQGUIwQAymeOxvWLEEx8HrVxw9tAvROmn7gwC8Eu
5ZSvpD9JeTQyjIoFP6WD00hjienJy323PFoPVd1mEdPMg5iXVpOYI1O7tkTIE57g
TsKH/ct2vmn/oY7KLgtfZafd0BpPzDpke9rfeYrKTkvaD7Lqw2xWaFnFVIeFjN9u
lU8DVhXZHys=
=o0sd
-END PGP SIGNATURE-



Re: qmail-pop3d.init

1999-06-26 Thread Anonymous

> Second: what do you think would happen (in less than half of a second) if
> qmail-pop3d would be exceuted before qmail?

Third: Why do you think qmail-pop3d depends on qmail running? All it does
is pop messages from users' Maildirs. You can use it e.g. to give pop3
access to files placed into the Maildir by anyone/anything.

-Sincerely, Fred
Frederik Lindberg, Inf. Dis, WashU, St. Louis, MO



Re: PTR issue / question

1999-06-26 Thread Anonymous



On Sat, 26 Jun 1999 [EMAIL PROTECTED] wrote:

> 
> There CAN be more than one.  I've used as many as 7 PTR's on one IP before.
> Maybe there's not _supposed_ _to_ be, but it _can_ be.  Maybe qmail won't
> support more than one, but it can get more than one.  I did get all 7 PTRs
> and the above example shows that the 2 records do come through.  So why
> would BIND support it if it's not supposed to be?

But what use?
How do you receive it correctly?
A PTR record is used to get the name belonging to an ip address. This
means that if an address has more than one, than which do you receive it?

If it is given back randomly, then it is unreliable, for selectively
allowing access according to that.
If always the same one is given back, then you don't get the others, hence
no use...
If all is given back, then you always has to choose of them, and it just
don't feel right to me, anyway.

Robert Varga



Re: PTR issue / question

1999-06-26 Thread Anonymous

Richard Letts wrote:

> On Sat, 26 Jun 1999, Scott D. Yelich wrote:
> 
> > Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
>gethostbyname(cobalt) failed
> > Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
> > 
> > dig -x output...
> > ;; ANSWER SECTION:
> > 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
> > 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
> >  
> > Since I don't know... I'm asking... is that reverse pointer for that
> > host wrong?  It can't be just cobalt. and/or there can't be two?
> 
> yes. it might be (on a private network using IP, but this isn't). 
> there can only be one. 

There CAN be more than one.  I've used as many as 7 PTR's on one IP before.
Maybe there's not _supposed_ _to_ be, but it _can_ be.  Maybe qmail won't
support more than one, but it can get more than one.  I did get all 7 PTRs
and the above example shows that the 2 records do come through.  So why
would BIND support it if it's not supposed to be?

-- 
Phil Howard | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  phil  | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  at| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  ipal  | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
 dot| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  net   | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]



Re: PTR issue / question

1999-06-26 Thread Anonymous



On Sat, 26 Jun 1999, Scott D. Yelich wrote:

> -BEGIN PGP SIGNED MESSAGE-
> 
> 
> 
> Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
>gethostbyname(cobalt) failed
> Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
> 
> dig -x output...
> ;; ANSWER SECTION:
> 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
> 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
> 
> 
> Since I don't know... I'm asking... is that reverse pointer for that
> host wrong?  It can't be just cobalt. and/or there can't be two?

Correct.  Well, there can be two, actually, and nobody will complain as
long as all PTRs are valid.  Here, one of them is broken, and that's what
tcp-env is complaining about.




Re: PTR issue / question

1999-06-26 Thread Anonymous

On Sat, 26 Jun 1999, Scott D. Yelich wrote:

> Jun 26 01:10:23 ns1 tcp-env[4348]: warning: can't verify hostname: 
>gethostbyname(cobalt) failed
> Jun 26 01:10:23 ns1 tcp-env[4348]: refused connect from 216.221.160.30
> 
> dig -x output...
> ;; ANSWER SECTION:
> 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.
> 30.160.221.216.in-addr.arpa.  11h22m24s IN PTR  cobalt.propagation.net.
>  
> Since I don't know... I'm asking... is that reverse pointer for that
> host wrong?  It can't be just cobalt. and/or there can't be two?

yes. it might be (on a private network using IP, but this isn't). 
there can only be one. 

RjL



CNAME Patch Didn't Stop the Problem

1999-06-25 Thread Anonymous

HELP!  We have just finished cutting over to an new Ultra 1 Server Running Solaris 2.7 
and Qmail 1.03.  
Everything appeared to be fine until we had run for about a day.  E-mail just started 
building up in the qmail queue, with none getting in or out.  
I have checked syslog and continue to see the following error whenever the problem 
occurs:

CNAME_lookup_failed_temporarily
Usually these are AOL addresses but I get it on several others too.

Yes, I have seen the blurb on the qmail.org website which lists this problem and a 
patch to fix it, the only problem is that we have install the 1.03 patch and we are 
still having the same problem.  Another thing which seems different that what everyone 
else is reporting on this issue is that  this problem stops all email until I reboot 
the server, sometimes it takes two reboots.  It anyone has any ideas or suggestions I 
would  greatly appreciate your help.  Thanks, Matt Morton
[EMAIL PROTECTED]



Re: qmail-pop3d.init errors

1999-06-25 Thread Anonymous

Alex's qmail-pop3d does listen to port 110.  It is accesible from his
local network, but not from the "outside".

His HOST in qmail-pop3d.init is 

HOST=$($QMAILHOME/bin/dnsfq $($QMAILHOME/bin/hostname))   

which gives r84aap011904.sbo-nwt.ma.cable.rcn.com.


Mate



qmail-pop3d.init

1999-06-25 Thread Anonymous

I just saw you message about the qmail-pop3d.init script.  You wrote:

--
To summarize the rpm installs symbolic links to the qmail-pop3d.init
script in the rc.d subdirectories. However it gives them numbers lower
than the qmail.init script. This means that the pop3d script executes
before the rest of qmail. Since it depends on other parts of the qmail
system it fails.
--

First: the rpm does (you need to use chkconfig to set up qmail-pop3d)

lrwxrwxrwx   1 root root   20 May  4 11:59 S80qmail.init -> 
../init.d/qmail.init
lrwxrwxrwx   1 root root   26 Jun 25 09:44 S83qmail-pop3d.init -> 
../init.d/qmail-pop3d.init

Second: what do you think would happen (in less than half of a second) if
qmail-pop3d would be exceuted before qmail?

Mate
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Quoting Russell Nelson <[EMAIL PROTECTED]>:

> |if echo $SENDER | grep internic; then forward other-email-box; fi
> ./Mailbox

Nearly there now, i've got the following:

.qmail
|if echo $SENDER | grep "[EMAIL PROTECTED]"; then forward chris-
[EMAIL PROTECTED] ;fi

.qmail-testdir
./Testdir/

.qmail-default
./Maildir/

Basically I don't include ./Maildir/ after the if statement on a new line 
because otherwise i get to copies of the mail.  Basically now any other mail 
apart from the ones in the if statements does not route the mail that does't 
match the critieria to the correct .qmail-default maildir!

I'm doing this on a test account so i can play i haven't done it on my main 
logics.co.uk virtual as i don't wanna loose mail!

Cheers,
Chris
--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Chris Bond writes:
 > Quoting Vince Vielhaber <[EMAIL PROTECTED]>:
 > 
 > > |if echo $SENDER | grep internic; then forward other-email-box
 > > ./Mailbox
 > 
 > Tried this and got the following:
 > 
 > Jun 25 14:00:43 trigger qmail: 930315643.589098 delivery 262: 
 > deferral: /bin/sh:_-c:_line_2:_syntax_error:_unexpected_end_of_file/

Try this:

|if echo $SENDER | grep internic; then forward other-email-box; fi
./Mailbox

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Quoting Vince Vielhaber <[EMAIL PROTECTED]>:

> |if echo $SENDER | grep internic; then forward other-email-box
> ./Mailbox

Tried this and got the following:

Jun 25 14:00:43 trigger qmail: 930315643.589098 delivery 262: 
deferral: /bin/sh:_-c:_line_2:_syntax_error:_unexpected_end_of_file/

Regards,
Chris
--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

On 25 Jun 1999, Chris Bond wrote:

> Where is a copy of mesg822 this qmail-get on the mailing list returns something 
> about virtuals!
> 
> What is the easiest way to do the following:
> 
> Any mail from [EMAIL PROTECTED] is fed to $USER/Qmail
> Any mail from [EMAIL PROTECTED] is fed to $USER/Imp
> etc
> 
> Any mail that doesn't meet these rules deliver to $USER/Maildir

Taken from one of Russ' previous replies on this same subject:


|if echo $SENDER | grep internic; then forward other-email-box
./Mailbox


Add the rules you'd like and change the last line to handle your
maildir delivery.  Take note, tho, $SENDER is the envelope sender 
address, not the From: address.  To get the From: address you'll 
need to use mess822 which is available on koobera.

Vince.
-- 
==
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
   # includeTEAM-OS2
Online Campground Directoryhttp://www.camping-usa.com
   Online Giftshop Superstorehttp://www.cloudninegifts.com
==





QMAIL / Exchange Server / DNS / Firewall

1999-06-25 Thread Anonymous

hi,
we are using qmail and exchange for a year now, qmail works perfectly,
exchange you can forget...

ok
let's say:
linux internet ip=3D 195.195.195.195 (official ip address)
linux intranet ip=3D10.1.1.1
exc intranet ip=3D10.1.1.2


* make sure you have a MX record for your domain pointing to your linux
machine. let's say domain.com
  something like domain.com IN MX 10 195.195.195.195 (of course user
your machine name instead of ip numbers)

* add domain.com into control/rcpthosts

* add the lines
domain.com:[10.1.1.2]
:smtp.your.provider

   the first lines tell qmail to forward all mail for domain.com to exc
(of course internet mail connector must be running there!)
   the second lines tell qmail to deliver all mail to your provider
(smart relay host). if you have permanent internet connection you can=20
   delete this line!

that's it!

jodok



Re: Mail sort without using procmail

1999-06-25 Thread Anonymous

Where is a copy of mesg822 this qmail-get on the mailing list returns something 
about virtuals!

What is the easiest way to do the following:

Any mail from [EMAIL PROTECTED] is fed to $USER/Qmail
Any mail from [EMAIL PROTECTED] is fed to $USER/Imp
etc

Any mail that doesn't meet these rules deliver to $USER/Maildir

Surely you can do this without feeding it to an external program i'm sure qmail 
can!

All mailing lists are subscribed as the main address ie. [EMAIL PROTECTED] for 
ease of maintence, I used to use [EMAIL PROTECTED] but it became a plain 
to maintain as some mailing lists would not let me post to them (I handled it 
via a .qmail-alias or whatever that had one line with the maildir to deliver 
to).

Cheers,
Chris
--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



qmail Digest 25 Jun 1999 10:00:01 -0000 Issue 682

1999-06-25 Thread Anonymous


qmail Digest 25 Jun 1999 10:00:01 - Issue 682

Topics (messages 27116 through 27165):

kill mail from remote user
27116 by: olli <[EMAIL PROTECTED]>
27119 by: Anand Buddhdev <[EMAIL PROTECTED]>
27123 by: Russell Nelson <[EMAIL PROTECTED]>
27125 by: Dave Sill <[EMAIL PROTECTED]>
27127 by: "Timothy L. Mayo" <[EMAIL PROTECTED]>

Mail sort without using procmail
27117 by: Chris Bond <[EMAIL PROTECTED]>
27118 by: Vince Vielhaber <[EMAIL PROTECTED]>
27132 by: Ray Marshall <[EMAIL PROTECTED]>
27133 by: Vince Vielhaber <[EMAIL PROTECTED]>
27142 by: Russell Nelson <[EMAIL PROTECTED]>
27143 by: Ray Marshall <[EMAIL PROTECTED]>
27148 by: Russell Nelson <[EMAIL PROTECTED]>

Pine Maildir Patch
27120 by: "Alex Miller" <[EMAIL PROTECTED]>

Mutt and Maildir
27121 by: "Alex Miller" <[EMAIL PROTECTED]>
27124 by: Mikko Hänninen <[EMAIL PROTECTED]>

Almost there.. thanks.  Need some more help
27122 by: [EMAIL PROTECTED]

What is *really* going on?
27126 by: "Mark E. Drummond" <[EMAIL PROTECTED]>

Implementation of Virtual Domains
27128 by: Dave Sill <[EMAIL PROTECTED]>
27130 by: "Fred Lindberg" <[EMAIL PROTECTED]>

running pop3d with a custom passwd backend
27129 by: Kiril Mitev <[EMAIL PROTECTED]>

Virtual Domains.
27131 by: Dave Sill <[EMAIL PROTECTED]>

DNS/CNAME failure...
27134 by: Murray Walker <[EMAIL PROTECTED]>
27135 by: [EMAIL PROTECTED]

qmail-pop3d.init errors
27136 by: Mate Wierdl <[EMAIL PROTECTED]>
27144 by: "Alex Miller" <[EMAIL PROTECTED]>
27145 by: Chris Johnson <[EMAIL PROTECTED]>
27146 by: Dave Sill <[EMAIL PROTECTED]>

remove all mail for a domain
27137 by: Van Liedekerke Franky <[EMAIL PROTECTED]>
27138 by: [EMAIL PROTECTED]
27139 by: Van Liedekerke Franky <[EMAIL PROTECTED]>
27140 by: "Petr Novotny" <[EMAIL PROTECTED]>
27141 by: Stefan Paletta <[EMAIL PROTECTED]>
27147 by: Van Liedekerke Franky <[EMAIL PROTECTED]>

Thanks!!
27149 by: "Alex Miller" <[EMAIL PROTECTED]>

unsent mail in the queue
27150 by: Ray Marshall <[EMAIL PROTECTED]>
27151 by: "Petr Novotny" <[EMAIL PROTECTED]>
27152 by: Ray Marshall <[EMAIL PROTECTED]>
27153 by: Ray Marshall <[EMAIL PROTECTED]>
27154 by: "Timothy L. Mayo" <[EMAIL PROTECTED]>
27159 by: Harald Hanche-Olsen <[EMAIL PROTECTED]>
27160 by: "Timothy L. Mayo" <[EMAIL PROTECTED]>

failure notice
27155 by: Dave Sill <[EMAIL PROTECTED]>

qmail-local
27156 by: Dave Sill <[EMAIL PROTECTED]>
27158 by: Marcel Dan <[EMAIL PROTECTED]>

purging spam - here's what's working for me
27157 by: Dave Kitabjian <[EMAIL PROTECTED]>

Secondary MX Delivery Problems (Returns)
27161 by: "Karl Lellman" <[EMAIL PROTECTED]>
27162 by: Richard Letts <[EMAIL PROTECTED]>

Mail sort without using procmail,
27163 by: Ray Marshall <[EMAIL PROTECTED]>

Getting mail for several domains
27164 by: Amit Vadehra <[EMAIL PROTECTED]>

QMAIL / Exchange Server / DNS / Firewall
27165 by: Achim Gosse <[EMAIL PROTECTED]>

Administrivia:

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

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

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

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


--



On Thu, 24 Jun 1999, Anand Buddhdev wrote:

Ok,thank you both. BTW: what error message will see banned person? 
& man  I should read if I wanna specify this message (if it
possble to have separate error reply to such people)?

> On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:
> control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
> to HUP qmail-send.
> > this should be ok!
> > do not forget to send a -HUP to qmail-send after editing the badmailfrom
> > file!
> > jodok
> > > Von:  olli [SMTP:[EMAIL PROTECTED]]
> > > Gesendet am:  Donnerstag, 24. Juni 1999 17:43
> > > Hi.
> > > We all at our office were tired of one person emailing us.. After a
> > > quick
> > > look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
> > > it
> > > enough to stop receiving mails from this guy , or I mess somth.? Any
> > > better solutions?
> > > Bye.Olli.


Bye.Olli.





On Thu, Jun 24, 1999 at 02:42:44PM -0300, olli wrote:

> On Thu, 24 Jun 1999, Anand Buddhdev wrote:
> 
> Ok,thank you both. BTW: what error message will see banned person? 
> & man  I should read if I wanna specify this message (if it
> possble to have separate error reply to such people)?

The sender will be told:

553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)

This response is built into qmail-smtpd. If you want to change it, you have
to edit

QMAIL / Exchange Server / DNS / Firewall

1999-06-25 Thread Anonymous
Title: QMAIL / Exchange Server / DNS / Firewall





Hello,


I need some help about qmail and firewall.




I want to set our exchange behind the firewall (ipchains with private ip's).
qmail is installed at the firewall computer and shall get the emails from our isp and forward it to our exchange server and vice versa.

how do i have to configure our dns (bind) qmail and exchange to do that?




thanks in advance


achim 





Getting mail for several domains

1999-06-25 Thread Anonymous

Hi,

I have a setup where i provide Internet email service to my customers.
I have a mail server in the US which receives all the amil for
domain1.com and domain2.com.
At this point i was just extracting the mail from these servers using
simple POP3 and distributing it to the users.
Now i would like to do this on Qmail. I need to Extract mail from the
POP3 server in the US and get the mail to my server . I need to extract
mail from different domains fron the POP3 server and get it to the same
machine but in different virtual domains.
The idea was to extract mail from the US and get it to my server.
Now if i set forwarding on the US server to my server... WHERE will the
mail go Suppose the mail bound to [EMAIL PROTECTED] gets forwarded to my
server , will it sit in the mail box of  User1 in the virtual domain
"domain1". This is because there might be different virtual domains with
the same name user User1 .
Will the mail when forwarded come to its specific location in the
virtual domain .
If not, what is the setting that i can use to get this done.
Also is there a way that i can get these mails without the forwarding
concept. Can i retreive these mails using POP3 retreival.
Please advise.
Thanks In anticipation
Amit



Re: Mail sort without using procmail,

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Russ wrote:

> Oh, well, the "proper" way to do it is create a .qmail file which
> mentions every Mailbox or Maildir you intend to deliver mail to.  Then 
> *if possible* you give out a user-mailbox name to separate the mail
> out.  Typically that's not always possible, so you put things like the 
> following into your .qmail file:
> 
> |condredirect "$USER-qmail" grep '^Delivered-To: mailing list 
>[EMAIL PROTECTED]$'
> |condredirect "$USER-spam" grep "^Subject: ADV'
> 
> Email headers are best parsed with Dan's mess822, as Vince pointed out.

Russ, although I did install mess822, I decided that for now, I would
use the "improper" way, that is to actually use my already rather large
~/.procmailrc file.  I just added the following to the end of the file:

:0:
$HOME/Mailbox

And created a ~/.qmail file that contains just this single line:

| preline procmail

For now, this works just fine for me.  Later, when I'm through figuring
out how to do all of the things I use to with sendmail, then maybe I'll
go back and try to figure out how to implement all of my procmail mappings
in ~/.qmail.

I thank you for your assistance, and your gracious willingness to help all
of us Qmail newbies.

Thanks  /  Ray
+
Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: Secondary MX Delivery Problems (Returns)

1999-06-24 Thread Anonymous

On Fri, 25 Jun 1999, Karl Lellman wrote:

> So my next question (as a non-programmer) is HELP!  Can someone have a look
> at the code that Tim was talking about below and give me some assistance on
> what I need to change in which file.

modify the routine smtp() to close the smtpfd socket and return if the
connection is dropped?

  if (smtpcode() != 220) { close(&smtpto); return; };

near the top should probably do the trick.

notes... because of the way your firewall works you can't rely on qmail's
tcpto mechanism to prevent excessive connections to the firewall if its
demarc/internet connection fails -- qmail can't tell if it;s a problem
with the firewall or the remote end of the smtp connection. otherwise I'd
have re-ordered the code around the call to smtp() not to mark the mta as
'up'.

a better alternative is to install qmail as the application-layer proxy in
the firewall. In fact this is definately the better technical solution.

Richard
 




Secondary MX Delivery Problems (Returns)

1999-06-24 Thread Anonymous

Guys,

I posted a message in to the mailing list a while ago (quite a while ago
actually) in regard to problems we were having with Qmail stepping to the
secondary MX/SMTP servers for a site when the primary failed.

After a lot of great help from the mailing list, we figured out that it was
actually the firewall (that Qmail was sitting behind) causing the problems.
The firewall is a proxy/application level based firewall and in the process
of proxying the connection out to the remote SMTP server, it is  accepting
the request from the Qmail server, then in turn trying the remote host,
timing out on the remote host and then dropping the connection that it had
already accepted from the Qmail server.

Because of the way that the Qmail MTA is written (thanks to Tim's
description below) it became apparent that Qmail will happily step to the
next MX record if it times out, but not if the connection is accepted and
then dropped.

I went off with this knowledge and worked my way through the support
processes with the firewall vendor and finally ended up talking to their
programmers/development team.  They agreed that the way in which their
firewall functions is creating the problem, and said that they would look
over the SMTP proxy code at some stage and maybe redevelop it, but that it
would be a major and they really thought that Qmail should deal with the
problem as that is a common way for all proxy/application level based
firewall to act.

Now rather than getting in a war with the firewall vendor or Dan, I've sat
back and decided that with the help of the mailing list, I'm far more likely
to get the Qmail code adjusted than getting the firewall code adjusted.
I've talked to a couple of guys who have written SMTP MTA's and they say
that they don't differentiate between a connection timeout or drop, they
just move on to the next MX record.

So my next question (as a non-programmer) is HELP!  Can someone have a look
at the code that Tim was talking about below and give me some assistance on
what I need to change in which file.

Thanks in advance.

Karl Lellman
Systems Consultant
Extranet Technologies Limited
Level 3, 60 Cook Street, Auckland, New Zealand
P.O. Box 7726, Wellesley Street, Auckland, New Zealand
Phone +64 9 3771122, Fax +64 9 3771109, Mobile +64 25 771188
e-mail:  [EMAIL PROTECTED]


-Original Message-
From: Tim Goodwin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 December 1998 23:56
To: [EMAIL PROTECTED]
Subject: Re: Secondary MX Delivery Problems


> Am I correct in understanding that if a SMTP server accepts the connection
> and then drops it that Qmail will assume that the secondary etc. servers
> will respond the same way and so keeps trying the primary server.  If so,
> will it only step down to the secondary if it can't find the primary at
all?

To lay this question to rest, here's some code at the end of
qmail-remote.c, with my annotations.

>   for (i = 0;i < ip.len;++i) if (ip.ix[i].pref < prefme) {

Loop through all the relevant IP addresses discovered from the MX
records.

> if (tcpto(&ip.ix[i].ip)) continue;

If we've recently timed out trying to connect to this address, skip it.

> smtpfd = socket(AF_INET,SOCK_STREAM,0);
> if (smtpfd == -1) temp_oserr();

Obtain the local end of the socket.

> if (timeoutconn(smtpfd,&ip.ix[i].ip,(unsigned int)
port,timeoutconnect) == 0) {

Attempt to make a connection.  If it succeeds: ...

>   tcpto_err(&ip.ix[i].ip,0);
>   partner = ip.ix[i].ip;

...mark this IP address as OK; stash it for later retrieval; and...

>   smtp(); /* does not return */
> }

...try to send the mail.  (The comment is Dan's, and is---needless to
say---accurate.)

> tcpto_err(&ip.ix[i].ip,errno == error_timeout);
> close(smtpfd);
>   }

If the connection attempt didn't succeed: check for a timeout and record
it; tidy up the socket; and loop round for the next address.

>   temp_noconn();

If we tried all the addresses, it's a temporary failure.

The important thing to notice is that *if* timeoutconn() to a particular
address succeeds, i.e. *if* we establish a TCP connection, then we
irrevocably go into the smtp() function, and no more addresses will be
tried.

Tim.



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

I am aware of this risk.  Which is why I worded it as I did.  I personally
do not age any mail with a valid to address.  At worst under your
scenario, I bounce a message after only one delivery attempt.  The message
is still not "lost".

The real problem with aging the mail while qmail is delivering the mail is
if it get delivered, the inode number is NOT immediately reused and I
touch the info file for a non-existant message.  Again, because of the way
I use this, the chances are small.

On Thu, 24 Jun 1999, Harald Hanche-Olsen wrote:

> + "Timothy L. Mayo" <[EMAIL PROTECTED]>:
> 
> | Changing timestamps while qmail is running is "fairly" safe.
> 
> Indeed, the one and only danger in doing that is the tiny risk that,
> between the time you identified the message whose time stamp needs
> changing and your doing it, that message has left the queue and a new
> one has taking its place.  For messages that have been sitting in the
> queue for a long time, that is a tiny risk indeed, but still nonzero.
> And perhaps bigger than you might think, because message numbers are
> frequently reused, as a quick look at a typical qmail log file will
> show.
> 
> - Harald
> 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.  http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810- Phone
(412) 810-8886 Fax



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

+ "Timothy L. Mayo" <[EMAIL PROTECTED]>:

| Changing timestamps while qmail is running is "fairly" safe.

Indeed, the one and only danger in doing that is the tiny risk that,
between the time you identified the message whose time stamp needs
changing and your doing it, that message has left the queue and a new
one has taking its place.  For messages that have been sitting in the
queue for a long time, that is a tiny risk indeed, but still nonzero.
And perhaps bigger than you might think, because message numbers are
frequently reused, as a quick look at a typical qmail log file will
show.

- Harald



Re: qmail-local

1999-06-24 Thread Anonymous

Marcel Dan <[EMAIL PROTECTED]> wrote:
>
>I am unsure of how to change the default route of qmail for the entire
>server.  I am using qmail with vchkpw so the domain is not virtual but
>the users are and the message gets delivered by defualt into a users
>/home/directory (which doesn't exist).  Everything else is working so
>that I can upload messages and relay...etc.
>I sincerely apprectiate any information/help.

I'm not familiar with vchkpw, but it's not clear exactly what you're
trying to accomplish. Does delivery to real users work? Have you
created maildirs for the virtual users?

-Dave



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

Changing timestamps while qmail is running is "fairly" safe.  The only
file you should need to change is the one under /var/qmail/queue/info.
None of the others need to be changed.

I have a small script that does this for me based on the message number
from qmail-qread output.

=== begin script
#! /sbin/sh
dir=`expr $1 % 23`
echo aging $dir/$1
touch -t 19700101 $dir/$1
=== end script

If you have modified the number of hash directories in qmail you will need
to modify the "dir=" line.  (qmail defaults to 23.)  You will also need to
use the correct path for sh in the first line.  This script runs on a DEC
Alpha box running DEC Unix.

I store the script in /var/qmail/queue/info and run it from there.

On Thu, 24 Jun 1999, Ray Marshall wrote:

> For the curious, I got an answer from Petr Novotny, to my question about
> removing queued messages.  First he said there is no such command.  Then,
> the rest of his message showed me how.
> 
>   1. I used qmail-qread to find out what's in the queue, and made note
>  of the message ID #s.
>   2. touch -t 01011970 -c `find /var/qmail/queue -name "" -print`
>   3. killall -ALRM qmail-send
> 
> All messages bounced back to me, as undeliverable.
> 
> I should point out that Petr made it VERY clear that I should stop
> qmail-send first.  But one needs a little risk in their life, so I
> decided to attempt the above without stopping it.  Besides, I was just
> changing timestamps, not the files themselves.  Maybe someone who knows
> the internals of qmail-send can tell us if there was any real risk in
> not stopping it before changing the timestamps.
> 
> On Thu, 24 Jun 1999, Petr's answer to the above:
> 
> > This time, you weren't. By messing, I meant renaming, unlinking 
> > etc. touch is safe. On the other side, you're never too careful :-)
> 
> Again, Thanks Petr  /  Ray
> +
> Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
> Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
> Work: [EMAIL PROTECTED]
> 
> 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.  http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810- Phone
(412) 810-8886 Fax



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

For the curious, I got an answer from Petr Novotny, to my question about
removing queued messages.  First he said there is no such command.  Then,
the rest of his message showed me how.

  1. I used qmail-qread to find out what's in the queue, and made note
 of the message ID #s.
  2. touch -t 01011970 -c `find /var/qmail/queue -name "" -print`
  3. killall -ALRM qmail-send

All messages bounced back to me, as undeliverable.

I should point out that Petr made it VERY clear that I should stop
qmail-send first.  But one needs a little risk in their life, so I
decided to attempt the above without stopping it.  Besides, I was just
changing timestamps, not the files themselves.  Maybe someone who knows
the internals of qmail-send can tell us if there was any real risk in
not stopping it before changing the timestamps.

On Thu, 24 Jun 1999, Petr's answer to the above:

> This time, you weren't. By messing, I meant renaming, unlinking 
> etc. touch is safe. On the other side, you're never too careful :-)

Again, Thanks Petr  /  Ray
+
Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

Petr,

Thank you very much; that's exactly what I was looking for.

I found three messages in the queue, that I want to just get rid of,
without any further attempts to deliver them.  Is there a command
for that, too?

Thanks  /  Ray
+
Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: unsent mail in the queue

1999-06-24 Thread Anonymous

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> I was browsing around in /var/qmail/queue , and discovered some mail
> that I had sent, but that obviously had not yet left my machine.  What
> command to I issue to cause Qmail to attempt to transmit it?

If you don't want to wait, do
qmail-tcpok
to clear out the table of non-responding hosts and send qmail-send 
SIGALRM (if you're using BSD'ish system like Linux, killall -ALRM 
qmail-send; if SysVish, kill -SIGALRM pid_of_qmail_send_process;
svc -a if running it under supervise).

> Aren't there also commands that will show me what's sitting in the various
> queues?  (With sendmail, I use to use `mailq" to see what's there, and
> `/usr/sbin/sendmail -q' to send mail them.)

qmail-qread (as root or qmailq user)

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

iQA/AwUBN3J9XFMwP8g7qbw/EQJLegCePEW+ED0FHRi+4AwWppr4YWNG5WIAn1U/
LCfc4qFKU77W8jQdmVZC7qCS
=1jd6
-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]



unsent mail in the queue

1999-06-24 Thread Anonymous

I was browsing around in /var/qmail/queue , and discovered some mail
that I had sent, but that obviously had not yet left my machine.  What
command to I issue to cause Qmail to attempt to transmit it?

Aren't there also commands that will show me what's sitting in the various
queues?  (With sendmail, I use to use `mailq" to see what's there, and 
`/usr/sbin/sendmail -q' to send mail them.)

Thanks  /  Ray
+
Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]





Thanks!!

1999-06-24 Thread Anonymous

Thanks for the flurry of helpful advice I've just recieved.
As per good advice, I've already deleted the guest shell account, and
changed passwords.
When I get home from work, I'll try out these suggestions.

Alex



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

Ray Marshall writes:
 > Russ, I was just trying to find the information you gave us at the Linux
 > Expo.  I thought I remembered you showing us that we could add some lines
 > to ~/.qmail, to get it to redirect selected messages (according to text in
 > To:, CC:, or From: lines) into selected mailboxes in ~/mail ; and let all
 > other messages go into ~/Mailbox.  Can you post that information here,
 > or point us to where it's documented with examples.

Oh, well, the "proper" way to do it is create a .qmail file which
mentions every Mailbox or Maildir you intend to deliver mail to.  Then 
*if possible* you give out a user-mailbox name to separate the mail
out.  Typically that's not always possible, so you put things like the 
following into your .qmail file:

|condredirect "$USER-qmail" grep '^Delivered-To: mailing list [EMAIL PROTECTED]$'
|condredirect "$USER-spam" grep "^Subject: ADV'

Email headers are best parsed with Dan's mess822, as Vince pointed out.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



RE: remove all mail for a domain

1999-06-24 Thread Anonymous

thanks all for the help, this works just fine!

Franky

> --
> From: Petr Novotny[SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 24, 1999 6:21 PM
> To:   [EMAIL PROTECTED]
> Subject:  RE: remove all mail for a domain
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> > Nope,
> > 
> > because the domain is remote, changing virtualdomains won't cut it...
> 
> But it's a step in the right direction:
> 1. smtproutes entry
> domain.to.drop:127.0.0.1
> (make sure that 127.0.0.1 can relay, or put domain.to.drop in 
> rcpthosts too)
> 2. proceed with that virtualdomain stuff
> 3. When ready, HUP qmail-send
> 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.0.2 -- QDPGP 2.60 
> Comment: http://community.wow.net/grt/qdpgp.html
> 
> iQA/AwUBN3JbHlMwP8g7qbw/EQK82wCg3oraFgrtOuvnVoSg3aieCANLKIYAoKlY
> X/CFgMfeNllxbevwDPKr+VgS
> =tBWU
> -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]
> 



RE: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

"Alex Miller" <[EMAIL PROTECTED]> wrote:
>Mate asked:
>
>> What do  you get when, on mail.cybergood.net, you telnet to port 110
>> (copy the whole session except passwd, of course).
>
>start run telnet mail.cybergood.net 100
>(I get the hour glass - then a connect failed)

110 <> 100

-Dave



Re: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 11:49:40AM -0400, Alex Miller wrote:
> Mate asked:
> 
> > Yes, please give us much more details.  For example, how did you set
> > up the tcprules for qmail-pop3d on the server?
> 
> I didn't set up any. I thought I read every set of instructions I could find
> (even printing them out and organizing them - highlighting important stuff
> but I don't remember reading anything about setting up tcprules. I'll look
> again.
> 
> Mate asked:
> 
> > What do  you get when, on mail.cybergood.net, you telnet to port 110
> > (copy the whole session except passwd, of course).
> 
> Well I get nothing. Using the windows telnet client:
> 
> start run telnet mail.cybergood.net
> (I get a normal login)
> 
> start run telnet mail.cybergood.net 100
> (I get the hour glass - then a connect failed)

It's port 110, not 100. In any case, from where I'm sitting there doesn't
appear to be anything listening to port 110 on mail.cybergood.net.

If it works from your home LAN but not from anywhere else and you haven't set
up any tcp rules, then either you've bound tcpserver to just your internal
interface or your cable modem company is blocking the connection at their
routers. They don't seem to be blocking connections to other common ports (23,
25, 80 are the few that I checked) though.

What's the exact syntax of your tcpserver qmail-pop3d startup line? In
particular, what have you supplied for the "host" argument?

> I think you've hit on the problem, I need to set up tcp rules. I wonder why
> it succeeds though on my network? My Linux machine is locally 192.168.0.1
> and my windows machine is 192.168.0.2

If you don't have any tcp rules, then that's not your problem. Adding some when
you have none can only restrict what's allowed to connect.

Chris



RE: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

Mate asked:

> Yes, please give us much more details.  For example, how did you set
> up the tcprules for qmail-pop3d on the server?

I didn't set up any. I thought I read every set of instructions I could find
(even printing them out and organizing them - highlighting important stuff
but I don't remember reading anything about setting up tcprules. I'll look
again.

Mate asked:

> What do  you get when, on mail.cybergood.net, you telnet to port 110
> (copy the whole session except passwd, of course).

Well I get nothing. Using the windows telnet client:

start run telnet mail.cybergood.net
(I get a normal login)

start run telnet mail.cybergood.net 100
(I get the hour glass - then a connect failed)

I think you've hit on the problem, I need to set up tcp rules. I wonder why
it succeeds though on my network? My Linux machine is locally 192.168.0.1
and my windows machine is 192.168.0.2

> -Original Message-
> From: Mate Wierdl [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 24, 1999 11:11 AM
> To: Alex Miller
> Cc: Stewart Jeacocke; [EMAIL PROTECTED]
> Subject: Re: qmail-pop3d.init errors
>
>
>Stewart,
>
>You get the big reward for coming up with the solution to "most" of my
>pop-3d problems. What I don't understand is this. If the Memphis RPM
>automatically places in the directory /etc/rc3.d/ as
> Kqmail-pop3d.init
>instead of Sqmail-pop3d.init, how is it that the Memphis
> install works on
>any system? Is it random chance? For me the effect is clear.
> If I switch to
>S, reboot, I can get my mail through Pop (from my windows
> computer on my
>network using outlook). If I switch back to K, reboot, it
> fails. So your
>solution clearly works, but why is it apparently not necessary on most
>systems, since people do get the Memphis RPM to work without
> doing that.
>
>
> With  the memphis rpm, to start qmail-pop3d, just do
>
>   install checkpassword (rpm is in my ftp dir)
>
>   /etc/rc.d/init.d/qmail-pop3d.init start
>
> and to start it automatically at boot up, do
>
> chkconfig qmail-pop3d.init on
>
> If you decide not to run qmail-pop3d anymore, do
>
>/etc/rc.d/init.d/qmail-pop3d.init stop
>
>chkconfig qmail-pop3d.init off
>
> I will change the README in my ftp dir to make the staff about pop
> clearer.
>
>
>Now, I have a wierder problem with Pop3, which I really don't
> understand. I
>can get my mail fine now using outlook on a computer on my
> network using pop
>(due to your solution). However, when I go to work and attempt
> to get my
>mail, using the same settings in MS Outlook, I get a failure
> to connect to
>the server!
>
>The only difference is wether I am coming from the outside, or
> I'm using my
>own network. Am I missing something?
>
> Yes, please give us much more details.  For example, how did you set
> up the tcprules for qmail-pop3d on the server?
>
> What do  you get when, on mail.cybergood.net, you telnet to port 110
> (copy the whole session except passwd, of course).
>
> Mate
>



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Russ wrote:

> Ray Marshall writes:
>
>  > I believe that there's a way to do this with ~/.qmail , but I can't
>  > remember what the technique is.
> 
> Depends on whether you want to write into the Maildir yourself.  It's
> pretty low-tech, but if you don't, then do something like this (all on 
> one line):
> 
> |qmail-local "$USER" "$HOME" "$LOCAL" "" "nodeliver" "$HOST" "$SENDER"
> ./Maildir`program-to-select-maildir | sed 's/\./:/g'`
> 
> All that program-to-select-maildir has to do is print the name of the
> selected maildir to stdout.

Russ, I was just trying to find the information you gave us at the Linux
Expo.  I thought I remembered you showing us that we could add some lines
to ~/.qmail, to get it to redirect selected messages (according to text in
To:, CC:, or From: lines) into selected mailboxes in ~/mail ; and let all
other messages go into ~/Mailbox.  Can you post that information here,
or point us to where it's documented with examples.

Thanks  /  Ray
+
Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

Ray Marshall writes:
 > On 24 Jun 1999, Chris wrote:
 > > Does anybody know a decent program/script that can be called from .qmail
 > > to move messages according to to, cc, bcc, subject, etc into a certain
 > > Maildir?
 > >
 > > I don't want to use procmail!
 > 
 > I believe that there's a way to do this with ~/.qmail , but I can't
 > remember what the technique is.

Depends on whether you want to write into the Maildir yourself.  It's
pretty low-tech, but if you don't, then do something like this (all on 
one line):

|qmail-local "$USER" "$HOME" "$LOCAL" "" "nodeliver" "$HOST" "$SENDER"
./Maildir`program-to-select-maildir | sed 's/\./:/g'`

All that program-to-select-maildir has to do is print the name of the
selected maildir to stdout.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: remove all mail for a domain

1999-06-24 Thread Anonymous

Van Liedekerke Franky wrote/schrieb/scribsit:
> is there any simple way of removing all mail for a specific remote domain
> that's sitting in my queue?
> I was thinking of putting the domain in smtproutes and let it point to an
> another qmail machine, and there put the domain in virtualdomains and let it
> point to an alias that drops all mail.

Instead of sending it to another qmail machine, you can go on your own:
# cd /var/qmail/control
# echo "dropthisdomain.dom:[`hostname -f`]" >> smtproutes
# echo "dropthisdomain.dom" >> rcpthosts
# echo in case localhost is not a RELAYCLIENT
# echo "dropthisdomain.dom:alias-bitbucket" >> virtualdomains
# cd ../alias
# echo '#' > .qmail-bitbucket-default
# killproc -HUP /var/qmail/bin/qmail-send
# killproc -ALRM /var/qmail/bin/qmail-send

Then peek at the log and undo.

Stefan



RE: remove all mail for a domain

1999-06-24 Thread Anonymous

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Nope,
> 
> because the domain is remote, changing virtualdomains won't cut it...

But it's a step in the right direction:
1. smtproutes entry
domain.to.drop:127.0.0.1
(make sure that 127.0.0.1 can relay, or put domain.to.drop in 
rcpthosts too)
2. proceed with that virtualdomain stuff
3. When ready, HUP qmail-send

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

iQA/AwUBN3JbHlMwP8g7qbw/EQK82wCg3oraFgrtOuvnVoSg3aieCANLKIYAoKlY
X/CFgMfeNllxbevwDPKr+VgS
=tBWU
-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]



RE: remove all mail for a domain

1999-06-24 Thread Anonymous

Nope,

because the domain is remote, changing virtualdomains won't cut it...

Franky

> --
> From:
> [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 24, 1999 5:05 PM
> To:   [EMAIL PROTECTED]
> Subject:  AW: remove all mail for a domain
> 
> hi,
> you can try this:
> control/virtualdomains:
> domain.to.drop:dropit
> 
> ~alias/.qmail-dropit-default
> | echo "dropped email for "$DEFAULT"@domain.to.drop: sender was $SENDER"
> >> /tmp/droplog
> 
> jodok
> 
> ps: do not forget to send HUP to qmail-send after changing
> virtualdomains!
> 
> > -Ursprüngliche Nachricht-
> > Von:Van Liedekerke Franky
> [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:Donnerstag, 24. Juni 1999 17:00
> > An: 'qmail list'
> > Betreff:remove all mail for a domain
> > 
> > Hi,
> > 
> > is there any simple way of removing all mail for a specific remote
> > domain
> > that's sitting in my queue?
> > I was thinking of putting the domain in smtproutes and let it point to
> > an
> > another qmail machine, and there put the domain in virtualdomains and
> > let it
> > point to an alias that drops all mail.
> > 
> > Franky
> 



AW: remove all mail for a domain

1999-06-24 Thread Anonymous

hi,
you can try this:
control/virtualdomains:
domain.to.drop:dropit

~alias/.qmail-dropit-default
| echo "dropped email for "$DEFAULT"@domain.to.drop: sender was $SENDER"
>> /tmp/droplog

jodok

ps: do not forget to send HUP to qmail-send after changing
virtualdomains!

> -Ursprüngliche Nachricht-
> Von:  Van Liedekerke Franky [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Donnerstag, 24. Juni 1999 17:00
> An:   'qmail list'
> Betreff:  remove all mail for a domain
> 
> Hi,
> 
> is there any simple way of removing all mail for a specific remote
> domain
> that's sitting in my queue?
> I was thinking of putting the domain in smtproutes and let it point to
> an
> another qmail machine, and there put the domain in virtualdomains and
> let it
> point to an alias that drops all mail.
> 
> Franky



remove all mail for a domain

1999-06-24 Thread Anonymous

Hi,

is there any simple way of removing all mail for a specific remote domain
that's sitting in my queue?
I was thinking of putting the domain in smtproutes and let it point to an
another qmail machine, and there put the domain in virtualdomains and let it
point to an alias that drops all mail.

Franky



Re: qmail-pop3d.init errors

1999-06-24 Thread Anonymous

   Stewart,
   
   You get the big reward for coming up with the solution to "most" of my
   pop-3d problems. What I don't understand is this. If the Memphis RPM
   automatically places in the directory /etc/rc3.d/ as Kqmail-pop3d.init
   instead of Sqmail-pop3d.init, how is it that the Memphis install works on
   any system? Is it random chance? For me the effect is clear. If I switch to
   S, reboot, I can get my mail through Pop (from my windows computer on my
   network using outlook). If I switch back to K, reboot, it fails. So your
   solution clearly works, but why is it apparently not necessary on most
   systems, since people do get the Memphis RPM to work without doing that.


With  the memphis rpm, to start qmail-pop3d, just do 

  install checkpassword (rpm is in my ftp dir)

  /etc/rc.d/init.d/qmail-pop3d.init start

and to start it automatically at boot up, do 

chkconfig qmail-pop3d.init on

If you decide not to run qmail-pop3d anymore, do

   /etc/rc.d/init.d/qmail-pop3d.init stop

   chkconfig qmail-pop3d.init off

I will change the README in my ftp dir to make the staff about pop
clearer. 

   
   Now, I have a wierder problem with Pop3, which I really don't understand. I
   can get my mail fine now using outlook on a computer on my network using pop
   (due to your solution). However, when I go to work and attempt to get my
   mail, using the same settings in MS Outlook, I get a failure to connect to
   the server!
   
   The only difference is wether I am coming from the outside, or I'm using my
   own network. Am I missing something?

Yes, please give us much more details.  For example, how did you set
up the tcprules for qmail-pop3d on the server?  

What do  you get when, on mail.cybergood.net, you telnet to port 110
(copy the whole session except passwd, of course).

Mate



AW: DNS/CNAME failure...

1999-06-24 Thread Anonymous

there is a patch for this problem (DNS, > 512 bytes ...) have a look at
the top of www.qmail.org!!!

jodok


> -Ursprüngliche Nachricht-
> Von:  Murray Walker [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Donnerstag, 24. Juni 1999 16:45
> An:   [EMAIL PROTECTED]
> Betreff:  DNS/CNAME failure...
> 
> Hi all,
> 
> Another CNAME query. Mail to [EMAIL PROTECTED] fails from qmail sites
> with 
> the following message:-
> 
> Hi. This is the qmail-send program at hotmail.com.
> I'm afraid I wasn't able to deliver your message to the following
> addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> 
> <[EMAIL PROTECTED]>:
> CNAME lookup failed temporarily. (#4.4.3)
> I'm not going to try again; this message has been in the queue too
> long.
> 
> 
> Whereas, mail to [EMAIL PROTECTED] gets through ok. Our DNS is
> set up 
> as follows
> 
> @   IN  MX 5liddell.cstr.ed.ac.uk.
> IN  MX 8mailrelay.ed.ac.uk.
> 
> with the following entries for liddell...
> 
> liddell IN  A   129.215.91.1
> liddell IN  A   129.215.41.124
> 
> The qmail FAQ states that CNAME lookup failures are a result of
> nameservers 
> being down - but I've tried mailing to our site from qmail sites many
> times 
> when the nameserver has definitely been up and it always fails. Is
> there 
> something wrong with my DNS...? liddell is the router, nameserver and
> mailer 
> for our site.
> 
> Murray.
> 
> 
> __
> Get Your Private, Free Email at http://www.hotmail.com



DNS/CNAME failure...

1999-06-24 Thread Anonymous

Hi all,

Another CNAME query. Mail to [EMAIL PROTECTED] fails from qmail sites with 
the following message:-

Hi. This is the qmail-send program at hotmail.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
CNAME lookup failed temporarily. (#4.4.3)
I'm not going to try again; this message has been in the queue too long.


Whereas, mail to [EMAIL PROTECTED] gets through ok. Our DNS is set up 
as follows

@   IN  MX 5liddell.cstr.ed.ac.uk.
IN  MX 8mailrelay.ed.ac.uk.

with the following entries for liddell...

liddell IN  A   129.215.91.1
liddell IN  A   129.215.41.124

The qmail FAQ states that CNAME lookup failures are a result of nameservers 
being down - but I've tried mailing to our site from qmail sites many times 
when the nameserver has definitely been up and it always fails. Is there 
something wrong with my DNS...? liddell is the router, nameserver and mailer 
for our site.

Murray.


__
Get Your Private, Free Email at http://www.hotmail.com



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Ray Marshall wrote:

> On 24 Jun 1999, Chris wrote:
> 
> 
> > Does anybody know a decent program/script that can be called from .qmail
> > to move messages according to to, cc, bcc, subject, etc into a certain
> > Maildir?
> >
> > I don't want to use procmail!
> 
> I believe that there's a way to do this with ~/.qmail , but I can't
> remember what the technique is.

Two ways that I can think of, mess822 and MrSam's maildrop.

Vince.
-- 
==
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
   # includeTEAM-OS2
Online Campground Directoryhttp://www.camping-usa.com
   Online Giftshop Superstorehttp://www.cloudninegifts.com
==





Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On 24 Jun 1999, Chris wrote:


> Does anybody know a decent program/script that can be called from .qmail
> to move messages according to to, cc, bcc, subject, etc into a certain
> Maildir?
>
> I don't want to use procmail!

I believe that there's a way to do this with ~/.qmail , but I can't
remember what the technique is.

/  Ray
+
Ray Marshall <[EMAIL PROTECTED]>| Unconditional Forgiveness & Love --
Chapel Hill NC or Sutton Mills NH   |   The corner stones of coexistence.
Work: [EMAIL PROTECTED]



RE: Implementation of Virtual Domains

1999-06-24 Thread Anonymous

On Wed, 23 Jun 1999 22:59:06 -0400, Alex Miller wrote:

>Can QMail be configured to use both approaches, the single-uid virtual
>domain approach and the many UID - independent user approach?

users/assign controls the "right" to handle address extensions.

-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




Re: running pop3d with a custom passwd backend

1999-06-24 Thread Anonymous

> 
> On Wed, Jun 23, 1999 at 07:46:59PM +0100, Kiril Mitev wrote:
> 
> Since we don't know what your code looks like, this is just a wild guess:
> In your own auth program, do you have code to do a chdir to the directory
> containing the Maildir? qmail-pop3d starts by checking for the presence of
> a Maildir, and then tries to chdir into it, using a relative path. If these
> 2 calls fail, it dies complains that the user has no Maildir.

Thanks, that was it.



For the record:

 :-)
If you want to setup qmail-popup / qmail-pop3d / POP3 with qmail
with your own password-processing scheme, WHICH IS BASED on Paul
Greg's 'setting up a virtual domain/host' instructions, 


1. read the qmail-popup man page carefully
2. in your password checker, read the username/passsword/cookie data
from file descriptor 3. (sample PERL code at end of mail)
3. make sure you have set the following:

ENVIRONMENT:
- HOME set to the fake 'user' home dir from /var/qmail/users/poppasswd
or what have you
- USER set to the REAL username that owns that HOME dir, normally
'popuser', if you have implemented PG's work verbatim. Ideally, this
should be read from /etc/passwd, but can be hardcoded 
Also available from PG's /var/qmail/users/poppasswd
- SHELL set to a system-recognisable non-shell. on FreeBSD this is
'/sbin/nologin', also obtainable either from /etc/passwd or hardcoded

UID:
- both the uid and euid must be set to the REAL mail owner's uid. Again
if you are coming from PG's setup, this would be 888. obtainable from
either /etc/passwd or /var/qmail/users/poppassword or whatever

4. do a chdir() to the 'fake' home dir (i.e. the value of HOME that you
have just setup).

=
some Perl code snippets, useful under the assumption that you have
followed PG's instructions, and replaced /var/qmail/bin/checkpoppasswd
with your password checker in /etc/inetd.conf

I do not claim that this the optimal, or even decent code. It works, though.
Error checking is left as an exercise to the reader :-)


== reading from FD 3 ==
use IO::Handle;
my $fh = new_from_fd IO::Handle ( 3, "r" );
$fh->input_record_separator ( "\0" );
my $user = $fh->getline;
my $pass = $fh->getline;
my $time = $fh->getline;

# OR, skip input_record_separator(), slurp it in in one swell foop
# and use split()


== preparing and exec()-ing qmail-pop3d

undef ( %ENV );
$ENV{USER}=$popuser; # see note about environment above
$ENV{HOME}=$pwhome;  # ditto
$ENV{SHELL}='/sbin/nologin'; # hardcoded is easy :-)
$> = $< = $pwuid;# see UID note above;
unless ( chdir ( $pwhome ) ){
print LOG "no home dir $pwhome !!!\n"; 
# ONLY ASSUMING YOU HAVE A LOG FILE OPENED SOMEWHERE
exit 1; 
# this will make qmail-popup send an error and exit
}
unless ( exec ( @ARGV ) )   {
print LOG "EXEC failed for $ARGV[0] !!!\n"; 
# ONLY ASSUMING YOU HAVE A LOG FILE OPENED SOMEWHERE
exit 1; 
# this will make qmail-popup send an error and exit
}
  
===
> 
> > Dear All
> > 
> > here is the problem:
> > i have setup a virtual host delivery system as per
> > Paul Greg's instructions :-)
> > 
> > 
> > he uses a checkpoppasswd program to read a 'custom' password
> > file and do the authentication. i need to do something very similar
> > but use my own authentication backend.
> > 
> > it all *almost* works, but only "almost". i compared the preliminary setup
> > done by checkpoppasswd and my checkpop.pl and they both seem to 
> > be supplying an identical environment to qmail-pop3d.
> > 
> > however, when i use my password checker, qmail-pop3d complains
> > that the user 'does not have a /Maildir/', the famous
> > -ERR this user has no $HOME/Maildir
> > error
> > 
> > to double-check, this is what i have done. i changed checkpassword
> > to execvp() a small script that dumps the environment around it
> > back to the network connection. i changed my program to do 
> > the same, and compared the two. looks identical!
> > the environment dumper then exec's qmail-pop3d
> > 
> > please help/suggest/whatever if you can...
> > 
> > 
> > here is the TELNET session of a connection made using Paul Greg's setup:
> > 
> > # telnet 0 pop3
> > Trying 0.0.0.0...
> > Connected to 0.
> > Escape character is '^]'.
> > +OK <[EMAIL PROTECTED]>
> > user tester
> > +OK
> > pass testpw
> > checkpoppass about to exec! <>
> >  << from here onwards 
>output is by showenv >>
> > SHOWENV: BLOCKSIZE=[K]
> > SHOWENV: HOME=[/var/qmail/popboxes/ideaglobal-com/tester]
> > SHOWENV: MAIL=[/var/mail/root]
> > SHOWENV: PATH=[/root/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin]
> > SHOWENV: SHELL=[/sbin/nologin]
> > SHOWENV: TERM=[su]
> > SHOWENV: USER=[popuser]
> > SHOWENV: 
>inetd_dummy=[

RE: Implementation of Virtual Domains

1999-06-24 Thread Anonymous

"Alex Miller" <[EMAIL PROTECTED]> wrote:
>
>Can QMail be configured to use both approaches, the single-uid virtual
>domain approach and the many UID - independent user approach?

Sure. The single-uid method is the way simple qmail virtual domains
work. If you want multiple UID's/domain, you can use qmail-users to
direct specific addresses to various users.

See also:

http://Web.InfoAve.Net/~dsill/lwq.html#virtual-domains
http://Web.InfoAve.Net/~dsill/lwq.html#qmail-users

-Dave



Re: AW: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999 [EMAIL PROTECTED] wrote:

> this should be ok!
> do not forget to send a -HUP to qmail-send after editing the badmailfrom
> file!
> 
> jodok

NO.  badmailfrom is read by qmail-smtpd which is run for each SMTP
session.  There is absolutely NO reason to HUP qmail-send.  qmail-send
NEVER reads badmailfrom.  man qmail-control to see which process uses
which control file.

Adding the name to badmailfrom is sufficient to block mail from this user
as long as he doesn't change his address in his mail program.

> 
> 
> > -Ursprüngliche Nachricht-
> > Von:olli [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:Donnerstag, 24. Juni 1999 17:43
> > An: [EMAIL PROTECTED]
> > Betreff:kill mail from remote user
> > 
> > Hi.
> > 
> > We all at our office were tired of one person emailing us.. After a
> > quick
> > look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
> > it
> > enough to stop receiving mails from this guy , or I mess somth.? Any
> > better solutions?
> > 
> > Bye.Olli.
> 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.  http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810- Phone
(412) 810-8886 Fax



Re: What is *really* going on?

1999-06-24 Thread Anonymous

gene Campbell wrote:
> 
>   Question:  How important is it to understand all the details with regard
> to installation and starting up?  And, if you think it is important, what
> resources should I get ahold of to fast track the learning process?

I'd say very important. I've been using qmail on my external mail
gateway for a few months now. I convinced my boss that, while we were
setting our new external box, qmail was a much better solution that
sendmail. He let me go with it.

Since then, I have reached of point of "comfort" with qmail but I still
have a lot of work to do. I am still in a position, I think, that if
Something Bad Happened (tm) I'd be in a world of hurt, at least for a
little while.

Read the docs, man pages, READMEs, HOWTOs ... then read them again. It
might help you to install it on another system. I run qmail on my
workstation so I can play with the system w/o fear of breaking stuff.

-- 
___
Mark E DrummondRoyal Military College of Canada
[EMAIL PROTECTED]Computing Services
Linux Uber Allesperl || die

   ...there are two types of command interfaces in the world of
computing: good interfaces and user interfaces.
   - Dan Bernstein, Author of qmail

PGP Fingerprint = 503D A72D AF41 2AD1 D433 C514 98D9 9A39 B25A 2405



Re: kill mail from remote user

1999-06-24 Thread Anonymous

olli <[EMAIL PROTECTED]> wrote:
>
>We all at our office were tired of one person emailing us.. After a quick
>look in FAQ I added his email to /var/qmail/control/badmailfrom . Is it
>enough to stop receiving mails from this guy , or I mess somth.? Any
>better solutions?

That should be OK, but if he's persistent enough, he can get around it 
by sending as a different user.

-Dave



Re: Mutt and Maildir

1999-06-24 Thread Anonymous

Alex Miller <[EMAIL PROTECTED]> wrote on Thu, 24 Jun 1999:
> This way every user will use Maildirs when they use Mutt. But when I quit
> out of Mutt, it always asks the question "Move read messages to
> /web/alex/mbox?: [n]"

You can change this behaviour with the $move quadoption in your .muttrc
(or /etc/Muttrc), eg. "set move=no".

> Any idea if Mutt is actually doing something with this command? Is it just a
> spurious leftover that is now meaningless?

I'm not sure I understand your question, but Mutt's question is there for
a purpose.  Mutt has functionality to move read messages from your inbox
into another mail folder, specified by the $mbox setting.  Whether you
want this to happen or not is up to you.


These questions are probably more appropriate to the Mutt list,
[EMAIL PROTECTED], subscription info available by sending a mail to
[EMAIL PROTECTED]

-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Today's subliminal message is " "



Re: AW: kill mail from remote user

1999-06-24 Thread Anonymous

[EMAIL PROTECTED] writes:
 > this should be ok!
 > do not forget to send a -HUP to qmail-send after editing the badmailfrom
 > file!

Not necessary.  badmailfrom is ready every time by qmail-smtpd.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: Almost there.. thanks. Need some more help

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Sienna wrote:

> mail/mail notification is not working 
> 
> Thank you for your replies to the other questions which worked but now
> having trouble getting the above thing to work.
> 
> Now I can receive mail but when I type "mail", It shows I have no mail in
> my inbox.  However; if I go to the new mail under maildir I can see the
> mail.  Also, the log file shows the delivery of the mail. 

As others have noted, mail doesn't do maildirs.  However, qmail does come
with some small wrapper scripts to update a mbox from a maildir and run
your favourite mail program.  There are qail, pinq and elq, which run mail
pine and elm, respectively.

> Any suggestions?  Thanks again.
> 
> Sienna
> 
> 
> 
> 

-- 
"Life is much too important to be taken seriously."
Thomas Erskine<[EMAIL PROTECTED]>(613) 998-2836



Mutt and Maildir

1999-06-24 Thread Anonymous

I am using Mutt and have set my environment variables globally to use
Maildirs. In my /etc/bashrc file I put in the following lines:

MAIL=~/Maildir
export MAIL

This way every user will use Maildirs when they use Mutt. But when I quit
out of Mutt, it always asks the question "Move read messages to
/web/alex/mbox?: [n]"

One of the reasons I like Maildirs is that potentially I can write my own
programs to do interesting things with my mail. For example, I could write a
nice php/postgresql interface for organizine mail into cloned folders, that
is categorize them into folders without physically altering them, simply
listing the file id in a different postgres table.

Since every mail file is a separate file I don't have to worry about some
proprietary mailbox format. Just having my incoming mail separated into
unique files is insufficient. I'd like this for my read mail, etc.

Any idea if Mutt is actually doing something with this command? Is it just a
spurious leftover that is now meaningless?

Alex Miller



Pine Maildir Patch

1999-06-24 Thread Anonymous

I am using the Pine Maildir patch that came with the Memphis distribution.
It is a patch of pine-3.96-9maildir

It seems to only partially support Maildirs. That is upon starting it for
any user that has a Maildir, it will happily recognize the Maildir as Inbox
but it will also create a Mail directory and in that directory create the
files saved-messages and sent-mail.

Is there a version of pine that is patched so that saved-messages,
sent-mail, and other "folders" not be in one big file (which is why mbox is
bad) but in a directory.

Alex Miller



Re: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 02:42:44PM -0300, olli wrote:

> On Thu, 24 Jun 1999, Anand Buddhdev wrote:
> 
> Ok,thank you both. BTW: what error message will see banned person? 
> & man  I should read if I wanna specify this message (if it
> possble to have separate error reply to such people)?

The sender will be told:

553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)

This response is built into qmail-smtpd. If you want to change it, you have
to edit qmail-smtpd.c and recompile. However, you cannot customise it on a
per-user basis.

> > On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:
> > control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
> > to HUP qmail-send.

-- 
Anand



Re: Mail sort without using procmail

1999-06-24 Thread Anonymous

On 24 Jun 1999, Chris Bond wrote:

> Hi,
> 
> Does anybody know a decent program/script that can be called from .qmail to 
> move messages according to to, cc, bcc, subject, etc into a certain Maildir?
> 
> I don't want to use procmail!

Look at Dan's mess822.

Vince.
-- 
==
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
   # includeTEAM-OS2
Online Campground Directoryhttp://www.camping-usa.com
   Online Giftshop Superstorehttp://www.cloudninegifts.com
==





Mail sort without using procmail

1999-06-24 Thread Anonymous

Hi,

Does anybody know a decent program/script that can be called from .qmail to 
move messages according to to, cc, bcc, subject, etc into a certain Maildir?

I don't want to use procmail!

Cheers,
Chris

--
  -- Chris Bond --
 [EMAIL PROTECTED]
----



Re: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, 24 Jun 1999, Anand Buddhdev wrote:

Ok,thank you both. BTW: what error message will see banned person? 
& man  I should read if I wanna specify this message (if it
possble to have separate error reply to such people)?

> On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:
> control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
> to HUP qmail-send.
> > this should be ok!
> > do not forget to send a -HUP to qmail-send after editing the badmailfrom
> > file!
> > jodok
> > > Von:  olli [SMTP:[EMAIL PROTECTED]]
> > > Gesendet am:  Donnerstag, 24. Juni 1999 17:43
> > > Hi.
> > > We all at our office were tired of one person emailing us.. After a
> > > quick
> > > look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
> > > it
> > > enough to stop receiving mails from this guy , or I mess somth.? Any
> > > better solutions?
> > > Bye.Olli.


Bye.Olli.



Re: Qmail's queue directory & Linux

1999-06-24 Thread Anonymous


-Original Message-
From: Petri Kaukasoina <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, June 23, 1999 6:24 PM
Subject: Re: Qmail's queue directory & Linux


>On Wed, Jun 23, 1999 at 10:48:39AM +0300, Petri Kaukasoina wrote:

>
>I got home and tried it myself. To my surprise, the "chattr +S" trick did
>work. If testdir had the "S" attribute, testfile was in testdir after
reboot
>but if the directory didn't have the attribute, fsck put the file in
>lost+found. It worked in Linux versions 2.0.37 and 2.2.10. Either something
>has changed in the kernel since I tried it last time or I did some mistake
>then.
>
>So, it seems that it's enough to
>chattr +S
/var/qmail/queue/{bounce,info/*,intd,local/*,mess/*,remote/*,todo}
>and the same for the new and cur subdirectories in every maildir.

Ah, that's a relief. It saves me from having to rearrange my partitions.

Thanks for checking...

Regards,
Peter van der Landen




Re: kill mail from remote user

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 10:45:04AM +0200, [EMAIL PROTECTED] wrote:

control/badmailfrom is read by qmail-smtpd, each time it starts up. No need
to HUP qmail-send.

> this should be ok!
> do not forget to send a -HUP to qmail-send after editing the badmailfrom
> file!
> 
> jodok
> 
> 
> > -Ursprüngliche Nachricht-
> > Von:olli [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:Donnerstag, 24. Juni 1999 17:43
> > An: [EMAIL PROTECTED]
> > Betreff:kill mail from remote user
> > 
> > Hi.
> > 
> > We all at our office were tired of one person emailing us.. After a
> > quick
> > look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
> > it
> > enough to stop receiving mails from this guy , or I mess somth.? Any
> > better solutions?
> > 
> > Bye.Olli.

-- 
Anand



AW: kill mail from remote user

1999-06-24 Thread Anonymous

this should be ok!
do not forget to send a -HUP to qmail-send after editing the badmailfrom
file!

jodok


> -Ursprüngliche Nachricht-
> Von:  olli [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Donnerstag, 24. Juni 1999 17:43
> An:   [EMAIL PROTECTED]
> Betreff:  kill mail from remote user
> 
> Hi.
> 
> We all at our office were tired of one person emailing us.. After a
> quick
> look in FAQ I added his email to /var/qmail/control/badmailfrom . Is
> it
> enough to stop receiving mails from this guy , or I mess somth.? Any
> better solutions?
> 
> Bye.Olli.



kill mail from remote user

1999-06-24 Thread Anonymous

Hi.

We all at our office were tired of one person emailing us.. After a quick
look in FAQ I added his email to /var/qmail/control/badmailfrom . Is it
enough to stop receiving mails from this guy , or I mess somth.? Any
better solutions?

Bye.Olli.



Re: uucp

1999-06-24 Thread Anonymous

On Thu, Jun 24, 1999 at 09:00:23AM +1000, Kevin Waterson wrote:

FAQ #2.3 for outgoing uucp. Look at www.qmail.org for incoming uucp.

> Can qmail handle uucp?
> How is this acheved?

-- 
System Administrator
See complete headers for address, homepage and phone numbers



Re: running pop3d with a custom passwd backend

1999-06-24 Thread Anonymous

On Wed, Jun 23, 1999 at 07:46:59PM +0100, Kiril Mitev wrote:

Since we don't know what your code looks like, this is just a wild guess:
In your own auth program, do you have code to do a chdir to the directory
containing the Maildir? qmail-pop3d starts by checking for the presence of
a Maildir, and then tries to chdir into it, using a relative path. If these
2 calls fail, it dies complains that the user has no Maildir.

> Dear All
> 
> here is the problem:
> i have setup a virtual host delivery system as per
> Paul Greg's instructions :-)
> 
> 
> he uses a checkpoppasswd program to read a 'custom' password
> file and do the authentication. i need to do something very similar
> but use my own authentication backend.
> 
> it all *almost* works, but only "almost". i compared the preliminary setup
> done by checkpoppasswd and my checkpop.pl and they both seem to 
> be supplying an identical environment to qmail-pop3d.
> 
> however, when i use my password checker, qmail-pop3d complains
> that the user 'does not have a /Maildir/', the famous
> -ERR this user has no $HOME/Maildir
> error
> 
> to double-check, this is what i have done. i changed checkpassword
> to execvp() a small script that dumps the environment around it
> back to the network connection. i changed my program to do 
> the same, and compared the two. looks identical!
> the environment dumper then exec's qmail-pop3d
> 
> please help/suggest/whatever if you can...
> 
> 
> here is the TELNET session of a connection made using Paul Greg's setup:
> 
> # telnet 0 pop3
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user tester
> +OK
> pass testpw
> checkpoppass about to exec! <>
><< from here onwards 
>output is by showenv >>
> SHOWENV: BLOCKSIZE=[K]
> SHOWENV: HOME=[/var/qmail/popboxes/ideaglobal-com/tester]
> SHOWENV: MAIL=[/var/mail/root]
> SHOWENV: PATH=[/root/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin]
> SHOWENV: SHELL=[/sbin/nologin]
> SHOWENV: TERM=[su]
> SHOWENV: USER=[popuser]
> SHOWENV: 
>inetd_dummy=[xxx]
> SHOWENV:
> SHOWENV: uids are 888 and 888
> SHOWENV: ARGV = /var/qmail/bin/qmail-pop3d Maildir
> SHOWENV: -
> 
><< showenv is done >>
> +OK
> quit
> +OK
><< those 3 lines are 
>output by qmail-pop3d >>
><< at this point i 
>could use LIST and RETR >>
><< and it works >>
> Connection closed by foreign host.
>   << message courtesy of 
>/usr/bin/telnet >>
> 
>  And here is the session of a connection made to my passwd program
> 
> # telnet 0 pop3  
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user tester
> +OK
> pass tester
> << showenv starts >>
> SHOWENV: HOME=[/var/qmail/popboxes/ideaglobal-com/tester]
> SHOWENV: SHELL=[/sbin/nologin]
> SHOWENV: USER=[popuser]
> SHOWENV:
> SHOWENV: uids are 888 and 888
> SHOWENV: ARGV = /var/qmail/bin/qmail-pop3d Maildir
> SHOWENV: -
> << showenv ends >>
> -ERR this user has no $HOME/Maildir
>   << -ERR comes from qmail-pop3d >>
> Connection closed by foreign host.
>   << message courtesy of 
>/usr/bin/telnet >>
> 
> 
> = = = = = = 
> 
> as you can see, the environment variables HOME/USER/SHELL are identical
> in both cases, the real and effective uids are set to 888 in both cases
> and the ARGV line which is used to exec() qmail-pop3d is identical
> 
> 
> what the hell am i doing wrong 
> 
> Kiril

-- 
System Administrator
See complete headers for address, homepage and phone numbers



RE: Almost there.. thanks. Need some more help

1999-06-23 Thread Anonymous

Mail is a mail client. I don't think there is a version of it that works
with Maildirs (yet).
Mutt is another mail client. To make Mutt work with maildirs do the
following:

in /etc/bashrc add the lines
MAIL=~/Maildir
export MAIL

This will let Mutt know to use Maildirs for every user. If you want some
users to use mailbox (bleh) then this command should be placed in the users
own .bashrc

The fact that Mutt already can handle Maildirs (the new way) with just an
environment variable is a sign of quality, btw.

Then at the user login just type mutt and there will all your mail be :-)

Of course if you aren't using bash then you have to set your environment
variables according to whatever shell you do use, but if your using LINUX
you are most likely using bash.

There is also pine. You would need to replace your current version of pine
with one that is patched for Maildir support.

I don't think the pine patch does that great a job since it still creates a
mailbox for it's sent folders.

But people who have shell access will probably already know about Pine and
it is easier on the beginner.

Alex Miller

> -Original Message-
> From: Sienna [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 24, 1999 3:14 AM
> To: [EMAIL PROTECTED]
> Subject: Almost there.. thanks. Need some more help
>
>
> mail/mail notification is not working
>
> Thank you for your replies to the other questions which worked but now
> having trouble getting the above thing to work.
>
> Now I can receive mail but when I type "mail", It shows I have no mail in
> my inbox.  However; if I go to the new mail under maildir I can see the
> mail.  Also, the log file shows the delivery of the mail.
>
> Any suggestions?  Thanks again.
>
> Sienna
>
>
>
>



Re: Almost there.. thanks. Need some more help

1999-06-23 Thread Anonymous

On Thu, Jun 24, 1999 at 12:13:51AM -0700, Sienna wrote:
> mail/mail notification is not working 
> 
> Thank you for your replies to the other questions which worked but now
> having trouble getting the above thing to work.
> 
> Now I can receive mail but when I type "mail", It shows I have no mail in
> my inbox.  However; if I go to the new mail under maildir I can see the
> mail.  Also, the log file shows the delivery of the mail. 

The program called "mail" doesn't know about maildirs; it also doesn't know to
look in home directories for a mailbox. It's looking in /var/spool/mail (or
something similar). You'll need a maildir-aware MUA, like mutt or a
maildir-patched pine.

Chris



Almost there.. thanks. Need some more help

1999-06-23 Thread Anonymous

mail/mail notification is not working 

Thank you for your replies to the other questions which worked but now
having trouble getting the above thing to work.

Now I can receive mail but when I type "mail", It shows I have no mail in
my inbox.  However; if I go to the new mail under maildir I can see the
mail.  Also, the log file shows the delivery of the mail. 

Any suggestions?  Thanks again.

Sienna





RE: Virtual Domains.

1999-06-23 Thread Anonymous

Method 1: (the host method)

In /var/qmail/rcpthosts put
supermall.dk
pcnet.dk
netpizza.dk
(this assumes that you have DNS entries already for these)

In /var/qmail/locals put
supermall.dk
pcnet.dk
netpizza.dk

Now the user martin will recieve mail addressed to [EMAIL PROTECTED],
[EMAIL PROTECTED], and [EMAIL PROTECTED]

Any user on your system will recieve mail at any of these 3 hosts.

Method 2: (better) (the virtual method)

In /var/qmail/rcpthosts put
supermall.dk
pcnet.dk
netpizza.dk
(this assumes that you have DNS entries already for these)

In /var/qmail/virtualdomains put
supermall.dk
pcnet.dk
netpizza.dk

Create 3 special users:
supermall.dk
pcnet.dk
netpizza.dk

in ~supermall.dk put the file .qmail containing &martin
in ~pcnet.dk put the file .qmail containing &martin
in ~netpizza.dk put the file .qmail containing &martin
(this assumes that martin is a user that can recieve mail)

The really interesting thing is that you can NOT user .qmail-default in the
~supermall.dk, ~pcnet.dk, and ~netpizza.dk directories to allow bounces on
misspellings.

Reserve the .qmail-default functionality for 3 additinal virtualhosts
virtual.supermall.dk, virtual.pcnet.dk, and virtual.netpizza.dk so
[EMAIL PROTECTED], [EMAIL PROTECTED], and
[EMAIL PROTECTED] will be captured if it is not specified by
another .qmail-addressname

Pretty cool, huh?

Alex Miller

> -Original Message-
> From: Martin Rehr [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 21, 1999 8:49 AM
> To: [EMAIL PROTECTED]
> Subject: Virtual Domains.
>
>
> Hello.
>
> I would like to know how to configure qmail to use virtual domains.
>
> My goal is making my qmail server responsible for the maildelivery for
> serveral domains.
>
> The problem is I don't know how to configure it.
>
> It is requered that:
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> Is 3 different email accounts.
>
> How should that be configured.
>
> It would be nice if someone could send me an description and maybe the
> configuration filses.
>
> Regards.
> Martin Rehr / Supermall APS
>
> ---
> -- Linus
> Torvalds:
> --
> --
> --
> -- I don't think Microsoft is evil in
> itself;  --
> -- I just think that they make really crappy operating systems. --
> ---
>
>
>



RE: Help with receiving mail

1999-06-23 Thread Anonymous

On the local to local test.

When you installed you were given a choice between Mailboxes and Maildirs.
If you went with the Maildir approach you must make a Maildir for each user
using maildirmake in /var/qmail/bin and you must route the mail to that
maildir in the .qmail file for that user. The .qmail file must have
./Maildir/ in it to route to the Maildir. You will have to make sure that
/var/qmail/rc (not in my setup actually I used the Memphis RPM after using
the tarball) use maildir, (one of the install steps in install.MAILDIR

If you chose the Mailbox approach (I didn't) you will have to make sure that
var/qmail/rc uses mailbox.

As for your telnet connection failing. I was never able to get smtp to work
from the tarball. I only got it working after using the Memphis RPM, but
since then my Samba setup stopped working and pico doesn't work using remote
telnet (I suspect it is the tcpserver that was installed)

Alex Miller

> -Original Message-
> From: Sienna [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 24, 1999 2:06 AM
> To: [EMAIL PROTECTED]
> Subject: Help with receiving mail
>
>
> Receive
>
> After installing qmail I can send out mail ok but I can't receive mail.
> When I telnet to the local machine on port 25 and type anything, I get:
> 502 unimplemented (#5.5.1)
>
> Can anyone advise on how to fix this problem?
>
> The local tests did not work either.  The log showed the message was sent
> but there was no mail in the box.
>
> Also, we did not have sendmail previously installed, however; I installed
> the qmail-smtpd daemon.
>
> Thanks in advance.  Sienna
>
>



Re: Help with receiving mail

1999-06-23 Thread Anonymous

On Wed, Jun 23, 1999 at 11:06:18PM -0700, Sienna wrote:
> Receive 
> 
> After installing qmail I can send out mail ok but I can't receive mail.
> When I telnet to the local machine on port 25 and type anything, I get:
> 502 unimplemented (#5.5.1) 

That's not surprising. If you type just anything, it's unlikely that it's a
SMTP command. You should expect that whatever it is you typed is not
implemented in SMTP.

> Can anyone advise on how to fix this problem?
> 
> The local tests did not work either.  The log showed the message was sent
> but there was no mail in the box.
> 
> Also, we did not have sendmail previously installed, however; I installed
> the qmail-smtpd daemon.  
> 
> Thanks in advance.  Sienna
> 



Re: Pico - "Incomplete termcap entry" and Memphis RPM

1999-06-23 Thread Anonymous

On Wed, Jun 23, 1999 at 10:07:22PM -0400, Alex Miller wrote:
> This is not directly related to qmail but the only thing I have been
> attempting to accomplish for the past week is qmail and ezmlm so I was
> wondering if anyone else has had this problem.
> 
> All of a sudden, when I dial in rempotely using telnet, and I attempt to run
> pico, I get an error "Incomplete termcap entry"

This is not only not directly related to qmail, it's not even remotely
indirectly related to qmail.

If you're using the Windows telnet client (which is, not surprisingly, junk),
try typing this at a prompt and then running pico again:

export TERM=vt100

Another solution is to get a better telnet (or ssh) client, such as those
you'll find at http://www.vandyke.com.

> Now, if I am simply using my Linux box this doesn't happen.
> 
> Now, it's not really a problem for me, since I can use vi if I need to, but
> it is a big problem for some of the people who are starting to use shell
> access onto my Linux box and want to do editing. One of them is a 15 year
> old, who I just taught how to use telnet and pico to edit a web page.
> 
> All of a sudden, pico is broken.
> 
> Two things seem to have been affected adversely upon installing the Memphis
> RPM. One is that my Samba setup failed. That is, I used my Samba connection
> to print some files before installing the Memphis RPM and after I installed
> it, SAMBA had broken.
> 
> I am somewhat suspicious of the Memphis RPM because it doesn't just install
> QMail, it installs some tcpserver init scripts which I assume must affect
> TCP which would have some relation to Samba and telnet.

tcpserver doesn't "affect TCP," whatever that might mean. I'd be very reluctant
to believe that the Memphis RPM affected Samba in any way. Nobody else has ever
reported it, and it's just plain unlikely that anyone could put together an RPM
in such a way that he inadvertantly disabled a totally unrelated service. If
Samba's breaking was coincident with your installing the Memphis RPM, then it's
probably just a coincidence. You should try to determine whether smbd is
running, and if not, why not. Never having used the Memphis RPM, I can almost
guarantee you that it has nothing to do with your Samba problems. I can
absolutely guarantee you that it has nothing to do with your telnet problems.

Sorry to sound so harsh, but rather than grasp at straws and make vague
inferences about various unrelated parts of your system interfering with each
other, you might sit down and try to figure out just exactly how all those
init.d scripts and rcX.d links work. Trace what happens when your system boots
up. Read the init (8) man page. Read the /etc/rc.d/rc script and try to follow
what's happening. Take a look at rc.local and realize that you can use it if
you don't want to deal with the the whole Sys V init thing. And try installing
qmail from the tarball again. If it doesn't work, figure out why and try to fix
it; don't assume that Redhat requires some kind of special magic--it doesn't.
What's required is a clear understanding of what each of qmail's various parts
does, which things are long-running daemons and which are executed per
connection, and an understanding of your own system so you can get everything
running at bootup that needs to be running. (My advice: forget about all those
init.d scripts for now, and launch everything from rc.local.)

If you do this, you'll realize that the Memphis RPM and tcpserver don't affect
Samba, and they certainly don't cause "incomplete termcap" problems.

Chris



  1   2   3   4   5   6   >