- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- virtusertable syntax -- plz help
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
05-10-2006 06:29 AM
05-10-2006 06:29 AM
I have achieve this from /etc/alias file, as:
#vi /etc/aliases
john: james
#newaliases
But I have heard and read also that it can also be done via virtusertable
#vi virtusertable
john@ james
#make
But when I mail to john...instead of james, john received the mail.
from /var/log/maillog
May 10 22:43:59 mail sendmail[2594]: k4AHhxgi002594: from=
May 10 22:43:59 mail sendmail[2594]: k4AHhxgi002594: to=
why ?
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 12:32 PM
05-10-2006 12:32 PM
Solutionhere is virtusertable syntax example. I would recommnad that you use full email address rather then just aliases. Also you must restart sendmail to read updated table.
http://www.defcon1.org/html/Software_Articles/File-Share/Qmail-install/Story/virtusertable.html
Regards,
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 01:57 PM
05-10-2006 01:57 PM
Re: virtusertable syntax -- plz help
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
have a look at the README.cf file in /usr/share/doc/sendmail this explains the use of virtusertable in a very detailed way, here is some part of it
[email protected] foo-info
[email protected] bar-info
[email protected] error:nouser 550 No such user here
[email protected] error:5.7.0:550 Address invalid
@baz.org [email protected]
then mail addressed to [email protected] will be sent to the
address foo-info, mail addressed to [email protected] will be
delivered to bar-info, and mail addressed to anyone at baz.org
will be sent to [email protected], mail to [email protected] will
be rejected with the specified error message, and mail to
[email protected] will also have a RFC 1893 compliant error code
5.7.0.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:52 PM
05-10-2006 06:52 PM
Re: virtusertable syntax -- plz help
for local users address translation.
Read here for more info:
http://www.yak.net/fqa/190.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 01:16 AM
05-11-2006 01:16 AM
Re: virtusertable syntax -- plz help
# All messages to ha goes to testha
[email protected] testha
# All mesages to domain test-virtual.com goes to root
@test-virtual.com root
# All messages to domain test2-virtual.com goest to the same user but in the domain test-same-si.com
@test2-virtual.com %[email protected]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 06:07 AM
05-11-2006 06:07 AM