LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-15-2008, 10:00 AM   #1
vivid_andy
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
invalid sender domain


I have a customer using Redhat that is getting the following bounce from Comcast when root sends mail via sendmail. The actuall message is posted below so it gets throught but not clearly.


****************************email message************************************
The original message was received at Fri, 15 Feb 2008 09:32:52 -0500
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<xxxxxxx@comcast.net>
(reason: 550 5.1.0 Invalid sender domain)

----- Transcript of session follows -----
... while talking to mx2.comcast.net.:
>>> MAIL From:<root@xxxxxx.localdomain> SIZE=323
<<< 550 5.1.0 Invalid sender domain
554 5.0.0 Service unavailable
unnamed

Encapsulated message
No Subject
From:
root <root@xxxxxxx1.localdomain>
To:
Date:
Today 9:32:51 am

Test message
End of encapsulated message
****************************email message************************************



I followed the steps at this site (stating the exact same problem): mpickering.homeip.net/phpwiki/HomePage/2004-06-24.html

But it still happens. I removed the edits suggested. Any ideas of what I am missing? Posted below is the sendmail.mc file. Any help is much appreciated!

****************************sendmail.mc************************************
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
dnl # this useful.
dnl #
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl #
dnl # For this to work your OpenSSL certificates must be configured.
dnl #
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl #
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl #
dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl # a kernel patch
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl #
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
FEATURE(`accept_unresolvable_domains')dnl
dnl #
dnl FEATURE(`relay_based_on_MX')dnl
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
"/etc/mail/sendmail.mc" 142L, 5759C
 
Old 02-16-2008, 07:28 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
This portion explains it all:

The original message was received at Fri, 15 Feb 2008 09:32:52 -0500
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<xxxxxxx@comcast.net>
(reason: 550 5.1.0 Invalid sender domain)

----- Transcript of session follows -----
... while talking to mx2.comcast.net.:
>>> MAIL From:<root@xxxxxx.localdomain> SIZE=323
<<< 550 5.1.0 Invalid sender domain
554 5.0.0 Service unavailable


It's saying that localhost.localdomain (the Red Hat computer)
received a message from itself. That message says it couldn't
deliver to xxxxxxx@comcast.net because of an invalid sender
domain. It then shows you the exact dialog that happened,
namely mx2.comcast.net says that xxxxxx.localdomain is not
a valid domain. Thus localhost.localdomain is sending
itself a 554 error, meaning that it can't deliver the message.

The fix for this is configure sendmail to know its proper
domain name or to have sendmail masquerade as its proper
domain name.
 
Old 02-16-2008, 11:48 AM   #3
vivid_andy
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Any demos out there explaining how to do so? The one that seem to have the same issue (supplied as a link on the original post) did not seem to do the trick. Not too savvy with Linux however know enough to be dangerous.

Any help is appreciated.
 
Old 02-17-2008, 06:07 AM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Since you're running Red Hat, you can check out their
documentation at www.redhat.com/docs.

You could also open a support ticket if you know the
login for the account. Red Hat support is very good.
 
Old 09-07-2011, 11:43 PM   #5
jima2
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
The problem is that the 'return address' for outgoing messages is generated
in the form localusername@localdomain, which is not a valid email address. That is what Comcast's smtp server is complaining about.

Since you don't have a permanent domain name (e.g. you just have a dynamic IP), there is no valid host which can return mail to arbitrary users on your system.

The solution is to map individual "fantasy" email addresses to corresponding real
email addresses somewhere (e.g. at gmail or your comcast email address). This can be
done using the 'generic' mapping feature of postfix.

Here's a link to how to do that on Ubuntu: http://ubuntuforums.org/showpost.php...81&postcount=4

On Redhat it will be the same principle. Good luck!
 
  


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
Old sendmail with scalix failed for sender domain saavik Linux - Server 0 08-28-2007 04:59 AM
Spammer spoofing my domain as sender benr77 Linux - General 3 05-03-2006 10:47 AM
fetchmail-sender domain doesn't resolve tincat2 Linux - Software 5 05-03-2005 08:29 AM
Sender domain must exist? J_Szucs Linux - Software 5 09-10-2003 11:38 PM
Sender domain must exist. royb Linux - Newbie 15 01-19-2002 11:52 AM

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

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