Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 16207
  • Last Modified:

Relaying denied. IP name possibly forged

Hi...

i'm so tired trying to set up bind server, i can send and receive mail from server and receive mails from internet but when i tried to send mails from external all mails are rejected

 550 5.7.1 <alelopez00@hotmail.com>. Relaying denied. IP name possibly forged  [201.129.204.xx]


I just looked at documentation and saw sendmail by default does not support it but i changed 127.0.0.0 to 0.0.0.0 in smtp, but i did not work..
 
As far now i just chequed lunix firewall and opened aaaalllllll !

by the way i have linux 9

Thanks
0
Alejandro_Lopez
Asked:
Alejandro_Lopez
  • 2
  • 2
1 Solution
 
jlevieCommented:
I'm going to guess that by "linux 9" you mean RedHat 9.

The first step in making your email server work is to comment out the line in /etc/mail/sendmail.mc that reads:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

which means that the result should look like:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

then restart sendmail (/sbin/service sendmail restart).

At that point Sendmail will listen for SMTP connections from anywhere, firewall rules permitting.

The next problem, which you have right now, is that Sendmail (as an anti-spam protection) will only relay mail from the local host, or hosts/networks explicitly listed in the access map with RELAY permission, or if SMTP AUTH is enabled those hosts that have authenticated to Sendmail. For clients with fixed IP addresses or those on a local network the access map solution works fine. However, if the clients aren't on a local network and have dynamic IP addresses SMTP AUTH is the only practical and safe solution.
0
 
Alejandro_LopezAuthor Commented:
I just commented the line... but still does not work!!!

My case i can't define any ip or domain or network, it has to work with any... i don't understand SMPT AUTH ... anyway if you have other better option for email it's well received...

Thanks
0
 
jlevieCommented:
If you can't use IP/network rules in the access map your only sane choice will be to use SMTP AUTH to allow external clients that authenticate to relay mail through the server. That's covered fairly well in http://www.sendmail.org/~ca/email/auth.html. Since RedHat 9 is shipped with a Sendmail built to use SASL it is mostly a matter of configuring sendmail.mc to support SMTP AUTH and picking a method for authentication.

The authentication method depends mostly on how secure you need this server to be and whether the admin burden of creating SASL auth info for each user is more than the increased security that non-plaintext passwords affords. Using methods other than PLAIN & LOGIN requires the use of sasldb, which means that each mail system user has to have auth info created just for Sendmail's use.
0
 
Alejandro_LopezAuthor Commented:
Ok it works fine...

Jus for the record I also had problems but they was becuse of outlook configuration SMTP advanced...

But now it's solved

Thanks
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now