| Linode Forum https://forum.linode.com/ |
|
| Email from my VPS https://forum.linode.com/viewtopic.php?f=11&t=5666 |
Page 1 of 1 |
| Author: | sisko [ Thu Jun 03, 2010 4:46 am ] |
| Post subject: | Email from my VPS |
Hi guys, I now have a couple of sites setup on my Linode VPS. I have noticed I can't send email from any of them. I am running ubuntu 10 on my server. I dont' know if and how apache needs to be configured to enable emailing. Can anyone please help me out and tell me how to go about this, please ? |
|
| Author: | obs [ Thu Jun 03, 2010 5:50 am ] |
| Post subject: | |
How are you trying to send the email? (php/python/ruby/whatever?), do you have postfix installed? |
|
| Author: | sisko [ Thu Jun 03, 2010 7:19 am ] |
| Post subject: | |
obs wrote: How are you trying to send the email? (php/python/ruby/whatever?), do you have postfix installed?
I am using PHP. I don't know if postfix is installed, how to check and how to install if necessary ..... please help the newbie |
|
| Author: | obs [ Thu Jun 03, 2010 7:48 am ] |
| Post subject: | |
what distribution are you using? for debian/ubuntu it would be aptitude show postfix and next to state it will say State: Installed if you have it. |
|
| Author: | sisko [ Thu Jun 03, 2010 7:53 am ] |
| Post subject: | |
obs wrote: what distribution are you using? for debian/ubuntu it would be aptitude show postfix and next to state it will say State: Installed if you have it.
It's ubuntu 10 and it is not installed. I have been looking at this tutorial : http://library.linode.com/email/postfix ... 0.04-lucid , just researching before actually getting into it. It seems long and rather complex. Can you direct me to a possibly simpler and shorted installation process ? |
|
| Author: | obs [ Thu Jun 03, 2010 8:06 am ] |
| Post subject: | |
Run the following: Code: apt-get install postfix Then edit /etc/postfix/main.cf to the following Code: # See /usr/share/postfix/main.cf.dist for a commented, more complete version You need to replace <your server hostname> with whatever your hostname is (type hostname and press enter in the terminal to find out) |
|
| Author: | jed [ Thu Jun 03, 2010 11:49 am ] |
| Post subject: | |
If all you need is php mail(), consider ssmtp. You'll need another mailhost somewhere that will allow you to relay through it. |
|
| Author: | sisko [ Thu Jun 03, 2010 6:27 pm ] |
| Post subject: | Thank you ..... |
it turns out all I had to do was apt-get install postfix. I sampled the email at that point and it worked without any further intervention. Thank you all |
|
| Author: | obs [ Fri Jun 04, 2010 3:53 am ] |
| Post subject: | |
Just make sure relayhost = Is empty (it probably is) so people can't send spam through your server. |
|
| Author: | sisko [ Fri Jun 04, 2010 4:17 am ] |
| Post subject: | |
obs wrote: Just make sure
relayhost = Is empty (it probably is) so people can't send spam through your server. Checked that immediately. It was empty as you suspected. Thanks for the headsup |
|
| Author: | BrianJM [ Fri Jun 04, 2010 11:49 am ] |
| Post subject: | |
obs wrote: Just make sure
relayhost = Is empty (it probably is) so people can't send spam through your server. The "relayhost" parameter does not stop others from using your server for relaying email. This parameter defines if email will be sent directly through the internet, or if it will user another email server to send email. See http://www.postfix.org/BASIC_CONFIGURATION_README.html#relayhost. You can disable relaying by only allowing emails to be sent only from specific origin ip addresses. See http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from and http://www.postfix.org/postconf.5.html#mynetworks. |
|
| Author: | obs [ Fri Jun 04, 2010 1:32 pm ] |
| Post subject: | |
Whoops BiranJM's right...I shouldn't answer posts first thing in the morning. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|