Fedor core 5 questions
deicist
Manchester, UK
OKay, I recently set up a webserver for a friend using Fedora (because I've never used Linux before, and it seemed simple). The site is at http://84.9.221.97:9991 is anyone fancies visiting Anyway, I'm having a problem with Emails. Basically they don't work. I don't have an SMTP server setup, but from what I understand the PHP mail function, or the Linux Sendmail function should just work shouldn't they? Basically I'm lookinf for a way to narrow down where the fault is. I'm starting to suspect that my ISP is blocking outbound SMTP traffic...but I'd like to confirm that before I ring them. So, is there a way to use sendmail to send a simple email from the command line? Or can anyone think of anything else I should try?
The other thing I'm concerned about is security, I currently have the directory the site is served from set to 770, Is that correct?
Oh, and another thing, I want to run the server headless, but the only remote desktop type thing on Fedora is a VNC type thing. This is fine, but you can't connect unless someone is logged in. Is there anyway of letting me log into the desktop remotely from a windows box?
Cheers for any help anyone may be able to offer.
The other thing I'm concerned about is security, I currently have the directory the site is served from set to 770, Is that correct?
Oh, and another thing, I want to run the server headless, but the only remote desktop type thing on Fedora is a VNC type thing. This is fine, but you can't connect unless someone is logged in. Is there anyway of letting me log into the desktop remotely from a windows box?
Cheers for any help anyone may be able to offer.
0
Comments
Sendmail only works if it's sending it to an account on that machine, if it needs to go further out then you need to set up an email server like Exim.
Is sendmail running? Or, is postfix installed? They might be having a conflict.
Try running:
$ service sendmail start
If you get an error message, jot it down and try this:
$ service postfix start
Same thing as above. Report back with your findings.
Are your DNS servers set properly in /etc/resolve.conf?
Also, do you have bind installed?
An SMTP 550 error means that the recipient is unknown. (ie, if you sent a mail to nonexistantuser@localhost)
What's bind?
regarding SSH, I thought that was just a remote command line utility, can you run X sessions over it as well (ie: gnome)? How would I go about connecting to a Gnome session from a windows box?
BIND is a DNS server, I think jhenry assumed you were using it as it sounded like you were running your own DNS.
Yes, all nameservers need to be set in resolve.conf else they wont work (Fedora should have done that automatically if you were using a network program from it).
I realise X is a waste of resources but I'm a complete Linux noob and although I can use the command line to do simple things (chown / chmod etc) I'd rather use Gnome. Also the box I'm running all this on is a dual core 3800+ with plenty of RAM.... for a website that's only ever going to have a few users I don't think resources are too much of an issue. So I'm still looking for a way to login into the desktop remotely.
I'll check in resolve.conf when I get it, but I'm assuming that setting name servers in the network config utility in Fedora does that for me anyway...
[URL="http://www.linuxquestions.org/questions/showthread.php?t=436602]This thread[/URL] Says that this approach should work... do I need to do something with the runlevels?
when I try to change the runlevel of the server through SSH (init 3) nothing happens.... then when I do 'runlevel' it shows '5 3'. How do I make the server change runlevel?
Linux makes my brain hurt
Nope, that IS your Desktop, it's just Gnome isn't running, just a terminal window. You can do everything as you'd normally do without the need to load gnome (but if you really want to load gnome I think you can type gnome-session). If you want to VNC into an existing desktop look into "x11vnc".
Yeah, they'll need to be set there, because that's where the mail server is going to look for the DNS resolvers.
Run
$ yum install bind bind-chroot
See if that will make it work any better
At some point during my messing around yesterday I obviously did something right, because I recieved all my test emails sometime last night. Unfortunately, because I'm a bit stupid, I don't know at exactly which stage my email started working, and now it's not working again. Joy. Anyway, at least I know now that it's nothing to do with my ISP and it is possible to get it working. Cheers for all the help guys.
Then reboot
That'll make sendmail turn on and set the default runlevels (off the top of my head, that should do it)
no need for a reboot, after the chkconfig just start the service with
/etc/init.d/sendmail start
Skryking