- Are other web applications slow at the same time? Or just SOGo?
- Any error in Nginx log files (/var/log/nginx/*.log)?
Re: SOGo slow performance
Re: 邮箱内部互相发邮件,发送方提示发送成功,接收方收不到
现在仍然无法发送吗?每次发送的时候 Postfix 的完整 log 是啥?
Re: 邮箱内部互相发邮件,发送方提示发送成功,接收方收不到
现在仍然无法发送吗?每次发送的时候 Postfix 的完整 log 是啥?
在/var/log目录下的mail.log文件中找到了下述的日志,不知道是不是你需要的日志信息,我看里面好像是把exe类型的附件给屏蔽了,这个是在哪里配置呢?
Feb 6 01:45:11 mail postfix/10025/smtpd[288998]: connect from mail.*.com[127.0.0.1]
Feb 6 01:45:11 mail postfix/10025/smtpd[288998]: 4P98GH1yl6zWgT5: client=mail.*.com[127.0.0.1]
Feb 6 01:45:11 mail postfix/cleanup[288973]: 4P98GH1yl6zWgT5: message-id=<VAbBZk6wDpKvRc@mail.*.com>
Feb 6 01:45:11 mail postfix/10025/smtpd[288998]: disconnect from mail.*.com[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Feb 6 01:45:11 mail postfix/qmgr[562532]: 4P98GH1yl6zWgT5: from=<postmaster@mail.*.com>, size=2988, nrcpt=1 (queue active)
Feb 6 01:45:11 mail amavis[119044]: (119044-01) Blocked BANNED (.exe,.exe-ms,IS32U512A.exe) {DiscardedInternal,Quarantined}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:56502 ESMTP/ESMTP <*.jia@*.com> -> <*.yang@*.com>, (), quarantine: bBZk6wDpKvRc, Queue-ID: 4P98Fy40HrzWgT4, Message-ID: <009e1b189d18650cf9841598e2856e97@*.com>, mail_id: bBZk6wDpKvRc, b: 1KA_rIypN, Hits: -, size: 4450146, Subject: "UKEY LICENSEç<9b>¸å<85>³æ<96><87>ä»¶ (raw: =?UTF-8?Q?UKEY_LICENSE=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6?=)", From: <*.jia@*.com>, User-Agent: Roundcube_Webmail, helo=localhost, b.key=(?^:^\\.(exe-ms|dll)$), b.com=(?^:^\\.(exe-ms|dll)$), b.rhs=1, b.parts=P=p003,L=1,M=multipart/mixed | P=p002,L=1/2,M=application/zip,T=zip,N=To_*.zip | P=p010,L=1/2/7,T=exe,T=exe-ms,N=IS32U512A.exe, P=p003,L=1,M=multipart/mixed | P=p002,L=1/2,M=application/zip,T=zip,N=To_*.zip | P=p012,L=1/2/9,T=exe,T=exe-ms,N=HexAndStrConverDll.dll, ..., 16622 ms
Feb 6 01:45:11 mail postfix/cleanup[289000]: 4P98GH2WczzWgT7: message-id=<VAbBZk6wDpKvRc@mail.*.com>
Feb 6 01:45:11 mail postfix/amavis/smtp[288989]: 4P98Fy40HrzWgT4: to=<*.yang@*.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=17, delays=0.18/0/0.01/17, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=119044-01 - BANNED: .exe,.exe-ms,IS32U512A.exe)
Feb 6 01:45:11 mail postfix/qmgr[562532]: 4P98Fy40HrzWgT4: removed
Feb 6 01:45:11 mail postfix/local[289580]: 4P98GH1yl6zWgT5: to=<root@mail.*.com>, relay=local, delay=0.15, delays=0.07/0.01/0/0.08, dsn=2.0.0, status=sent (forwarded as 4P98GH2WczzWgT7)
Feb 6 01:45:11 mail postfix/qmgr[562532]: 4P98GH2WczzWgT7: from=<postmaster@mail.*.com>, size=3126, nrcpt=1 (queue active)
Feb 6 01:45:11 mail postfix/qmgr[562532]: 4P98GH1yl6zWgT5: removed
Feb 6 01:45:11 mail postfix/pipe[289001]: 4P98GH2WczzWgT7: to=<postmaster@*.com>, orig_to=<root@mail.*.com>, relay=dovecot, delay=0.25, delays=0.07/0/0/0.18, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb 6 01:45:11 mail postfix/qmgr[562532]: 4P98GH2WczzWgT7: removed
Re: New installs of Iredmail on Rocky Linux 8
Thanks for sharing.
- It's a known bug of iRedMail-1.6.2 on CentOS/Rocky.
- web.py is shipped in latest iRedAPD, iRedAdmin(-Pro), mlmmjadmin, so no rpm/pip package required in further iRedMail release.
By the way, why not Rocky 9?
Re: Forwardings are not restored from iredadmins-DB backup
I justed check a post-installation-backup of the fresh iRedMail system before restoring mysql databases and didn't find a vmail.forwarding-table either. Do you have an advice how to add the table or any other advice?
SQL table "forwardings" was introduced in iRedMail 0.9.7.
https://docs.iredmail.org/upgrade.iredm … sql-tables
Re: Question about auto learn spam/ham
If an email with a false-positive marking spam falls into the user's inbox, he puts the email in a spam folder and then move it out, then the email will trigger a script two times (with ham and spam), is this normal? How user supose to trigger only he ham script?
Yes it's normal, it's like "un-learn" / "forget".
Re: dsn=2.0.0, status=sent (delivered via spamassassin service)
What is "dsn=2.0.0, status=sent (delivered via spamassassin service)"? I've recently seen this in /var/log/maillog.
iRedMail doesn't define transport "spamassassin" in /etc/postfix/master.cf at all, seems it's added by yourself?
Re: Error when update user
Did you ever modify LDAP data without iRedAdmin-Pro?
Re: dsn=2.0.0, status=sent (delivered via spamassassin service)
jung wrote:What is "dsn=2.0.0, status=sent (delivered via spamassassin service)"? I've recently seen this in /var/log/maillog.
iRedMail doesn't define transport "spamassassin" in /etc/postfix/master.cf at all, seems it's added by yourself?
Hi Zhang,
You are correct as I've checked the master.cf, I found the below entry.
----
smtp inet n - - - - smtpd
-o content_filter=spamassassin
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
----
My question is, does the above entry will prevent/block spam?
Thanks
Jung
Re: dsn=2.0.0, status=sent (delivered via spamassassin service)
No, but modifying files without knowledge about what you are doing might prevent getting support in that case
Re: Forwardings are not restored from iredadmins-DB backup
Okay, i thought this is not relevant since i'm using the openladap backend and it is listed under "MySQL/MariaDB backend special"?!
Re: Cant log into Roundcube after upgrade
Have upgraded to Roundcube 1.6.1
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-02-06 18:18:07 NZDT; 1h 47min ago
Docs: man:dovecot(1)
https://doc.dovecot.org/
Main PID: 1586294 (dovecot)
Status: "v2.3.16 (7e2e900c1a) running"
Tasks: 5 (limit: 28584)
Memory: 5.5M
CPU: 858ms
CGroup: /system.slice/dovecot.service
├─1586294 /usr/sbin/dovecot -F
├─1586297 dovecot/anvil
├─1586298 dovecot/log
├─1586299 dovecot/config
└─1588179 dovecot/stats
Feb 06 19:36:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1920528): Error: conn unix:auth-worker (pid=1920524,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:46:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1931727): Error: conn unix:auth-worker (pid=1931725,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:46:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1931728): Error: conn unix:auth-worker (pid=1931725,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:46:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1931730): Error: conn unix:auth-worker (pid=1931725,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:46:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1931732): Error: conn unix:auth-worker (pid=1931725,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:51:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1936983): Error: conn unix:auth-worker (pid=1936982,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:56:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1942758): Error: conn unix:auth-worker (pid=1942756,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:56:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1942759): Error: conn unix:auth-worker (pid=1942756,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:56:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1942761): Error: conn unix:auth-worker (pid=1942756,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 06 19:56:09 mail.odysseytours.nz dovecot[1586298]: auth-worker(1942762): Error: conn unix:auth-worker (pid=1942756,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
~
lines 1-27/27 (END)
this is despite having
listen = *
in /etc/dovecot/dovecot.conf
Auto-configure Issues
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: 1.5.2
- Deployed with installer (IIRC)
- Linux/BSD distribution name and version: Ubuntu 20.04.4 LTS
- Store mail accounts in which backend: PostgreSQL
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
I recently set up a secondary domain on my iRedMail server and decided to try implementing auto-configuration for the users' mail clients. I found a repo on GitHub from Earl0fPudding titled Outlook autodiscover with nginx with a PHP script for implementing it in Nginx and followed the directions to add the DNS entries and the vhost configuration settings. I added the PHP files to the site folder, used certbot to get a new SSL, and restarted Nginx, Postfix, and Dovecot. Everything seems to be working great for this secondary domain and I was able to have my Thunderbird mail client automatically detect the server settings.
I then tried to implement the same settings for the "primary" domain on the same iRedMail server. However, when I tried to set up an email address for that domain in Thunderbird, it can't seem to find the server settings, then it takes me to the manual configuration settings page.
I initially thought the problem might simply be due to a DNS propagation issue, so I waited several hours to test again, but still no luck. I cleared Thunderbird's cache and tried again, but it still fails. I even tried from a completely different workstation with a fresh install of Thunderbird, but it can't find the mail server settings.
I've gone over all of the files I've had to work with, as well as the DNS records on my host with a fine-toothed comb, but I'm coming up empty.
One thing I realized when going through my initial setup was that the information on GitHub was telling me to configure the Nginx site to use a Unix socket for communication with PHP, but when I looked at the configuration settings to confirm what I needed to put there, I realized it was just using a TCP port, so I tweaked the vhost server block to use that instead of the socket.
Like I said, I've gone over and over all of these files and settings, looking for differences between the "working" domain and the one that won't detect the settings. Whatever the problem is, I'm sure I'm just overlooking it, but I'm still pretty new to the Linux world in general and I'm having difficulty figuring out where to look now.
Since I can't seem to post the actual contents of files b/c the forum system thinks I'm trying to post links and the fact that I'm a complete newbie when it comes to working in Linux, I've attached some of the files in an effort to "clarify" anything I wasn't clear about. Please let me know if there's any other information I can provide to help. Thank you.
Re: Forwardings are not restored from iredadmins-DB backup
Oops, my mistake.
Forwardings in LDAP are stored in LDAP user object, it should be restored when you restore the backup LDIF file.
Re: Cant log into Roundcube after upgrade
Did you modify any Dovecot config in /etc/dovecot/dovecot.conf? Seems it's messy.
Please show us full command output for troubleshooting:
doveconf -n
Re: Auto-configure Issues
BTW: Auto-configuration settings might be a nice option to include during the iRedMail installation. Just sayin'.
Re: Cant log into Roundcube after upgrade
Hi Zhang,
Thank you for taking the time to help me.
root@mail:/home/mike# doveconf -n
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 5.15.0-58-generic x86_64 Ubuntu 22.04.1 LTS
# Hostname: mail.odysseytours.nz
listen = *
mail_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = " imap lmtp sieve pop3"
service stats {
unix_listener stats-reader {
group = vmail
mode = 0660
user = vmail
}
unix_listener stats-writer {
group = vmail
mode = 0660
user = vmail
}
}
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_cipher_list = EECDH+CHACHA20:EECDH+AESGCM:EDH+AESGCM:AES256+EECDH
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
driver = passwd
}
Here is some output from /var/log/mail.log
Feb 7 15:16:09 mail dovecot: auth-worker(3171287): Error: conn unix:auth-worker (pid=3171278,uid=130): auth-worker<1>: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Feb 7 15:16:09 mail dovecot: lda(postmaster@odysseytours.nz)<3171280><>: Error: auth-master: userdb lookup(postmaster@odysseytours.nz): Auth USER lookup failed
Feb 7 15:16:09 mail dovecot: lda(postmaster@odysseytours.nz)<3171280><>: Debug: auth-master: userdb lookup(postmaster@odysseytours.nz): auth USER input:
Feb 7 15:16:09 mail dovecot: lda(postmaster@odysseytours.nz)<3171280><>: Debug: auth-master: userdb lookup(postmaster@odysseytours.nz): Userdb lookup failed
Feb 7 15:16:09 mail dovecot: lda(3171280): Fatal: Internal error occurred. Refer to server log for more information.
Feb 7 15:16:09 mail postfix/pipe[3171276]: 4P7bPV1Kzqz1RJ: to=<postmaster@odysseytours.nz>, orig_to=<root@mail.odysseytours.nz>, relay=dovecot, delay=306907, delays=306907/0.02/0/0.05, dsn=4.3.0, status=deferred (temporary failure)
Some more info
root@mail:/home/mike# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3929
Server version: 10.6.11-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| amavisd |
| fail2ban |
| information_schema |
| iredadmin |
| iredapd |
| mysql |
| performance_schema |
| roundcubemail |
| sogo |
| sys |
| vmail |
+--------------------+
11 rows in set (0.001 sec)
MariaDB [(none)]> use roundcubemail;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [roundcubemail]> show tables;
+-------------------------+
| Tables_in_roundcubemail |
+-------------------------+
| cache |
| cache_index |
| cache_messages |
| cache_shared |
| cache_thread |
| collected_addresses |
| contactgroupmembers |
| contactgroups |
| contacts |
| dictionary |
| filestore |
| identities |
| responses |
| searches |
| session |
| system |
| users |
+-------------------------+
17 rows in set (0.001 sec)
MariaDB [roundcubemail]> select * from identities;
+-------------+---------+---------------------+-----+----------+------+--------------+----------------------------+----------+-----+-----------+----------------+
| identity_id | user_id | changed | del | standard | name | organization | email | reply-to | bcc | signature | html_signature |
+-------------+---------+---------------------+-----+----------+------+--------------+----------------------------+----------+-----+-----------+----------------+
| 1 | 1 | 2020-08-20 13:19:03 | 0 | 1 | | | postmaster@odysseytours.nz | | | NULL | 0 |
| 2 | 2 | 2020-08-20 13:20:41 | 0 | 1 | | | info@shesheds.co.nz | | | NULL | 0 |
| 3 | 3 | 2020-08-20 13:28:16 | 0 | 1 | | | info@odysseytours.nz | | | NULL | 0 |
| 4 | 4 | 2020-12-24 00:04:52 | 0 | 1 | | | info@sales.odysseytours.nz | | | NULL | 0 |
+-------------+---------+---------------------+-----+----------+------+--------------+----------------------------+----------+-----+-----------+----------------+
4 rows in set (0.000 sec)
MariaDB [roundcubemail]>
root@mail:/home/mike# netstat -a | grep mysql
tcp 0 0 mail.odysseytours:mysql 0.0.0.0:* LISTEN
tcp 0 0 mail.odysseytours:36832 mail.odysseytours:mysql ESTABLISHED
tcp 0 0 mail.odysseytours:mysql mail.odysseytours:36832 ESTABLISHED
tcp 0 0 mail.odysseytours:mysql mail.odysseytours:36856 ESTABLISHED
tcp 0 0 mail.odysseytours:36848 mail.odysseytours:mysql ESTABLISHED
tcp 0 0 mail.odysseytours:mysql mail.odysseytours:36848 ESTABLISHED
tcp 0 0 mail.odysseytours:36856 mail.odysseytours:mysql ESTABLISHED
tcp 0 0 mail.odysseytours:51934 mail.odysseytours:mysql TIME_WAIT
unix 2 [ ACC ] STREAM LISTENING 851847 /run/mysqld/mysqld.sock
unix 3 [ ] STREAM CONNECTED 1356454 /run/mysqld/mysqld.sock
Re: Internal server error and wrong version number errors
One other thing: Syslog isn't much help regarding the "Internal server error" message:
Feb 6 22:13:03 mail10 iredadmin: [75.82.86.131] POST /iredadmin/login 500 203 "https://<expunged>/iredadmin"
That's the only entry an iRedAdmin-Pro login attempt returns.
Again, thanks in advance for troubleshooting clues.
Re: Auto-configure Issues
I'm afraid that you have to contact the author of this solution for support.
Re: Forwardings are not restored from iredadmins-DB backup
... and that obviously worked!
Thanks again!