Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
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.
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.
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.