Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help...sendmail....SMTP

Status
Not open for further replies.

Igaduma

Technical User
Joined
Nov 23, 2001
Messages
322
Location
BE
Hello all
I'm having pain in my head setting up sendmail on solaris using a mailrelay host.
I can sendmail to the internet using a perl script that does the SMTP protocol to our inhouse mailrelay.xxxxx.xx
but I would like sendmail to use this smtp server as a mailrelay.
this seems like a straightforwarded thing but after reading the man sendmail I can't see the tree's thru the forrest anymore.

I already added to /etc/hosts the ip hostname mailhost line but to no avail
syslog seems to tell me that root@localhost is being used as relay.

Any help...welcome as usual :)

Thanks,
Iga
 
sendmail uses by default DNS, no local hosts file (ignoring nsswitch.conf). Make sure the domain's MX (the domain you need to configure in /etc/resolv.conf) points to your inhouse mailrelay.
Next, how did you configure the smarthost eg:
DSmailrelay.mydom.com
?

where are your mails? got stuck in local mqueue?

sendmail can be setup not using DNS (see sendmail.org)

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
hi franz,
oktoberfest rocks, but only with belgium beer :)

It seems to work now, a php webpage mail function send a message thru the relay but it seems to take some time.
snoop tells me this when I execute the script:

armada -> srv029.domain01.homebase.be DNS C mailrelay.homebase.be. Internet MX ?
armada -> srv029.domain01.homebase.be DNS C mailrelay.homebase.be.domain01.homebase.be. Internet MX ?
armada -> srv029.domain01.homebase.be DNS C mailrelay.homebase.be.homebase.be. Internet MX ?
armada -> srv029.domain01.homebase.be DNS C mailrelay.homebase.be. Internet Addr ?
srv029.domain01.homebase.be -> armada DNS R mailrelay.homebase.be. Internet Addr 172.31.2.116


It is configured with mailrelay.homebase.be but it needs 3 lines and when then last reply is send from srv029 giving the IP adress, the mail is send.

Iga
 
> oktoberfest rocks, but only with belgium beer :)
well, I never tried, but you might be right!

DNS might be slow, do you drive a secondary DNS (Caching) in your site?

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top