FYI: https://docs.iredmail.org/relayhost.html
Maybe it's easier for you to add IP addresses of these 5 centos servers in Postfix "mynetworks =" on iRedMail server (you still need "relayhost =" on 5 centos servers).
FYI: https://docs.iredmail.org/relayhost.html
Maybe it's easier for you to add IP addresses of these 5 centos servers in Postfix "mynetworks =" on iRedMail server (you still need "relayhost =" on 5 centos servers).
- iRedMail requires a fresh/clean OS.
- iRedMail installer should work well on RPi3, but it requires at least 2 GB memory for low traffic production server.
Hi
Thanks for the reply. Since Raspberry Pi 3 B has 1 GB of ram. Is there a way I can disable the anti spam feature so iRedmail will use less ram so that Iredmail can run more optimized? In general iRedmail on Raspberry pi 3 should run Fien right?
Hi ,
Thanks for your reply.
I have installed all the applications on the same server, so mail.efurtherance.in is localhost.
"Please check the IMAP server configuration, make sure it supports SSL on port 993"
Could you advise what exactly i have to check and on which file? I have not changed anything from the original settings. Also i have followed the guide and installed letsencrypt certificate for the domain mail.efurtherance.in and updated the certificate path on all 3 config files.
/etc/nginx/templates/ssl.tmpl
/etc/postfix/main.cf
/etc/dovecot/dovecot.conf
and the port 993 is open on the server.
Thanks
Arun
Thomas B wrote:Dec 11 09:40:15 sogod [1713]: [ERROR] <0x0x561cfa6b5ca0[WOWatchDog]> No child available to handle incoming request!
Update /etc/default/sogo, increase the prefork child processes, restart sogo service. That's it.
Thanks a lot ! I've changed the prefork to 80 and everything is now very quick.
You were very helpfull, so I hope you will enjoy the cup of coffee I sent to you ...
Hello,
Go to /opt/iRedAPD-x.x/tools
(x.x is the greatest version that is installed)run command: python greylisting_admin.py --list
to see domains that are filteredrun command: python greylisting_admin.py --from name@domain.xxx --enable
to enable the reject of name@domain.xxxrun command: python greylisting_admin.py --from name@domain.xxx --disable
to accept emails from name@domain.xxx without being filtered by the serverif you are using @domain.xxx all the emails from the domain.xxx will be accepted or rejected
Oh I see that tutorial, thanks for your help
I think you've used the wrong file or syntax.
I would try moving your entries to "/etc/postfix/helo_whitelist", execute "postmap /etc/postfix/helo_whitelist" and check if "/etc/postfix/main.cf" contains under section "smtpd_helo_restrictions ="
check_client_access hash:/etc/postfix/helo_whitelist
As intended before I've now extended the code to greylist certain top-level domains for a longer time, and have it running for a couple of days under Linux with success.
Following I share my approach with you, and would be thankful for any comments or useful changes:
1. create another table in (Maria)DB e.g. with:
CREATE TABLE iredapd.greylisting_ext (id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, tld VARCHAR(64) );
2. add one or more tlds with:
INSERT INTO iredapd.greylisting_ext SET tld='loan';
see also most used tlds by spammers: https://www.spamhaus.org/statistics/tlds/
3. add variables to /opt/iredapd/settings.py:
# settings for extended greylisting for certain tlds
# allow after 1 day (1440min), forget without retrying after 2 days
GREYLISTING_BLOCK_EXPIRE_EXT = 1440
GREYLISTING_UNAUTH_TRIPLET_EXPIRE_EXT = 2
4. change some code in /opt/iredapd/plugins/greylisting.py:
--- greylisting.py 2018-02-07 03:16:56.000000000 +0100
+++ greylisting.py.ext 2018-12-01 11:14:46.974074092 +0100
@@ -178,12 +178,30 @@
recipient,
recipient_domain,
client_address):
+
+ # check if extented greylisting should be applied
+ sender_tld_domain = sender_domain.split('.')[-1]
+ sql = """SELECT id
+ FROM greylisting_ext
+ WHERE tld='%s'
+ LIMIT 1""" % (sender_tld_domain)
+ logger.debug('[SQL] query tlds: \n%s' % sql)
+ qr = conn.execute(sql)
+ sql_record = qr.fetchone()
+
# Time of now.
now = int(time.time())
- # timeout in seconds
- block_expired = now + int(settings.GREYLISTING_BLOCK_EXPIRE) * 60
- unauth_triplet_expire = now + int(settings.GREYLISTING_UNAUTH_TRIPLET_EXPIRE) * 24 * 60 * 60
+ if sql_record:
+ logger.debug('Client tld (%s) will be greylisted extra long.')
+ # timeout in seconds
+ block_expired = now + int(settings.GREYLISTING_BLOCK_EXPIRE_EXT) * 60
+ unauth_triplet_expire = now + int(settings.GREYLISTING_UNAUTH_TRIPLET_EXPIRE_EXT) * 24 * 60 * 60
+ else:
+ # timeout in seconds
+ block_expired = now + int(settings.GREYLISTING_BLOCK_EXPIRE) * 60
+ unauth_triplet_expire = now + int(settings.GREYLISTING_UNAUTH_TRIPLET_EXPIRE) * 24 * 60 * 60
+
auth_triplet_expire = now + int(settings.GREYLISTING_AUTH_TRIPLET_EXPIRE) * 24 * 60 * 60
sender = sqlquote(sender)
5. restart iredappd deamon:
systemctl restart iredapd
For my personal usage I've increased the values of GREYLISTING_BLOCK_EXPIRE_EXT and GREYLISTING_UNAUTH_TRIPLET_EXPIRE_EXT
Have Fun
What would the smtp settings for Discourse? I have tried with many settings but none works.
smtp.example.com
postmaster@in.example.com
password
smtp start TLS should be True or False?
How do i decide Which is going to be my smtp address, User ID and User password?
I have used my subdomain for my iredmail server, so what should be my DNS settings in cloudflare DNS?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v0.9.8
- Linux/BSD distribution name and version: centos 7.4
- 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.
====
Hello,
Based on these logs:
2018/12/13 11:01:59 [error] 62821#0: *188 open() "/var/www/html/autodiscover/autodiscover.json" failed (2: No such file or directory), client: 5.2.130.224, server: _, request: "GET /autodiscover/autodiscover.json?Email=postmaster%40appclouds.eu&Protocol=ActiveSync&RedirectCount=1 HTTP/1.1", host: "autodiscover.appclouds.eu"
2018/12/13 11:02:08 [error] 62821#0: *190 open() "/var/www/html/Autodiscover/Autodiscover.xml" failed (2: No such file or directory), client: 5.2.130.224, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", host: "autodiscover.appclouds.eu"
2018/12/13 11:02:08 [error] 62821#0: *191 open() "/var/www/html/Autodiscover/Autodiscover.xml" failed (2: No such file or directory), client: 5.2.130.224, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", host: "autodiscover.appclouds.eu"
I can't figure out how to setup autodiscover for this domain. None of my domain has working autodiscover.
Any idea?
Can anyone help me with the above? I finished all the setup. But not able to login now.
Thanks
Arun
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Centos
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): APache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
We are having our iRedAdmin-Pro bought since 2013 as lifetime licence but recently it has been marked as expired.
More details as seen in the panel.
License status Expired
Product nameiRedAdmin-Pro-LDAP
Purchase dateAug 10, 2013
Expire date Dec 31, 2099
Contacts [...hidden...]
Latest version3.1 (You are running version 2.5.0)
Our version is older than the current one and now we can't even get the link option to request new version for upgrade.
Kindly assist what is the issue.
Regard,
Dear Kambey,
Your license is running on multiple servers, this violates our license terms (one license can be ran on only one server at the same time).
Please contact us if there's some mistake on our side: https://www.iredmail.org/contact.html
Check file /opt/www/roundcubemail/config/config.inc.php, use 127.0.0.1 as your IMAP server address, like this:
$config['default_host'] = '127.0.0.1';
Hmm ok. Do you know if anyone has used z-push and sogo together? Sogo's documentation seems to imply I need to use ocsmanager but from what I see Iredadmin didn't use openxchange with sogo so I'm a little confused how the Activesync is working
I've managed to make Autodiscover work with z-push with the following configuration: Centos7, iRedMail-0.9.8, SOGo nightly build. Install and configure iRedMail first and setup SSL certificate.
Get latest tarball release of z-push (I used 2.3.9) and put the files in the usual location /usr/share/z-push.
Create log folder /var/log/z-push.
Configure z-push: in the main configuration file /usr/share/z-push/config.php set define('BACKEND_PROVIDER', 'BackendIMAP');
In autodiscover/config.php - define('ZPUSH_HOST', 'mailhost.yourdomain.com');
Create /etc/nginx/templates/autodiscover.tmpl with:
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $1;
fastcgi_param PHP_FLAG "magic_quotes_gpc=off \n register_globals=off \n magic_quotes_runtime=off \n short_open_tag=on";
fastcgi_param PHP_VALUE "post_max_size=20M \n upload_max_filesize=20M \n max_execution_time=3660";
fastcgi_param HTTP_PROXY ""; # Mitigate https://httpoxy.org/ vulnerabilities
fastcgi_read_timeout 3660; # Z-Push Ping might run 3600s, but to be safe
location ~* /AutoDiscover/AutoDiscover.xml {
alias /usr/share/z-push/autodiscover/autodiscover.php;
access_log /var/log/nginx/z-push-autodiscover-access.log;
error_log /var/log/nginx/z-push-autodiscover-error.log;
fastcgi_pass unix:/var/run/php-fpm.socket;
fastcgi_index autodiscover.php;
}
Edit /etc/nginx/sites-enabled/00-default-ssl.conf adding a line:
include /etc/nginx/templates/autodiscover.tmpl;
Don't forget the autodiscover DNS record and you should be all set.
bayardis wrote:Hmm ok. Do you know if anyone has used z-push and sogo together? Sogo's documentation seems to imply I need to use ocsmanager but from what I see Iredadmin didn't use openxchange with sogo so I'm a little confused how the Activesync is working
I've managed to make Autodiscover work with z-push with the following configuration: Centos7, iRedMail-0.9.8, SOGo nightly build. Install and configure iRedMail first and setup SSL certificate.
Get latest tarball release of z-push (I used 2.3.9) and put the files in the usual location /usr/share/z-push.
Create log folder /var/log/z-push.
Configure z-push: in the main configuration file /usr/share/z-push/config.php set define('BACKEND_PROVIDER', 'BackendIMAP');
In autodiscover/config.php - define('ZPUSH_HOST', 'mailhost.yourdomain.com');
Create /etc/nginx/templates/autodiscover.tmpl with:
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $1;
fastcgi_param PHP_FLAG "magic_quotes_gpc=off \n register_globals=off \n magic_quotes_runtime=off \n short_open_tag=on";
fastcgi_param PHP_VALUE "post_max_size=20M \n upload_max_filesize=20M \n max_execution_time=3660";
fastcgi_param HTTP_PROXY ""; # Mitigate https://httpoxy.org/ vulnerabilities
fastcgi_read_timeout 3660; # Z-Push Ping might run 3600s, but to be safelocation ~* /AutoDiscover/AutoDiscover.xml {
alias /usr/share/z-push/autodiscover/autodiscover.php;access_log /var/log/nginx/z-push-autodiscover-access.log;
error_log /var/log/nginx/z-push-autodiscover-error.log;fastcgi_pass unix:/var/run/php-fpm.socket;
fastcgi_index autodiscover.php;
}
Edit /etc/nginx/sites-enabled/00-default-ssl.conf adding a line:
include /etc/nginx/templates/autodiscover.tmpl;
Don't forget the autodiscover DNS record and you should be all set.
Thanks for that info. If I go back to iredadmin I will try it but I switched to mailcow now for evaluation and so far unlikely to go back.
I'm going to build a new server from ground up and start over. how do i import the emails from the old server over to the new one when its ready?
I'm going to build a new server from ground up and start over. how do i import the emails from the old server over to the new one when its ready?
With same iRedMail-0.9.8 version, you can simply export/import SQL databases, then copy mailboxes with "rsync" to same directory.
I'm going to build a new server from ground up and start over. how do i import the emails from the old server over to the new one when its ready?
Have to dive into Postfix+Dovecot log files to figure it out.
I've managed to make Autodiscover work with z-push with the following configuration:
Thanks for sharing.
iRedMail doesn't support autodiscover by default.
Maybe you can try this:
https://forum.iredmail.org/post66700.html#p66700