Posts

Showing posts from January, 2022

Configure Alias (Auto BCC) in Postfix

Sometimes we have to set auto forwarding in between addresses. For example, a department head shall get all the inbound emails received by his team members. We can achieve such target using aliases of postfix. Step 1: Create an alias file including its’ database. By default there is an aliases file in the server. If not, please proceed as below. root@mail:~# touch /etc/postfix/aliases root@mail:~# postalias /etc/postfix/aliases Step 2: Open the aliases file and set necessary aliases as required. root@mail:~# vim /etc/postfix/aliases user1: user1,hod user2: user2,hod   Step 3: Update database. root@mail:~# postalias /etc/postfix/aliases This alias acts like auto BCC. In this case user1, user2 shall not get any notification of this forwarding.

Postfix and Dovecot Based Email Server Configuration with SMTP Authentication

Image
Objective: Configuring a mail server using Postfix MTA, Dovecot MDA and Squirrelmail webmail. We are using the below information to configure the mail server. Domain Name: learnandgains.com Server Hostname: mail.learnandgains.com IP address: 192.168.22.30 OS: Ubuntu 20.04 LTS   Server Readiness: root@ubuntu:~# dpkg-reconfigure tzdata (Set the Geographic area: Asia, Time zone: Dhaka) root@ubuntu:~# apt install ntpdate root@ubuntu:~# ntpdate bd.pool.ntp.org root@ubuntu:~# sudo timedatectl set-ntp off root@ubuntu:~# date (To check the current date in the server)   root@ubuntu:~# vim /etc/hostname mail.learnandgains.com   root@ubuntu:~# vim /etc/hosts 192.168.22.30 mail.learnandgains.com  mail   root@ubuntu:~# apt update root@ubuntu:~# apt upgrade –y root@ubuntu:~# reboot Configuring Postfix: root@mail:~# apt install postfix root@mail:~# dpkg-reconfigure postfix Configuring Dovecot: root@mail:~# apt install dovecot-core do...