Mailing on EC2

56 views
Skip to first unread message

DoomPirate

unread,
Jun 25, 2011, 5:35:52 PM6/25/11
to lif...@googlegroups.com
Hi All,

My lift app is hosted a single EC2 instance(Nginx, Jetty, Ubuntu), I would like to be able to send emails using my app as well.(Account creation for example) 
If I wanted to use lift Mailer, is this what I would do?

1) Request to remove email sending limitions on the EC2 elastic IP.
2) Add mailing code to my app via http://exploring.liftweb.net/master/index-F.html

Is this all I need to do? Or am I missing some things. If so, can anyone give me a hint on what steps I should be taking? 

Thanks.

Richard Dallaway

unread,
Jun 26, 2011, 2:02:26 PM6/26/11
to lif...@googlegroups.com
That sounded about right.  If you are running an SMTP server on your Ubuntu instance (e.g., Postfix) then you should be able to send email out via that, in which case that's what Lift will be using by defaulting to localhost for email sending.

Another alternative I've started using is Sendgrid — commercial service but means you don't need to run your own SMTP server. (sendgrid have a web API for wending email, but we use the SMTP support they offer).

Hope that helps
Richard
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/HREJzF0cdLMJ.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

Oscar Picasso

unread,
Jun 28, 2011, 11:25:48 AM6/28/11
to lif...@googlegroups.com
Hi,

I have just a question about your setup.
I plan to deploy a lift app in an environment like yours (EC2 + jetty + nginx). I have not yet started the configurations.
Have you any advice on best practices or things to avoid?

Oscar

DoomPirate

unread,
Jun 28, 2011, 5:37:08 PM6/28/11
to lif...@googlegroups.com
I'm not sure if this is your first webapp. My current webapp is my first webapp, so I was doing everything the first time.

I'd recommend using the aws route 53 and a easy to use 3rd party interface like https://www.interstate53.com/ <- which makes it much easier to setup the url dns stuff. 

Make sure you use the latest stable versions of jetty.

I think by doing easymode "sudo apt-get jetty"   you get pretty old version of jetty, which really is bad. This tripped me up for a day or so.
So make sure to follow the newer instructions. There is old documentation that you should try to avoid.

Also, whenever you are trying to use jetty, this thread might help you.
I did what tim8dev said to do and its working good.

I'd recommend using ubuntu if you can. I think Jetty and nginx are the fastest/best choices among web server software, so good job on choosing those.



Paulo "JCranky" Siqueira

unread,
Jun 28, 2011, 5:51:14 PM6/28/11
to lif...@googlegroups.com
Hi,



I'd recommend using ubuntu if you can. I think Jetty and nginx are the fastest/best choices among web server software, so good job on choosing those.


This is the only point I'm not sure if its a good idea. Ubuntu is great as a desktop OS (I use it all the time), but not so much as a server OS. On amazon EC2, I usually go with their Basic Amazon Linux AMI - and use 'yum' as the package manager. Their repositories seems reasonably up-to-date for me.

[]s,

--
Paulo "JCranky" Siqueira
Visit my blog: http://www.jcranky.com/

Naftoli Gugenheim

unread,
Jun 28, 2011, 5:53:05 PM6/28/11
to lif...@googlegroups.com
Interesting, in what way is it deficient as a server OS (the server edition)?


--
You received this message because you are subscribed to the Google Groups "Lift" group.

Paulo "JCranky" Siqueira

unread,
Jun 28, 2011, 8:45:39 PM6/28/11
to lif...@googlegroups.com
Ops, I guess I missed the "the server edition" part. My bad. I would still avoid it, but now I don't have any good reasoning to bring to the table here.

[]s,

2011/6/28 Naftoli Gugenheim <nafto...@gmail.com>

Naftoli Gugenheim

unread,
Jun 28, 2011, 8:49:59 PM6/28/11
to lif...@googlegroups.com
Not that I know what the difference is between the server edition and the desktop edition...

Naftoli Gugenheim

unread,
Jun 28, 2011, 8:50:08 PM6/28/11
to lif...@googlegroups.com
(is)

Paulo "JCranky" Siqueira

unread,
Jun 28, 2011, 9:02:56 PM6/28/11
to lif...@googlegroups.com
In principle, no GUI is available. Probably some differences in what the defaults are in terms of configuration.

What I like about the amazon linux is that it is pretty basic and clear. It doesn't come with too much installed, just the absolutely essential - with mean you might have to install a lot of stuff, but you won't have unused crap running just because you forgot to check.

Naftoli Gugenheim

unread,
Jun 28, 2011, 9:10:59 PM6/28/11
to lif...@googlegroups.com
Same as Rackspace --- I selected Ubuntu (perhaps it's their own custom "edition"?) and it's really a bare, bare minimal system --- you have to install everything yourself. But their knowledge base is very helpful.

Oscar Picasso

unread,
Jun 28, 2011, 9:27:38 PM6/28/11
to lif...@googlegroups.com
Thanks for the advice. It's my first lift webpapp on AWS.

For the OS I was leaning towards Ubuntu after hesitating between Ubuntu and Basic Amazon Linux AMI.
After reading the whole thread I will take a second look at Basic Amazon.

Oscar

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/o6PCyiR9VdoJ.

DoomPirate

unread,
Jun 29, 2011, 1:41:49 AM6/29/11
to lif...@googlegroups.com
david pollak, the creator of lift, likes to use ubuntu. (that's enough for me to use it)
foursquare.com uses ubuntu.
I'm running my lift app on an ubuntu tiny instance at almost no cpu utilization. (however i don't receive a lot of traffic yet)

"What I like about the amazon linux is that it is pretty basic and clear. It doesn't come with too much installed, just the absolutely essential - with mean you might have to install a lot of stuff, but you won't have unused crap running just because you forgot to check."

Ubuntu server isn't bloated, it minimal with little preinstalled. i'd argue that the amazon linux ami has more bloat because it comes prepackaged with Amazon EC2 specific software that you probably will never use. 
The important stuff you need to install is: nginx, jetty, database(mysql, mongodb, etc). I think you are better off not depending on Amazon specific software.

If it matters to you, I'd highly suggest getting more opinions. 

Use this guy to connect to your linux server. http://www.bitvise.com/tunnelier
It's a lot nicer(in my opinion) than Putty.
Reply all
Reply to author
Forward
0 new messages