Nils Vogels | 1 Nov 2000 06:18

Re: How to forward all mail to corresponding address

On Mon, Oct 30, 2000 at 05:36:12PM -0600, John Stiles wrote:
> I want to store a copy and forward all mail sent to anyone in my domain
>  * <at> resgen.com ) to my other internal Exchange Server
>  * <at> exchange.resgen.com). I can do one user at a time but with over 500 users
> there's got to be a better way. Help please!
> 
The best way is prolly to create an alias entry for every user like that in
your aliases db of your MTA.

--

-- 
It's better to burn out than to fade away --Kurgan
Dave Ewart | 1 Nov 2000 11:00
Picon

Re: Q: How to change -0000 to +0000 in Date: field?

On Tuesday, 31.10.2000 at 18:44 +0100, Emil Isberg wrote:

> On Tue, 31 Oct 2000, Dave Ewart wrote:
> >:0 fhw
> >* Date:.*\-0000.*
> >! /bin/sed -e 's/\-0000/\+0000/g'
> >
> >This would seem to work, but I am aware that it could change -0000 to
> >+0000 elsewhere in the headers, since the sed filter is non-specific,
> >and I'd prefer this not to happen.
> 
> How about changing only the Date:-header by using
> 's/^\(Date:.*\)\-0000/\1\+0000/g' or perhaps
> 's/^\([dD][aA][tT][eE]:.*\)\-0000/\1\+0000/g' ??

Right, I'll see if I can work out exactly how those work ... :-)  Not a
Sed expert, at least not yet ...

> Btw, you should use pipe (|) instead of exclamation mark (!) when
> filtering to a program.

Ah yes, it was a typo ...

Thanks for the help.

Dave.
--

-- 
Dave Ewart
ewart <at> icrf.icnet.uk
Computing Manager
(Continue reading)

Jeff Turner | 1 Nov 2000 11:39
Picon

Re: SPAM sent to 'sub'-accounts (email1 <at> domain)


On Tue, 31 Oct 2000, Hermann Wecke wrote:

> I´m receiving tons of spam sent to non-existing e-mail accounts, such as 
> hermann1, hermann2, hermann3 (and so on). My clients are also being 
> targeted by the same SPAM.
> 
> Is this recipe below safe enough to run and catch these SPAMs???
> 
> :0
> * ^TO:.*(1|2|3|4|5|6|7|8|9)
> /dev/null

Your spammer just has to change to appending [a-z], and you're back where
you started. Surely there are other headers that don't change?

Btw, writing straight to /dev/null isn't a good idea unless you're 
-really- sure you've got it right.

--Jeff

> 
> 
> _______________________________________________
> procmail mailing list
> procmail <at> lists.RWTH-Aachen.DE
> http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
> 
Frank Booth | 1 Nov 2000 15:37

Re: Sendmail rules

On Mon, Oct 30, 2000 at 12:14:16PM -0500, Carlos Perez Gonzalez wrote:
> Collin:
> 
> I have no problem with TABs in my rules. Outlook Express have turned them
> all into spaces.

Grr IS THIS IMPORTANT? I think not, so why is it marked important?
IS IT NECESSARY TO INCLUDE EVERY OTHER POSTING IN THE THREAD? I think not, so why do it?

--

-- 
Frank Booth:Developer
Phone : 020 7247 4778

O V E N D I G I T A L
    www.oven.com
Marcel Janssen | 1 Nov 2000 15:45
Picon
Favicon

Empty envelope from when calling sendmail

Hi,

We use procmail to filter all our mail. When sendmail processes mail, it
attaches a pseudo-domain ".PROCMAIL" and uses the procmail mailer. In the
procmailrc file we scan on subject and if there is no match, the mail is 
send back tosendmail using the rule:

:0         # Hand back to sendmail.
! -v  -oi -f "$ <at> "

Normally this has the following sendmail call as a result ( from the
procamil log):
procmail: Executing 
"/usr/lib/sendmail,-oi,-oi,-f,sender <at> fromaddress,recipient <at> PROCMAIL"

and this works.

However, if the mail is coming from <> ( MAILER-DAEMON ) , we get the
following error:

Oct 27 18:08:25 smtp sendmail[8725]: SAA08725: from=<>, size=7836,
class=0,pri=37836, nrcpts=1,msgid=<51117DC811D0D311902E00508B8B9DD7CEBD15 <at> exchange02>, 
proto=ESMTP, relay=smtp-opco [x.x.x.x] 
Oct 27 18:08:26 smtp sendmail[8727]: SAA08725: to=<user <at> domain.com>,delay=00:00:01, 
xdelay=00:00:00, mailer=procmail,relay=/etc/procmailrcs/filter, stat=Sent
Oct 27 18:08:26 smtp sendmail[8729]: SAA08729: setsender: : invalid or unparseable, 
received from root <at> localhost 
Oct 27 18:08:26 smtp sendmail[8729]: SAA08729: from=root, size=8047,class=0, 
pri=38047, nrcpts=1,msgid=<51117DC811D0D311902E00508B8B9DD7CEBD15 <at> exchange02>, 
relay=root <at> localhost
(Continue reading)

Andreas Tindlund | 1 Nov 2000 16:44
Picon
Picon

how to cut off last part of an e-mail

I have a script that forwards a copy of all e-mail I receive to my
GSM-mobile phone (with the e-mail address 999888777 <at> sms.netcom.no)

The sms.netcom.no server sends me the e-mail divided in up to 4
SMS-messages each containing 160 characters.

Sometimes there can be just to many messages popping into my phone.

Therefore:

Problem 1:
- How can I forward only the first 100 characters of the
e-mail body to 999888777 <at> sms.netcom.no

Problem 2:
- Is it also possible to implement that the if the script detects many
undercores or dash'es  ( _____  / ----- ), it will cut the body from there
on? _____ or ---- usually indicates a signature file, which I am not
interested in receiving on my mobile phone.

_______________________________________________________________

  Andreas Tindlund             
_______________________________________________________________
Datona Communications | 1 Nov 2000 17:35
Favicon

Examples website?

Does anyone out there know of a website which has example on how to configure procmail?  I am actually looking for an example which will show me how to pull a variable from an email and pass it off to a perl script or add the variable to a text file.  The example variable would be in the body of the email and would be something like:
 
bla bla bla:  123456
 
It would look for that line in the email and take the "123456" and pass that off to a script or a text file.
 
HELP!!
 
Scott
 
Collin Park | 1 Nov 2000 18:27
Picon

Re: Examples website?

"Datona Communications" wrote:
> Does anyone out there know of a website which has example on how to =
> configure procmail?  

http://www.procmail.org/jari/pm-tips.html

http://www.uwasa.fi/~ts/info/proctips.html

                       I am actually looking for an example which will =
> show me how to pull a variable from an email and pass it off to a perl =
> script or add the variable to a text file.  The example variable would =
> be in the body of the email and would be something like:
> 
> bla bla bla:  123456

    :0bi
    * some conditions here
    BLABLA=| sed -n -e '/^bla bla bla/s/^[^:]*: *//p'

And now a few questions:
    What if multiple lines meet the criteria?  
        The above assumes there's just one, or that you don't mind
        having a variable that contains newlines.

    Is the entire rest of the line to be treated as the value?  
        The above assumes 'yes'.

    Can the 123456 part contain ':' characters?  
        The above assumes that it might.

> It would look for that line in the email and take the "123456" and pass =
> that off to a script or a text file.

http://www.procmail.org/jari/pm-tips-body.html#quoting_passing_values_to_an

If you want to pass it to a text file...

    :0 cb:
    * some conditions here
    | sed -n -e '/^bla bla bla/s/^[^:]*://p' >> /path/to/file

--

-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.
Collin Park | 1 Nov 2000 18:34
Picon

Re: how to cut off last part of an e-mail

Andreas Tindlund wrote:
> Problem 1:
> - How can I forward only the first 100 characters of the
> e-mail body to ...

    
    :0 bi
    | head -c 100 | $SENDMAIL $SENDMAILFLAGS xxx <at> yyy.zzz

> Problem 2:
> - Is it also possible to implement that the if the script detects many
> undercores or dash'es  ( _____  / ----- ), it will cut the body from there
> on? _____ or ---- usually indicates a signature file, which I am not
> interested in receiving on my mobile phone.

   :0 bi
   | sed -e '/-----/,$d' -e '/_____/,$d' | head -c 100 | \
        $SENDMAIL $SENDMAILFLAGS xxx <at> yyy.zzz

hth
--

-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.
Pollywog | 1 Nov 2000 18:35

RE: Examples website?


On 01-Nov-2000 Datona Communications wrote:
> Does anyone out there know of a website which has example on how to
> configure procmail?  
There are several websites that have information.  One is
http://www.procmail.org/jari/pm-tips-body.html

Gmane