LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-13-2005, 09:02 PM   #1
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
problem with sendmail, IP address lookup failed


I have sendmail and imap configured on a server in my closet, and i'm trying to set up thunderbird on my linux laptop and my windows xp desktop. i got imap working, and i've verified it works on all systems. when i try to send mail using smtp, i get this error:

An error occured while sending mail. The mail server responded: 5.7.1 <myemail@gmail.com>... Relaying denied. IP address lookup failed [192.168.1.1]. Please verify that your email address is correct in your Mail preferences and try again.


now, i got it on both my desktop and my laptop at first, but then i tweaked something on my laptop and suddenly it was working no problem. the last thing i remember doing was using copy & paste to copy the imap server name i had entered into the smtp server box (since imap was working). it started working, so i assumed i must've made a typo the first time. i've gone over all my settings on my desktop though, and i'm still getting the error.

all three computers are on a lan behind a linksys router. there are 5 computers total, and they're assigned IP addresses 192.168.100-105. the router is the dhcp host. the server is always 192.168.1.105, and i've logged in to the router and forwarded ports 22, 25, and 143 to that IP address. i have sendmail, sshd, imapd, and named running on the server. if necessary, i can give a full list of processes, but since i have it working on my laptop, my guess is the prolem lies in a configuration setting in thunderbird. any advice would be appreciated.
 
Old 03-13-2005, 10:15 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Have you added 192.168.1 to sendmail's access file to allow relaying?
 
Old 03-13-2005, 10:24 PM   #3
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
i just read about that, so i set put this in /etc/mail/access:

192.168.1.1 OK
192.168.1 RELAY


i'm not sure what this does though...do i need to ajust my firewall? right now it lists 3 DNS servers:
2.4.4.5
2.4.4.6
2.4.4.7

if i tell the firewall to expect a DNS server at 192.168.1.105, and forward port 53 to that IP, then my desktop shows it as the first DNS server in it's list. but i tried that before and it didn't help, so i changed everything back.

Last edited by mcd; 03-13-2005 at 10:27 PM.
 
Old 03-13-2005, 10:33 PM   #4
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
ahaha! ok, i took out the first line i put in there about 192.168.1.1 and now it works. as a security question, what does this imply? what exactly is relaying? will i be able to use my smtp server from outside my LAN? and am i leaving myself open to spammers?

Last edited by mcd; 03-13-2005 at 10:35 PM.
 
Old 03-13-2005, 11:33 PM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
This configuration does not leave you open to spammers. You have relaying allowed only for 192.168.1.* and since that is an IP address that will never get publicly allocated then you are safe. Relaying means that the server accepts a mail message and passes it along to another mail server.

You won't be able to use the smtp server outside your lan exactly as you would from on the inside. It will be able to receive mail as usual but you won't be able to send mail through Thunderbird. If you forsee yourself needing to use it alot from outside your lan you could set up webmail. Squirrelmail is fairly easy to set up. http://www.squirrelmail.org/
 
Old 03-13-2005, 11:45 PM   #6
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
or if i knew the IP address of my computer at work, say, i could add it to the relay list right?
 
Old 03-14-2005, 08:14 AM   #7
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Yes, that sounds good.

Also, while you are at it you could set your firewall to accept port 143 for only your work IP if it has that capability. That will at least keep people from trying to unneccessarily attack your IMAP server.
 
  


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
DNS lookup failed DropHit Linux - General 1 12-29-2007 03:25 AM
Sendmail.... Relaying denied. IP name lookup failed Krishna2412 Linux - Security 6 06-21-2005 01:01 AM
dns lookup failed s0393342 Linux - Networking 2 08-09-2004 07:59 AM
Can't lookup internet address for localhost.localadmin? joshnerl Linux - Newbie 8 04-13-2004 07:30 AM
ERROR: Failed to lookup IP address for (domain name) aluminum Linux - Newbie 7 11-11-2003 08:27 PM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration