Scott Savarese | 1 Dec 2000 03:24

Re: trouble printing PS attached

Well, I am kinda new to the list, so I am going to throw what little
knowledge I have into this...Feel free to correct me if you know better...

The From line looks okay, though I usually keep my From lines like:

* ^From: .*fax-server

Also, the attachments are usually encoded before they are sent out. Thus
the body of the message will have to be decoded first. If you assume that
all mail from fax-server is the postscript, you can remove the second 
B ?? line. (BTW are you sure that works? The B variable is the body of the
message?). You can then pipe the message to a perl script which determines
the attachement name, decodes the document, then prints and deletes the
file.

I hope this helps. I am pretty new to this...
Scott

On Tue, 28 Nov 2000, Carlos Eduardo R. L. de Miranda wrote:

> I receive email with postscript files attached to it. I would like to print
> those emails and to do so, i am using the recipe:
> 
>         :0 b
>         * ^From[ :].*fax-server
>         * B ?? ^^%!
>         | lpr
> 
> It is not working as expected. The postscript mail is not detected and it is
> sent to  /var/spool/mail/user-name file. Anyone to help me?
(Continue reading)

gmurad | 1 Dec 2000 21:45
Picon

enable procmail within sendmail

Hi folks!

    I run sendmail  in a Red Hat 6.2 (firewall+HTTPD)  box as a relay to
a Notes Server in my internal network.
    Everything is fine, but now i have to do some redirections of some
users to other specific address; to acomplish it, some documents said procmail
is the best
solution; i created some receipes, but the point is that i cant make
sendmail run procmail entries...so the question is:
How to tell sendmail to read my procmail receips before deliver the mail to the
Notes server?

in sendmail.org help files, they said to use a line such
"mycompany.com    procmail:/etc/myreceip.rc"
in mailertable, but where should i put this entry, without disabling the
relaying?

thats my mailertable DB :

.mycompany.com.br        smtp:[100.0.1.1]
mycompany.com.br         smtp:[100.0.1.1]

100.0.1.1 is the address of the Notes server.

This may be a too simple question, i am sure...but i really read all
docs available and did not find anything to clear my mind...

Thanks!

Gustavo Murad
(Continue reading)

Tomer Okavi | 1 Dec 2000 22:28

Forwarding mail to external account.

hey all.

I need to forward some e-mails for a user to another mailbox (Yahoo
mail).but leave all of his e-mails intact on my server.
I have a list of "From" e-mail's which all off those e-mails should be
forwarded.

Now, I created another user on my server and used .forward to forward All
received e-mail to the other mailbox also.

I created a .procmailrc file in the second user home dir such as:
:0
* ^From: someone <at> domain\.com
! user <at> yahoo.com

And .. it doesn't work.

I know I can call procmail from a .forward file but don't know how.

My main problem is I have to keep all mail on the user mailbox and forward
those specified "From" e-mails.

will my recipe work for this.

TIA

Tom.
Collin Park | 1 Dec 2000 22:41
Picon

Re: Can't execute 'sendmail'|formail...?

"David L. Potter" wrote:
> procmail: No permission to execute "/zmailer/bin/sendmail"
> procmail: Error while writing to "/zmailer/bin/sendmail"
> procmail: Program failure (-256) of "/zmailer/bin/sendmail"

So it looks like you have set $SENDMAIL to /zmailer/bin/sendmail ?
Can you execute it from a normal shell to send mail somewhere?
Is this an executable?  
Is this file NFS-mounted?  

What log messages do you get with the "formail" recipe?  Same ones?

--

-- 
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.
Nils Vogels | 1 Dec 2000 23:31

Re: Forwarding mail to external account.

On Fri, Dec 01, 2000 at 11:28:04PM +0200, Tomer Okavi wrote:
> hey all.
> 
Heyas ;)

> I created a .procmailrc file in the second user home dir such as:
> :0
> * ^From: someone <at> domain\.com
> ! user <at> yahoo.com
> 
> And .. it doesn't work.
> 
Try

* ^From:.*someone <at> domain\.com.*
! user <at> yahoo.com

> I know I can call procmail from a .forward file but don't know how.
> 
Put this in your .forward:

| /usr/bin/procmail 

> My main problem is I have to keep all mail on the user mailbox and forward
> those specified "From" e-mails.
> 
You should try making a copy and delivering that to the other user, while
leaving the original message intact:

:0
(Continue reading)

Scott Savarese | 2 Dec 2000 19:31

procmail problem...

This is an interesting problem...I am trying to make procmail my LDA with
sendmail. I make the changes to the sendmail.cf file (via m4 FEATURE( 
local_procmail ) ) and all looks well. I restart the sendmail daemon and
all of a sudden, anybody that uses the local delivery agent can no longer
recieve mail. Anybody that has procmail in their $HOME/.forward it works
fine for. ( I am guessing that is so because with a .forward file you no
longer use the LDA). As for right now, I am not using an /etc/procmailrc
file (I do have an /etc/mail/procmailrc which doesn't work now but it
shouldn't be looking at it),

Can someone tell me, given the configuration listed below, why mail is not
receiving correctly when I try to incorporate procmail into
sendmail...Everything looks right with the configuration...

Thanks,
Scott

First here is a diff of the original sendmail.cf and the new sendmail.cf
(the new one uses procmail....).

[root <at> postal1 mail]$ diff config.cf.procmail sendmail.cf
35,38d34
< 
< #####  $Id: local_procmail.m4,v 8.21 1999/11/18 05:06:23 ca Exp $  #####
< 
< 
1334c1330
< Mlocal,               P=/usr/local/bin/procmail , F=lsDFMAw5:/| <at> qSPfhn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
---
(Continue reading)

Nils Vogels | 2 Dec 2000 20:02

Re: supress confirmation in smartlist

On Fri, Dec 01, 2000 at 12:12:39AM +0100, Niketan Pandit wrote:
> Hi,
> 
> how can I completely stop subscribe as well as unsubscribe 
> confirmation when a smartlist is being run mainly as newsletter
> i.e. only one person in accept list and many in dist ?
> 
> 1) Even with custom (empty files) subscribe.txt and unsubscribe.txt
> a couple of lines are always sent in english.
> 
I don't know exactly how smartlist works, but there must be some unique string
somewhere in the mail that identifies it as a system message coming from
smartlist.

Find that string (which could be appearing in the msg-ig, subject or maybe
even in extra headers, beginning with X-<blabla>

Let's assume you found the unique string in the From header, and the string is
"smartlist". Build the following entry in your procmailrc:

:0
* ^From:.*smartlist.*
{
	:0
	/dev/null
}

> 2) Alternatively it would also be OK if I could design the entire
> confirmation text in german.
> 
(Continue reading)

Nils Vogels | 2 Dec 2000 20:05

Re: enable procmail within sendmail

On Fri, Dec 01, 2000 at 05:45:52PM -0300, gmurad <at> unimedsp.com.br wrote:
> Hi folks!
> 
Heyas :)

>     I run sendmail  in a Red Hat 6.2 (firewall+HTTPD)  box as a relay to
> a Notes Server in my internal network.

Remake your sendmail.cf with the m4 FEATURE( local_procmail )
to make your sendmail use procmail to deliver mail to your local clients
aswell. Then put some rules in your global procmail config (usually
/etc/procmailrc or /etc/mail/procmailrc) to make procmail behave the way you
want it ;)

--

-- 
GUI
What your computer becomes after spilling your coffee on it.
(pronounced 'gooey')
Ken Teh | 2 Dec 2000 21:21

procmail automounting home??

I'm trying to set up a mail hub for my linux cluster using Redhat's
sendmail rpm which uses procmail as its mailer.  I find that whenever the
mail hub receives mail for a user, it automounts the user's home
directory.  I don't know if it is sendmail or procmail that's doing it and
was wondering if someone could answer this question.

I'd like to make whichever program is doing this stop.  I use the
/home automount feature in order to span several mount points under /home,
so I don't want to lose this feature.  But, I'm concerned that the mailhub
and the home file server will be swamped by NFS automounts.

Also, I don't want to lose the procmail and forward features.  To this end,
I've created on the mail hub an NFS exported directory where users' .forward
and .procmailrc files can be stored.  The .forward and .procmailrc files in
$HOME are symlinked to the files on this mount point.  If it is procmail
that's automounting home, then if I tell it to look here instead of
$HOME/.procmailrc, it should stop automounting /home.

I've tried changing the sendmail cf lines that invoke procmail specifying an
absolute path for the procmailrc file for a user, but that didn't have any
effect.

Thanks in advance.

Kenneth Teh                            Email teh <at> anl.gov
Physics Division                         Tel 630.252.3073
Argonne National Laboratory              Fax 630.252.2864
9700 S. Cass Ave.
Argonne, IL 60439
USA
(Continue reading)

Ken Teh | 2 Dec 2000 22:03

Re: procmail automounting home??

Thanks for your reply.  I've started playing with this possibility.  So
far, no luck.  I'm trying to avoid recompiling :)

I've modified the sendmail.cf lines so:

Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, T=DNS/RFC822/X-Unix,
                A=procmail -Y -m HOME=/var/procmail/$u $h $f $u

trying to redefine HOME.  I haven't tried redefining the Mlocal line yet.
Have that sinking feeling that I may have to look at code :(

Btw, how's Vandy?  I was a grad student there between '80 and '86.

Kenneth Teh                            Email teh <at> anl.gov
Physics Division                         Tel 630.252.3073
Argonne National Laboratory              Fax 630.252.2864
9700 S. Cass Ave.
Argonne, IL 60439
USA

On Sat, 2 Dec 2000, David R. Linn wrote:

>
> >> Date: Sat, 2 Dec 2000 14:49:38 -0600 (CST)
> >> From: Ken Teh <teh <at> maria.phy.anl.gov>
> >> To: "David R. Linn" <drl <at> mailhost1.vuse.vanderbilt.edu>
> >> Subject: Re: procmail automounting home??
> >>
> >> Sorry I didn't mention that I did that already.  Actually, the first thing
> >> I did, but it still automounts /home.  I changed it to
(Continue reading)


Gmane