Oo it works! I've disabled ESMTP on ASA firewall. I've spent a lot of time since now! Many thanks!
Re: TLS issue
Re: > MD5 check failed. Script exit
Hi,
#bash iRedMail.sh
The output:
< SKIP > Function: check_new_iredmail.
[ INFO ] apt-get update ...
Ign http://ftp.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.debian.org jessie Release
Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [9376 B]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Get:2 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3688 B]
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Fetched 13.1 kB in 1s (10.1 kB/s)
Reading package lists...
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 3: https://dl.iredmail.org/yum/misc/roundc … ete.tar.gz
[ INFO ] + 2 of 3: https://dl.iredmail.org/yum/misc/iRedAPD-2.1.tar.bz2
[ INFO ] + 3 of 3: https://dl.iredmail.org/yum/misc/iRedAdmin-0.8.tar.bz2
[ INFO ] Validate packages ...
misc/roundcubemail-1.3.0-complete.tar.gz: FAILED open or read
misc/iRedAPD-2.1.tar.bz2: FAILED open or read
misc/iRedAdmin-0.8.tar.bz2: FAILED open or read
[ FAILED ]
<< ERROR >> MD5 check failed. Script exit ...
Thank's for helping me
Please show us full console output. Which URLs do iRedMail installer use to download the packages?
Managesieve redirection policy parameters
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8.9 (3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no, with iRedAdmin
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi.
I need to redirect some emails from mailbox to 20 recipients. I configure filter with managesieve, but it does not work. I have got error in dovecot.sieve.log:
# cat dovecot.sieve.log
sieve: info: started log at Nov 24 14:44:40.
main script: line 14: error: number of redirect actions exceeds policy limit (5 > 4).
Then i change parameter in my /etc/dovecot/conf.d/90-sieve.conf:
# grep max_redir /etc/dovecot/conf.d/90-sieve.conf
#sieve_max_redirects = 4
sieve_max_redirects = 50
After restarting services i have got this error again.
What must i reconfigure?
Re: Error in regex
Here's the fix:
In /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 923
change
$str =~ s/^(.{,200}).*$/$1/gs;
to
$str =~ s/^(.{0,200}).*$/$1/gs;
Dovecot zlib
I installed iRedmail recently. Everything is working fine except the Dovecot zlib compression. I tried the settings from Dovecot website but it seems that settings are not accepted. I enabled debug on Dovecot and the log doesn't show zlib plugin is loaded:
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib15_notify_plugin.so
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Nov 25 16:14:15 mail dovecot: imap(postmaster@ab.cd): Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
I restarted Dovecot few times but nothing changed. When email message is compressed Roundcube could not read it - it shows on the list but is empty.
OS: Ubuntu 16
Iredmail: 0.9.7 PGSQL edition.
Add mail list with phpLDAPadmin
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8.9 (3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no, with iRedAdmin
====
In order to successfully execute the steps of your manual "Add mail list with phpLDAPadmin" (https://docs.iredmail.org/ldap.add.mail.list.html) when adding a new object with class "mailList" or "mailExternalUser", it is necessary to have an appropriate XML-templates for the phpLDAPadmin. Without the appropriate templates it is not possible absolutelly. With the standard installation of phpLDAPadmin and SLAPD service in Debian these templates are not available. Could you share them please?
Re: Domain alias does not work
I cannot reproduce this issue. Could you please try to setup a new VM with iRedMail-0.9.7 and test this issue again?
Re: Dovecot zlib
I managed to fix the issue. The problem was that I added the setting to the end of the file
# Enable zlib plugin globally for reading/writing:
mail_plugins = $mail_plugins zlib
When I added zlib to the rest of the plugins now everything is OK
mail_plugins = quota mailbox_alias acl mail_log notify zlib
Re: Creating email groups/aliases
Would this documentation work for group mail?
https://docs.iredmail.org/sql.create.mail.alias.html
As I would need to set up a group named "group@yourdomain.com" and all the messages that is on "group" mail box should be to go to "user1@yourdomain.com", "user2@yourdomain.com", and "user3@yourdomain.com".
Re: Domain alias does not work
Thanks for your message!
I suspect that something must have gone wrong during upgrade.
Just yesterday another customer told me about one of his email aliases not working anymore.
All mails were in the catchall mailbox and it was obviously full.
In which table should I find the domain alias?
Is there a way to debug postfix to know what exactly it's doing?
Well, is absolutely necessary I can make a new VM with 0.9.7 but then how shall I test? I can't use my production environment for testing. Only live debugging is possible (and even this is not great).
mails to gmail is not delivered SMTP 550-5.7.1
==== Required information ====
- iRedMail version (0.9.7):
- Linux/BSD distribution name and version: Debian 8 Jessy
- Store mail accounts in which backend (MySQL):
- Web server (Nginx):
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Good day.
When i send a message to gmail address i get the answer smtp error 550-5.7.1.
when I restart (amavisd-new) the messages are delivered
After 10-15 minutes when i want sending mails to gmail i have smtp error 550-5.7.1
Restart Amavisd-new and mails delivering. How to resolve this problem?
There are no problems with delivery to other servers, only gmail
Thanks
Migrating server1->server2, both have same iredmail
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? N
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello everyone,
Basically, I am in the process of migrating from server1 to server2. I would like to completely transfer all the data (emails, accounts, mysql dbs, domain) from one server to another one. At the moment everything is working fine on server1 and I have already set up the same 0.9.7 iredmail on server2. Also, I have imported a vmail mysql backup file onto server2, I can login into iredmail control panel and I see all my account there.
Obviously, I cannot use the domain since it is serving server1 at the moment.
What would be the best and pain-free way to copy everything from server 1 and make it work on server2?
My understanding is:
- since both servers are running the same iredmail versions, I can rsync all mysql backups from /var/vmail/backup and then restore all of them on server2 with mysql -u root -p -h localhost [appropriate_user_name] < [backup.filename].sql
Since all the credentials are the same, there should be no issues importing mysql backup file on server2
- DKIM: simply rsync /var/lib/dkim server1->server2
- Mailboxes: rsync /var/vmail server1->server2
- Roundcube: rsync mysql backup from /var/mail/backup server1->server2 and restore on server2 as above
- Amavisd, iredAPD, iRedAdmin: same as roundcube
At the end I will force dovecot to recalculate mailbox quota
Once everything is in place, I will change my DNS records to match a new server.
Is everything correct or did I miss anything?
Thanks
Re: Suggestions for lots of spam email getting to inbox
After a few weeks of concentrated effort to reduce spam have a few observations. First turning on greylisting had the biggest effect in reducing spam. Having greylisting on really has made a difference where nothing else did. Large domains (Gmail, Yahoo, ect.) are whitelisted so most emails are delivered instantaneously.
Second it appears that DNSBL blocklists are turned on by default in iRedMail. Spamhaus ignores the DNS queries since server is probably far over limit for free version but interestingly the Barracuda DNSBL appears to respond to requests even without signing up (Barracuda DNSBL service asks users to signup and register their server IP).
Re: Migrating server1->server2, both have same iredmail
When did this found that starting from scratch and importing emails via an IMAP client, copying over DKIM keys, Roundcube config file and a few other things via rsync or scp was much easier than trying to migrate to a new server. That being said the larger the server the easier a migration becomes as opposed to starting from scratch so this solution does not scale.
Re: Migrating server1->server2, both have same iredmail
this solution does not scale.
I don't think I understand you. Can you please elaborate?
Re: Migrating server1->server2, both have same iredmail
I don't think I understand you. Can you please elaborate?
A solution that scales means that the solution works just as well on a bigger scale. My solution above becomes more and more tedious the larger the user base is and therefore does not scale well. Does this make sense?
Re: Demo/Evaluation version of iRedmail for Mobile App
Hi Zhang...Thanks for your reply. In continuation to your Here are the features im looking for my application.
1) I want to search for a specific string on the subject field and if the match is found, move the email to a particular predefined folder say "Test". I want this feature to be enabled for all users within the domain so that the feature is similar for all the users. My Mobile application will be pointed to the "Test" folder to read the emails which matches the string criteria. So i should be able to write sieve rules such a way that the rule applies to all users in domain at admin level rather than individual users at user level.
You mentioned i should be able to do this using webmail. Does it mean can i login to webmail as admin and enable sieve rules for all users within domain?
Also when you refer webmail, is it different from Roundcube used by users?
Re: Migrating server1->server2, both have same iredmail
Does this make sense?
No really. So, are you trying to say that it is much better to simply copy all the emails via the IMAP client to the new server, copy DKIM, roundcube settings, Amavisd, iredAPD, iRedAdmin settings via rsync to the new server and that is it?
Re: Migrating server1->server2, both have same iredmail
So, are you trying to say that it is much better to simply copy all the emails via the IMAP client to the new server, copy DKIM, roundcube settings, Amavisd, iredAPD, iRedAdmin settings via rsync to the new server and that is it?
If you have less than ten mail users and do not care about resetting user mailbox passwords, iRedAdmin settings, the Roundcube address book, or user Roundcube mailbox settings it is probably easier to just start a new server and rsync the DKIM keys, Roundcube config file (if you have modified it), and any other other setting files that you have heavily modified rather than to do a full blown server migration.
Does this make sense?
Re: Migrating server1->server2, both have same iredmail
Does this make sense?
Oh yes, many thanks for the explanation. I do have a small scale server, so I will probably just rsync files from one server to another one. One last question - do I need to rsync mysql backup files and then import them on a new server?