Avatar of boraganesh
boraganeshFlag for India asked on

setup mail server on own linux

Hi,

For our one site www.imedicusinc.com  would like to setup mail functionality to send mails for register users with accounts like abc@imedicusinc.com

Insted of using another mail server provider would like to use the same server where site is deployed as mail server.

For same I have installed the all the packages. now am able to send the mails but facing below problem
mail from abc@imedicusinc.com to xyz@imedicusinc.com  working
mail from abc@imedicusinc.com to xyz@gmail.com working
but
mail from abc@gmail.com to xyz@imedicusinc.com not working(mail get bounce with Host not found 550 error

its looks to be reverse DNS isssue. Can you please help me for how to setup MX record when we are using the same server as mail server.

thanks In advance

ExchangeLinux NetworkingEmail Servers

Avatar of undefined
Last Comment
boraganesh

8/22/2022 - Mon
santoshmotwani

ASKER
boraganesh

Am still facing the issue.

My Server:  imedicusinc.com
IP:  174.129.219.132
ec2-174-129-219-132.compute-1.amazonaws.com

MX record :
0  imedicusinc.com  ip=174.129.219.132
2  ec2-174-129-219-132.compute-1.amazonaws.com  ip=174.129.219.132
10  sitemail2.everyone.net  ip=216.200.145.36


Mailserver connection test
HELO, MAIL FROM, RCPT TO, QUIT
Connect to mailserver mail.imedicusinc.com   FAILED (could be greylisting)
Connect to mailserver ec2-174-129-219-132.compute-1.amazonaws.com   FAILED (could be greylisting)
Connect to mailserver sitemail2.everyone.net   FAILED (could be greylisting)
550 Recipient Rejected: Domain not hosted here  
Firoj Khan

can u check if your mailserver is correctly associated with the MX record and able to telnet ? most likely issue is with MX settings .

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER
boraganesh

@firojkhan::
can you please suggest how to check mailserver is correctly associated with the MX record and able to telnet  .
my mail server is amazon EC2 linux machine.
Firoj Khan

you may check it by    nslookup
c:\nslookup
>set=mx
> type your server name



Reported by pdns2.ultradns.net on Wednesday, December 01, 2010 at 4:58:32 AM (GMT-6)

smtp:174.129.219.132                smtp    
Timeout occurred due to inactivity.
12/1/2010 4:57:50 AM Connection attempt #1 timed out after [16.22 sec].
reverse lookup      smtp diag      port scan      blacklist


you may also use http://www.mxtoolbox.com/SuperTool.aspx?action=mx:imedicusinc.com 
please contact your ISP why it is getting timeouted as above.
ASKER CERTIFIED SOLUTION
boraganesh

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
boraganesh

People Have suggested me to check the MX record adn ISP..but I have alredy did this. also I have checked the the my servers firewall.

but as pper disscussed with amazon its the cloud computing and thats why I need to configure the EC2 instance group security settings and need to fill the email limitation form to remove mail limitation on my mail server. I have did these thing and issue gets resolved.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Firoj Khan

you did not mentioned that you are using cloud computing in initial description . you should have describe the environment and issue with clarity
as per your request it show that you own your own infrastructure. and if a person is installing the messaging in his own environment it is understood that he has opened all the port from his side then only left the ISP to check.
above suggestions should be re considered
ASKER
boraganesh

I have resolved the issue by communicating with Amazon experts team as I am using there server.