LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-22-2006, 03:12 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
sendmail configure problem


I been trying to configure my sendmail. Looks like (from /var/log/maillog) the mail has been sent to the outside world BUT it gets queued in the mailq. And doesn't go outside. It is not a firewall problem as I tried stopping my firewall. However,

netstat -nl | grep 25 shows

Code:
tcp 0 0 172.16.20.45.25  172.16.20.1.3345 ESTABLISHED
172.16.20.1.3345 is my router/ gateway address. It should be LISTENING to *.* instead of "172.16.20.1.3345". Also, sometimes it shows nothing! However, a nmap scan on the local IP shows the port is open.

"ps auxwww | grep sendmail" shows sendmail is running and accepting connections.

My domain is hosted with Dyndns (non-paid) and dyndns wild-card is ON.
My "sendmail -d0.1" output is

Code:
short domain name = mydomain
canonical domain name = $w.dyndns.org
subdomain name = dyndns.org
node name = testbox (name of the local PC)
I have also configured access and relay-domains tables properly.

However, I sent a test mail to Google and in /var/log/messages I can see that it tries to relay using username@mydomain.dyndns.org with Stat=Sent. It then tries to relay using google's mailserver until it gives up trying. And the Status show Deferred. Should I relay using localhost?

Here's my MX part of BIND

Code:
                IN MX 5 testbox.mydomain.dyndns.org.
testbox         IN A    172.16.20.2
mail            IN CNAME testbox.mydomain.dyndns.org.
I can telnet to port 25 just fine from the local network. For example, telnet domain.dyndns.org 25 gives the banner.

Is this a problem with my Bind or sendmail or dyndns?!

Sendmail Version: 8.13.4
BIND Version: 9.3.1
OS: OpenBSD3.8

Last edited by noir911; 04-22-2006 at 06:13 AM.
 
Old 04-22-2006, 06:19 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Quote:
It then tries to relay using google's mailserver until it gives up trying.
It doesn't sound like any kind of DNS problem on your end; your mail server seems to have found the target mail server.

What message does it generate when it "gives up trying"? Is your ISP blocking port 25, as so many do these days? See if you can telnet successfully to port 25 on a remote host.

Otherwise, more verbosity from the mail logs would probably help.
 
Old 04-22-2006, 06:41 AM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Ok, unblocking the ports on my ISP end has solved the problem. Thanks!

However, looks like sendmail need a bit more tweak. The outgoing mail's header shows the private IP address and says "maybe forged". Also it says "xxx.xxx.xxx.xxx (Public IP) neither permitted nor denied by best guess record for domain of user1@domain.dyndns.org).

Also..netstat doesn't show that it's listening on port 25. However, both nmap and "lsof -Pni | grep 25" confirms that it is!

Any kind of help on these would be much appreciated.

Thanks!

Last edited by noir911; 04-22-2006 at 07:10 AM.
 
Old 04-23-2006, 12:07 PM   #4
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
I think I'd have a better shot at this if I saw the full Internet headers in context. Any chance you could post them, while changing the names to protect the innocent?

Quote:
"xxx.xxx.xxx.xxx (Public IP) neither permitted nor denied by best guess record for domain of user1@domain.dyndns.org"
That bit sounds like it was added by the remote SMTP server, because it was unable to locate an MX record for your domain. I could be wrong, but that is what "best guess record" sounds like to me.
 
  


Reply

Tags
blocking, dyndns, isp, port, sendmail



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
configure sendmail juanb Linux - General 4 10-23-2005 02:46 AM
how to configure sendmail juanb Linux - Software 0 09-19-2004 08:49 AM
configure sendmail Red Squirrel Linux - Software 5 04-12-2004 04:31 PM
configure sendmail s_diptiman Linux - Newbie 1 10-10-2003 01:13 AM
configure sendmail?? dexter_modem Slackware 5 07-07-2003 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:52 AM.

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