LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-21-2010, 10:45 PM   #1
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Rep: Reputation: 22
Configure sendmail as send-only sever for web host


Folks, I am trying to set up sendmail on my intranet (home) webserver, so that it will send mail via my ISP. I have searched for similar threads including this thread, but the responses do not seem to have solved the problem. All I want is to call sendmail from Perl, to post myself the responses to a test form I am building, using my normal internet mail address. I do not want to receive or relay mail from any host except the web server itself (127.0.0.1).

I have edited sendmail.mc to define SMART_HOST as my isp's mail server and MASQUERADE_AS to be my local network name (which is not a registered domain - it is just the name I have given my home intranet). I have run make and built a fresh sendmail.cf, then restarted sendmail.

Using my form, I am able to submit the message to sendmail, but after 40 seconds the mail log shows a message
Code:
"(details deteted) Name server: bigpond.com.: host name lookup failure"
.

All suggestions (of the relatively polite variety) are welcomed.
 
Old 02-22-2010, 04:25 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
It sounds like you may be having a dns issue of some sort, if you do a manual mx lookup of bigpond.com from that machine what do you get (either via dig or nslookup.)
 
Old 02-22-2010, 07:07 PM   #3
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Original Poster
Rep: Reputation: 22
Ah ha! 'dig mail.bigpond.com' returns immediately with the expected data, but 'dig MX mail.bigpond.com' times out. Looks like I need some kind of lookup data, but I am not running my own DNS ( rely on my ISP for that) so wonder what to do next? Sending mail works via Evolution on that box, so the missing link must be somewhere in the sendmail config? Maybe? Thanks for your help on this.
 
Old 02-22-2010, 09:41 PM   #4
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:07 PM.
 
Old 02-23-2010, 06:19 PM   #5
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Original Poster
Rep: Reputation: 22
Thanks, I think. Are you saying that sendmail cannot send mail to the www because my ISP has no MX record? I know that Evolution copes OK, so is there some setting I can twiddle in the sendmail configuration? Thanks for your help.
 
Old 02-23-2010, 06:23 PM   #6
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Original Poster
Rep: Reputation: 22
Grr - read it too fast. Tried 'dig A mail.bigpond.com' which worked OK. What to do next? Thanks.
 
Old 02-24-2010, 09:30 PM   #7
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:07 PM.
 
Old 02-24-2010, 11:40 PM   #8
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Original Poster
Rep: Reputation: 22
Ah - so even if I could get sendmail to resolve the address to bigpond, I might be no further ahead? Sigh. I guess I could set up sendmail as my local network mail solution, but it seems a waste of time if it can't get out to the www. Am I trying to do this the wrong way? Is there a simpler solution I am missing? Thanks again for your input - I am grateful for your time.
 
Old 02-26-2010, 11:25 PM   #9
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:07 PM.
 
Old 02-27-2010, 01:47 AM   #10
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Original Poster
Rep: Reputation: 22
Yep - I have just found out that I need a static IP to do this - bigpond block relays from dynamic addresses. No wonder it would not work! Thanks for the help.
 
Old 09-15-2011, 02:36 AM   #11
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Philippines
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304

Original Poster
Rep: Reputation: 22
...

Last edited by Doug Hutcheson; 09-15-2011 at 02:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] configure sendmail to send using mydomain.com speederpro *BSD 1 07-31-2009 04:13 PM
Configure sendmail to send email out through my ISP rwcooper Linux - Software 5 06-16-2009 06:28 PM
Configure sendmail to send email out through my ISP rwcooper Linux - Software 0 06-16-2009 02:12 PM
how to configure sendmail to just send emails. no recieving. another 1 Linux - Server 9 04-03-2009 10:31 AM
how do I configure sendmail to be able to send mail outside my network dkscomps Linux - Networking 9 07-04-2004 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration