- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- trying to setup an alias ???
Operating System - HP-UX
1753877
Members
7674
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО01-23-2007 05:13 AM
тАО01-23-2007 05:13 AM
I have a unix user -- fname
Would like to have the user look like -- first.name@company.com -- when emails are received from him.
I've tried setting this up in /etc/mail/aliases but I can't get the user name to look any way but 'fname'. What is the syntax I should be using in /etc/mail/aliases?
Would like to have the user look like -- first.name@company.com -- when emails are received from him.
I've tried setting this up in /etc/mail/aliases but I can't get the user name to look any way but 'fname'. What is the syntax I should be using in /etc/mail/aliases?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2007 05:33 AM
тАО01-23-2007 05:33 AM
Re: trying to setup an alias ???
aliases is the wrong file for that. For outbound mail you'd need to set up address rewriting, which is a bit more complex. As I recall, the general process is to set up genericstable, do a makemap on it, enable it in sendmail.cf (if it's not already there), and restart sendmail. There's a lot of documentation out on the web, this should give you enough of a starting point to find it without too much trouble.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2007 05:50 AM
тАО01-23-2007 05:50 AM
Solution
With /etc/mail/aliases file, you can't rewrite "From" address. You need to make use of User Database (USERDB) functionality of the sendmail.
This funcationality needs to be there inbuilt in sendmail. Check using
# /usr/sbin/sendmail -d0.1 -bt < /dev/null
It can be enabled in sendmail.cf using
O UserDatabaseSpec=/etc/mail/userdb.db
create a /etc/mail/userdb file as
david:mailname david.xyz@abc.com
david.xyz:maildrop david
Create user DB using
# cd /etc/mail
# makemap btree ./userdb.db < ./userdb
Then test it by sending an email.
This funcationality needs to be there inbuilt in sendmail. Check using
# /usr/sbin/sendmail -d0.1 -bt < /dev/null
It can be enabled in sendmail.cf using
O UserDatabaseSpec=/etc/mail/userdb.db
create a /etc/mail/userdb file as
david:mailname david.xyz@abc.com
david.xyz:maildrop david
Create user DB using
# cd /etc/mail
# makemap btree ./userdb.db < ./userdb
Then test it by sending an email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2007 08:42 AM
тАО01-23-2007 08:42 AM
Re: trying to setup an alias ???
Sameer -- thanks. this worked
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP