1828884 Members
3026 Online
109985 Solutions
New Discussion

Mail

 
Shaamil
Frequent Advisor

Mail

Hi all u gurus
I need some help setting up a mailserver.
I have never done this on an hp machine yet.
Here is my situation:
I have a mailserver, which is a sun machine.
Now i have a hp box in another country and this machine is not allowed to talk to our machines. We will have to extract mail from their server & put mail on their server.
How do I go about setting up the hp machine????
Thanx
Shaamil
HP is the greatest
4 REPLIES 4
Uday_S_Ankolekar
Honored Contributor

Re: Mail

Hi,

You have configure the sendmail.cf file for this on the remote HP box.

edit /etc/mail/sendmail.cf file.
look for the DS entry by ^DS
Insert your mailserver full qualified domain name infornt of the DS entry
(DShostname.domain.name.)
Restart the sendmail by
/sbin/init.d/sendmail stop
/sbin/init/d/sendmail start.

Goodluck,
-USA..


Good Luck..
Sridhar Bhaskarla
Honored Contributor

Re: Mail

You need to enable the "smart relay" on the hp system. Add the sun mail server name to the DS macro in /etc/mail/sendmail.cf file. Search for DS and keep the entry as follows

DS your_mailserver

For these users to receive the mail, you either need to send mails to the fully qualified domain name like

your_user@hpsystem.yourdomain.com

or create aliases on your mailserver to point to the hpsystem.

On the SUN mail server create an alias like

your_user: your_user@hpsystem

So sending a mail to your_user@yourdomain.com will be forwarded to the hpsystem.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
harry d brown jr
Honored Contributor

Re: Mail

Shaamil,

Are your two hosts connected via a wan, or will you be sending the mail over the internet?

live free or die
harry
Live Free or Die
Joseph Chakkery
Valued Contributor

Re: Mail

Hello,

U can use mailx command to send mails from HP server via sendmail.

Do the following in ur HP machine.

(1) Get SMTP relay host name and IP address (Eg: 128.9.7.30 abcd_relay (Hostname of SUN machine))

For sendmail to be activated to send mail to xxxxx.com.

a)put relay hostname to DS on sendmail.cf in /etc/mail directory (eg: DSabcd_relay).

b)Create nsswitch.conf in /etc by copying nsswitch.file as nsswitch.conf. (IF DNS is not enabled on ur HP server).

c)Add relay host IP entry to /etc/hosts file. (IP of abcd_relay)

d)Stop and start sendmail dameon again.

After this u can send a test mail using

# cat /etc/hosts | mailx -m -s "Test mail " mail_id@xxxx.com

Hope this will help u.

Regards
Joe.

Knowledge is wealth