Viewing emails via browser on Ubuntu - webmail

I have a working postfix smtp server on my Ubuntu 20.04 cloud machine. I can send/receive emails using the standard command line "mail" client. I am now looking for a way to do the same via web browser. I already am running nginx on the server.
It seems there are various apps such as RoundCube and SquirrelMail that are available on Ubuntu. However, they seem to require additional pop3/imap server packages to be installed.
As the webmail client is intended to be on the same machine as my smtp server is, I do not see why additional pop3/imap packages need to be installed.
Wondering if there is a simpler way to look at emails via web browser. Regards.

You need to install a web server, PHP (or whatever is required to run the webmail app of your choosing), and an IMAP server.
mail is an email client that knows how to directly access your messages on the filesystem, something that a web app has no capability to do. Also note that it is executed from the context of you having already logged in to your server as a particular user.
It's a Very Bad Idea to give your web server read/write access to parts of the filesystem outside the directories where your web-related files are kept (write access can and should be even more strict).
It's technically feasible to create a webmail app that does what you want (I think there may have been some attempts in the distant past), but it would be limited to systems with a very specific mail system setup and require some questionable permission tweaking. IMAP is the layer that abstracts your particular mail system setup from any of the various mail clients you may want to use to access your messages. It also helps make sure users and apps are not able to access things they should not.
Wondering if there is a simpler way to look at emails via web browser
Not that I can think of. Fortunately, this will get you most of the way there:
apt-get install dovecot-imapd
Dovecot will need minimal configuration in your case, and more time will be spent installing and tweaking whatever webmail client you choose (or you can try Thunderbird). And remember that the IMAP server can be limited to local clients (webmail counts as such) and need not be exposed to the Internet.

Related

How to install mail server on vps (digitalocean)

I need send and receive e-mails. I need configure on Digital Ocean Vps a Mail server.
I need a how to or any recommendation about it. I think I will have to create a database to store messages.
I have seen:
Mailgun: I have created an account and created dns records Mx and Txt but Its not verified yet. So I can't receive email.
SendMail: I think it's I have already installed but I don't know how to send and receive email from hello#domain.com
Postfix: I've tried to install didn't work it
Thanks.
Mailservers are complex beasts of software. Installing your own might be a bad idea, unless you're willing to invest time to
make it secure
protect it against spam and viruses
back up your emails
understand topics such as DMARC and TLS and greylisting
...
See why you may not want to run your own mail server for more information.
Maybe you could use an email provider instead? Google Suite is a great choice :)
There's an open-source solution
Mail-in-a-Box lets you become your own mail service provider in a few easy steps. It’s sort of like making your own gmail, but one you control from top to bottom.
Technically, Mail-in-a-Box turns a fresh cloud computer into a working mail server.

AWS SES + TLS: custom domain for mail servers

When messing around with different mail hosting options I noticed a very aggravating pattern with my Android phone. Neither the built-in mail app nor the gmail app supported email auto-configuration.
When using most mail services such as Namecheap, Zoho, Rackspace, etc. this became a real issue. I would enter my email address and password then instead of it just working like magic, it would invariably fail as it attempted to set the mail server to mail.example.com instead of mail.privateemail.com or smtp.zoho.com
I can configure a CNAME entry for my domain to redirect to these servers and successfully connect to mail.example.com.... up until I try to enable secure e-mail (STARTTLS or TLS wrapper). When I do this the domain name on the certificate does not match up to the domain name I am using to access and the whole thing fails.
Of course setting up my own mail server could be an option, but it could take months or years for my IP address to build up enough reputation to not get auto-blocked by major providers like Gmail or Yahoo. This whole past month DreamHost has been unable to send emails to any address owned by AT&T, which has been nightmarish to get resolved. Not wanting an issue like that, I would like to go with a big name for e-mail hosting.
While looking into Amazon SES to see if it would be easy to set up, I noticed this page on secure tunnels to AWS SES
I'm not super familiar with mail servers and I honestly have no idea what I'm reading on this page. Like I can follow the steps to install and configure this program and run it, but it doesn't accurately say what the purpose is of doing this. Am I right in believing that this might solve my SSL issue and allow me to send mail to mail.example.com without any issues? If so, is there any additional setup that I will require which is not adequately explained by this article?

Is it possible to install Roundcube on shared server ?

Is it possible to install roundcube on Shared linux
server running Cpanel. I heard from my service provider that it isn't. Well is it possible atleast on Dedicated IP... Please advice. Thanking in advance..
Ahoy,
cPanel ships with Roundcube already installed on the server by default with cPanel. You can access roundcube though the webmail interface using any of the email accounts hosted on that server. The webmail login that you can access roundcube through is at http://example.com/webmail -or- https://example.com:2096
cPanel uses a specially modified version of roundcube to help address issues like passing cPanel authentication data to roundcube to make logins easier. cPanel's roundcube files are stored at:
/usr/local/cpanel/base/3rdparty/roundcube
To update roundcube on a cPanel server you can use the following command. Additionally if you use the --force flag, roundcube will be reinstalled.
/usr/local/cpanel/bin/update-roundcube
cPanel Roundcube also has a special logging location at:
/var/cpanel/roundcube/log
cPanel Roundcube's Primary Configuration file
/usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
By default roundcube will use MySQL, however it is possible to update roundcube to use sqlite, an quicker and more efficient database driver for roundcube. There are dangers in this conversion (ie. address book loss, roundcube user preferences loss). The command to convert roundcube to sqlite is:
/scripts/convert_roundcube_mysql2sqlite
/scripts/convert_roundcube_mysql2sqlite $username
To update an sqlite roundcube (--force to reinstall)
/usr/local/cpanel/bin/update-roundcube-sqlite
Additionally since roundcube is a php script, you can download roundcube from http://roundcube.net/download/ and install it into any cPanel account if your usage requires customizations that cPanel will not support.
Chears!
Well, it is 100 % possible for sure( I have an example in production)
The only thing to consider is, there may be some missing components that Roundcube requires. If this is is the case, just submit a ticket for your hosting provider, they will certainly install the missing components.
If you want to install SSL for your Roundcube, for sure you also need a dedicated IP.

POP3/SMTP on Ubuntu using Linux group

I need to setup a POP3/SMTP server on our Ubuntu server (example.com). Now I found postfix useful for this job. Is it possible to let users from the group users (on the system) use this service, so they can login with their username/password? For example, if kevin is a user from the group users, then he can login on the POP3 server and retrieve (and send) mail for kevin#example.com? Is it also possible to save the in- and outgoing e-mails in a database?
Regards,
Kevin
Here ís a link to the Postfix features. I have only found that they store users in the database.
I am using a mailserver configured after the tutorials of workarounds.org and have also implemented servers following this solution for a few clients with up to 100 concurrent users for now.
But for example the DBMail project offers at least storing mails to databases.

Installing and configuring a barebones email server on Ubuntu

I've got an unmanaged Linux VPS running ubuntu that I'm using for the web server for a personal website. I'd like to get a barebones email server up and running. All the installation guides I've found so far are for a full-fledged email server with a webmail interface and everything. That's a lot more than I need. There's only two things I need:
My web application needs to be able to send email. Specifically, it'll be emailing me when an exception occurs.
I want all email sent to [anything]#domain.com forwarded to my personal gmail account. The server doesn't even need to retain the email or anything.
I want to reserve resources for the actual web app, so I don't want to install anything I won't need for this.
msmtp or nullmailer sounds like it would fit the bill for the former. You could use google mail for domains for the latter.
I'll Second Postfix. I've been using it since around 2000 - it's not that hard to set up. However, for what you're doing (relaying to your ISP) msmtp or nullmailer as suggested by geocar will probably do the trick - they appear to be specifically designed for this sort of role - although I've never used them so I can't really comment from experience in the way I can with Postfix.
Your web application needs a SMTP server. That server can be a hosted service like Google's or MailHop. If you really want to be an email administrator postfix should be installed HOWTO is here.
If not:
sudo apt-get install postfix