Skip to main content

Posts

Showing posts with the label sendmail

Installing and Configuring a Mediawiki wiki on Mageia5

I started a MediaWiki wiki for my hobby, to serve as a convenient place to collect and centralize all the bits of information that I find scattered about the internet. Creating such a wiki can be a daunting task, but if broken down into small tasks, it can be done. The most difficulty I had was that there were no specific instructions for Mageia. The best general instructions I could find were from the Mediawiki site, but were  for Ubuntu . Mageia configures its default configurations slightly different. I chose to tun the wiki and its associated webserver and database in a virtual machinate using VirtualBox, so we can tackle that first assuming that you already know how install and configure VirtualBox. Installing A Minimal Mageia Base During the installation, deselect all the pre-configured options, but do select the option to select individual packages. You will select a minimal install with no X11 or documentation, but with urpmi . The remaining installation is pret

Managing /etc/alternatives (Updated 2019-11-09)

A number of applications are configured by default to invoke the sendmail application to send mail messages. Sendmail is, of course, the iconic UNIX command to send mail. But in many cases, sendmail is overkill and most systems provide a default lightweight command, /bin/mail , that can be used instead. Another alternative is ssmtp . There are alternative applications for many standard applications. After all, what UNIX programmer can't think of a better or different way of doing something? But how is that choice of alternatives easily managed on a Linux system? In the old days, the sysadmin installed the alternative application and created a symlink to the alternative application in place of the expected default application, for example symlinking /bin/mail to /usr/bin/sendmail . But the update-alternatives method provides better control, in theory at least. My problem was that the default installation of Mageia does not provide such a choice. I filed a bug report abou

nail, mailx, and Gmail

UPDATED 2017-11-11 I'm setting up a web server for my business and I need to email error messages and notifications to myself so I can keep track of things, but I don't have a sendmail or postfix installation for my domain and DO NOT want to futz with that since it's just overkill for what I need. Thankfully, a minimal mail user agent is installed with Mageia (and likely in many more variants of Linux as part of their base package) called mailx (this was formerly called nail , which explains the names of a few files). The system-wide configuration file is located at /etc/nail.rc . Each user can have a ~/.nailrc file, but since my server is running headless, I put everything in /etc/nail.rc . As well, you can put per-user modifications in the more common ~/.mailrc . There seems to be a general problem for people getting mailx to work with Gmail. Here's what I did: 1. Make sure that POP is enabled in your Gmail Settings. 2. Add the following to /etc/nail