HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Testing /etc/aliases
Operating System - HP-UX
1829107
Members
2850
Online
109986
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
07-06-2005 05:04 AM
07-06-2005 05:04 AM
Testing /etc/aliases
I was just curious about a way to test the /etc/aliases file, and if there was a specific command to execute after you do the newaliases command? I checked the man pages, and did not find what I needed to know.
Thanks in advance for your help!
Thanks in advance for your help!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 05:15 AM
07-06-2005 05:15 AM
Re: Testing /etc/aliases
The /etc/aliases I have documentation in them that they are sendmail aliases.
!st off, I would check the /etc/mail/sendmail.cf file to see where it thinks the aliases file is. There will be a line that says "AliasFile=..."
Usually it is /etc/mail/aliases but check to be sure.
To activate the aliases file in sendmail issue the following command;
/usr/sbin/sendmail -bi
This will reread the aliases file and create a new aliases.db database file for sendmail to use. If there is a problem the output will let you know.
You can test after the sendmail -bi command. Just send a mail to the alias you created.
!st off, I would check the /etc/mail/sendmail.cf file to see where it thinks the aliases file is. There will be a line that says "AliasFile=..."
Usually it is /etc/mail/aliases but check to be sure.
To activate the aliases file in sendmail issue the following command;
/usr/sbin/sendmail -bi
This will reread the aliases file and create a new aliases.db database file for sendmail to use. If there is a problem the output will let you know.
You can test after the sendmail -bi command. Just send a mail to the alias you created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 03:50 PM
07-06-2005 03:50 PM
Re: Testing /etc/aliases
doing a sendmail -bi will work
If you do a man sendmail will provide you this info
thanks
DP
If you do a man sendmail will provide you this info
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 03:57 PM
07-06-2005 03:57 PM
Re: Testing /etc/aliases
Maybe you are looking for -bv option to sendmail.
-bv Verify names only; i.e, do not try to collect or deliver a
message. Verify mode is normally used for validating users
or mailing lists.
$ /usr/sbin/sendmail -bv nobody
/dev/null... deliverable: mailer *file*, user /dev/null
Also look into expand_alias(1).
-bv Verify names only; i.e, do not try to collect or deliver a
message. Verify mode is normally used for validating users
or mailing lists.
$ /usr/sbin/sendmail -bv nobody
/dev/null... deliverable: mailer *file*, user /dev/null
Also look into expand_alias(1).
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP