- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: virtusertable syntax -- plz help
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
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
тАО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
info@foo.com foo-info
info@bar.com bar-info
joe@bar.com error:nouser 550 No such user here
jax@bar.com error:5.7.0:550 Address invalid
@baz.org jane@example.net
then mail addressed to info@foo.com will be sent to the
address foo-info, mail addressed to info@bar.com will be
delivered to bar-info, and mail addressed to anyone at baz.org
will be sent to jane@example.net, mail to joe@bar.com will
be rejected with the specified error message, and mail to
jax@bar.com 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
ha@test-virtual.com 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 %1@test-same-si.com
- 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