- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sending files via email between unix servers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 04:25 AM
03-28-2006 04:25 AM
sending files via email between unix servers
I am trying to find a solution to transfer files from a client machine(HP&SUN) we support to our machine(HP&SUN). Both are on different networks. Since we support several clients setting up ftp on each of the client's server boxes is painfull and some clients unwilling.
I am looking at sending those files in a mail to our machine. So multiple senders one receiver.
We are expecting to receiving mails in the scale of 10 a day each approx 100 - 250MB size.
I was planning to write a tool on the receiving side polling for the mails coming in.
I tried to send the files as a attachment using uuencode and then uudecode at the receiving end. This is OK with small files, but with 100MB expected I am not sure if this is the right solution. Also i need to come up with a smart script to glean the /var/mail/
when i use uuencode and mail it to say lotus notes /outlook, i get the file as attached.
Can we have a similar solution instead of encoding the attached file in the /var/mail/
Is there any tool within the unix / open source available out there.
I am just looking at ideas, before I embark on a solution and realise there is a better solution out there.
Please keep in mind there are no PC's involved, just mailing files between two unix servers with the receiving side having a good mechanism to segregate based on some information in the subject.
Thanks for your time
Srinu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 04:37 AM
03-28-2006 04:37 AM
Re: sending files via email between unix servers
All you need to do is send this Perl script to each client and agree on a receiving directory on your server. Invoke as ftpput.pl -u for full usage. It will do the transfers; automatically retry if you like; and return a valid status. The password can be kept in .netrc on the client end (or passed on the command line). You should be able to encode any needed metadata in the filename itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2006 05:39 AM
03-29-2006 05:39 AM
Re: sending files via email between unix servers
I will give a try at your script.
But I doubt this will work when the both the servers are in completely different networks.
In other words can i use this script to send a file to some unix server in your work place assuming that u provided me the IP, username, password and the receiving directory? Even though my network is not configured to recognize your IPaddress?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2006 05:44 AM
03-29-2006 05:44 AM
Re: sending files via email between unix servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2006 05:52 AM
03-29-2006 05:52 AM
Re: sending files via email between unix servers
I also have a script that permits sendmail attachments, based on something I found a while back on ITRC.
Problem is, 250 MB attachment? I'm sure sendmail is probably capable of sending the thing, but there will be a giant sucking sound (Thank you Ross Perot) when that file starts to transfer across networks.
If it passes through any smtp relay servers, the attachment could be stripped out as too large.
http://www.hpux.ws/mailfile2
I recommend setting up openssh and public keys between the servers and using the scp command to transfer the files.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2006 06:06 AM
03-29-2006 06:06 AM
Re: sending files via email between unix servers
Automated FTP (or secure FTP) is by far the most useful solution. You will likely have to arrange for FTP firewall rules on your side as well as on your customers' firewalls. It will be MUCH faster and MUCH more reliable than email and will also have immediate feedback on failures.
Bill Hassell, sysadmin