- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Someone want to port this script to hp-ux?
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
Discussions
Discussions
Forums
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
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-25-2003 10:57 AM
тАО03-25-2003 10:57 AM
newaliases
cd /etc/mail
makemap -r -v hash access.db < access
makemap -r -v hash domaintable.db < domaintable
makemap -r -v hash genericstable.db < genericstable
makemap -r -v hash mailertable.db < mailertable
makemap -r -v hash virtusertable.db < virtusertable
cp /etc/sendmail.cf /root
/etc/init.d/sendmail restart
I know the sendmail part won't work.
I'd make that
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
A rabbit for the a any tested, working port.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 11:41 AM
тАО03-25-2003 11:41 AM
Solution$grep domaintable sendmail.cf
Kdomaintable dbm /etc/mail/domaintable
says use dbm for domaintable
newaliases
cd /etc/mail
/usr/sbin/makemap dbm access < access
/usr/sbin/makemap dbm domaintable < domaintable
/usr/sbin/makemap dbm genericstable < genericstable
/usr/sbin/makemap dbm mailertable < mailertable
/usr/sbin/makemap dbm virtusertable < virtusertable
...
You don't have to restart sendmail - the databases are live. But if you prefer (as you noted),
/sbin/init.d/sendmail start
/sbin/init.d/sendmail stop
The aforementioned assumes domaintable, genericstable mailertable and virtusertable exists. A good script would test for them, or better yet, derive them from sendmail.cf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 01:39 PM
тАО03-26-2003 01:39 PM
Re: Someone want to port this script to hp-ux?
#!/usr/bin/sh
newaliases
grep ^K /etc/mail/sendmail.cf |\
while read name type opt arg
do
file=${arg:-$opt}
case $type in
(dbm|btree|hash)
touch $file
makemap -rv $type $file < $file
;;
esac
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 01:49 PM
тАО03-26-2003 01:49 PM
Re: Someone want to port this script to hp-ux?
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-26-2003 02:08 PM
тАО03-26-2003 02:08 PM
Re: Someone want to port this script to hp-ux?
Thanks SEP.