Linode Forum
https://forum.linode.com/

How to set up my emails
https://forum.linode.com/viewtopic.php?f=11&t=9289
Page 1 of 1

Author:  sami1255 [ Sun Aug 19, 2012 2:50 pm ]
Post subject:  How to set up my emails

I am new in linux admin / vps but a quick learner and have a programming background.

The email server setup in documentation is really confusing me.

I want to set up my emails in a way where all phpmailing functions in scripts like wordpress / joomla, other famous php scripts, WORKS.

On the other hand, I want to set up user emails to be handled by google apps.

Can a respected experienced gentleman here can give me start ?

Thanks in advance.

Author:  vonskippy [ Sun Aug 19, 2012 3:12 pm ]
Post subject:  Re: How to set up my emails

sami1255 wrote:
Can a respected experienced gentleman here can give me start ?

Sigh - so close, yet so far away.

Author:  obs [ Sun Aug 19, 2012 3:17 pm ]
Post subject:  Re: How to set up my emails

What distro are you using?

Basically you need to install a send only email server (postfix works well) to send email from php.

For google apps simply set your domain's MX records to what google requires. You will also want to setup a spf record allowing your server to send emails as well as google apps, if you don't know how to set up a spf record then http://www.microsoft.com/mscorp/safety/ ... id/wizard/ works quite well.

Author:  sami1255 [ Sun Aug 19, 2012 3:23 pm ]
Post subject:  Re: How to set up my emails

Thanks for the reply. Its ubuntu 12.04 LTS.

How do we compare postfix with other MTAs Is it the best one out there or I have better options as well ?


obs wrote:
What distro are you using?

Basically you need to install a send only email server (postfix works well) to send email from php.

For google apps simply set your domain's MX records to what google requires. You will also want to setup a spf record allowing your server to send emails as well as google apps, if you don't know how to set up a spf record then http://www.microsoft.com/mscorp/safety/ ... id/wizard/ works quite well.

Author:  obs [ Sun Aug 19, 2012 3:51 pm ]
Post subject:  Re: How to set up my emails

There's several options the most common ones around here are postfix or exim, I use postfix.

Running the following will install postfix for you
Code:
echo "postfix postfix/main_mailer_type select Internet Site" | debconf-set-selections
echo "postfix postfix/mailname string localhost" | debconf-set-selections
echo "postfix postfix/destinations string localhost.localdomain, localhost" | debconf-set-selections
aptitude -y install postfix
usr/sbin/postconf -e "inet_interfaces = loopback-only"
service postfix restart

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/