Subject: Re: Mail forwarding question
Subject: Re: Help with Pine
Subject: .procmailrc challenge
* !^Subject:.*nopage
| formail -k -x "From:" -x "Subject:" | mail -s "Page" pager@address.com
Subject: Re: .procmailrc challenge
Subject: Re: Fingering command-Need help
Subject: Re: need help with .forward
From: kbrint@winternet.com (Kevin)
Newsgroups: winternet.help
Subject: Re: Mail forwarding question
Date: 1 Feb 1996 20:11:57 GMT
Lines: 20
Distribution: local
Snowdog (snowdog@winternet.com) wrote:
> I've heard it is possible to forward mail yet leave an unforwarded
> copy at the same time. How exactly is this done? I'm running Linux
> and I'm only forwarding right now, but it would be nice to be able to
> get my mail from some DOS/Windows applications as well.
Sure is.. in your .forward file on our system, just add a line like
this:
snowdog@winternet.com
That will keep a local copy as well as forwarding a copy to your
machine..
(kevin)
kbrint@winternet.com
http://www.winternet.com/~kbrint/
winternet staff - email for info
--
From: frickson@gibbon.com (John C. Frickson)
Newsgroups: winternet.help
Subject: Re: Help with Pine
Date: 21 Feb 1996 23:44:34 GMT
Lines: 23
Distribution: local
Reply-To: frickson@gibbon.com (John C. Frickson)
In <4gga1v$nl4@blackice.winternet.com>, janders@winternet.com (Judy Anderson) writes:
>I know there must be a way to do this, but I'm not sure where to look.
>I'd like to forward my email messages to another account I have (I've
>moved and am telnetting in from Rochester). Would some kind soul tell me
>how to do this (or tell me where to look for directions)? I can spell
>UNIX, and have even learned a few basic commands, but I'm not getting far
>at finding what I'm looking for.
>Thanks,
At the shell prompt type the following:
cat > .forward
janders@infonet.isl.net
^D
All email will now be forwarded to your infonet account.
--
John C. Frickson | http://www.gibbon.com/ | * OS/2 * Linux *
Gibbon Computer Products | ftp://ftp.gibbon.com | PGP Fingerprint:
9864 Palm St. NW | Phone: +1 612 754 6557 | FD743D4E209DFC26
Coon Rapids, MN 55433 | VISA/MasterCard/AmEx | 371905C7B52B36E9
--
From: Jimmy Huffman <jamesh@mail.eskimo.com>
Newsgroups: comp.unix.programmer,comp.unix.shell,comp.unix.questions
Subject: .procmailrc challenge
Date: 26 Feb 1996 21:37:16 GMT
Lines: 39
Mime-Version: 1.0
I need some help from some of you unix experts out there... I am
using procmail to send a delivery notification to the mail
sender as well as send me an alpha page to notify me of the message.
All of that is working great. I'm using something similar to this
in my .procmailrc file to do this:
:0 c
* !^Subject:.*nopage
| formail -k -x "From:" -x "Subject:" | mail -s "Page" pager@address.com
Here is my problem. My paging provider only offers 250 pages per month
before charging for over pages. However, I can add an additional number
for a very low price and increase my pages in that manner.
What would be required for me to get procmail to alternate sending
these messages to like pager@address.com to pager2@address.com?
This would split my pages between two different numbers. I've tried
without much luck to try to set the address in the mail command to
some sort of variable and changing the variable after sending a page
as well as a few other idea. None of which are working very well.
I'd appreciate any input that might help!
Thanks.
Jimmy Huffman
jhuffman@vt.edu
jamesh@eskimo.com
Phone (540) 772-8745
Fax (540) 562-0395
http://www.eskimo.com/~jamesh
--
From: bandy@itlabs.umn.edu (Tim Bandy)
Newsgroups: comp.unix.programmer,comp.unix.shell,comp.unix.questions
Subject: Re: .procmailrc challenge
Date: 29 Feb 1996 07:26:32 GMT
Lines: 20
Jimmy Huffman <jamesh@mail.eskimo.com> writes:
!:What would be required for me to get procmail to alternate sending
!:these messages to like pager@address.com to pager2@address.com?
!:This would split my pages between two different numbers. I've tried
!:without much luck to try to set the address in the mail command to
!:some sort of variable and changing the variable after sending a page
!:as well as a few other idea. None of which are working very well.
It would probably be easiest to have procmail pipe the output to another
filter. This filter would need to remember its state, and send mail to
either pager or pager2 based on that state. Perhaps use the existance
of a file as the state variable?
--
Tim Bandy University of Minnesota
timn8r@monopoly.cs.umn.edu bandy@cs.umn.edu
http://www.cs.umn.edu/~bandy/index.html
"And so, may evil beware and may good dress warmly and eat
lots of fresh vegetables" --The Tick
--
From: bpowell@Sun.COM (Brad Powell)
Newsgroups: comp.security.unix
Subject: Re: Fingering command-Need help
Date: 28 Feb 1996 17:37:27 GMT
Lines: 81
Reply-To: bpowell@Sun.COM
In article <4h1kij$6di@hp01.redwood.nl>, rob@redwood.nl (Rob J. Nauta) writes:
:daemon9@netcom.com (Route) writes:
:
:>Ilya (ibelooze@runet.edu):
:
:: | I don't think the finger daemon is a security problem and I have not heard
:: | that it ever caused any problems.
:
:>
:> Are you high? Finger is one of the greatest tools in an attacker's
:> arsenal. Most vanilla daemons give out ample amounts of target of
:> information. Last logon, unread mail, tty location, optional fields
:> for fullname, number and misc. information. Sites that run a
:> standard fingerd do the system cracking community a favor.
:
:No, finger is a very valuable service. Real attackers wouldn't just telnet
:to your login: prompt and try to type first names as passwords there.
finger gives out information. Weather that information is valuable to
an attacker is the question.
With the spoffing of .plan and .project files finger can be a problem.
e.g. if I can write to your .plan file and pipe through a shell,
I could have you send me the password file anytime I fingered the account.
The in.fingerd has also been on of the more commonly trojaned services.
I agree in a well maintained enviornment finger is fine and useful,
but there is potential for abuse.
:That's a myth. In fact one can recognise bad security by the fact that a
:clueless sysadmin disabled finger as a knee-jerk reaction to reading a book
:on UNIX security for the first time.
hmm, I'd say thats a little too strong a statement. There are good reasons
to disable it as well as good reasons to allow it.
: Good passwords are much more useful
:than crippling your machine.
One time passwords are better still :-)
:An attacker can get full name from sendmail
:(with EXPN and VRFY)
with the new sendmail(s) there is a privacy option to disable this
(in the book)
something like adding one of the following to sendmail.cf (version dependant)
Opgoaway
O PrivacyOptions=noexpn, novrfy, authwarnings
:while tty location is useless nowadays, no terminals
:are hardwired, everything is a pty (pseudo-tty).
:
:> I won't
:> even mention the Worm.
:
:The worm used a hole that was present and plugged in 1988. It is totally
:irrelevant now.
funny, in doing broad analysis of clients internal networks I still
find (rarely albeit) machines that respond to "wiz" and "debug".
It may be 99% irrelevant (read;dead hole) but like most things in
security there is no black and white. Some sendmails still have the
options in the source code. All it takes is some user recompiling
sendmail (or a cracker putting in a back-door) to make this "live"
again.
=======================================================================
Brad Powell : brad.powell@Sun.COM
Sr. Network Security Consultant
Sun Microsystems Inc.
=======================================================================
The views expressed are those of the author and may
not reflect the views of Sun Microsystems Inc.
=======================================================================
--
From: dharzhak@my-dejanews.com
Newsgroups: comp.unix.admin
Subject: Re: need help with .forward
Date: Tue, 27 Apr 1999 18:36:01 GMT
Lines: 52
I saw some things that I forgot to edit from my rough draft of this msg.
My apologies, Michael. I've also added a couple of things to make it more of
what you need. I have verified that the script does work as intended and that
you only need to substitute the user and host names.
Let's assume that we have root, user1 and user2. We want root's e-mail to
user1 forwarded to user2. We shall also assume that the root account is on
localhost.domain.com, the home directory for user1 is /home/user1 and that
user2's e-mail address is user2@host.domain.com.
First, make user1's .forward file by doing the following:
$ echo "|/home/user1/MailFilter" > /home/user1/.forward
$ chmod 744 /home/user1/.forward
Next, create the the MailFilter script:
$ vi /home/user1/MailFilter
and insert the following text:
(if you like, you can replace /var/mail/$LOGNAME with /var/mail/user1)
#!/bin/ksh
MSG=`cat | awk '{printf ("%s\\\n",$0)}'`
echo $MSG > Msg
FROM=`grep "From:" Msg | grep root`
if [ "abc$FROM" != "abc" ] ; then
/usr/lib/sendmail user2@host.domain.com -F root@localhost.domain.com < Msg
else
cat Msg >> /var/mail/$LOGNAME
fi
rm Msg
...and change the permissions on the MailFilter file:
$ chmod 744 /home/user1/MailFilter
Some possible variants to the above script...
If you need a copy of all e-mail to go to user1, then replace the "else" with
"fi" and remove the current "fi" line.
The "-F" flag on sendmail sends the message as though it was from root.
If you remove the "-F root@localhost.domain.com" from the /usr/lib/sendmail
line, it will send the mail as coming from user1, instead of root.
Noal McDonald
--
"The time for action is past! Now is the time for senseless bickering!"
-Ashleigh Brilliant
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
--
|
Hosted by: |
|
©copyright 1995-2002 sysinfo.com