LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-13-2011, 10:02 AM   #1
sneakz
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
sendmail accept all domains even if they are unresolvable


Hi,

I have one problem. When I put mailfrom:<toto@test.toto.fr>, I get Sender ok.

# sendmail -bs
220 serveur ESMTP Sendmail 8.13.8/8.13.8/Submit; Wed, 13 Apr 2011 14:22:10 +0400
helo localhost
250 serveur Hello test@localhost, pleased to meet you
250 2.1.0 <test@test.toto.com>... Sender ok

The error should be "553 5.1.8 <test@test.toto.com>... Domain of sender address test@test.toto.com does not exist".

I am able to get the google.com to resolve.

$ host google.com
google.com has address 209.85.146.103
...

And host test.toto.com returns :

Host test.toto.com not found: 3(NXDOMAIN)

# cat /etc/mail/sendmail.mc |grep accept_unresolvable_domains
FEATURE(`accept_unresolvable_domains')dnl

How can I fix it ?

Thanks for the help.

Last edited by sneakz; 04-13-2011 at 03:07 PM.
 
Old 04-14-2011, 07:42 PM   #2
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Rep: Reputation: 17
- comment out this line:dnl #FEATURE(`accept_unresolvable_domains')dnl
- make -C /etc/mail
- service sendmail restart
 
Old 04-16-2011, 02:59 AM   #3
sneakz
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thx. The solution is to comment out this accept_unresolvable_domains feature to force sendmail to refuse unresolvable domain.

Quote:
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 #
dnl FEATURE(`accept_unresolvable_domains')dnl
All is fine.

When I accept unresolvable domain in MAIL FROM, there is an output difference between telnet and sendmail with -bs parameter :

Quote:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 serveur ESMTP Sendmail 8.13.8/8.13.8; Sat, 16 Apr 2011 13:11:19 +0400
helo localhost
250 serveur Hello localhost.localdomain [127.0.0.1], pleased to meet you
MAIL FROM: <toto@test.toto.fr>
250 2.1.0 <toto@test.toto.fr>... Sender ok
quit
221 2.0.0 serveur closing connection
Connection closed by foreign host.
Quote:
# sendmail -bs
220 serveur ESMTP Sendmail 8.13.8/8.13.8/Submit; Sat, 16 Apr 2011 13:12:17 +0400
helo localhost
250 serveur Hello root@localhost, pleased to meet you
MAIL FROM: <toto@test.toto.fr>
553 5.1.8 <toto@test.toto.fr>... Domain of sender address toto@test.toto.fr does not exist
quit
Why ?

Last edited by sneakz; 04-16-2011 at 05:27 AM.
 
Old 04-19-2011, 08:47 PM   #4
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Rep: Reputation: 17
Maybe your DNS client/server can't resolve it?

Try
dig toto.fr
 
  


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
Sendmail won't accept mail Zmyrgel Linux - Server 8 05-25-2010 04:12 AM
How to make postfix accept mail from multiple domains Farthom Linux - Newbie 4 09-14-2006 12:13 PM
My sendmail won´t accept incoming mail pjon SUSE / openSUSE 3 07-20-2005 01:41 AM
Sendmail config to accept nothing but forward everything rumpole6 Linux - Networking 0 06-02-2005 06:26 PM
Sendmail to accept non-existant domains benjithegreat98 Linux - Networking 2 03-09-2005 10:43 AM

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

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