Category Archives: Ubuntu

Ubuntu 16.04 LTS tutorials

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04

How to secure an Ubuntu 16.04 LTS server

https://www.thefanclub.co.za/how-to/how-secure-ubuntu-1604-lts-server-part-1-basics

The Perfect Server – Ubuntu 16.04 (Xenial Xerus) with Apache, PHP, MySQL, PureFTPD, BIND, Postfix, Dovecot and ISPConfig 3.1

https://www.howtoforge.com/tutorial/perfect-server-ubuntu-16.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/

How To Protect WordPress with Fail2Ban on Ubuntu 14.04

https://www.digitalocean.com/community/tutorials/how-to-protect-wordpress-with-fail2ban-on-ubuntu-14-04

UFW Essentials: Common Firewall Rules and Commands

https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands

Other readings…

Potential ufw and fail2ban conflicts

http://askubuntu.com/questions/54771/potential-ufw-and-fail2ban-conflicts

 

digitalocean – 404 Not Found [IP: 103.253.144.50 80]

 

Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libc-bin amd64 2.19-0ubuntu6.9
 404 Not Found [IP: 103.253.144.50 80]
Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main libc-bin amd64 2.19-0ubuntu6.9 [1,165 kB]
Get:2 http://security.ubuntu.com/ubuntu/ trusty-security/main libc6-dev amd64 2.19-0ubuntu6.9 [1,910 kB]
Get:3 http://security.ubuntu.com/ubuntu/ trusty-security/main libc-dev-bin amd64 2.19-0ubuntu6.9 [69.0 kB]
Get:4 http://security.ubuntu.com/ubuntu/ trusty-security/main libc6 amd64 2.19-0ubuntu6.9 [4,717 kB]
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libapt-pkg4.12 amd64 1.0.1ubuntu2.14
 404 Not Found [IP: 103.253.144.50 80]
Get:5 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main apt amd64 1.0.1ubuntu2.14 [955 kB]
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libapt-inst1.5 amd64 1.0.1ubuntu2.14
 404 Not Found [IP: 103.253.144.50 80]
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libexpat1-dev amd64 2.1.0-4ubuntu1.2
 404 Not Found [IP: 103.253.144.50 80]
Get:6 http://security.ubuntu.com/ubuntu/ trusty-security/main libexpat1-dev amd64 2.1.0-4ubuntu1.2 [115 kB]

 

Hello,

Thanks for writing in!

We’ve updated the mirrors, and it will take some time complete. But should be wrapping up very shortly.

Cheers,

/\/\o || DigitalOcean Platform Support Specialist

fatal: no matching comp found: client zlib server none,[email protected]

 

May  4 00:04:35 sd-71796 sshd[20887]: fatal: no matching comp found: client zlib server none,[email protected] [preauth]

You need to install zlib and libgcrypt11-dev and set compression to yes on /etc/ssh/sshd_config.

sudo apt-get install libgcrypt11-dev zlib1g-dev

Then

sudo nano /etc/ssh/sshd_config

And add Compression yes to it.
Save and restart ssh.

sudo service ssh restart

In some cases you might need to restart the server.

 

dovecot: lda(root): Error: user root: Initialization failed: Namespace ”: stat(/root/Maildir) failed: Permission denied

 

Apr 29 14:37:45 sd-71796 dovecot: lda(root): Error: user root: Initialization failed: Namespace ”: stat(/root/Maildir) failed: Permission denied (euid=65534(nobody) egid=65534(nogroup) missing +x perm: /root, dir owned by 0:0 mode=0700)

OK!

I’v created an aliase…

Edit /etc/postfix/virtual

nano /etc/postfix/virtual

Add the entry

[email protected]    existing_user

Rebuild postmap

sudo postmap /etc/postfix/virtual

 

 

Sources

Ubuntu postfix+dovecot – Create default Inbox, Sent, and Trash folder per account

 

Open /etc/dovecot/conf.d/20-imap.conf

sudo nano /etc/dovecot/conf.d/20-imap.conf

Search for mail_plugins and make the following changes on that line

from
mail_plugins = $mail_plugins
to 
mail_plugins = $mail_plugins autocreate

Then add the following at the end of the file

plugin {
     autocreate = Trash
     autocreate2 = Junk
     autocreate3 = Drafts
     autocreate4 = Sent
     autosubscribe = Trash
     autosubscribe2 = Junk
     autosubscribe3 = Drafts
     autosubscribe4 = Sent
}

Restart dovecot

sudo service dovecot restart

 

More readings

 

Apr 29 03:09:02 sd-71796 postfix/master[43779]: fatal: bind 0.0.0.0 port 25: Address already in use

Apr 29 03:09:02 sd-71796 postfix/master[43779]: fatal: bind 0.0.0.0 port 25: Address already in use

So, looks like we have the port 25 in use!

This solved my issue…
service sendmail stop
service postfix restart
service sendmail start

After doing this the /var/mail/ had the user’s files!

Send a test email

mail -s "Test Subject" [email protected] < /dev/null

To set up an user you need to Configure Additional Email Addresses.

 

Solution found at http://askubuntu.com/questions/405058/postfix-start-error-port-25-address-already-in-use