12-17-2013 10:45 PM
i want to know how i can send mail between users in different hp-ux servers ?, like below example if i want to send mail from user1 in server1 to user2 in server2. i already configured the sendmail on both server and i can send mail from servers to our domain users but i don't know how to send mail between users in hpux servers.
12-18-2013 04:19 AM
If your servers are both registered to DNS, then theoretically you should be able to "just do it", i.e. if your DNS domain name is company.com, then user1 on server1 could address his/her email to firstname.lastname@example.org, and the mail would automatically end up to /var/mail/user2 on server2.
In practice, if your sendmail on server1 is configured to use the company primary email server as its smarthost (a common configuration today), server1 will first send the email to the company primary email server, and what happens next will depend on that server.
If smarthost is not configured (i.e. sendmail is in HP-UX factory default configuration), then sendmail on server1 will look up server2.company.com in the DNS. It will then attempt to connect to server2.company.com on port 25 (or another server if a DNS MX record for server2.company.com indicates another server should be handling server2's incoming mail).
Note: sendmail really wants to use DNS, so having the hostnames & IP addresses in /etc/hosts is not necessarily enough.