How to set up a SMTP in Ubuntu

Talk about anything in here.
Post Reply
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

How to set up a SMTP in Ubuntu

Post by Fidbeck »

How to do this?
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: How to set up a SMTP in Ubuntu

Post by Helx »

I've not tested this myself, as I don't need it.

But I found this article: http://my.opera.com/Contrid/blog/show.dml/478684
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

I found this one
sudo apt-get install sendmail php-mail postfix

http://steffe.se/?p=357
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

I found a tut on how to install roundcube
http://www.upubuntu.com/2012/02/how-to- ... 71-on.html

the problem is I can't get past to the login screen
Keeps saying Connection to IMAP server failed

also tried this one
https://help.ubuntu.com/community/Roundcube

but same error
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: How to set up a SMTP in Ubuntu

Post by jacek »

If we are talking about how to get mail() working then all you need is the local sendmail bin
apt-get install sendmail-bin
is the package name from what I remember.
Image
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

But how to get it to work in roundcube or squirrel mail?

what kind of config do I have to use?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: How to set up a SMTP in Ubuntu

Post by jacek »

Fidbeck wrote:But how to get it to work in roundcube or squirrel mail?

what kind of config do I have to use?
Both of those are just clients to the IMAP server so all you should need to do is extract it into a folder.
Image
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

It's been a long time :P

I've checked some of your tutorials and you send mails to test@test.com
how can I create a mail like that? and how to make it work with roundcube. That's what I meant

Full tutorial please :)
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: How to set up a SMTP in Ubuntu

Post by jacek »

You have to own the domain test.com for that to work, you can't just install a webmail client.
Image
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

I thought you created a dummy inbox for testing purposes.

i've found something cool at mail.com but there's one huge problem here
I can't get the IMAP and POP3 because i'm not premium, and I will never be for that matter xD

what's the best solution then? create some dummy gmail or hotmail or whatever email account and use it with roundcube?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: How to set up a SMTP in Ubuntu

Post by jacek »

I created one on a domain that I own, I think it was test@jacekk.co.uk at the time. So if you have a domain with a hosting provider you might be able to use that.

I doubt you will be able to use roundcube with gMail, they will want you to use their interface.
Image
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

I've already used with one of the two programs.
I don't really recall if it was with squirrel or roundcube but I think it was squirrel. I had no problem using it.

the problem is i'm only developing locally, and this is just for fun, self learning.

Jacek just a little off-topic here.
A quick question

I'm following some tutorials about MVC structure. My problem is that whenever an error is shown I can't see it.
in this php.ini part
; Common Values:
;   E_ALL (Show all errors, warnings and notices including coding standards.)
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)
;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reportingerror_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
i should change
this
error_reportingerror_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
into this
error_reportingerror_reporting = E_ALL
right?

BTW i've installed this php5- things
sudo apt-get install php5 php5-curl php5-gd php5-ffmpeg php5-cgi php5-fpm php5-dev php5-geoip php5-xdebug php5-dbg

too much stuff no?

EDIT1: it seems I was able to fix it
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: How to set up a SMTP in Ubuntu

Post by jacek »

Please post support questions in a new topic :)
Image
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: How to set up a SMTP in Ubuntu

Post by Fidbeck »

Don't need anymore lol
in the php.ini there is an option similar to error_reporting: off, I simply had to change it to on hehe
Post Reply