- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail rule to explicitly reference aliases ...
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-17-2003 02:04 PM
тАО03-17-2003 02:04 PM
sendmail rule to explicitly reference aliases database
Versions: HP-UX 10.20, sendmail 8.8.6.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 02:30 PM
тАО03-17-2003 02:30 PM
Re: sendmail rule to explicitly reference aliases database
make sure you have the following lines
# location of alias file
O AliasFile=/etc/mail/aliases
and /etc/mail/aliases
would have
user# : user#@domain2.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 03:01 PM
тАО03-17-2003 03:01 PM
Re: sendmail rule to explicitly reference aliases database
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2003 03:03 PM
тАО03-17-2003 03:03 PM
Re: sendmail rule to explicitly reference aliases database
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:29 AM
тАО03-18-2003 07:29 AM
Re: sendmail rule to explicitly reference aliases database
What we are currently doing is turning everything with domain1 over to Openmail, with the following rule (no line break):
R$+ domain1.co.in $* $#openmail $@ $j $: $1<$2domain1.co.in>
This server is in India, as you might guess. The rule is in ruleset 0.
My goal is to have specified users defined such that their message are rerouted to domain2, but the other users continue to get their mail the same way they do, today.
In truth, if there is a better way to acheive that goal, that would be fine. I'm only concerned that too much change will introduce too much risk. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 09:01 AM
тАО03-18-2003 09:01 AM
Re: sendmail rule to explicitly reference aliases database
Uncomment these rulesets:
#Kvirtuser dbm /etc/mail/virtusertable
# handle virtual users
#R$+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
#R<@> $+ + $* < @ $* . >
$: < $(virtuser $1 + * @ $3 $@ $1 $: @ $) > $1 + $2 < @
$3 . >
#R<@> $+ + $* < @ $* . >
$: < $(virtuser $1 @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 .
>
#R<@> $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
#R<@> $+ $: $1
#R< error : $- $+ > $* $#error $@ $(dequote $1 $) $: $2
#R< $+ > $+ < @ $+ > $: $>97 $1
Build a file called virtusertable in /etc/mail.
On the left hand side of the file, you have an e-mail address (e.g. you@yourdomain.com); the corresponding right hand side is [user account|e-mail address|alias]
So you'd end up with something like:
you@domain1.com you@domain2.com
for each entry in the aliase table. Leave the rest alone, or specify a local account
local@domain1.com local
In addition, an e-mail address can appear on the right hand side of an entry in the alias table.
To build the virtusertable type
#/usr/sbin/makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable
Restart sendmail (to make the changes in sendmail.cf take effect).