Once I noticed an error in the /var/log/nginx/error.log:
Continue reading “Solution “111 Connection refused while connecting to upstream””Tag Archives: iRedMail
iRedMail. Change password complexity
I will give an example of changing the requirements for password complexity in iRedAdmin, they are used to check the entered password, for example, when creating a user or simply changing a password for a user. However, I do not recommend downgrading them.
Continue reading “iRedMail. Change password complexity”Solution for ImportError: No module named web
Once I needed to disable the Nginx web server on the same server with iRedmail and install Apache2. And when I tried to start iRedadmin, it did not open, and in the Apache2 logs I saw:
Continue reading “Solution for ImportError: No module named web”iRedMail. Adding a catch-all account
One customer once asked to set up a forwarding of all email from non-existent addresses in his domain to a specific email address, this is usually called catch-all or luser_relay in postfix.
Continue reading “iRedMail. Adding a catch-all account”How to add Alias to iRedMail
Once, on the same mail server with iRedMail, I needed to redirect mail from the old domain to the new one, so I decided to add an alias so as not to lose contact with clients who will write to the email addresses of the old domain.
Continue reading “How to add Alias to iRedMail”Installing and configuring iRedMail
Below is an example of installing iRedMail on Ubuntu/Debian.
On the test I will install iRedMail on Ubuntu 18.04 LTS.
How to add DKIM record for iRedMail
Suppose iRedMail was installed, the DKIM key was generated during the installation process, now let’s see which public keys are present:
Continue reading “How to add DKIM record for iRedMail”Install SSL Certificate for iRedMail
Suppose we have a signed SSL certificate, or we will receive it from Let’s Encrypt, as I described in this article:
Installing Certbot in Ubuntu
To install an SSL certificate for iRedMail, you need to specify it in the Dovecot, Postfix and Apache2 configuration.
Continue reading “Install SSL Certificate for iRedMail”The solution to the error “ImportError: No module named ldap”
Installed iRedMail on Ubuntu Server in February 2016 and noticed an error when trying to send a message via Roundcube:
SMTP error (451): Unable to add recipient “Email” (4.3.5 Server configuration problem)
I checked if iredapd is running:
telnet localhost 7777
It turned out that it was not running because the response from telnet was displayed:
Unable to connect to remote host: Connection refused
Tried to run:
sudo /etc/init.d/iredapd start
To which he received the answer:
ImportError: No module named ldap
I installed the module with the command:
sudo apt-get install python-ldap
Execute the commands:
sudo -i cd /opt/iredapd/ find . -name '*pyc' | xargs rm -f {}
Now restart the service:
sudo service iredapd restart
Done, there is no error.
Configuring email notifications in Zabbix via iRedMail
On the test I will use Zabbix 3.0.3 and iRedMail 0.9.4 installed in Ubuntu Server 14.04.4 LTS.
First, in the Zabbix panel, activate the action by opening the tab “Configuration” – “Actions” and activate “Report problems to Zabbix administrators“. In it I also, to see the names of the hosts, changed both topics of the letter with:
{TRIGGER.STATUS}: {TRIGGER.NAME}
on
{TRIGGER.STATUS}: {HOST.NAME1} {TRIGGER.NAME}
In Zabbix, the email notification method was initially added, but depending on the settings of the mail server it can work or not work. You can find it by going to Zabbix under the administrator and opening the tab “Administration” – “Media types” – “Email“.
When configuring with iRedMail, I specified the following parameters:
Name: Email
Type: Email
SMTP server: mail.example.com
SMTP server port: 25
SMTP helo: example.com
SMTP email: user@example.com
Connection security: STARTTLS
Checkboxes for “SSL verify peer” and “SSL verify host” did not put
Authentication: Username and password
Username: user@example.com
Password: PASSWORD
check for “Enabled”
If the mail server is in the same system as the Zabbix server, you can try to configure both the above, but where “Connection security” and “Authentication” select “None”.
Also in the user profile, in the tab “Media” need to add:
Type: Email
Send to: mail for notifications
When active: time when it is allowed to be alerted
Use if severity: what importance of notification to send
check for “Enabled”
Done.