- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail - two domains?
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
Forums
Discussions
Discussions
Discussions
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
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
08-03-2000 11:32 AM
08-03-2000 11:32 AM
sendmail - two domains?
Can sendmail serve two different domain names? To complicate things, specific users work for each company. So when john sends email out, it should appear to be from john@domain1.com, but harry's mail should appear to be from harry@domain2.com.
Is this possible, or should I just put Linux on a PC and set up sendmail to serve the second domain?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2000 12:14 PM
08-03-2000 12:14 PM
Re: sendmail - two domains?
For outgoing mail, how are your john and harry sending their mails? are they logged onto the HP box or are they sending from a PC. If its from a PC then its a question of configuring the PC with the details of THEIR account (ie. domain name etc.)
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2000 12:37 PM
08-03-2000 12:37 PM
Re: sendmail - two domains?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2000 01:09 PM
08-03-2000 01:09 PM
Re: sendmail - two domains?
mailx -s "subject" -r john@domain1.com receipients....
I am not sure about the same in pine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2000 01:36 PM
08-03-2000 01:36 PM
Re: sendmail - two domains?
I do not know of any way to open this privelidge to a non-root user, but I have never tried, either. I think that the security concerns behind limiting address spoofing are legitimate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2000 03:39 PM
08-03-2000 03:39 PM
Re: sendmail - two domains?
user-domain="domain1.com"
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 04:00 AM
08-04-2000 04:00 AM
Re: sendmail - two domains?
How to use the mailertable functionality in Sendmail to check specific domain names and route them through different relay boxes
in 8.8 and above in non-DNS environment where the there is already one DS entry.
1. uncomment the following line in sendmail.cf:
Kmailertable dbm /etc/mail/mailertable
2. find and uncomment the following section in sendmail.cf:
# not local -- try mailer table lookup
R$* <@ $+ > $* $: < $2 > $1 < @ $2 > $3 extract host name
R< $+ . > $* $: < $1 > $2 strip trailing dot
R< $+ > $* $: < $(mailertable $1 $) > $2 lookup
R< $~[ : $+ > $* $>95 < $1 : $2 > $3 check -- resolved?
R< $+ > $* $: $>90 <$1> $2 try domain
3. find and uncomment Ruleset 90: S90
R$* <$- . $+ > $* $: $1$2 < $(mailertable $3. $@ $1$2 $@ $2 $) > $4
4. cd /etc/mail
5. vi mailertable
domain2check.com smtp:the_new_relay.com
6. makemap dbm mailertable < mailertable
7. /sbin/init.d/sendmail stop
8. /sbin/init.d/sendmail start
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 07:41 AM
08-04-2000 07:41 AM
Re: sendmail - two domains?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 09:59 AM
08-04-2000 09:59 AM
Re: sendmail - two domains?
Test by:
# telnet localhost 25
mail from:
rcpt to:
rcpt to:
data
Blah blah blan...
.
quit
This should deliver to your users joe and john on your hpux box, they can then access it with pop or pine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2000 07:18 AM
08-05-2000 07:18 AM
Re: sendmail - two domains?
you have to tell sendmail which domains are Locally. On HP-UX 10.20 with "normal sendmail" you this in the file
/etc/mail/sendmail.cw
Example:
server1.domain1.com
domain1.com
domain2.com
domain1.us
domain2.us
server1.a-new-domain.com
With this entries in the file you tell sendmail to handle all mails (which were handled by this sendmail) as local domains.
He will cut the ending string (after the @) and go on with the String at the beginning before the @).
In DNS you have to tell the Others Servers that mails to your Domain will be Transfered to your machine
domain1.com. IN MX 10 server1.domain1.com.
domain2.com. IN MX 10 server1.domain1.com.
The Sender-Address should be set by the Mail-Client. Here there can be some Probelems if your Server is Configured as "no Relaying host". Then you need a special Config to tell sendmail which domains are allowed to Relay. But?i am not sure, if you?ve configured your domains in sendmail.cw this Problems should not exist (hopefully).
best regards
Hermann
PS:
Don?f forget to restart sendmail after you?ve done the changes !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 06:55 AM
08-09-2000 06:55 AM
Re: sendmail - two domains?
sendmail.cf was not changed.
Now to the clients - people POPing in with Eudora are OK as I just changed the domain used for reply, in Eudora's config (it's obvious in an expanded email header that the domain has been modified but I don't care about that).
Unix users use Pine however, and any attempt I've made to change the user-domain setting in Pine has a strange effect. ALL unqualified addresses appear to be from (or to) the one domain the sender is set up for.
So john@domain1.com mails to joe (unqualified)...in sendmail terms joe is a local user too but technically he's on domain2.com ... the mail is delivered fine, but Pine shows joe to be on domain1.com.
This is because the sender's Pine config seems to handle only one local domain if you see what I mean.
Although sendmail delivery is all good, it gets confusing for Pine users, i.e. what domain am I on really? And domain2 users that receive mail from Pine users on domain1 see themselves as being on domain1 in the header of the message.
Anyway, if someone with good Pine config skills could reply I'd appreciate it.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 07:07 AM
08-09-2000 07:07 AM
Re: sendmail - two domains?
Why would you want to be able to send a message to joe (unqualified?) I think that in most cases, if you are sending mail to a user joe in another domain (even with eudora) you would have to specify the domain name of the user. Unless you have an alias/address book entry for the user.
In otherwords, if you really need to have users of domain1.com be able to send mail to joe in domain2.com without having to qualify it, you would have to go to pine and create address entries for joe -> joe@domain2.com. You will agree with me that this can be very administratively intensive.
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 07:22 AM
08-09-2000 07:22 AM
Re: sendmail - two domains?
All the users are set up on the same unix box, so sendmail considers them all local. The users on domain2.com work for another company but they are a subsidiary of the parent company and sit in the same open office space.
We're trying to, for the "outside world" make the two companies appear more seperate and defined - with two web sites, two email domains.
But in the end, we're on the same network, same mail server. So I'm trying to take advantage of that, in that internally we're all local users.
Seems odd to have to qualify an email to a guy sitting at the desk next to me.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 07:42 AM
08-09-2000 07:42 AM
Re: sendmail - two domains?
I am not sure if there are any email agents out there that will allow you to specify joe and know that joe is in the other domain.... Anyone?
PS. Like I mentioned in my earlier posting, you can customise the users ~/.addressbook to create aliases for the users in the two different domains.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 11:14 AM
08-09-2000 11:14 AM
Re: sendmail - two domains?
The interesting item is the domain to add to unqualified addresses. Even though I need to set it to one of the two, the local sendmail server delivers both domain's mail and as such, they're both "local".
But the "From" address is configured seperately and therefore stays correctly set to the sender's domain.
Pine, on the other hand, seems to have one configuration item for both the domain to add to unqualified addresses, and the reply-to domain of the sender.
So if john@domain1 sends Pine mail to jack@domain2 (using jack, unqualified) the header of the mail reads:
From: john@domain1
To: jack@domain1
It gets delivered but is not the correct domain.
And life used to be so simple :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 11:16 AM
08-09-2000 11:16 AM
Re: sendmail - two domains?
Pine has a configuration option called "Roles" that let a single user appear to be replying from more than one domain, depending on the role the user is playing - i.e. the controller of the company could also be the help desk, and his reply-to address would be appropriate for the role.
I am investigating this now but if you already know how to use Pine "roles" then jump in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2000 09:43 AM
08-10-2000 09:43 AM
Re: sendmail - two domains?
Pine assumes that any unqualified 'to' address should be 'to' the domain listed in it's config file. So two domains served by the same sendmail server works but the wrong domain is sometimes shown in the header of outgoing messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 04:46 AM
08-11-2000 04:46 AM
Re: sendmail - two domains?
fredm:mailname fred.martin
fred.martin:maildrop fredm
So I extended that to include the "mail" domain to which they belong:
fredm:mailname fred.martin@domain1.com
fred.martin:maildrop fredm
Incoming mail is handled by DNS, both domains point to the same server. Outgoing mail is re-written by the user database to show the domain name for the subsidiary company the user works for.
Done!
Thanks for your comments,
Fred