Operating System - HP-UX
1832862 Members
2714 Online
110048 Solutions
New Discussion

Re: Configuring relay mailer

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Configuring relay mailer


Hi Team.,

I want to configure my server to send mails using relaymail service.

I got the details from the IT team as follows.,

use relaymail.company.com on port 25 as smart host.

But how can I enable this service, which file I need to edit and what modification I need to do to send the mails from my server...

Expexcting help from the team...

Regards
Suseendran .A
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Configuring relay mailer

Shalom,

vi /etc/mail/sendmail.cf or wherever sendmail.cf is kept.

change

DS

DShostnameofrelayserver

or

DS
[ip address of relay server]

example

DS
[192.168.0.10]


IMPORTANTE!
The relay server must be explicitly configured to permit relay from your host or ip address, if not, all of this will be for naught.

Diags:
mail1
sendmail -v -q

sendmail -v -d8.99 -d38.99 someone @your.net

type some text

.


Great diagnostics.

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
susee_sundar
Regular Advisor

Re: Configuring relay mailer

Hi.,

Thanks for the information...But After did the same I am facing some other issue..
___________________________________________
[root@nitappsun03 /]$ sendmail -v -d8.99 -d38.99 sangamuthu@sapient.com
getcanonname(nitappsun03), trying files
text_getcanonname(nitappsun03)
getcanonname(nitappsun03), found
getcanonname(nitappsun03), failed, status=0
SUSEENDRAN ANGAMUTHU
.
^D
^X
^C
[root@nitappsun03 /]$
_____________________________________________

I am not able to send the mails from my server yet..


Regards
Suseendran .A
Keith Johnson
Valued Contributor

Re: Configuring relay mailer

Edit the /etc/mail/sendmail.cf file to:
A couple of other things to check:

Set the Dj$ variable to the server's domain name.

Edit the /etc/nsswitch.conf file to specify how to do DNS resolution. Note that if you want to use a DNS server you'll need to update the /etc/resolv.conf file with the IP address(es) of the DNS server for your domain.

If running, stop and start the Sendmail daemon.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
No matter where you go...there you are.
susee_sundar
Regular Advisor

Re: Configuring relay mailer

Hi Team,

Thanks to Each & Everyone who helps me in cofiguring the relaymail service.

Its a Super piece of support I am getting from the Team...

Heartly Thanks..To all


Regards
Suseendran, A
susee_sundar
Regular Advisor

Re: Configuring relay mailer

Thanks to all