- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail changing domains
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
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
06-01-2005 11:00 PM
06-01-2005 11:00 PM
Sendmail changing domains
In order to send mail through the firewalls, the clients send mail to a relay1, which sends the mail to another relay2 (exchange server), which then delivers it.
This works fine, but users have to use a slightly different format to the addresses:
instead of username@domain.co.uk, which is their actuaul address, they have to use "username@gateway.domain.co.uk".
What I want to do is have relay1 turn any address which ends "@domain.co.uk" into "@gateway.domain.co.uk" for relaying onto relay2, so relay2 does not reject it.
I've been looking at "mailertable" and "domaintable" without success so far.
Can anyone suggest how I might do this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 12:24 AM
06-02-2005 12:24 AM
Re: Sendmail changing domains
a lot threads before asked and similar problems as your's;
http://www4.itrc.hp.com/service/james/search.do?rn=25&source=7000&hpl=1&from=forums&searchcategory=ALL&todo=search&origin=0&wpa=forums1.itrc.hp.com%3A80&searchcriteria=allwords&searchtext=sendmail&esc=europe.support.itrc.hp.com&chkServStor=on&presort=rank
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 12:46 AM
06-02-2005 12:46 AM
Re: Sendmail changing domains
It seems no-one else has quite the same issues.
I don't have any problems sending mail, I just want mails to "user@domain.co.uk" tro actually go to "user@gateway.domain.co.uk", and have that work done by the HP-UX relay1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 12:53 AM
06-02-2005 12:53 AM
Re: Sendmail changing domains
I used domaintable in the end, but I was not uncommenting the rule in sendmail.cf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 12:59 AM
06-02-2005 12:59 AM
Re: Sendmail changing domains
http://www.sendmail.org
http://www.hpux.ws
I post hpux.ws
There is an HP-UX adaptation of a sendmail macro process there.
Its a script that takes a sendmail.mc macro and turns it into a sendmail.cf file. This negates the need to manually edit the sendmail.cf file.
sendmail.org is a great place to learn the product.
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
06-02-2005 01:34 AM
06-02-2005 01:34 AM
Re: Sendmail changing domains
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 02:16 AM
06-02-2005 02:16 AM
Re: Sendmail changing domains
Here is the tips from Knowledge Base:
The domaintable is a feature that allows you to use multiple domain names when for example transitioning from an old domain to a new one. The domaintable enables such transitions to operate smoothly by rewriting the old domain to the new.
1. Create the file /etc/mail/domaintable. Examples for the syntax in this file:
old.domain new.domain
other.domain local.host.domain
In it the left side of each line has one of possibly many fully qualified hostnames, and the right side has either your new domain name or one of your local hostnames.
2. Build the /etc/mail/domaintable.db file with the makemap routine:
makemap hash /etc/mail/domaintable.db < /etc/mail/domaintable
3. Make the following changes in /etc/mail/sendmail.cf:
old: #Kdomaintable dbm /etc/mail/domaintable
new: Kdomaintable hash -o /etc/mail/domaintable
Search for this string:
# look up domains in the domain table
Remove the hash in front of this line:
# R$* < @ $+ > $* $: $1 < @ $(domaintable $2 $) > $3
4. Restart sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start