Posts

Showing posts with the label Webmail

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...

Squirrelmail Error: Could not move/copy file. File not attached

Image
Issue: Recently, I got a complaint from a customer that they are not being able to attach any file from webmail. However, it is working from email client software like Microsoft Outlook. The error message from webmail shows like below while attaching any file. “Could not move/copy file. File not attached” Solution: I solved the problem by following below steps. Check the web directory for the webmail and find out the attachment directory. Step 1: Move to the configure directory. root@mail:cd /var/www/html/webmail/config Step 2: Run config.pl to check the attachment directory. root@mail:/var/www/html/webmail/config# ./conf.pl Choose 4 General Options. Check option 2 attachment directory. In that case, it is /var/www/html/webmail/attach/ Exit from the configuration mode by using ‘Q’. I checked and didn’t find any directory titled ‘attach’ under webmail directory. For this reason, the file attachment is not working from webmail....