Quantcast
Channel: iRedMail — iRedMail Support
Viewing all 43419 articles
Browse latest View live

Re: Send out email from specified IP address NNOT working

$
0
0

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 :'(


Job for rsyslog.service failed

$
0
0

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

Re: Job for rsyslog.service failed

$
0
0

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
}

Re: Job for rsyslog.service failed

$
0
0
MuPp3t33r wrote:

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
     notifempty

     postrotate
          /usr/sbin/service rsyslog restart
     endscript
}

I will try to add "sharedscripts" and see what happens on Sunday. Thanks

Re: Cron backup_mysql.sh

$
0
0

Thanks for that, I should have spotted it!

iredadmin extremely slow to login

$
0
0

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

Re: enable port 465

$
0
0

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

Re: iredadmin extremely slow to login

$
0
0

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.


Re: Send out email from specified IP address NNOT working

$
0
0

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

Re: Migrating 0.9.3 install to a new, freshly installed 1.0 server

$
0
0
echo5 wrote:

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.

echo5 wrote:

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.

Re: Release version of the operating system on this server is unsupported

$
0
0
wh.leong wrote:

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.

Re: Job for rsyslog.service failed

$
0
0

Adding "sharedscripts" in the rsyslog config file should fix the issue.

Re: active/active replica and panel

$
0
0

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.

Re: iredadmin extremely slow to login

$
0
0
ZhangHuangbin wrote:

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?

Re: Migrating from 0.8.5 (LDAP) to 0.9.8 (MySQL)

$
0
0

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. smile
https://www.iredmail.org/contact.html


Re: nginx error.log help...

$
0
0
bgrosperrin wrote:

It was working yesterday,

What did you change?

Re: change domain name without change of users

$
0
0

Currently you have to go through all SQL/LDAP data to update domain name.

Re: amavis not blocking exe files in rar attachments

$
0
0

Please show us related Amavisd log in /var/log/maillog. We need log for troubleshooting.

Re: enable port 465

$
0
0

I don't see why one single line is ok but breaking multiple '-o ...' to lines causes problem. Maybe there's some typo?

Re: active/active replica and panel

$
0
0

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

Viewing all 43419 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>