1832274 Members
2165 Online
110041 Solutions
New Discussion

SMTP Relay

 
SOLVED
Go to solution
Chad Brindley
Regular Advisor

SMTP Relay

Hi,

Version: HPUX 11.23.

We are soon to change our SMTP server which will live on a different subnet from where our HPUX servers will live.

Recently we turned off our exchange server and the mails I used to receive from the HPUX boxes were not delivered to me. We turned on the exchange server and after a short delay the emails I was expecting came through.

I dont know a lot about sendmail but I looked in the sendmail.cw file and it has the hostname of the sending server in.

Any idea where I change the SMTP server for sendmail?

Its also worth noting the old exchange server is on a different domain to the new exchange server.

Regards,

Chad
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: SMTP Relay

Shalom Chad,

vi sendmail.cf

in /etc or /etc/mail

DShostname_of_new_relayserver

or

DS
[192.168.0.10]

If 192.168.0.10 is the ip of the new relay server.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Done

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: SMTP Relay

Another option.

let's say you configured the DS macro in /etc/mail/sendmail.cf to smtp.mycompany.com

You can just change the IP address in /etc/hosts or if DNS then have DNS guy just change the IP there if possible. This way no changes to your sendmail.cf is neccessary. Everything is transparent.



Chad Brindley
Regular Advisor

Re: SMTP Relay

Shalom both,

This works fine for me now, I made the change to the Macro DS using the SMTP servers virtual name.

I then restarted sendmail and I did a test;

mailx -s "subject" @
mail test from unix
.

Many thanks,

Chad