Thank you.
The problem was a conflict between
proxy_read_maps = $relay_domains $sender_dependent_relayhost_maps
and sender_dependent_default_transport_maps
The firsts bypass sender_dependent_default_transport_maps.
Was not easy to debug :'(
Thank you.
The problem was a conflict between
proxy_read_maps = $relay_domains $sender_dependent_relayhost_maps
and sender_dependent_default_transport_maps
The firsts bypass sender_dependent_default_transport_maps.
Was not easy to debug :'(
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Debian 9.8.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, once in a week, on Sunday, I receive a letter to postmaster with the following:
/etc/cron.daily/logrotate:
Job for rsyslog.service failed.
See "systemctl status rsyslog.service" and "journalctl -xe" for details.
error: error running non-shared postrotate script for /var/log/php-fpm/php-fpm.log of '/var/log/php-fpm/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
It seems that this error occurs when creating a backup copy and after it the file mail.log and some other logs are not written - they are empty.
The command "systemctl status rsyslog.service" returns "failed"
After restarting the server, the logs begin to fill up again. Please help me solve the problem.
Same problem was here: https://forum.iredmail.org/topic15770-r … ailed.html
can you share content of /etc/logrotate.d/php7.0-fpm
I can't recall but I think I might have needed to add "sharedscripts" to the config
eg:
/var/log/php-fpm/*.log {
weekly
rotate 10
missingok
compress
delaycompress
notifempty
sharedscripts
postrotate
/usr/sbin/service rsyslog restart
endscript
}
can you share content of /etc/logrotate.d/php7.0-fpm
Here it is:
/var/log/php-fpm/*.log {
weekly
rotate 10
missingok
compress
delaycompress
notifemptypostrotate
/usr/sbin/service rsyslog restart
endscript
}
I will try to add "sharedscripts" and see what happens on Sunday. Thanks
Thanks for that, I should have spotted it!
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
iRedMail version (check /etc/iredmail-release):
1.0
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
Debian
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
mysql
- Web server (Apache or Nginx):
Apache
- Manage mail accounts with iRedAdmin-Pro?
Yes
after upgrade to iRedAdmin-Pro-SQL-4.1.2, login into iredadmin can take between 5 to 15 minutes
hi
this started working after we aligned everything in a single line
465 inet n - n - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o content_filter=smtp-amavis:[127.0.0.1]:10026
rajesh
Do you have many SQL records in database "amavisd"? Please run script "/opt/www/iredadmin/tools/cleanup_amavisd_db.py" manually to clean old records first, then try login again.
iRedMail doesn't use 'sender_dependent_default_transport_maps' at all, you should use 'sender_dependent_relayhost_maps' instead and manage data in SQL table "vmail.sender_relayhost".
Would I need to upgrade the 0.9.3 to 1.0 first so all of the db structures are correct and then migrate? Or is there an imap migration method where the emails, calendars and address books will export out of 0.9.3 and into 1.0?
Upgrading from 0.9.3 (to 0.9.4, to 0.9.5, ...) to 1.0 first is recommended.
I'm also intrigued by the docker idea. I have multiple services running on the server (iRedmail, SOGo, Owncloud) and running in containers would eliminate any issues with dependency conflicts in python and similar.
We're working on it, it just takes some time.
The version of iRedMail that I'm trying to install is 0.9.9 which is the latest version.
...
********* ERROR *********
...
http://www.iredmail.org/download.html
The error message gives you the webpage to check and download latest release, currently iRedMail-1.0 is the latest one.
Adding "sharedscripts" in the rsyslog config file should fix the issue.
1) replicate MySQL for mail accounts and application data. Dovecot for mailboxes. But how are you going to do active/active for MySQL? There's famous split-brain problem.
2) If you don't need to run the admin panel (iRedAdmin-Pro) on 2 servers, then just one is ok.
3) number of mailboxes doesn't matter, but the daily traffic matters. How many emails do your users send and receive per day? 3K mailboxes is not a big number.
Do you have many SQL records in database "amavisd"? Please run script "/opt/www/iredadmin/tools/cleanup_amavisd_db.py" manually to clean old records first, then try login again.
nm2:/usr/share/apache2/iredadmin/tools# ./cleanup_amavisd_db.py
Amavisd is not enabled. SKIP.
nm2:/usr/share/apache2/iredadmin/tools# ./cleanup_db.py
* Backend: mysql
* SQL server: 127.0.0.1:3306
* Delete old admin activity log (> 365 days)
* - 0 removed, 2761 left.
* Delete old domain ownership verification records (> 30 days)
* - 0 removed, 0 left.
* Delete expired newsletter subscription confirm tokens (> 24 hours)
* - 0 removed, 0 left.
nm2:/usr/share/apache2/iredadmin/tools# ps aux | grep amavisd
amavis 1132 0.0 1.0 59624 41792 ? Ss 07:33 0:00 /usr/sbin/amavisd-new (master)
amavis 6184 0.0 1.1 63408 46780 ? S 08:39 0:03 /usr/sbin/amavisd-new (ch18-avail)
amavis 7435 0.0 1.1 63404 46816 ? S 09:00 0:03 /usr/sbin/amavisd-new (ch18-avail)
amavis 7580 0.0 1.1 63156 46576 ? S 09:02 0:03 /usr/sbin/amavisd-new (ch15-avail)
amavis 7590 0.0 1.1 63088 46380 ? S 09:03 0:03 /usr/sbin/amavisd-new (ch18-avail)
amavis 8226 0.0 1.1 62504 46044 ? S 09:12 0:02 /usr/sbin/amavisd-new (ch12-avail)
amavis 8424 0.1 1.1 63388 46896 ? S 09:15 0:03 /usr/sbin/amavisd-new (ch15-avail)
amavis 8904 0.1 1.1 63580 46952 ? S 09:21 0:04 /usr/sbin/amavisd-new (ch18-avail)
amavis 8973 0.0 1.1 62992 46408 ? S 09:23 0:02 /usr/sbin/amavisd-new (ch11-avail)
amavis 9220 0.0 1.1 63184 46616 ? S 09:29 0:01 /usr/sbin/amavisd-new (ch9-avail)
amavis 9510 0.1 1.1 63228 46568 ? S 09:34 0:03 /usr/sbin/amavisd-new (ch16-avail)
amavis 9686 0.1 1.1 62964 46148 ? S 09:38 0:02 /usr/sbin/amavisd-new (ch11-avail)
amavis 9738 0.0 1.1 62356 45924 ? S 09:38 0:00 /usr/sbin/amavisd-new (ch4-avail)
amavis 10003 0.0 1.1 62552 46128 ? S 09:40 0:01 /usr/sbin/amavisd-new (ch7-avail)
amavis 10448 0.0 1.1 62504 45880 ? S 09:48 0:01 /usr/sbin/amavisd-new (ch6-avail)
amavis 11351 0.2 1.1 62340 45840 ? S 10:02 0:00 /usr/sbin/amavisd-new (ch3-avail)
I am not sure what Amavisd is not enabled. SKIP. means?
Here's an easy way (but not the only way) for your consideration:
1) Simply create users with the scripts shipped in iRedMail installer (e.g. iRedMail-0.9.8/tools/create_mail_user_*).
2) Copy the password hash from old server to new server.
3) Create Dovecot master user on both old + new servers. FYI: https://docs.iredmail.org/dovecot.master.user.html
4) Download and run "imapsync" to sync mailboxes for migrated mailboxes. Note: If you keep same maildir path in step 1, you can also copy the mailboxes from old server to the new one with "scp" or "rsync" directly, just make sure copied mailboxes are owned by user/group "vmail:vmail" with permission 0700.
We offer paid migration support, contact us if you need assistance.
https://www.iredmail.org/contact.html
It was working yesterday,
What did you change?
Currently you have to go through all SQL/LDAP data to update domain name.
Please show us related Amavisd log in /var/log/maillog. We need log for troubleshooting.
I don't see why one single line is ok but breaking multiple '-o ...' to lines causes problem. Maybe there's some typo?
Hey ZhangHuanbin
thanks for reply
1) Mariadb, binlog file and position
2) perfect
3) weekly we got approx 500k sent and 500k received messages, daily average 100k