Keith2 / lowendscript-ng

20 stars 10 forks source link

Can't receive the registration confirmation email #10

Closed slglayglay closed 9 years ago

slglayglay commented 10 years ago

Hi,

I finally completed the installation without getting any error message. But when I registered the confirmation email never arrives.

Do you have any idea what might cause this?

Thanks,

Keith2 commented 10 years ago

Was postfix installed and is it running ok? Did you misspell the email address? Is other email being sent from your server ok? (This can be checked by running the script with the custom option ie bash setup-wheezy.sh custom , edit /usr/local/bin/bootmail.py and change the 5th line to use your email address. Then run python /usr/local/bin/bootmail.py ). This will either work or produce some error messages.

slglayglay commented 10 years ago

I was out of town and finally got back. I ran the "$ bash setup-wheezy.sh custom" and it seems to have crashed my VM O__O"… I got a blank screen after "startx". The weird thing is I installed GNOME and the "startx" problem had gone before.

And one thing I want to mention is I checked the /usr/local/bin/bootmail.py before I run the custom, there was no bootmail.py. Should there be bootmail.py after the installation?

Sorry for so many questions~I really am a newbie.

Keith2 commented 10 years ago

Where are you running the script? On a machine in front of you, a vps or a virtual image? You may have to reinstall and start again. If the email is not working properly there could be some error messages in /var/log/mail Don't run the custom option again. Will think of a way to check if the email's working if there's no error messages in /var/log/mail

slglayglay commented 10 years ago

I am running it on a VM with a static IP. I am reinstalling everything.......

The computer the VM resides on is on a campus network. So I am wondering they might set up some kind of filter to prevent users setting up their own smtp servers. I just sent the network people an email to find out.

Keith2 commented 10 years ago

If there is any filtering you will have to use an email address like root@localhost, with the emails staying on the VM

slglayglay commented 10 years ago

OK~~~I guess I need to do that by modifying the main.cf file, right?

Keith2 commented 10 years ago

Do not change main.cf

edit /etc/aliases - change the email address for root: to root enter newaliases (for the change to take effect) email should now go to a file in /var/mail I tried this expecting the email to be in a file called root, it was in a file called nobody Using an email address of root@[127.0.0.1]

slglayglay commented 10 years ago

The university IT people finally got back to me. They told me port 25 is filtered on campus. So I am wondering if I can configure postfix to use SSL/465 instead of 25 for sending confirmation emails?

Thanks!

koen84 commented 9 years ago

If you're locked out, this one can regain you admin access. http://wiki.tonybaldwin.info/doku.php?id=hax:misc:fpassgen