RE: redhat-list Digest, Vol 27, Issue 26

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The reason I was tarring a tar file to the tape I didn't want to backup a whole file system just to test the tape drive.  I tried doing just a file or a directory and that didn't work either.

As for the hp server it's running hpux 11i and I'm much more familiar with hp.  On the hp tape drive that is connected to the hp server it reads just about anything.  And I'm using "tar -tvf /dev/rmt/0m" to read the tape and to write to the tape I used "tar -cvf /dev/rmt/0m /tmp" and it works just fine. 

I take that same tape and try to read it on the tape drive that is connected to the linux machine and it doesn't work.  It's the same type of tape drive except for it's an external scsi tape drive.  

I tried tar -cvf /dev/nst0 /tmp, still didn't work.

[root@darc200 ~]# tar cvf /dev/nst0 /tmp
tar: Removing leading `/' from member names
/tmp/
tar: /tmp/.gdm_socket: socket ignored
tar: /tmp/mapping-root: socket ignored
/tmp/ytbackup/
/tmp/ytbackup/d2d/
/tmp/ytbackup/v8.10-sp2a/
/tmp/ytbackup/v8.10-sp2a/lin/
/tmp/ytbackup/v8.10-sp2a/lin/x86/
/tmp/ytbackup/v8.10-sp2a/lin/x86/libytlintor.so
tar: /dev/nst0: Cannot write: Invalid argument
tar: Error is not recoverable: exiting now
[root@darc200 ~]#


I ran hp's tape utility hp_ltt and it reads and writes to the tape just fine.

I can even write to the tape using the software that came with the tape drive called Tapeware by Yosemite, I just can't use tar and my users wants to be able to use tar.

Thanks for your help,
Jake


Jake E. Posey
Boeing Commerical Airplanes
Lab Test Systems Support
Phone: (206) 544-1778
-----Original Message-----
From: redhat-list-request@xxxxxxxxxx [mailto:redhat-list-request@xxxxxxxxxx] 
Sent: Friday, May 26, 2006 9:00 AM
To: redhat-list@xxxxxxxxxx
Subject: redhat-list Digest, Vol 27, Issue 26

Send redhat-list mailing list submissions to
	redhat-list@xxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://www.redhat.com/mailman/listinfo/redhat-list
or, via email, send a message with subject or body 'help' to
	redhat-list-request@xxxxxxxxxx

You can reach the person managing the list at
	redhat-list-owner@xxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of redhat-list digest..."


Today's Topics:

   1. RE: echo command as in windows (Jeffrey Beckstrom)
   2. Re: echo command as in windows (Nigel Wade)
   3. Re: echo command as in windows (Vidiot)
   4. Re: echo command as in windows (Jeffrey Beckstrom)
   5. RE: echo command as in windows (McDougall, Marshall (FSH))
   6. RE: echo command as in windows (Michael Velez)
   7. RE: echo command as in windows (answer to 2nd question)
      (Michael Velez)
   8. Re: echo command as in windows (Russell Harrison)
   9. Re: echo command as in windows (Ed Wilts)
  10. Unable to read/write to a tape with tar in Red Hat AS4
      (Posey, Jake E)
  11. Re: Unable to read/write to a tape with tar in Red Hat AS4
      (Cameron Simpson)
  12. Re: a fax viewer for linux similar to "Imaging for Windows"
      (Michael Wu)
  13. Restore - Linux vs Solaris (Sysadmin)
  14. Re: need help about sendmail (nilesh vaghela)
  15. Re: need help about sendmail (nilesh vaghela)
  16. Re: need help about sendmail (Opesh Alkara)
  17. Re: Installing perl-suid (vipin sagar)


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

Message: 1
Date: Thu, 25 May 2006 12:12:29 -0400
From: "Jeffrey Beckstrom" <JBECKSTROM@xxxxxxxxx>
Subject: RE: echo command as in windows
To: <wia@xxxxxxxxxx>, <redhat-list@xxxxxxxxxx>
Message-ID: <s4759f5a.024@xxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII

This is a scheduled crontab job.

>>> wia@xxxxxxxxxx 5/25/06 11:58:45 AM >>>
> -----Original Message-----
> From:Jeffrey Beckstrom
> Sent: Thursday, May 25, 2006 11:34 AM
> Subject: echo command as in windows
> 
> In windows, you can do "set echo on" so that all commands in the bat
> file are listed.  Is there a way to do the same in Linux.

Are you using bash?  try running it with 'bash -x <script>'

marc


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe 
https://www.redhat.com/mailman/listinfo/redhat-list 



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

Message: 2
Date: Thu, 25 May 2006 17:20:56 +0100
From: Nigel Wade <nmw@xxxxxxxxxxxx>
Subject: Re: echo command as in windows
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Message-ID: <4475D968.6050208@xxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jeffrey Beckstrom wrote:
> This is a scheduled crontab job.
> 
> 
>>>>wia@xxxxxxxxxx 5/25/06 11:58:45 AM >>>
>>
>>-----Original Message-----
>>From:Jeffrey Beckstrom
>>Sent: Thursday, May 25, 2006 11:34 AM
>>Subject: echo command as in windows
>>
>>In windows, you can do "set echo on" so that all commands in the bat
>>file are listed.  Is there a way to do the same in Linux.
> 
> 
> Are you using bash?  try running it with 'bash -x <script>'
> 
> marc
> 
> 

Use 'set -x' within the script to turn it on, and 'set +x' to turn it off.


-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@xxxxxxxxxxxx
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555



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

Message: 3
Date: Thu, 25 May 2006 11:26:58 -0500 (CDT)
From: Vidiot <brown@xxxxxxxxxxxxxxxxxx>
Subject: Re: echo command as in windows
To: redhat-list@xxxxxxxxxx
Message-ID: <200605251626.k4PGQxd20200@xxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii

>Are you using bash?  try running it with 'bash -x <script>'
>marc

Or, within the script, on the second line do:

	set -x

This is useful if the script you are trying to debug is called from another
script.  Also, you don't care which shell you are running.

I use this to do debugging a lot.  But the error you get might be extremely
misleading.  If you have a missing/misplaced double-quote (or any of
the quotes), the error it complains about could be many lines away from the
actual location.

MB
-- 
e-mail: vidiot@xxxxxxxxxx                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email



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

Message: 4
Date: Thu, 25 May 2006 13:05:05 -0400
From: "Jeffrey Beckstrom" <JBECKSTROM@xxxxxxxxx>
Subject: Re: echo command as in windows
To: <redhat-list@xxxxxxxxxx>
Message-ID: <s475ab9e.007@xxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII

Can you recommend some good sources of information on this type of stuff
so that I don't keep bothering the list?

>>> nmw@xxxxxxxxxxxx 5/25/06 12:20:56 PM >>>
Jeffrey Beckstrom wrote:
> This is a scheduled crontab job.
> 
> 
>>>>wia@xxxxxxxxxx 5/25/06 11:58:45 AM >>>
>>
>>-----Original Message-----
>>From:Jeffrey Beckstrom
>>Sent: Thursday, May 25, 2006 11:34 AM
>>Subject: echo command as in windows
>>
>>In windows, you can do "set echo on" so that all commands in the bat
>>file are listed.  Is there a way to do the same in Linux.
> 
> 
> Are you using bash?  try running it with 'bash -x <script>'
> 
> marc
> 
> 

Use 'set -x' within the script to turn it on, and 'set +x' to turn it
off.


-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@xxxxxxxxxxxx 
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe 
https://www.redhat.com/mailman/listinfo/redhat-list 



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

Message: 5
Date: Thu, 25 May 2006 12:13:12 -0500
From: "McDougall, Marshall \(FSH\)" <MarMcDouga@xxxxxxxxx>
Subject: RE: echo command as in windows
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>,
	<JBECKSTROM@xxxxxxxxx>
Message-ID:
	<D26BBBE6D8350F43A6CB23B53834ECC201C2D2D1@xxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain;	charset="us-ascii"

"Can you recommend some good sources of information on this type of
stuff
so that I don't keep bothering the list?"

I could not answer your question because I did not know about "set -x".
If you didn't "bother" the list, I still wouldn't know.  So, as far as I
am concerned bother away!  I get to learn a lot by proxy.

Regards, Marshall



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

Message: 6
Date: Thu, 25 May 2006 13:39:08 -0400
From: "Michael Velez" <mikev777@xxxxxxxxxxx>
Subject: RE: echo command as in windows
To: "'General Red Hat Linux discussion list'" <redhat-list@xxxxxxxxxx>
Message-ID: <BAY104-DAV15B93EDE87AEDC75D3D2C884990@xxxxxxx>
Content-Type: text/plain;	charset="us-ascii"

 

> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx 
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Jeffrey Beckstrom
> Sent: Thursday, May 25, 2006 11:34 AM
> To: redhat-list@xxxxxxxxxx
> Subject: echo command as in windows
> 
> In windows, you can do "set echo on" so that all commands in 
> the bat file are listed.  Is there a way to do the same in Linux.
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 

To echo commands as they appear, have this as your first line in the script:

#!/bin/bash -v

If you want to see the values of variables at any point in time during
execution, have this:

#!/bin/bash -x

Michael



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

Message: 7
Date: Thu, 25 May 2006 13:45:30 -0400
From: "Michael Velez" <mikev777@xxxxxxxxxxx>
Subject: RE: echo command as in windows (answer to 2nd question)
To: "'General Red Hat Linux discussion list'" <redhat-list@xxxxxxxxxx>
Message-ID: <BAY104-DAV95764B3F69606872F1BFC84990@xxxxxxx>
Content-Type: text/plain;	charset="us-ascii"

 

> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx 
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Jeffrey Beckstrom
> Sent: Thursday, May 25, 2006 1:05 PM
> To: redhat-list@xxxxxxxxxx
> Subject: Re: echo command as in windows
> 
> Can you recommend some good sources of information on this 
> type of stuff so that I don't keep bothering the list?
> 

If you don't mind dense reading, the bash man page can be a treasure trove
of hints and tricks.  That's what I use.

Michael



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

Message: 8
Date: Thu, 25 May 2006 14:35:54 -0400
From: "Russell Harrison" <rtlm10@xxxxxxxxx>
Subject: Re: echo command as in windows
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
Message-ID:
	<1ed4a0130605251135s32b7fb64h5ef4e8db0bb7f8bd@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jeffrey,

The Advanced Bash-Scripting Guide <http://www.tldp.org/LDP/abs/html/> at the
The Linux Documentation Project <http://www.tldp.org> is a resource I still
check from time to time.  You should read through it as a good way to get
started with Bash shell scripting.

Russell

Advanced Bash-Scripting Guide:  http://www.tldp.org/LDP/abs/html/
The Linux Documentation Project:  http://www.tldp.org

On 5/25/06, Jeffrey Beckstrom <JBECKSTROM@xxxxxxxxx> wrote:
>
> Can you recommend some good sources of information on this type of stuff
> so that I don't keep bothering the list?
>
> >>> nmw@xxxxxxxxxxxx 5/25/06 12:20:56 PM >>>
> Jeffrey Beckstrom wrote:
> > This is a scheduled crontab job.
> >
> >
> >>>>wia@xxxxxxxxxx 5/25/06 11:58:45 AM >>>
> >>
> >>-----Original Message-----
> >>From:Jeffrey Beckstrom
> >>Sent: Thursday, May 25, 2006 11:34 AM
> >>Subject: echo command as in windows
> >>
> >>In windows, you can do "set echo on" so that all commands in the bat
> >>file are listed.  Is there a way to do the same in Linux.
> >
> >
> > Are you using bash?  try running it with 'bash -x <script>'
> >
> > marc
> >
> >
>
> Use 'set -x' within the script to turn it on, and 'set +x' to turn it
> off.
>
>
> --
> Nigel Wade, System Administrator, Space Plasma Physics Group,
>              University of Leicester, Leicester, LE1 7RH, UK
> E-mail :    nmw@xxxxxxxxxxxx
> Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>


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

Message: 9
Date: Thu, 25 May 2006 15:20:41 -0500
From: Ed Wilts <ewilts@xxxxxxxxxx>
Subject: Re: echo command as in windows
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Message-ID: <20060525202041.GA13183@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii

On Thu, May 25, 2006 at 01:05:05PM -0400, Jeffrey Beckstrom wrote:
> Can you recommend some good sources of information on this type of stuff
> so that I don't keep bothering the list?

My favorite desk reference is "Linux in a Nutshell".  It's a reference
book, however, not a training guide, but set -x is documented in the
section on bash.

        .../Ed

-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program



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

Message: 10
Date: Thu, 25 May 2006 15:24:10 -0700
From: "Posey, Jake E" <Jake.E.Posey@xxxxxxxxxx>
Subject: Unable to read/write to a tape with tar in Red Hat AS4
To: <redhat-list@xxxxxxxxxx>
Message-ID:
	<7B73172B331C034198AA90BDF604F5FB01632FF1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
	
Content-Type: text/plain;	charset="us-ascii"

I'm getting the following error when trying to read a tape.  I check the
status of the drive.

 

[root@darc200 ~]# mt -f /dev/nst0 status

SCSI 2 tape drive:

File number=0, block number=-1, partition=0.

Tape block size 32768 bytes. Density code 0x26 (DDS-4 or QIC-4GB).

Soft error count since last status=0

General status bits on (1010000):

 ONLINE IM_REP_EN

[root@darc200 ~]#

 

Then I attempt to read the tape and get the following errors:

 

[root@darc200 ~]# tar -b32768 -tvf /dev/nst0

tar: This does not look like a tar archive

tar: Skipping to next header

tar: Archive contains obsolescent base-64 headers

 

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: /dev/nst0: Cannot read: Input/output error

tar: Too many errors, quitting

tar: Error is not recoverable: exiting now

[root@darc200 ~]#

 

When I don't specify the block size it just hangs.

 

[root@darc200 ~]# tar tvf /dev/nst0

 

 

When attempting to write to the tape using tar -cvf temp.tar /dev/nst0
it fails also.

 

The tape is a HP StorageWorks Dat 40  scsi tape and usb tape devices.
The OS is Red Hat AS 4.0 with kernel 2.6.9-5.EL i686 GNU/Linux.  I have
the same problem with both tape devices.  

 

I can take the tape and put it in a dat drive on a hp and read it just
fine.

 

Jake E. Posey

Boeing Commerical Airplanes

Lab Test Systems Support

Email: jake.e.posey@xxxxxxxxxx <mailto:jake.e.posey@xxxxxxxxxx> 

Phone: (206) 544-1778

 



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

Message: 11
Date: Fri, 26 May 2006 08:55:52 +1000
From: Cameron Simpson <cs@xxxxxxxxxx>
Subject: Re: Unable to read/write to a tape with tar in Red Hat AS4
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Message-ID: <20060525225552.GA20294@xxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii

On 25May2006 15:24, Posey, Jake E <Jake.E.Posey@xxxxxxxxxx> wrote:
| I'm getting the following error when trying to read a tape.  I check the
| status of the drive.
| 
| [root@darc200 ~]# mt -f /dev/nst0 status
| SCSI 2 tape drive:
| File number=0, block number=-1, partition=0.
| Tape block size 32768 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
| Soft error count since last status=0
| General status bits on (1010000):
|  ONLINE IM_REP_EN
| 
| Then I attempt to read the tape and get the following errors:
| [root@darc200 ~]# tar -b32768 -tvf /dev/nst0

Don't you mean -b 64? -b takes units of 512 bytes you know...

| tar: This does not look like a tar archive
[...]
| When I don't specify the block size it just hangs.
| [root@darc200 ~]# tar tvf /dev/nst0

Is the tape doing anything?

Does this:

	strace -e trace=file tar tvf /dev/nst0

show anything happening?
This will be doing 512 byte sized block reads.

| When attempting to write to the tape using tar -cvf temp.tar /dev/nst0
| it fails also.

Certainly. You have that backwards. You want:

	tar cvf /dev/nst0 ...

to write to the tape. And why write a tar file containing a tar file?

| The tape is a HP StorageWorks Dat 40  scsi tape and usb tape devices.
| The OS is Red Hat AS 4.0 with kernel 2.6.9-5.EL i686 GNU/Linux.  I have
| the same problem with both tape devices.  
| 
| I can take the tape and put it in a dat drive on a hp and read it just
| fine.

Using what command? Or is the HP not running UNIX?
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Morality is the herd-instinct in the individual.        - Nietzsche



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

Message: 12
Date: Fri, 26 May 2006 10:40:29 +0800
From: Michael Wu <mwu@xxxxxxxxxxxxxxxxxxx>
Subject: Re: a fax viewer for linux similar to "Imaging for Windows"
To: redhat-list@xxxxxxxxxx
Message-ID: <44766A9D.2030300@xxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=Big5

Hi Mike,

Thank you for your reply.

It is true that we can edit the fax file with GIMP or other image editor
as I wrote in my first post. However, due to my limited user experience,
I cannot edit a multi-page fax file in GIMP. Considering the situation,
I receive a fax file via Hylafax and I want to remove the fax number
shown on each fax page. With "Imaging for Windows", I can use the
annotation tool to coat the fax number in white and repeat the action on
multiple fax pages; but I don't know how to do the same thing in the
linux environment. Hence, welcome any idea or comment to this question.

Thank you once more, Mike.

Michael

> ¥D¦®:
> Re: a fax viewer for linux similar to "Imaging for Windows"
> ±H¥óªÌ:
> Mike Burger <mburger@xxxxxxxxxxxxxxxxx>
> ¤é´Á:
> Thu, 25 May 2006 06:54:41 -0400 (EDT)
> ¦¬¥óªÌ(To):
> General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
>
> ¦¬¥óªÌ(To):
> General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
>
>
> "Imaging for Windows" is just an image editor, like The Gimp, though
> not nearly as full featured. If The Gimp is to much for what you want
> to do, have you tried searching for another image editor?
>
> On Thu, 25 May 2006, Michael Wu wrote:
>
>> Hi Robert,
>>
>> Thank you for your response. However, my question is not how to view a
>> fax file, but how to make an annotation on the fax file directly even
>> with a multi-page fax file. Hence, as you say, there are many viewer
>> available on linux platform to view the fax file; but I cannot find one
>> that can make an annotation as easily as "Imaging for Windows".
>>
>> Thank you.
>>
>> Michael
>
> -- 
> Mike Burger
> http://www.bubbanfriends.org
>
> Visit the Dog Pound II BBS
> telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
>
> To be notified of updates to the web site, visit
> http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
> message to:
>
> site-update-request@xxxxxxxxxxxxxxxxx
>
> with a message of:
>
> subscri
> be





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

Message: 13
Date: Thu, 25 May 2006 21:42:53 -0600
From: Sysadmin <sysadmin_lists@xxxxxxxxxx>
Subject: Restore - Linux vs Solaris
To: RedHat Discussions <redhat-list@xxxxxxxxxx>
Message-ID: <7.0.1.0.0.20060525211153.03ca43b0@xxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"; format=flowed

In the spirit of using Linux as much as possible,  I use my FC4 
server to back my Solaris system.  I have built a custom script that 
reaches across to Solaris system and executes a remote command using 
SSH.  The remote command used is "ufsdump".  The command looks something like
ssh -l user host ufsdump -0uf  - /partition-to-be-backed-up 
|cat  >/destination-directory/filename

Everything is fine til I need to restore from a back up.  It seems 
that I can backup and restore the smaller partitions (in this case 
2.2Gb) without issue. However, when I try to restore a backup for a 
larger partition(in this case 7.6Gb), I am unable restore without 
moving the backup file to a Solaris system.  Once I move the backup 
file to a Solaris system, it seems to work correctly. So the backup 
is being created accurately.

Is there any know differences between the Linux "restore" command and 
the Solaris "ufsrestore" command?  In both cases I am doing an 
interactive restore.
Linux -- restore -vif backup-file.dmp
Solaris -- ufsrestore -vif backup-file.dmp

I would appreciate any insights.


Leon Sonntag




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

Message: 14
Date: Fri, 26 May 2006 13:02:08 +0530
From: "nilesh vaghela" <nileshj.vaghela@xxxxxxxxx>
Subject: Re: need help about sendmail
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
Message-ID:
	<d2c13fd20605260032l57d43396i65dcbf37360a589b@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=UTF-8; format=flowed

I will try to send the step by step milter installation.

But wait some time.

Nilesh

On 5/24/06, Opesh Alkara <opeshalkara@xxxxxxxxx> wrote:
>
> Hi Nilesh,
>
> Just out of curiousity can you provide more details as how to do it for
> sending?
>
>
> On 5/24/06, nilesh vaghela <nileshj.vaghela@xxxxxxxxx> wrote:
> >
> > For sending mail one can user Sendmail Milters.
> >
> > -N
> >
> > On 5/23/06, Opesh Alkara <opeshalkara@xxxxxxxxx> wrote:
> > >
> > > cannot say about sending but mails received by every account on
> sendmail
> > > can
> > > be save in a certain mailbox.
> > >
> > > assuming that you understand sendmail aliases correctly, I would
> suggest
> > > to
> > > put in /etc/aliases just the name of central mailbox along with
> original
> > > mailbox.
> > >
> > >
> > > opesh:<tab character> opesh, mailbox@xxxxxxxxxxxxxx
> > > Mustafizur:<tab character> Mustafizur, mailbox@xxxxxxxxxxxxxx
> > >
> > > Hope this helps
> > >
> > > -Opesh
> > >
> > > On 5/23/06, A.M.M Mustafizur Rahman <rony006@xxxxxxxxx> wrote:
> > > >
> > > > Hello,
> > > > I am trying to setup a very simple rule:
> > > > Every incoming or outgoing mail should
> > > > be redirected to a central mail account,
> > > > which will keep a copy of every mail thus
> > > > sent or received.i am using RHEL AS3 & Sendmail.
> > > > any help me
> > > >
> > > >
> > > > A.M.M Mustafizur Rahman
> > > > Network Administrator
> > > > OTOBI Ltd.
> > > > Ph-8852386,8851913,0152348094
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > > http://mail.yahoo.com
> > > >
> > > > --
> > > > redhat-list mailing list
> > > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx
> ?subject=unsubscribe
> > > > https://www.redhat.com/mailman/listinfo/redhat-list
> > > >
> > > --
> > > redhat-list mailing list
> > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjectunsubscribe
> > > https://www.redhat.com/mailman/listinfo/redhat-list
> > >
> >
> >
> >
> > --
> > Nilesh Vaghela
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> >
>
>
> --
> Best,
> Opesh
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjectunsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
Nilesh Vaghela

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

Message: 15
Date: Fri, 26 May 2006 15:16:39 +0530
From: "nilesh vaghela" <nileshj.vaghela@xxxxxxxxx>
Subject: Re: need help about sendmail
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
Message-ID:
	<d2c13fd20605260246j31e09ae7t4825ba7a131b63d8@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=UTF-8; format=flowed

try this.

http://www.nber.org/sys-admin/copy-out.html

 Copying all mail to Archive *The following is probably made obsolete by this
<http://www.technoids.org/procmailfilter.html>.[note added 13July2005*

One of the most common questions on comp.mail.sendmail is "How do I get
sendmail to archive copies of outgoing mail". This question is usually left
unanswered, as the more influential members of the sendmail community think
that is an improper action. They are apparently thinking of an ISP snooping
on its customers. I expect the more likely case is a business such as a
brokerage which is legally required to keep copies of correspondence, for
understandable reasons.

Some mailers make this easy. Postfix has "bcc: always" option that solves
this problem with a single request.

Anthony C Howe has posted milter-bcc
<http://www.milter.info/milter-bcc/index.shtml> which appears to duplicate
the Postfix ability in Sendmail. See also
Synonym<http://www.modulo.ro/synonym/>from Modulo Consulting.

The Sendmail FAQ does offer three suggestions for doing this, but except for
one, they require extensive modification to sendmail, and it is clear that
they are not offered in the expectation that they will be implemented.

In the FAQ, and in the newsgroup, it is also suggested that Procmail can do
this. Most people making this suggestion are merely confused, since if you
install procmail as documented, it only sees incoming mail. Since it never
sees outgoing mail, it isn't going to be able to save copies. However it
turns out that there is a way to install procmail to process outgoing mail.
I haven't tried it myself, but I did track down the available instructions,
and have copied them below. There is obviously room for someone to actually
try to document this in simple terms for sendmail users of less than guru
status. As a start, one could consult this
<http://www.technoids.org/procmailfilter.html>. [Note added September 2005 -
Procmail scanning of outbound mail has apparently been added to Sendmail, if
not to the FAQ. See here <http://www.sendmail.org/m4/mailers.html>.

The sendmail FAQ includes a reference to a comp.mail.sendmail posting using
only * 33AA593A.4B701C3F@xxxxxxxxxxx * for the citation. While some users
might know to go to the Google Groups "Advanced Search" page, others may
not. I expect this page will come up for anyone searching in the Google web
engine for that message-id, thus letting the uninitiated see the posting
referred to.


Viewing message &lt;33AA593A.4B701C3F@xxxxxxxxxxx&gt;


From: Homme Bitter (H.Bitter at syntegra dotte nl)
Subject: Solution for copying all mail to archive
Newsgroups: comp.mail.sendmail
View: (This is the only article in this thread) | Original Format
Date: 1997/06/20


It took me some time, but,
I have it solved...
This can also be used as a general purpose mailfilter too, excellent for
detecting spam and other unpleasant things.

Solution:

Let sendmail map everything through procmail, let procmail do to your
mail whatever you want with it and map it back.

That was the easy part...
Now for the syntax.

Add some local rules to your m4 config file ( use m4, ALWAYS ! ).

MAILER(`procmail')dnl
LOCAL_RULE_0
R$*&lt;@$*.procmail&gt;$* $1@&lt;$2&gt;$3 map back of procmail copy
LOCAL_RULE_0
R$*&lt;@$+&gt;$* $#procmail $@/etc/procmailrc $:$1@$2procmail$3 send all
external mail to procmail

this will send all mail through procmail using the file /etc/procmailrc
as the config file for procmail.

I use this one:

:0 c:
/var/mail/archive

Once I found this all out ( with a little help, I might add ). it all
seemed so simple....

Maybe this would be a good item to add to the faq, since it is a general
purpose add on for sendmail that can be used for many useful purposes.

Known problems:
Sending to a top leve domain doesn't work, it somehow looses a dot, but
then again, there are no mailaddresses in toplevedomains, to my
knowledge, so, who cares.
This version only works for mail wit a @ sign in the address, it's kind
of hard to split up an address that consists of only one string.

Good luck, I hope the mail-commutity is happy with this.

Homme





 Also see this message:
From: Per Hedeland (per@xxxxxxxxxxxx)
Subject: Re: Using procmail to archive outbound fails - buildaddr: no user
Newsgroups: comp.mail.sendmail
View this article only
Date: 2002-04-13 03:30:06 PST


In article &lt;m1vgawb6x8.fsf@xxxxxxxxxxxxxxxxxx&gt; Harry Putnam
&lt;reader@xxxxxxxxxxx&gt; writes:
&gt;
&gt; MAILER(`procmail')dnl
&gt; LOCAL_RULE_0
&gt; R$*&lt;@$*.procmail&gt;$* $1@&lt;$2&gt;$3 map back of procmail copy
&gt; LOCAL_RULE_0
&gt; R$*&lt;@$+&gt;$* $#procmail $@/etc/procmailrc $:$1@$2procmail$3 send
all
&gt; external mail to procmail
&gt;
&gt;After first getting the tabs right (I think), I inserted the above
&gt;into my.mc and generated sendmail.cf

You *didn't* get the tabs right - it should be like this (no need for
multiple LOCAL_RULE_0 directives), where I have used &lt;TAB&gt; instead of
actual tab(s):

LOCAL_RULE_0
R$*&lt;@$*.procmail&gt;$*&lt;TAB&gt;$1@&lt;$2&gt;$3&lt;TAB&gt;map back of
procmail copy
R$*&lt;@$+&gt;$*&lt;TAB&gt;$#procmail $@/etc/procmailrc
$:$1@$2procmail$3&lt;TAB&gt;send all
external mail to procmail

Btw, it's probably better to do this with a milter these days.

--Per Hedeland
per@xxxxxxxxxxxx
 --
Nilesh Vaghela

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

Message: 16
Date: Fri, 26 May 2006 16:19:04 +0530
From: "Opesh Alkara" <opeshalkara@xxxxxxxxx>
Subject: Re: need help about sendmail
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
Message-ID:
	<bd0c409a0605260349q20da868ep58f978f5642f1353@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Great Help!

I'll give it a shot.

Thanks Nilesh!

-- 
Best,
Opesh


On 5/26/06, nilesh vaghela <nileshj.vaghela@xxxxxxxxx> wrote:
>
> try this.
>
> http://www.nber.org/sys-admin/copy-out.html
>
> Copying all mail to Archive *The following is probably made obsolete by
> this
> <http://www.technoids.org/procmailfilter.html>.[note added 13July2005*
>
> One of the most common questions on comp.mail.sendmail is "How do I get
> sendmail to archive copies of outgoing mail". This question is usually
> left
> unanswered, as the more influential members of the sendmail community
> think
> that is an improper action. They are apparently thinking of an ISP
> snooping
> on its customers. I expect the more likely case is a business such as a
> brokerage which is legally required to keep copies of correspondence, for
> understandable reasons.
>
> Some mailers make this easy. Postfix has "bcc: always" option that solves
> this problem with a single request.
>
> Anthony C Howe has posted milter-bcc
> <http://www.milter.info/milter-bcc/index.shtml> which appears to duplicate
> the Postfix ability in Sendmail. See also
> Synonym<http://www.modulo.ro/synonym/>from Modulo Consulting.
>
> The Sendmail FAQ does offer three suggestions for doing this, but except
> for
> one, they require extensive modification to sendmail, and it is clear that
> they are not offered in the expectation that they will be implemented.
>
> In the FAQ, and in the newsgroup, it is also suggested that Procmail can
> do
> this. Most people making this suggestion are merely confused, since if you
> install procmail as documented, it only sees incoming mail. Since it never
> sees outgoing mail, it isn't going to be able to save copies. However it
> turns out that there is a way to install procmail to process outgoing
> mail.
> I haven't tried it myself, but I did track down the available
> instructions,
> and have copied them below. There is obviously room for someone to
> actually
> try to document this in simple terms for sendmail users of less than guru
> status. As a start, one could consult this
> <http://www.technoids.org/procmailfilter.html>. [Note added September 2005
> -
> Procmail scanning of outbound mail has apparently been added to Sendmail,
> if
> not to the FAQ. See here <http://www.sendmail.org/m4/mailers.html>.
>
> The sendmail FAQ includes a reference to a comp.mail.sendmail posting
> using
> only * 33AA593A.4B701C3F@xxxxxxxxxxx * for the citation. While some users
> might know to go to the Google Groups "Advanced Search" page, others may
> not. I expect this page will come up for anyone searching in the Google
> web
> engine for that message-id, thus letting the uninitiated see the posting
> referred to.
>
>
> Viewing message &lt;33AA593A.4B701C3F@xxxxxxxxxxx&gt;
>
>
> From: Homme Bitter (H.Bitter at syntegra dotte nl)
> Subject: Solution for copying all mail to archive
> Newsgroups: comp.mail.sendmail
> View: (This is the only article in this thread) | Original Format
> Date: 1997/06/20
>
>
> It took me some time, but,
> I have it solved...
> This can also be used as a general purpose mailfilter too, excellent for
> detecting spam and other unpleasant things.
>
> Solution:
>
> Let sendmail map everything through procmail, let procmail do to your
> mail whatever you want with it and map it back.
>
> That was the easy part...
> Now for the syntax.
>
> Add some local rules to your m4 config file ( use m4, ALWAYS ! ).
>
> MAILER(`procmail')dnl
> LOCAL_RULE_0
> R$*&lt;@$*.procmail&gt;$* $1@&lt;$2&gt;$3 map back of procmail copy
> LOCAL_RULE_0
> R$*&lt;@$+&gt;$* $#procmail $@/etc/procmailrc $:$1@$2procmail$3 send all
> external mail to procmail
>
> this will send all mail through procmail using the file /etc/procmailrc
> as the config file for procmail.
>
> I use this one:
>
> :0 c:
> /var/mail/archive
>
> Once I found this all out ( with a little help, I might add ). it all
> seemed so simple....
>
> Maybe this would be a good item to add to the faq, since it is a general
> purpose add on for sendmail that can be used for many useful purposes.
>
> Known problems:
> Sending to a top leve domain doesn't work, it somehow looses a dot, but
> then again, there are no mailaddresses in toplevedomains, to my
> knowledge, so, who cares.
> This version only works for mail wit a @ sign in the address, it's kind
> of hard to split up an address that consists of only one string.
>
> Good luck, I hope the mail-commutity is happy with this.
>
> Homme
>
>
>
>
>
> Also see this message:
> From: Per Hedeland (per@xxxxxxxxxxxx)
> Subject: Re: Using procmail to archive outbound fails - buildaddr: no user
> Newsgroups: comp.mail.sendmail
> View this article only
> Date: 2002-04-13 03:30:06 PST
>
>
> In article &lt;m1vgawb6x8.fsf@xxxxxxxxxxxxxxxxxx&gt; Harry Putnam
> &lt;reader@xxxxxxxxxxx&gt; writes:
> &gt;
> &gt; MAILER(`procmail')dnl
> &gt; LOCAL_RULE_0
> &gt; R$*&lt;@$*.procmail&gt;$* $1@&lt;$2&gt;$3 map back of procmail copy
> &gt; LOCAL_RULE_0
> &gt; R$*&lt;@$+&gt;$* $#procmail $@/etc/procmailrc $:$1@$2procmail$3 send
> all
> &gt; external mail to procmail
> &gt;
> &gt;After first getting the tabs right (I think), I inserted the above
> &gt;into my.mc and generated sendmail.cf
>
> You *didn't* get the tabs right - it should be like this (no need for
> multiple LOCAL_RULE_0 directives), where I have used &lt;TAB&gt; instead
> of
> actual tab(s):
>
> LOCAL_RULE_0
> R$*&lt;@$*.procmail&gt;$*&lt;TAB&gt;$1@&lt;$2&gt;$3&lt;TAB&gt;map back of
> procmail copy
> R$*&lt;@$+&gt;$*&lt;TAB&gt;$#procmail $@/etc/procmailrc
> $:$1@$2procmail$3&lt;TAB&gt;send all
> external mail to procmail
>
> Btw, it's probably better to do this with a milter these days.
>
> --Per Hedeland
> per@xxxxxxxxxxxx
> --
> Nilesh Vaghela
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
>


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

Message: 17
Date: Fri, 26 May 2006 19:34:05 +0530
From: "vipin sagar" <sagar.vipin@xxxxxxxxx>
Subject: Re: Installing perl-suid
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
Message-ID:
	<5f7d154f0605260704y35ec2783n8a8b7496d296155d@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed

What was the exact message ya were receivin....??

how about going with perl -MCPAN -e shell :)
before starting off..FIRST do the MCPAN update itself...

Finally...
Is your SELinux  Active | Warn | Diasble ?


On 5/19/06, Steve Phillips <steve@xxxxxxxxxx> wrote:
> Roger wrote:
> > Can anyone please help me out. I am trying to install qmail, i have
> > installed everything but when i run the qmail-scanner, its gives me an
> > error. Now as i understand it, i am supposed to have perl-suid running
> > in order for the qmail-send to run properly. I have perl version 5.8.8**
> > or something like that. How then do i get to install perl-suid.
> >
> > Any help will be appreciated.
> >
>
> The OS type/information would be markedly handy here as would qualifying
> what perl version you _actually_ have
>
> [root@wibble steve]# rpm -q perl
> perl-5.8.5-24.RHEL4
>
> if you are running perl that is bundled with redhat (assuming you are
> running RHEL[34] you only need to type "up2date perl-suidperl", if not
> then good luck.
>
> --
> Steve.
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>


-- 
~O_0~
~sagar
http://vipinsagar.be
...i've to look back when i heard a gong! i could only see a huge
cobweb and its shining, just got wonder, what the time it was...5AgAr



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

__
redhat-list mailing list
Unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

End of redhat-list Digest, Vol 27, Issue 26
*******************************************

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux