Bitnami Ruby enVironment Manager (RVM) for 1&1 Cloud. rvm gemset use GEMSET-NAME $ gem list rails How to list the installed Ruby. install ruby-1.9.1. Set up a Postfix Mail Server With Dovecot and RoundCube on CentOS 7. handshake protocol," just as an email program would. First, install. Ruby on Rails;. Hola. Rails. I just experienced a major server breakdown in 1and. My. SQL crashed and when I tried to restart it the result would be negative: Then I restarted the server and the problem persisted. So my third action was to have a look at my Parallels Plesk web panel, and the result was that it would not load, showing a My. SQL problem. I then figured out that the problem could be a lack of memory, so I entered with ssh to the server and started listing directory sizes, using the great “du” linux command: du - h –max- depth=1until i found that the problem was in the backups folder: /var/lib/psa/dumpsthen I deleted one of the backup folders and could restart mysqlservice mysqld restart. Thanks to this guide for the du parameters: http: //www.
![]() Set up a Postfix Mail Server With Dovecot and Squirrelmail on Ubuntu 1. Table of Contents. Introduction. Learn how to set up a mail server on a 1& 1 Cloud Server running Ubuntu 1. This tutorial features Postfix as an SMTP server, Dovecot for POP/IMAP functionality, and Squirrelmail as a webmail program for users to check and receive email from a web browser. The tutorial will also walk you through the process of creating and using a self- signed SSL certificate for use in securing incoming and outgoing email connections. Requirements. A 1& 1 Cloud Server running Ubuntu 1. A valid domain name pointing to the server. Firewall Access. You will need to set your firewall(s) to allow access to the following ports: SMTP: 2. POP3: 1. 10. IMAP: 1. SMTP Secure: 4. 65. MSA: 5. 87. IMAP Secure: 9. POP3 Secure: 9. 95. By default, the Cloud Panel Firewall denies access to all but the most commonly- used ports. For instructions on how to allow port access, consult our article "Creating a Cloud Panel Firewall". Install Postfix. To install Postfix, first update your packages: sudo apt- get update. Then install Postfix: sudo apt- get install postfix. Postfix is installed by default on most Ubuntu 1. If Postfix continues with an installation, simply accept all of the defaults at each prompt to complete the process. Configure Postfix. After the installation is complete, run the command to configure Postfix: sudo dpkg- reconfigure postfix. Enter the following values at the prompts, replacing example. Use the up arrow and down arrow to move up and down to highlight answers, and Enter to select your answer. Select OK to proceed. Choose Internet Site. System Mail Name: example. Root and postmaster mail recipient: root. Other destinations for mail: example. Force synchronous updates on mail queue?: No. Local networks: 1. Use procmail for local delivery?: No. Mailbox size limit (bytes): 0. Local address extension character: +Internet protocols to use: all. After the initial Postfix configuration has been done, you can change Postfix settings with the command: sudo postconf - e '[new setting]'Create an SSL Certificate. We will create a self- signed SSL certificate to secure incoming and outgoing email connections: sudo openssl req - x. Answer the questions at the prompts, or just hit [Enter] to leave an answer blank. This command will create two files: mailserver. Create a folder for the SSL certificate files: sudo mkdir /etc/postfix/ssl. Then move the files into this folder: sudo mv mailserver. Set Up SMTP AUTHSMTP AUTH is a basic method of securing your mail server. We strongly recommend the use of SMTP AUTH on all mail servers. To begin, use the following commands to configure Postfix to use SMTP AUTH: sudo postconf - e 'smtpd_sasl_local_domain ='. CAfile = /etc/postfix/ssl/cacert. Replace example. com with your own domain name: sudo postconf - e 'myhostname = example. Next, create the file /etc/postfix/sasl/smtpd. Add the following content: pwcheck_method: saslauthd. After you have finished configuring Postfix, restart the Postfix daemon with the command: sudo systemctl restart postfix. Install SASLPostfix will use SASL to handle the authentication with SMTP AUTH. Now that Postfix has been configured to use SMTP AUTH, install SASL with the command: sudo apt- get install libsasl. After the installation is done, edit /etc/default/saslauthd: sudo nano /etc/default/saslauthd. Scroll down to the line: # Should saslauthd run automatically on startup? START=no. Change START to yes: # Should saslauthd run automatically on startup? START=yes. Below that line, add the following three lines: PWDIR="/var/spool/postfix/var/run/saslauthd". PARAMS="- m ${PWDIR}". PIDFILE="${PWDIR}/saslauthd. Scroll down to the bottom of the file to the line: OPTIONS="- c - m /var/run/saslauthd"Change the last line to read: OPTIONS="- c - m /var/spool/postfix/var/run/saslauthd"Save and exit the file. Next, run the following command to update the dpkg state: sudo dpkg- statoverride - -force - -update - -add root sasl 7. Note: If you get an error message that /var/spool/postfix/var/run/saslauthd does not exist, ignore it. This directory will be created when you start the SASL daemon. Create a symlink for the config file: sudo ln - s /etc/default/saslauthd /etc/saslauthd. And finally, start the SASL daemon: sudo /etc/init. Test Postfix With Telnet. To test Postfix we will telnet to the server and perform a basic "handshake protocol," just as an email program would. First, install Telnet: sudo apt- get install telnet. Once Telnet is installed, use it to connect to the server's SMTP port: telnet localhost 2. The server will respond with: [user@localhost ~]$ telnet localhost 2. Trying 1. 27. 0. 0. Connected to localhost. Escape character is '^]'. ESMTP Postfix (Ubuntu)This indicates that Postfix is up and running. Next, greet the server: ehlo localhost. The server will respond with: 2. SIZE 1. 02. 40. 00. AUTH PLAIN LOGIN. AUTH=PLAIN LOGIN. ENHANCEDSTATUSCODES. DSNThe following lines indicate that SMTP AUTH is working: 2. STARTTLS. 2. 50- AUTH PLAIN LOGIN. AUTH=PLAIN LOGINStart by telling the server who the mail is being sent from: mail from: some- person@some- other- server. Then tell the server who you are sending mail to, replacing user@example. Now add a simple message. Tell the server your message body starts here: data Type the message, then follow it with [Enter], a period ., and [Enter]: hello world. Close the session by typing quit and hitting Enter. If you are successful, your test message will appear in /root/Maildir/new. You can view this message with the command: ll /root/Maildir/new. To read the message, copy and paste the name of the file (it will be a long name like 1. Vfc. 00. I6. 05. 12. M2. 58. 20. 5. localhost. Vfc. 00. I6. 05. 12. M2. 58. 20. 5. localhost. You will see the email message, along with all of the header information: From some- person@some- other- server. Thu Dec 8 1. 9: 4. Return- Path: < some- person@some- other- server. X- Original- To: root@example. Delivered- To: root@example. Received: from localhost (localhost [1. Postfix) with SMTP id 6. CFD5. 89. 18. 4. for < root@example. Thu, 8 Dec 2. 01. UTC). Message- Id: < 2. CFD5. 89. 18. 4@mail. Date: Thu, 8 Dec 2. UTC). From: some- person@some- other- server. Install and Configure Dovecot. Dovecot is the default POP3/IMAP server for Ubuntu, and is installed on most Ubuntu 1. Update Dovecot and install the imapd package with the command: sudo apt- get install dovecot- core dovecot- imapd. You can check on the status of Dovecot with the command: sudo systemctl status dovecot. If Dovecot is running, you will see output similar to: [user@mail dovecot]$ sudo systemctl status dovecot - l. Dovecot IMAP/POP3 email server. Loaded: loaded (/usr/lib/systemd/system/dovecot. Active: active (running) since Thu 2. UTC; 3s ago. Process: 8. Exec. Start. Pre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS). Main PID: 8. 98. 9 (dovecot). CGroup: /system. slice/dovecot. F. ├─8. 99. 2 dovecot/anvil. Dec 0. 8 2. 1: 0. Starting Dovecot IMAP/POP3 email server.. Dec 0. 8 2. 1: 0. Started Dovecot IMAP/POP3 email server. Dec 0. 8 2. 1: 0. Dovecot v. 2. 2. 1. Note the line that reads: Active: active (running) since Thu 2. UTC; 3s ago. This means that Dovecot is installed and running. Set the permissions on the /var/mail directory so that Dovecot can create folders for new users: sudo chmod 7. Install and Configure Squirrelmail. Install Squirrelmail with the command: sudo apt- get install squirrelmail. You will need to edit your Apache configurations to add an alias for Squirrelmail. This directive will need to be inserted inside the Virtual. Host command block in the site's main Apache configuration file. By common convention, this Apache configuration file is usually /etc/apache. Ubuntu. Note: The location and filename of a site's Apache configuration file can vary. Edit this file with your editor of choice, for example with the command: sudo nano /etc/apache. Scroll through the file until you find the Virtual.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |