LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-03-2007, 10:28 PM   #1
stevemisawa
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Rep: Reputation: 0
Unhappy linksys router = sendmail failure


ok, first things first. thanks in advance for any and all help.

a few days ago i installed a linksys router (model WRT54G ver 8.0)
prior to the new router my server was connected directly to the modem and everything worked fine. new router is installed and i can surf the web from the server, and view the sites on the server no problems. cant ftp into the server hmmm, went to vsftpd.conf added a simple little line at the end of it : pasv_address=xxx.xxx.xxx.xxx (my ip) great now i can ftp in no issues there.

one of my web sites has an online application that is emailed to the company when its filled out, since the router was installed sendmail hasnt been sending the mail to the company like it did when the router wasnt there. here is the message i get at the top of the emails, as all the root emails come to me:


The original message was received at Mon, 3 Sep 2007 22:09:32 -0400
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<jobs@company.com>
(reason: 550 <apache@localhost.localdomain>: Sender address rejected: Domain not found)

----- Transcript of session follows -----
... while talking to mail.company.com.:
>>> DATA
<<< 550 <apache@localhost.localdomain>: Sender address rejected: Domain not found
550 5.1.1 <jobs@company.com>... User unknown
<<< 554 Error: no valid recipients


names have been changed to protect the innocent. i know next to nothing about sendmail, and now have a headache from searching for a solution to my problem. i believe that it is the fault of the router somehow preventing this as it did the ftp. I also believe(hope) that there is a simple easy fix such as the one for the ftp. I tryed a few different things that other people had mentioned in other posts for sendmail and those did not work so i undid any and all of those changes i had made. if there is any other information you need to help solve this problem let me know. again thank you all.
 
Old 09-04-2007, 08:11 AM   #2
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Take a look at the router configuration. You will have to set up DNAT and SNAT on the router as well as the desired port forwarding. The router probably has this all turned off by default. Also, since you have more than one network (LAN) IP address now, the router needs to know where to send the traffic. So make sure that you allow the DNS lookups (port 53), SMTP traffic (port 25), pop3 (port 110), etc to the server. Without the proper forwarding, the router doesn't know what to do when this type of traffic hits the router and it goes of into the bit bucket. You will also need to look at the other firewall settings in the router to facilitate whatever else you might have going on.
 
Old 09-04-2007, 11:58 AM   #3
stevemisawa
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 0
linksys router is set to dmz (temp)so at the moment everything is open, there is only the one machine behind the router, so it shouldnt be confused as to which machine to send the incoming data too. you had mentioned "DNAT and SNAT" to be honest, i'm not sure what or where that is in the router settings. the server is also a name server and all domains are resolving. the router firewall at the moment is disabled.
 
Old 09-04-2007, 12:39 PM   #4
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
I gotcha. It appears that when apache is trying to send out the message, it is presenting to sendmail as coming from the local host instead of that domain. Have you configured apache and sendmail both to host the virtual domains? Also, I am assuming that you are using some sort of script in apache to send out the message; is it configured correctly? Also take a look at the sendmail config and make sure that the user that apache is using to send out the email is in fact a vaild user in sendmail.
 
  


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
Host lookup failure with Sendmail MattiasLofgren Slackware 4 05-14-2009 03:00 PM
linksys wireless router & linksys wmp54g wireless card rude_reality Linux - Wireless Networking 13 05-25-2006 06:01 AM
Linksys WUSB11 V.3 Install Failure ioJedi Linux - Wireless Networking 0 05-11-2004 05:52 PM
sendmail: host name lookup failure GabeF Linux - Networking 3 12-04-2002 08:00 AM
router problem with linksys router scheiße_comp Linux - Networking 10 08-20-2002 10:18 AM

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

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