LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-19-2004, 05:33 AM   #1
jimwillsher
LQ Newbie
 
Registered: Jan 2004
Location: Dunblane, Central Scotland
Distribution: Redhat 9
Posts: 29

Rep: Reputation: 15
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain


Hi all,

RedHat 9, using sendmail 8.9 and PHP 4.2.2

Certain ISPs are rejecting emails which have originated from a PHP form on my server. Sample bounced mail:

=====================================
The original message was received at Thu, 19 Feb 2004 10:54:49 GMT
from orca [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<user's email address@user's domain.com>
(reason: 550 rejected: cannot route to sender <apache@localhost.localdomain>)

----- Transcript of session follows -----
... while talking to mx01.schlund.de.:
>>> DATA
<<< 550 rejected: cannot route to sender <apache@localhost.localdomain>
554 5.0.0 Service unavailable

=====================================

I'm at a loss as to what I've mis-configured. My various files are:

[root@orca MailingList]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 orca localhost.localdomain localhost
192.168.1.10 jimwillsher.co.uk
81.168.116.142 jimwillsher.co.uk

[root@orca MailingList]# cat /etc/resolv.conf
nameserver 212.104.130.9
nameserver 212.104.130.65
domain jimwillsher.co.uk

[root@orca MailingList]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=orca
GATEWAY=192.168.1.1

Sendmail Local Domains table (via webmin)
jwillsher.co.uk
jimwillsher.co.uk
localhost

apache httpd.conf (selected line)
#
ServerName orca.jimwillsher.co.uk:80


Within PHP I'm setting the FROM address to my own emal address, but somehow the apache@localhost.localdomain is slipping through.



Can anyone suggest what I'm doing wrong? I'm stumped on this, and I'm "all googled out" trying to find the answer.


Heeeeelllllllppppppppppppppppppp!




Jim
 
Old 02-19-2004, 05:42 AM   #2
jimwillsher
LQ Newbie
 
Registered: Jan 2004
Location: Dunblane, Central Scotland
Distribution: Redhat 9
Posts: 29

Original Poster
Rep: Reputation: 15
Okay, think I've sussed it. Doh!

Changed:

root@orca MailingList]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 orca localhost.localdomain localhost
192.168.1.10 jimwillsher.co.uk
81.168.116.142 jimwillsher.co.uk


to


root@orca MailingList]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 orca jimwillsher.co.uk localhost.localdomain localhost
192.168.1.10 jimwillsher.co.uk
81.168.116.142 jimwillsher.co.uk

and the messages seem to be going out....



Jim
 
Old 01-19-2006, 12:41 AM   #3
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
sendmail question

I have the same issue but I need to ask a question to clear some things up.

I noticed two IP address for your domain/computer one public and one private. How does this work?

Is the private IP address the local box running sendmail?

Is public IP address the address of your dns server?

Do you have to add MX records to the DNS server. Or is this done automatic?
 
  


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
Postfix - Sender address includes localhost buskmann Linux - Software 1 05-04-2005 07:56 AM
Postfix: Sender address rejected when matching $mydestination [GOD]Anck Linux - Software 1 02-16-2005 05:42 AM
ctladdr=<apache@localhost.localdomain> Drogo Linux - Software 0 02-09-2004 03:55 PM
Error in Sendmail Tail : "apache set sender to <> using -f" cartfanatic39 Linux - Software 0 01-30-2004 10:04 AM
localhost.localdomain & apache question neozero62 Linux - Newbie 3 11-30-2003 03:51 PM

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

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