qmail Digest 28 Nov 1999 11:00:01 -0000 Issue 833

Topics (messages 33653 through 33665):

Re: Stripping html from .qmail
        33653 by: Olivier M.
        33654 by: David Harris
        33655 by: Russell Nelson

Virtual domains running on two mailservers
        33656 by: Technicka podpora
        33662 by: Russell Nelson

Maildir format
        33657 by: Subba Rao

QMAIL vpopmail and mailman
        33658 by: Travis Llewellyn

relay
        33659 by: Hans Sansdalen
        33660 by: Magnus Bodin
        33661 by: Russell Nelson
        33665 by: Hans Sansdalen

Re: qmail dies, over and over........
        33663 by: Brian Reichert

multilog and Informix engine?
        33664 by: John White

Administrivia:

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

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

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

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


----------------------------------------------------------------------


On Sat, Nov 27, 1999 at 05:09:20AM +0000, Steve Vertigan wrote:
> I'm thinking of writing a perl script to be called from a .qmail file
> that will check a message for html encoding and kill it if it does.

Converting html to txt using lynx -dump would be even better, don't
you think so ? :)

Greetings,
Olivier





steve [mailto:steve] On Behalf Of Steve Vertigan wrote:
> I'm thinking of writing a perl script to be called from a .qmail file
> that will check a message for html encoding and kill it if it does.
> Partly because I'm sick of seeing html on lists and partly because it
> seems like a good bozo filter.  So anyway before I do pick up my hammer
> and chisel I'm wondering has anyone else here already carved a rock into
> a circumvolution mechanism that does something similiar?

This procmailrc file changes the any multipart/alternative part content type
from text/html to text/x-html.... this causes my e-mail client (Outlook) to
choose the text/plain part and ignore the HTML because it does not recognize
it.

In retrospect, I'm not quite sure why I used sed and not just perl...

[root@w1 /root]# cat ~dharris/.procmailrc

#
# Rewrite mime types on multipart/alternative member messages from text/html to
text/x-html
#

:0 i :
* Content-Type:.*multipart
ALT_BOUNDARY=| sed --silent -e ' /[Cc]ontent-[Tt]ype:.*multipart\/alternative/
b loop; d; :loop; s/^.*boundary="\([^"]*\)".*$/\1/; t gotit; n; /^[[:space:]]/
! d; b loop; :gotit; p; q;'

:0 f :
* ! ALT_BOUNDARY ?? ^$
| sed --silent -e " /^--$ALT_BOUNDARY/ { h; b loop; }; p; d; :loop; n; H; /^$/
{ x; s|\\(\\n[Cc]ontent-[Tt]ype:.*\\)text/html|\\1text/x-html|; p; d; }; b
loop; "
------end-of-file-------

 - David Harris
   Principal Engineer, DRH Internet Services






Steve Vertigan writes:
 > I'm thinking of writing a perl script to be called from a .qmail file
 > that will check a message for html encoding and kill it if it does.
 > Partly because I'm sick of seeing html on lists and partly because it
 > seems like a good bozo filter.  So anyway before I do pick up my hammer
 > and chisel I'm wondering has anyone else here already carved a rock into
 > a circumvolution mechanism that does something similiar?

This works for me.  I insert it into my .qmail file just before the
"./Mailbox".  It forwards the text part to nelson-alternative, which
just has "./Mailbox" in it.

#!/usr/bin/perl

#Content-Type: multipart/alternative;
#       boundary="----=_NextPart_000_0076_01BDFB89.721C71C0"

while(<>) {
  $continuation = 0 if /^\S/;
  $continuation = 1 if m!^Content-Type: multipart/alternative;!i;
  $boundary = $1 if $continuation && /boundary="(.*?)"/;
  last if /^$/;
  $headers .= $_ unless $continuation;
}

# dispose of messages which are not multipart/alternative
unless ($boundary) {
  exit 0;
}

$boundary =~ s/\W/\\$&/g;
$printing = 0;                  # we start by discarding the pre-message cuft.
$header = 0;                    # and we start outside of a header.
open(MAIL, "|forward $ENV{USER}-alternative") or die;
print MAIL $headers;
while(<>) {
  last if /^--$boundary--$/;
  if (/^--$boundary$/) {
    $header = 1;
    $printing = 0;
    next; # discard boundary
  }
  $printing = 0 if $header && m!^Content-Type:!i;
  $printing = 1 if $header && m!^Content-Type: text/plain;?!i;
  $header = 0 if $header and /^$/;
  print MAIL if $printing;
}
close MAIL;

exit 99;

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free 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!




Hi,

        My question is: Is it possible to use same virtual domain on 
two mailservers? When I send a mail to [EMAIL PROTECTED], mail 
will come to the first mailserver and when no nobody user exists, 
then that mail will be forwarded to next mailserver?
How can I set it up?

Thanks for Your answer.



--
  Jan Stanik
[EMAIL PROTECTED]
Telenor Internet,s.r.o




Technicka podpora writes:
 >      My question is: Is it possible to use same virtual domain on 
 > two mailservers? When I send a mail to [EMAIL PROTECTED], mail 
 > will come to the first mailserver and when no nobody user exists, 
 > then that mail will be forwarded to next mailserver?
 > How can I set it up?

echo 'nobody.sk:alias-nobodysk' >/var/qmail/control/virtualdomains
echo 'usera' >~alias/.qmail-nobodysk-user1
echo 'userb' >~alias/.qmail-nobodysk-user2
echo 'userc' >~alias/.qmail-nobodysk-user3
echo '|forward $[EMAIL PROTECTED]' >~alias/.qmail-nobodysk-default

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free 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!





I have opted to use Maildir format over mbox. The MDA in use is maildrop.
Except for the inbox/spool directory, all the folders that maildrop uses
are mbox format. The folders maildrop uses are in ~/Mail while the incoming
spool is ~/Maildir.

I thought one of the benifits of Maildir, is to have mail in seperate files
for later processing and portability. Please correct me if I am wrong.

Should I have used "makemaildir ~/Mail"? Right now all the mail in each folder
in ~/Mail gets appended.

I would like maildrop to use Maildir format and the folders to have the Maildir
format.

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/




Hello eveyone,

I have a problem and I am not sure where to go to find out the answer so I
will ask here and the oher lists :).

Here is what I have QMAIL is running in /var/qmail and vpopmail is running
in /home/vpopmail and mailman(listmanager) is running in
/domains/domain.com/mailman.

In /home/vpopmail/domains/domain.com I have a .qmail-support that has
|preline /domains/domain.com/mailman/mail/wrapper post support

What happens is everything looks like it delivers OK but I don't get any
error messages or and mail being distributed.

I guess the question I have is where can I see if wrapper post support is
even being run. I know that if I change the .qmail-support to somthing else
like |preline /domains/darstep.com/mailman/mail/wrapper post support I get
an e-mail back saying that command was not found so i guess it is running.

I think it could be a permissions problem. But I can't find any error logs
saying such!

Thanks for any help.

If more info is needed I will supply it just let me know!

Travis




Hi 

I'm used to sendmail, the the response "We do not relay" when
people use "%...@domain" in the to field. I have tried to 
make qmail give some response of the same kind, but I haven't 
succeded. Tried the wildmat-0.2-patch, but it was not for version
1.03?

I have installed qmail-1.03-antispam4-b1.diff, but I'm not shure
how to use it, and if it will help me.

Any suggestions? 





On Sat, Nov 27, 1999 at 06:24:28PM +0100, Hans Sansdalen wrote:
> Hi 
> 
> I'm used to sendmail, the the response "We do not relay" when
> people use "%...@domain" in the to field. I have tried to 
> make qmail give some response of the same kind, but I haven't 
> succeded. Tried the wildmat-0.2-patch, but it was not for version
> 1.03?

qmail does not support the percenthack per default.
You have to manually add support for it by creating
/var/qmail/control/percenthack. So no worries. 

Or do is your main concern HOW the message is bounced? 

Then: 

If a mail to [EMAIL PROTECTED] is getting in, it will
probably be catched by ~alias/.qmail-default (depending how you handle
the mail). 

You could do this at one line in that very .qmail-file:

| perl -e 'if ($ENV{DEFAULT} =~ /\%/) { print "We do not relay";exit 100;}

which checks the address and bounces them containing a %.
 
> I have installed qmail-1.03-antispam4-b1.diff, but I'm not shure
> how to use it, and if it will help me.

Neither am I.
 
> Any suggestions? 

Lykke till.

/magnus - kvarts norsk.

-- 
http://x42.com/




Magnus Bodin writes:
 > You could do this at one line in that very .qmail-file:
 > 
 > | perl -e 'if ($ENV{DEFAULT} =~ /\%/) { print "We do not relay";exit 100;}
 > 
 > which checks the address and bounces them containing a %.

The problem is that the SMTP server accepts the message.  Most relay
checkers don't bother to see if the mail gets bounced later.  They
presume that an accepted message is a relayed message.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free 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!




At 19:30 27.11.99 +0100, Magnus Bodin wrote:
>On Sat, Nov 27, 1999 at 06:24:28PM +0100, Hans Sansdalen wrote:
>> Hi 
>> 
>> I'm used to sendmail, the the response "We do not relay" when
>> people use "%...@domain" in the to field. I have tried to 
>> make qmail give some response of the same kind, but I haven't 
>> succeded. Tried the wildmat-0.2-patch, but it was not for version
>> 1.03?
>
>qmail does not support the percenthack per default.
>You have to manually add support for it by creating
>/var/qmail/control/percenthack. So no worries. 

I created the file. Is that all? I could not find it documented
anywhere? Is an empty file enough?

I want an email with a "to" address with ".*%.*@.*" to be rejected.

>
>Or do is your main concern HOW the message is bounced? 
>
>Then: 
>
>If a mail to [EMAIL PROTECTED] is getting in, it will
>probably be catched by ~alias/.qmail-default (depending how you handle
>the mail). 
>
>You could do this at one line in that very .qmail-file:
>
>| perl -e 'if ($ENV{DEFAULT} =~ /\%/) { print "We do not relay";exit 100;}
>
>which checks the address and bounces them containing a %.
> 
>> I have installed qmail-1.03-antispam4-b1.diff, but I'm not shure
>> how to use it, and if it will help me.
>
>Neither am I.
> 
>> Any suggestions? 
>
>Lykke till.
>
>/magnus - kvarts norsk.

:), thanks magnus...


>
>-- 
>http://x42.com/
>
>





On Fri, Nov 26, 1999 at 11:25:57PM -0200, Gustavo V G C Rios wrote:
> Dear gentleman.
> 
> I am trying to run qmail, using FreeBSD 3.3Stable, but it dies about 2
> times a month.
> 
> Have you ever faced anything such that ?
> What you wizard suggest me to do ?

Give us info: for example:

- The mailllog and messages log pertaining to the event of qmail's death.

- Your rc.local entry for starting qmail.

- Is it a 'stock' qmail install, or a patched version?

- 3.3-STABLE is not a RELEASE: are you sure you haven't caught a
  snapshot with a bug since fixed?

I have several production qmail server on various versions of
FreeBSD, and don't have problems with it dying mysteriously...

> -- 
> Microsoft: Where do you want to go today?
> Linux: Where do you want to go tomorrow?
> FreeBSD: Are you guys coming or what?

-- 
Brian 'you Bastard' Reichert            [EMAIL PROTECTED]
37 Crystal Ave. #303                    Daytime number: (781) 899-7484 x704
Derry NH 03038-1713 USA                 Intel architecture: the left-hand path




Has anyone familiar with the Informix database engine thought about
using multilog to assist with the management of Informix physical
and logical logs?

Just curious...

John White


Reply via email to