Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hi,
I am facing an issuse with mail. I have one server with hostname as kk. I log in to the box as a kashyap user and send mail via mailx command like mailx -s test kashyap@yahoo.com. I recive the mail perfectly fine from address kashyap@kk.com. Now i want to send mail from yahoo to server... like
I am trying.. to send mail back to the address kashyap@kk.com. Whem i log in to the system and give mail -h command it does not show me the mail sent from yahoo to server also i do not get any undeliverable notice. Kindly help how can i do this and how can i see that mail in the box.
To expand on bathory's post, you need to know where the DNS MX record for your domain points. If, after using "dig" to find it out you see that it does point to your server (if not, contact your domain registrar to have them help you point it there), then you need to see why mail isn't being accepted on your machine.
Try telnetting to the machine's port 25:
telnet kk.com 25
Watch out with doing this from some DSL subscriptions, as some ISPs block port 25 from your home so the inability to connect is not actually your machine in that case. Also make sure some over-zealous anti-spam/firewall suite on your PC isn't blocking it, either.
Anyway, did that connect?
You should also be watching your machine's mail log file when you are sending mail to it. On RedHat variants, that file is /var/log/maillog. You can do this to watch it in real time:
tail -f /var/log/maillog
If you don't see any activity when you try to send mail, that port is either being blocked by a firewall on the machine or you don't even have a SMTP server running in the first place.
If you need to install a SMTP server, you can use tools like apt-get or yum to install postfix or your favorite mail transfer agent.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.