- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Two Domains, one expires soon, need an auto-re...
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
тАО12-08-2004 10:10 AM
тАО12-08-2004 10:10 AM
Now heres the hitch:
I want sendmail to receive email for both domains (it already does this part), but I'd like it set up so that mail addressed to
I had thought about using the virtusertable to reroute all mail to
Am I on the right path here, or am I overlooking something completely obvious?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:38 AM
тАО12-08-2004 11:38 AM
Re: Two Domains, one expires soon, need an auto-responder.
Here a link that tells step by step how to do that. I'm copying an overengineered Linux script that will build the necessary sendmail .cf file from the sendmail.mc file.
Here is a link to an hpux version:
http://www.hpux.ws/buildmail.hpux.text
I really don't know how to set up an auto responder.
What I'd do is once a day cat the mail.log or maillog file and cull it for lines that contain the olddomain.net.
I'd then process that file and send out a generic message. You can even fancy up the script and have it check a database of whom it has sent messages to and only send the message one time.
The sendmail.org site also contains cookbooks on how to set up auto-responders.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:39 AM
тАО12-08-2004 11:39 AM
Re: Two Domains, one expires soon, need an auto-responder.
If your users use outlook express, you could have them set up an out of the office response message. You can change the message and have it respond to all inbound mail once with a warning message.
I'm attaching a perl script that could be a good starter for your auto-response message.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:52 AM
тАО12-08-2004 11:52 AM
SolutionMaybe you can use sendmail's built-in redirect feature.
The following would apply to the machine handling the old domain.
In /etc/mail/sendmail.cf make sure you have line
CPREDIRECT
In /etc/mail/aliases for each user have
When users send email to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2004 10:40 AM
тАО12-11-2004 10:40 AM
Re: Two Domains, one expires soon, need an auto-responder.
Changes are as folows, script is attatched:
/etc/mail/virtusertable:
@olddomain.net redir@newdomain.net
/etc/mail/aliases:
redir: "| /usr/local/bin/mailredir.pl"
There is one bug I've found thus far. If the message is addressed to more than one user@olddomain.net, it will only detect the first address in the list. I'm not sure how to get around this, but it's not a major concern since this is for a personal mail server. Suggestions welcome.