I have my websites hosted in a shared hosting where CPanel and EXIM are installed.
My goal is to send all outgoing emails via Sendgrid, as explained in this article: https://sendgrid.com/docs/for-developers/sending-email/exim/
I cannot edit the main EXIM config file because it would affect all the users of the server, so I was wandering if it is possible to add a configuration file in my local /home/etc folder in order to use a different EXIM config for my websites only.
I tried to add an exim.config.local file in my etc folder, but nothing changes...
Do you know if there is any way to achieve my goal? Maybe a local EXIM alternative?
I can use PUTTY to wget files, but apt-get install is not available.
Thanks for your help
Use .include_if_exists $home/exim.conf in the main config and it will only load a users config if it is present in its homedir. That way it won't affect the other users of the server.
Related
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.
I'm importing emails into Gmail via POP3. Is there a way to delete from the server messages with a certain keyword in the subject and leave everything else on the server? If not Gmail than is there any other way of doing this? PHP? It is not possible to create filters on the original server or to add any scripts / cron jobs... Thanks!
Just found that I have IMAP access too, so I installed Thunderbird and was able to selectively and permanently delete the messages from the server. Not sure if it is possible with POP3...
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.
I am surprised there is not more information out there about this. I assume it is a fairly common issue.
My situation: I have a vps that I have setup a website on (http://honeybadgertech.com/) and I would like to add email also. Preferably on a subdomain such as mail.honeybadgertech.com. I have done the basic installation of smartermail but cant find instructions on how to configure it to run on IIS as a sub-domain. I have setup many websites in the past but I have no experience with email at all. Can anyone help me with the details of setting up smarter mail on a sub-domain? or would it just be easier to register a separate mail domain from godaddy to run the email?
Ok so here is how I was able to get running.
Install download
Setup sub-domain in IIS
Add A or CNAME Record for sub.yourdomain.com
Add MX Record for yourdomain.com
Add reverse DNS record (if possible)
Hope this helps someone!
You can make the following changes in IIS to access the mail.domain.com.
Start >> Administrative tools >> IIS.
Select SmarterMail Website.
Click on Bindings. Add new binding with port 80. (By Default Smartermail runs on the 9998 port)
In the host header value box, add mail.domain.com.
Click Ok.
Now, you can access the SmarterMail with http://mail.domain.com in your browser.
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