LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2006, 06:38 PM   #1
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Rep: Reputation: 15
Sendmail not receiving mail please help


Hi,My network consists of an XP box and a Slack 10.2 box running Apache.They sit behind a DLink DI-604 router that provides dhcp. The firewall has the proper ports forwarded to allow my Slack box to host the web server and mail.My Internet connection is static. Following the tutorials Apache is working fine able to host web pages. Sendmail is my current issue. Following Shilo's guide for email i can send mail but not receive it. Also when i nmap localhost it does not show IMAP 143. I've have that line uncommented. I've followed siegex guide for smtp auth client and server and everythings dandy.
I know its got to be something simple but i'm a noob in linux and this ones got me stumped. I'm using Pine for my email client.I think its a reverse dns issue but do not know how to go about fixing/testing . Please inform me if you need further info.

Nmap localhost 22/tcp open ssh
25/tcp open smtp
80/tcp open http
587/tco open submission

nslookup -sil testmail.blank.com

Server 192.168.x.x
Address 192.168.x.x#53

Non-authoritative answer:
testmail.blank.com canonical name = blank.com

Name: blank.com
Address: 127.0.0.2

nslookup -sil 192.168.x.x
Server 192.168.x.
Address 192.168.x.

**server can't find x..x.168.192.in-addr.arpa: NXDOMAIN


/etc/hosts

127.0.0.1 localhost
192.168.x.x myhostname.mydomain
192.168.x.x myhostname.mydomain


/etc/resolv.conf nameserver 192.168.x.1


I've got localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA in my maillog

Please can someone shed some light?

Thank You,

Max

Last edited by Raidmax; 07-20-2006 at 06:47 PM.
 
Old 07-21-2006, 03:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Email can be sent directly to you if you have:
- registered a domainname and set up a MX record (take care of backup MX as well),
- remote users/servers bypass MX records and route email directly to you (unlikely but possible),
- your ISP has a mechanism for "dumping" email to your MTA (mailkick).


nslookup -sil testmail.blank.com
Next to "dig mx domainna.me" here's another way of resolving MX records.
echo "/mx blank.com"|/usr/sbin/sendmail -bt
If it does not point to your box you have no registered domainname or did not set up MX records or you haven't told Sendmail about it. Reading the rest of your post you probably have no registered domainname. Look for free DNS service providers. They usually do MX for cheap.


I've got localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA in my maillog
That means the remote client didn't announce itself to the MTA in a way the MTA can deal with. This is fallout from scanning (or monitoring).
 
Old 07-21-2006, 11:27 AM   #3
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Thank You unSpawn! I forgot to include in my post that i have registered with dyndns. My hosts are centralcoast-hobby-site.com and mijo.selfip.org. Is this the information needed for an MX record, and if so do I add this information to /etc/mail/local-host-names? I'm not sure where MX records need to be located


Thanks again unSpawn!!
 
Old 07-21-2006, 03:06 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You need indeed to add those two host names to "/etc/mail/local-host-names" .
But I tried telnetting to port 25 of your IP address and there is no response (I hope I'm excused for the probe). Either you turned off the computer or port-forwarding port 25 from the router to the computer is not configured correctly.
Port 25 (SMTP) is the port Sendmail will be listening on for incoming email. The IMAP port (143) does not need to be accessible from the Internet if you want to read your mail only on computers located inside your home network.

Eric
 
Old 07-21-2006, 04:51 PM   #5
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Hi Alien Bob, I appreciate you helping and realize your approach just makes sense, but depending on when you telnetted my computer might not have been on it was shut down last night. Please try again i'll keep it on. I checked and port 25 smtp is forwarded to my slack bon on my router. Here'e the output of nmap localhost (abbreviated).

25/tcp open smtp


echo "/mx blank.com|/usr/sbin/sendmail -bt returns

> getmxrr(blank.com) returns 1 value (s):

mail:blank.com


dig mx domainna.me returns my.routers.I.P#53



I've added the two host names to /etc/mail/local-host-names and to the MX records at dyndns.com

Also my /etc/mail/access has this
centralcoast.hobby-site.com RELAY
mijo.selfip.org RELAY
 
Old 07-21-2006, 05:09 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I cannot get access to your box's services:

Quote:
alien@icculus:~$ host mijo.selfip.org
mijo.selfip.org has address 66.87.69.75
mijo.selfip.org mail is handled by 10 mijo.selfip.org.

alien@icculus:~$ telnet mijo.selfip.org 25
Trying 66.87.69.75...

alien@icculus:~$ telnet mijo.selfip.org 80
Trying 66.87.69.75...
No contact with the SMTP port, nor with the webserver port.

Eric
 
Old 07-21-2006, 11:18 PM   #7
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Hi Alien Bob, had a minor mishap don't know how but my interface somehow switched to a second nic I've got in my box and to make a long story short I ended up physically removing it so this can't happen again.Can you please try one more time i'll leave the box on. Its the same easy process forwarding the ports on my DLink router so port 80 at the minimum should work now since i can now hit my webpage from both centralcoast.hobby-site.com and mijo.selfip.org

Thank You


Max
 
Old 07-22-2006, 05:16 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Still no connection...

Eric
 
Old 07-22-2006, 11:52 AM   #9
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
sorry AlienBob had my box down last night I discovered I had missed define(`confCLIENT_CERT',`/etc/mail/certs/sendmail.pem')dnl

in my .mc file. Made the update. Sent mail from my yahoo and hotmail accounts got undeliverable message again.

My maillog now has gethostbyaddr(192.168.0.100)failed
what does this mean?
 
Old 07-24-2006, 04:55 AM   #10
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
I hate to be the bearer of bad news, but it's fairly likely that Sprint simply isn't allowing connections to go to port 25 on broadband customer's IP addresses, in order to cut down on the number of open relays being set up by knobs.

For illustration, I can traceroute all the way to mijo, but I am not even getting so much as an RST or even an ICMP packet back when I try to connect to port 25 there. Either you don't actually have port forwarding set up correctly, or your Sprint is filtering that traffic and you're just out of luck.
 
Old 07-24-2006, 12:00 PM   #11
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Hi evilDagmar, Due to a dangerous heat wave these last three days and continuing thru today my server has been turned off (blackouts have occurred). I'm fortunate unlike alot of other people that my power is even available. Tomorrow the weather here will return back to normal and I will resume testing. My ISP is not Sprint but Earthlink. I've have a cool wireless broadband setup that Sprint started back in 01', they stopped growing the network inpart due to the dot.bomb syndrome in 02'. I had to contact earthlink last week to get my username and password as I was implementing SeigeX's SMTP AUTH howto, I had forgotten since I don't use my earthlink email account. I'll send off an email to earthlink for clarification regarding allowing port 25 connections.

Can you please answer this question since i don't have experience setting up MX records, what should I enter in the Mail Exchanger field at my dyndns.com account for host mijo.selfip.org? Hostname on my box is centralcoast.

Thank You

Max
 
Old 07-24-2006, 02:14 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you want be able to receive mail for the domain mijo.selfip.org at the server mijo.selfip.org, you can leave the "Mail Exchanger" field empty. I have setup my dyndns account just like that. It does say "(optional)" next to "Mail Exchanger"...

Eric
 
Old 07-25-2006, 03:03 PM   #13
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
Thank You!
 
Old 07-26-2006, 10:23 AM   #14
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
echo "/mx hobby-site.com"|/usr/sbin/sendmail -bt

> getmxrr(hobby-site.com) returns 2 value(s):
mail.dyndns.org
mx2.mailhop.org


What do I need to correct?


Max
 
Old 07-26-2006, 11:08 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Well your server is not called hobby-site.com. That domain hosts a zillion private internet hosts each potentially with their own mailserver. The MX record for hobby-site.com is just for the DynDNS organization itself.

And remember - if no MX record is found when attempting the delivery of an email, the IP address of the hostname (in your case centralcoast-hobby-site.com) will be used to deliver to. So, that's the reason you can leave the "Mail Exchanger" field empty.

Eric
 
  


Reply



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
Sendmail not receiving messages theret79 Linux - Software 1 06-21-2006 10:02 AM
Receiving mails using sendmail mageshbabu.m Linux - Networking 2 01-19-2006 03:00 PM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Sendmail - problem receiving external mail manudath Linux - Wireless Networking 7 12-21-2004 01:14 PM
problems with sendmail receiving mail isostat1 Linux - Newbie 2 01-12-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:29 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