Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have configured sendmail client in my server after configuration done we are not able to send mails, anyone please help me on this.
While I don't know sendmail, the messages seem to indicate something is wrong with name resolution. Perhaps the MX record for demo.com is not set correctly, or you need to tell sendmail what to do with messages that go to demo.com.
How to set the MX record and how to resolve the name resolution, can you please help me on this
Your server is named test1.demo.com. The "demo.com" part is your domain. You are now sending email to ramesh@demo.com. The problem now is: How does the mailing system know to which server the message should be sent?
This problem is solved by the Domain Name System. DNS maps host names to IP addresses, but it can also configure the mail servers for a domain. The MX record in the DNS config file performs that mapping.
You can see the MX records of a domain with commands like host or nslookup, e.g. nslookup -type=MX google.com or host -t MX google.com.
So, for your domain demo.com you need a DNS server that contains an MX record. If you have such a server, put its IP address in the /etc/resolv.conf file. If not, you need to configure one. I can't describe DNS setup in a forum post, but the internet is full of recipes for that. It's not really for beginners, so that you learning curve might be steep, but you would learn a lot in the process.
However, if you are not interested in setting up MX records, just test your mailing system by sending a message to ramesh@test1.demo.com. In other words, use the specific system name where ramesh has an account rather than the domain.
Looks like you normally use 10.10.1.23; if it doesn't respond, the other one.
You will have to add an MX record to the zone file of demo.com. See https://en.wikipedia.org/wiki/Zone_file for what that looks like; where that zone file is depends on your configuration and the Linux distro you are using.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.