- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating a script called from a user's .forwar...
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
04-28-2003 12:29 PM
04-28-2003 12:29 PM
For a while now, I've read that a user's .forward file can be used to somehow forward messages received to a PROGRAM instead of to a human recipient somewhere. I'd appreciate any pointers as to where I can find additional information regarding this process.
We're an SAP R/3 shop, and our central admin user (prdadm) gets inundated with returned mail messages resulting from our customers inputting bogus email addresses for themselves. Right now, all of this "bad email" gets forwarded to my Microsoft Outlook mailbox. But I'd really like to be able to have HP-UX analyze the bad email (an attachment really) and forward the messages to the appropriate service individuals.
Like I said, I appreciate any advice you may have. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 12:46 PM
04-28-2003 12:46 PM
Solutionhttp://hpux.connect.org.uk/hppd/hpux/Networking/Mail/procmail-3.22/
All my procmail rules are defined in .procmailrc and my .forward file looks like this ..
"|exec /usr/local/bin/procmail"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 12:50 PM
04-28-2003 12:50 PM
Re: Creating a script called from a user's .forward file
The reference I use[d] is called Administering ARPA Services [manual number B1014-90008] -- copyright 1992 - believe it or not everything still applies.
You can add anything that appears on the "right hand side" to the aliases table (/etc/mail/aliases) or you can allow the user to invoke [most of] the same functionality from a .forward file in their home directory.
Here's an example of invoking a procmail recipe directly from the aliases table:
myinfoproc : | "/usr/local/bin/procmail -m /var/opt/procmail/.myprocmailrc"
You'd invoke it by sending mail to myinfoproc@mydomain.com
Here's an example of invoking a procmail recipe from a .forward file:
$cat $HOME/.forward
| "/usr/local/bin/procmail #testuser"
procmail excels at mail handling. You can download a copy from http://www.procmail.org/
Versions are also available from the porting archive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 12:55 PM
04-28-2003 12:55 PM
Re: Creating a script called from a user's .forward file
\user, "|/usr/ucb/vacation user"
"|exec /usr/local/bin/procmail #user"
"| /usr/local/lib/mh/slocal -user user"
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 04:57 AM
04-29-2003 04:57 AM
Re: Creating a script called from a user's .forward file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 05:06 AM
04-15-2004 05:06 AM
Re: Creating a script called from a user's .forward file
\mqm,"|/u01/app/home/mqm/Mail_Parser"
The "mqm" user is receiving messages, but the incoming messages are NOT getting to the .forward file...
What in sendmail, causes a new message to be routed to the users $HOME directory, and subsequently the .forward file?
TIA
Joe F...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 05:26 AM
04-15-2004 05:26 AM
Re: Creating a script called from a user's .forward file
Make sure that the user's .forward file is set NOT writable by either the group or others. I know sendmail can be picky about that, and for good reason. Check out your /var/adm/syslog/mail.log file to see if any messages appear in there about the .forward file.