Quantcast
Channel: iRedMail
Viewing all 45763 articles
Browse latest View live

Re: MySQL: vmail.forwardings, "address" and forwarding" are the same?

0
0

SQL table structure of "forwardings" is correct.

broth wrote:

When adding a "Forwarding" in iRedMail-Pro MySQL, after clicking save the list is empty.

I wonder what email addresses did you use as forwarding addresses.
If it's address under same domain, do they exist? if doesn't exist, it will be silently discarded by iRedAdmin-Pro.


Re: Problems with sending mails after manual upgrade to 0.9.8

0
0
zybster wrote:

127.0.0.1:10025 inet n  -   n   -   -  smtpd
    ...
    -o smtpd_client_restrictions=reject

This "smtpd_client_restrictions=" is wrong, it must be:

    -o smtpd_client_restrictions=permit_mynetworks,reject

Re: Veriy SpamAssassin

0
0
ZhangHuangbin wrote:

200 emails if i remembered correctly.

This make sense with the log:

Sep 20 08:20:20 mail amavis[28151]: (28151-07) SA dbg: bayes: not available for scanning, only 2 spam(s) in bayes DB < 200

But I'm sure I have added way more than 2-3 mails from inbox to the junk/spam folder?! Obviously I haven't counted but minimum 100 mails have been moved for sure.

*Update:*
So I had a look in the database:

mysql> select * from bayes_vars;
+----+-------------------------+------------+-----------+-------------+-------------+------------------+--------------------+------------------+------------------+
| id | username                | spam_count | ham_count | token_count | last_expire | last_atime_delta | last_expire_reduce | oldest_token_age | newest_token_age |
+----+-------------------------+------------+-----------+-------------+-------------+------------------+--------------------+------------------+------------------+
|  1 | amavis                  |          3 |      2912 |      155549 |  1537831443 |          2764800 |               1629 |       1535063221 |       1537869763 |
|  2 | user1@mydomain.com |          1 |         0 |         123 |           0 |                0 |                  0 |       1532499417 |       1532499417 |
|  3 | user2@mydomain.com       |        200 |        18 |       18949 |           0 |                0 |                  0 |       1532507124 |       1537845479 |
|  4 | user3@mydomain.com       |        713 |         4 |       58495 |           0 |                0 |                  0 |       1534133423 |       1537858363 |
|  5 | user4@mydomain.com         |          0 |         3 |        1005 |           0 |                0 |                  0 |       1537809279 |       1537811821 |
+----+-------------------------+------------+-----------+-------------+-------------+------------------+--------------------+------------------+------------------+
5 rows in set (0.00 sec)

So it looks like the log when referring to number of spams it looks at ID 1 (amavis), but the learning is per user. Any ideas how to fix this?

Re: Veriy SpamAssassin

Re: Spamming issue

0
0

I will implement the alert by sending email to given email address ('postmaster@<first-mail-domain>' by default) in next iRedAPD release, but not upcoming release, sorry.

or, if you want to contribute some work to implement it, feel free to ask me questions of iRedAPD plugin development here (new forum topic please), i'm more than happy to help.

Re: MySQL: vmail.forwardings, "address" and forwarding" are the same?

0
0

The forwarding address is a mailbox of the same domain.
Example:

Mailbox 1 : red@example.com
Mailbox 2 : blue@example.com

Now user of "blue@example.com" does not work anymore at example.com.

So I edit "blue@example.com" and add a forwarding to "red@example.com".

When I do this, my installation does silently drop the forwarding address. No message nor error log is generated.

Can you reproduce the problem in your test environment? Is what I'm doing very exotic? smile

Re: Problems with sending mails after manual upgrade to 0.9.8

0
0
ZhangHuangbin wrote:
zybster wrote:

127.0.0.1:10025 inet n  -   n   -   -  smtpd
    ...
    -o smtpd_client_restrictions=reject

This "smtpd_client_restrictions=" is wrong, it must be:

    -o smtpd_client_restrictions=permit_mynetworks,reject

Dear Zhang,

thank you, I corrected this line and restarted postfix, but the error still occurs:
Sep 25 12:31:05 mail postfix/qmgr[5937]: 19AF88614DE: from=<xxx@xxx.xxx>, size=563, nrcpt=1 (queue active)
Sep 25 12:31:05 mail roundcube: <otvd4g67> User xxx@xxx.xxx [192.168.x.1]; Message for yyy@yyy.yyy; 250: 2.0.0 Ok: queued as 19AF88614DE
Sep 25 12:31:05 mail postfix/submission/smtpd[5974]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Sep 25 12:31:05 mail postfix/smtpd[5992]: connect from localhost[127.0.0.1]
Sep 25 12:31:05 mail postfix/smtpd[5992]: NOQUEUE: reject: CONNECT from localhost[127.0.0.1]: 554 5.7.1 <localhost[127.0.0.1]>: Client host rejected: Access denied; proto=SMTP
Sep 25 12:31:05 mail postfix/smtpd[5992]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 25 12:31:05 mail postfix/smtpd[5992]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 25 12:31:05 mail amavis[2049]: (02049-19) (!)reuVfYRD-PNq FWD from <xxx@xxx.xxx> -> <yyy@yyy.yyy>,  451 4.5.0 From MTA() during fwd-connect (Negative greeting: 554 5.7.1 <localhost[127.0.0.1]>: Client host rejected: Access denied): id=02049-19
Sep 25 12:31:05 mail amavis[2049]: (02049-19) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:50668 <xxx@xxx.xxx> -> <yyy@yyy.yyy>, Queue-ID: 19AF88614DE, Message-ID: <b5a0dcc3137da4a9d7e6fbab8bf4174e@mamsch.net>, mail_id: reuVfYRD-PNq, Hits: -1, size: 563, 185 ms, Tests: [ALL_TRUSTED=-1]
Sep 25 12:31:05 mail postfix/smtp[5987]: 19AF88614DE: to=<yyy@yyy.yyy>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.49, delays=0.29/0.01/0/0.19, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=02049-19 - Temporary MTA failure on relaying, From MTA() during fwd-connect (Negative greeting: 554 5.7.1 <localhost[127.0.0.1]>: Client host rejected: Access denied): id=02049-19 (in reply to end of DATA command))

I tried to send this email from roundcube - Do I need to enhance my_networks by 192.168.x.0/24 ?
192.168.x.1 is actually my firewall which is in front of Roundcube.

Re: How to disable https

0
0

Can you tell me turorial link for that?

ZhangHuangbin wrote:

How about request a free letsencrypt ssl cert to make the ssl connection valid? it will be better for network security.


Re: Mailing list bcc/ccn problem

0
0
ZhangHuangbin wrote:
cedbiella wrote:

Someone reply to this email, but the destination address was test1@mydomain.com not sender@mydomain.com.
Why?

This is part of what mailing list is designed for. The email sent out by mailing list software (mlmmj in iRedMail) is always the mailing list email address.

Even if ML is in BCC ?

Re: Veriy SpamAssassin

0
0
ZhangHuangbin wrote:

Do you have this line in /etc/mail/spamassassin/local.cf?

Nope ... roll ... I'm afraid I had missed that one. I have updated the config and restarted amavis.

If I understand this correct, then it will look for tokens / spam at default user, but the learning is done per user I assume, so will this work? - Sorry, but I think I don't fully understand how this work. All help is truly appreciated!

I believe this is the guided used: https://forum.iredmail.org/topic8169-ir … assin.html

Re: Spamming issue

0
0

Getting alerts for mail id's sending out spam mails is the best way of handling alerts.

Also, if possible any way if it can be integrated with ZABBIX MONITORING TOOL, means alerts if a mail id has crossed global threshold ...

If we use EV SSL for our mail domain then how much it can guarantee against the breaching attempt as the Let's Encrypt SSL seems not so secure..

MAIL SERVER High Availability

0
0

- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Cent OS 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes, 2.9.0
#########################################################################

Currently our mail server has only one leased line connectivity and we are planning failover to another leased line provider.
How can we achieve this, means like configuring MX , A record and what all other things needs to be done apart from network set up ?

Re: MAIL SERVER High Availability

0
0

There is some documentation here:
https://docs.iredmail.org/haproxy.keepa … terfs.html
https://pastebin.com/JcYeQBrX

These links are from the iRedMail Doc page: https://docs.iredmail.org/index.html

saquib.akhtar wrote:

- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Cent OS 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes, 2.9.0
#########################################################################

Currently our mail server has only one leased line connectivity and we are planning failover to another leased line provider.
How can we achieve this, means like configuring MX , A record and what all other things needs to be done apart from network set up ?

No DKIM when sending through SMTP

0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

Problem: Mails has no DKIM only when I'm sending them though SMTP. SMTP use port 587 and valid logins. Spent all day trying to undestand what is wrong.

Logs from postfix:
Sep 25 20:05:49 mail-serv postfix/submission/smtpd[12509]: connect from unknown[82.204.251.134]
Sep 25 20:05:49 mail-serv postfix/submission/smtpd[12509]: Anonymous TLS connection established from unknown[82.204.251.134]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Sep 25 20:05:50 mail-serv postfix/submission/smtpd[12509]: 08C1A62F54: client=unknown[82.204.251.134], sasl_method=LOGIN, sasl_username=********
Sep 25 20:05:50 mail-serv postfix/cleanup[12514]: 08C1A62F54: message-id=<7i5sn64223@denyagin-pc>
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 08C1A62F54: from=<zabbix-noreply@mail.******.com>, size=607, nrcpt=1 (queue active)
Sep 25 20:05:50 mail-serv postfix/submission/smtpd[12509]: disconnect from unknown[82.204.251.134] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Sep 25 20:05:50 mail-serv postfix/10025/smtpd[12522]: connect from mail-serv.******.com[127.0.0.1]
Sep 25 20:05:50 mail-serv postfix/10025/smtpd[12522]: 446AA62F60: client=mail-serv.******.com[127.0.0.1]
Sep 25 20:05:50 mail-serv postfix/cleanup[12514]: 446AA62F60: message-id=<7i5sn64223@denyagin-pc>
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 446AA62F60: from=<zabbix-noreply@mail.******.com>, size=1306, nrcpt=1 (queue active)
Sep 25 20:05:50 mail-serv postfix/10025/smtpd[12522]: disconnect from mail-serv.******.com[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 25 20:05:50 mail-serv amavis[8019]: (08019-13) Passed CLEAN {RelayedInbound}, ORIGINATING [82.204.251.134]:56950 [82.204.251.134] <zabbix-noreply@mail.******.com> -> <******gin@gmail.com>, Queue-ID: 08C1A62F54, Message-ID: <7i5sn64223@denyagin-pc>, mail_id: ERhge-vYSiBd, Hits: -1, size: 768, queued_as: 446AA62F60, 160 ms, Tests: [ALL_TRUSTED=-1]
Sep 25 20:05:50 mail-serv postfix/amavis/smtp[12519]: 08C1A62F54: to=<******gin@gmail.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.32, delays=0.12/0.02/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 446AA62F60)
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 08C1A62F54: removed
Sep 25 20:05:50 mail-serv postfix/smtp[12523]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c08::1a]:25: Network is unreachable
Sep 25 20:05:50 mail-serv postfix/smtp[12523]: Trusted TLS connection established to gmail-smtp-in.l.google.com[64.233.165.26]:25: TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)
Sep 25 20:05:50 mail-serv postfix/smtp[12523]: 446AA62F60: to=<******gin@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.165.26]:25, delay=0.4, delays=0.01/0.04/0.12/0.23, dsn=2.0.0, status=sent (250 2.0.0 OK 1537895150 v29-v6si3359917ljv.165 - gsmtp)
Sep 25 20:05:50 mail-serv postfix/qmgr[11466]: 446AA62F60: removed

All configs was not altered after install iRedMail. Only added ssl certifitaces with real domain and CA.
Any suggestions what is wrong?

Re: install iRedMail-0.9.8 on fresh FreeBSD 11.2

0
0
ZhangHuangbin wrote:

It seems some ports tree change impacts how iRedMail installer installs packages, but i didn't figure it out yet. sad

the basic issue is that the "files" port gives a different result for "lib*.so" objects than the system /usr/bin/file tool does, which impacts the results of  the /usr/ports/Mk/Scripts/find-lib.sh utility - see my post above

as mentioned there is a bug report into FreeBSD ports altho it's not clear what or when they will do anything about it


Re: install iRedMail-0.9.8 on fresh FreeBSD 11.2

0
0
gregory.engraf wrote:

On my FreeBSD 11.2-RELEASE-p3 #0 .../GENERIC amd64 with file-5.34
I see:

# file -b -L --mime-type /usr/local/lib/liblzo2.so
application/x-sharedlib
# /usr/bin/file -b -L --mime-type /usr/local/lib/liblzo2.so
application/x-sharedlib

that seems right.

But on bash iRedMail.sh I still see this:
...
Installing icu-62.1_2,1...
===>   postfix-3.3.1_1,1 depends on shared library: libicuuc.so - not found
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/mail/postfix
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/postfix
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.

And it happens regardless of whether or not icu-62.1_2,1 (and even postfix) has been installed.

i discovered that portsnap will automatically revert such changes & also delete any backup copies and/or diff files if they are in the same  directories that it manages - so if you ran portsnap you will need to re-patch the Mk/Scripts/find-lib.sh utility

Re: Why is this account saving a copy of forwarded mail?

0
0

Hi Zhang,

Thanks for your reply. No, just the two I show above:

MariaDB [vmail]> select * from forwardings where address="user1@domain1.com";
+----+-------------------+-------------------+-------------+-------------+-------------+---------+---------------+----------+--------+
| id | address           | forwarding        | domain      | dest_domain | is_maillist | is_list | is_forwarding | is_alias | active |
+----+-------------------+-------------------+-------------+-------------+-------------+---------+---------------+----------+--------+
| 70 | user1@domain1.com | user1@domain1.com | domain1.com |             |           0 |       0 |             1 |        0 |      1 |
| 71 | user1@domain1.com | user2@domain2.com | domain1.com | domain2.com |           0 |       0 |             1 |        0 |      1 |
+----+-------------------+-------------------+-------------+-------------+-------------+---------+---------------+----------+--------+
2 rows in set (0.00 sec)

MariaDB [vmail]>

Craig

Re: Why is this account saving a copy of forwarded mail?

0
0

Too bad the "code" tag doesn't produce monospaced font.

Re: install iRedMail-0.9.8 on fresh FreeBSD 11.2

0
0
hostmaster wrote:

i discovered that portsnap will automatically revert such changes & also delete any backup copies and/or diff files if they are in the same  directories that it manages - so if you ran portsnap you will need to re-patch the Mk/Scripts/find-lib.sh utility

I did not apply your patch, just install sysutils/file from ports, unless this patch was added to the last portsnap.

Re: Error messages after recent upgrade to mysql 5.7.23

0
0

Not really. No changes to config were made. I will monitor it after next update.

Viewing all 45763 articles
Browse latest View live




Latest Images