- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configuring a mail account to save out attachments
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
09-18-2006 01:53 AM
09-18-2006 01:53 AM
configuring a mail account to save out attachments
Under hp-ux 11.11 I want to set up and configure an email account to receive mails with attachments and save the attchments into a particular directory, from where a separate application will pick them up and process them. The mails themselves are of no concern, only the attachments.
Can anyone supply any pointers on the simplest way to configure this?
Skill level is low in hp-ux - i'm a DBA with some hp-ux i picked up as i went along :). The simpler the better but if it has to be complicated i'm pretty good at following steps.
Any offers?
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 02:07 AM
09-18-2006 02:07 AM
Re: configuring a mail account to save out attachments
Take a look at sorting mails part of procmail.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 02:14 AM
09-18-2006 02:14 AM
Re: configuring a mail account to save out attachments
see more info about sendmail here:
http://sendmail.org/
Once you setup sendmail then you can save attachments into folders using mailx or elm utilities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 02:25 AM
09-18-2006 02:25 AM
Re: configuring a mail account to save out attachments
sendmail is configured and working fine - the issue lies in how to automate the saving of the attachments. I want to configure a new mail account to automatically save all attachments into a particular directory, preferably at the time the mail comes into the server.
Hope that clarifies the issue.
Ivan - I would prefer to use standard features if possible, rather than third party software. Does procmail replace sendmail or can you ask procmail to only handle one particular mail account?
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 09:24 PM
09-18-2006 09:24 PM
Re: configuring a mail account to save out attachments
Can anyone offer anything further on this? I didn't think it would be a complicated ask. Sendmail is working. All I need to do is set up an account in such a way that all attachments are automatically directed into a particular directory.
Regards
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 04:09 AM
09-19-2006 04:09 AM
Re: configuring a mail account to save out attachments
setup an alias (e.g. 'getatt') for the mail addresse in your aliases-database (local /etc/aliases or NIS map) of the form:
getatt : |/path/to/attach_distr
In the script 'attach_distr' you will get the mail content just simple as stdin.
As a first attempt, start with somthing like that:
#!/usr/bin/ksh
logdir=/path/to/logdir
logbase=att$(date +%X)
typeset -i id=1
until [ ! -f $logdir/$logbase-$id ]
do ((id+=1))
done
logfile=$logdir/$logbase-$id
cat >$logfile
Change the 'cat' to a more fitting procedure to extract only the requested data.
The above mentioned 'procmail' may be your friend.
mfG Peter