Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
This is probably a dumb question to most of you but being a noob and not getting satisfaction from my google searches brings me here.
I can't get sendmail to send mail. This should be fairly simple as I'm not doing anything fancy, I just want to send mail from my server (local) and not relay anyone (yet). I followed the tutorial here: http://www.linuxjournal.com/article/5507 but after following all the steps, the server isn't giving me any love.
This may be due to the fact the tutorial is for an older version of sendmail as some of the files didn't exist and variables that need to be set are in different places.
Using:
sendmail Version 8.13.4
procmail v3.22
I don't think this is a firewall issue since this is outgoing (but I suppose I could be wrong).
Being very noob I'm not even sure where to start looking to debug this. /var/log/messages gives me the following every time I try to send:
Feb 22 13:26:19 intermobil CROND[29881]: (root) MAIL (mailed 1089 bytes of output but got status 0xffffffff )
When running mail -v someone@domain.com
I get sendmail trying to: Connecting to localhost.info. via relay...
Why is sendmail trying to connect to localhost.info? What can I change so it can either connect to an IP address or simply to localhost???
Check your /etc/mail/sendmail.cf and see if you have an uncommented line that starts with "DS". If there is anything after that DS on the line it is using that as your "Smart Relay" host. If you don't recognize the host then either delete it or comment it out and create an uncommented line that starts with the "DS" but has no host specified. That will make it do all mail "locally" and it will open smtp to domains that aren't local rather than trying to relay through another host.
I'll definately have to read through that. A new peice to the puzzle came up today. On startup, it seems the server sends all the e-mails that I sent earlier. So perhaps I'm seeing a conflict somewhere?
I have mysql running and a radius server and a host of other services most likely that don't ocme to mind. What commands should I run to check if some port is being highjacked that sendmail needs?
lsof -i :25
Would show you any process that is using port 25.
It probably wasn't hijacked but just hosed up. The reboot cleared it for you.
If you're not using this sendmail server to ACCEPT connections from others (i.e. all the email is generated from within the box sendmail is running on) then you can modify iptables so that it rejects incoming requests for port 25 and just allow it on the local host (127.0.0.1) IP.
Yep. lsof is a great utility. Works better than fuser for finding open files and better than netstat for finding open ports and connections to other servers. (Well actually the netstat on Linux will show you processes associated with open ports - but on UNIX it doesn't so you have to use lsof.)
It's also nice for its main purpose - listing open file handles.
It has a thousand uses - it's like the swiss army knife of admin utilities.
Moreover, it's author, Vic Abell, was very responsive and has spent a lot of his time working with HP when I pointed out an issue introduced by them in HP-UX 11.11. The issue was theirs rather than his but he didn't just drop it like some would have.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.