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

Set Sogo/Nginx to also use alternate SSL port, and keep using it!

$
0
0

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

This may be similar the the post " Other SSL sites by christophk", but I wasn't sure and didn't want to hijack his thread.

All users on my LAN can access Sogo fine using a local IP/web address. But I'm trying to make it available over the internet. I already have another application using SSL that can be accessed over the web witha port forwarding rule set in my firewall. So in my 00-default-ssl.conf I added a listen:
HTTPS
server {
    listen 443;
    listen 8443;
    server_name _;

    root /var/www/html;
    index index.php index.html;

An added a port forwarding rule on the firewall to send 8443 to the iRedMail server. It sort of works but breaks halfway through the log in process. See attached images.

Question - How do I get Sogo to use port 8443 through the full log in process?

Thanks!


Re: Blank screen after login

$
0
0

I can confirm we have this issue also. Blank Screen logging into Sogo web interface (after upgrading to latest iredmail)

Re: Set Sogo/Nginx to also use alternate SSL port, and keep using it!

$
0
0

Open file /etc/nginx/templates/sogo.tmpl, find lines below:

    proxy_set_header x-webobjects-server-port $server_port;
    ...
    proxy_set_header x-webobjects-server-url  https://$host;

Set the port numbers here.

Re: Other SSL sites

$
0
0

with iRedMail-0.9.8, ssl cert/key location is defined in /etc/nginx/templates/ssl.tmpl. But if you want to use different ssl cert for other web domain, you can simply copy ssl.tmpl to other file name and load it in the "server {}" block for the web domain.

- Nginx uses 'include ...' directive to load given file, so it should be easy to understand the scope.
- Main config file is /etc/nginx/nginx.conf, read it first, then you will find it loads modular config files from different directories.

Re: Blank screen after login

$
0
0

Any related error in SOGo log file (/var/log/sogo/sogo.log)?

Re: Can't log in to iredadmin

$
0
0

No idea yet.

- Can you reproduce this issue steadily?
- If yes, could you let me try to reproduce this issue on my side? or connect to your laptop (with TeamViewer) and watch you to reproduce it? also need ssh access to server for debugging.

Re: trying to convert to sdbox mail format

$
0
0

Dovecot gets per-user mailbox format and folder name from SQL/LDAP query, and we improved this in development edition by 2 new SQL columns (for SQL backends) and 2 new LDAP attributes (for LDAP backends).

Check this __DRAFT__ iRedMail upgrade tutorial for details of this change.
https://docs.iredmail.org/upgrade.iredm … db-special

And check this tutorial to see how to switch mailbox format:
https://docs.iredmail.org/change.mailbox.format.html

I suggest you use this change instead of implementing it in your own way, it's should be easy and clear enough, and easy for upgrading iRedMail in the future.

Re: Recipient address rejected: Intentional policy rejection, please try a

$
0
0

It disables greylisting service for the given domain.


Re: trying to convert to sdbox mail format

$
0
0

thanks zhang

i will give it a try and let you know how i went.

Re: allow to send from one domain

Re: Might have finally found the underlying problem I've been having...

$
0
0

1: SpamAssassin can not identify EVERY spam emails. so it's normal that some emails went to INBOX folder.
2: You can check Amavisd log file to see the spam scanning result of each email.

Mailcrypt

$
0
0

Hello,
I'm currently running the v0.9.8 on a Debian 9/MYSQL/Nginx.

Is there anyone install Mailcrypt?
I already got an issue at the first step: ./configure

./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for install-info... no
checking for basename... (cached) /usr/bin/basename
checking for emacs... no
checking for xemacs... no
./configure: 729: ./configure: error:: not found
/usr/bin/basename: missing operand
Try '/usr/bin/basename --help' for more information.
checking for timer.el...no. I will install it for you.
creating ./config.status
creating Makefile
creating tests/Makefile
creating tests/remailer/Makefile

Re: trying to convert to sdbox mail format

$
0
0

hi zhang
i am working my way through this...

after a couple of mistakes (i misread your instruction on the extra line and changed mailbox.maildir , but should have left that alone) i have got it working so that when it is configured it will deliver mail correctly in the right mailbox with the correct format. so all good on that score - thanks.

what is not happening at present is that when i create an account through the admin panel, it defaults back to maildir. unless i was mistaken, i could not see anything to change these values in the database upon creation of the new email account.

can that be done without having to do it for every account, manually?

Re: utf8mb4 decode error in iRedApd

$
0
0

Ok.

Can you enforce UTF-8 in iRedAPD in next release because I'm not a python coder?

I've tried something from this solution https://stackoverflow.com/questions/265 … -in-python on my dev.server but without success results.

Or can you give me any advice how to fix this issue? Because I'm worry about security and spamming on my websites.

Thanks a lot.

Re: utf8mb4 decode error in iRedApd

$
0
0

Could you try this patch for iRedAPD-2.2? It asks SQLalchemy to connect to SQL db as utf8 charset.

diff -r 54f20cfec66e libs/utils.py
--- a/libs/utils.py    Wed Jul 25 19:28:26 2018 +0200
+++ b/libs/utils.py    Sun Jul 29 22:53:05 2018 +0200
@@ -266,6 +266,8 @@
                                        int(settings.__dict__[db + '_db_port']),
                                        settings.__dict__[db + '_db_name'])

+        uri += '?charset=utf8'
+
         conn = create_engine(uri,
                              pool_size=settings.SQL_CONNECTION_POOL_SIZE,
                              pool_recycle=settings.SQL_CONNECTION_POOL_RECYCLE,

Re: trying to convert to sdbox mail format

$
0
0

Upcoming iRedAdmin-Pro release will have 2 new setting parameters also:

# Default mailbox format: maildir.
# All Dovecot supported mailbox formats are ok, e.g. mdbox.
# https://wiki2.dovecot.org/MailboxFormat
MAILBOX_FORMAT = 'maildir'

# Default folder used to store mailbox under per-user HOME directory.
# It will be appended to the `mail` variable returned by Dovecot SQL/LDAP
# query. for example, sql query in `/etc/dovecot/dovecot-mysql.conf`:
#
#   user_query = SELECT ...,  CONCAT(...) AS mail, ...
#
# Or LDAP query in `/etc/dovecot/dovecot-ldap.conf`:
#
#   user_attrs      = ...,=mail=%{ldap:mailboxFormat:maildir}:~/%{ldap:mailboxFolder:Maildir}/,...
MAILBOX_FOLDER = 'Maildir'

If you want to use mdbox (or other format besides 'maildir'), you can set it in iRedAdmin-Pro config file and restart uwsgi service to load the change. Then all newly created user accounts will use mdbox format.

raystrach wrote:

i am working my way through this...

I think our implementation and configuration is clear enough and easy to understand and manage, i suggest you follow our tutorial so that you can easily upgrade iRedMail by following our upgrade tutorial in the future if there's any change made to this part.

Re: Mailcrypt

Re: Set Sogo/Nginx to also use alternate SSL port, and keep using it!

$
0
0

Zhang,

Thanks for the reply! Your solution appears to be working from the web, but I don't quite understand why - this is my first experience with Nginx.

I first added my port/host as an additional parameter:
    proxy_set_header x-webobjects-server-port $server_port 8443;
    ...
    proxy_set_header x-webobjects-server-url  https://$host https//:my.ip.add.ress;

Nginx didn't like that and would not reload. So I removed the $server_port and https://$host and just left my settings. Nginx reloaded and I can connect over the web. But will these settings break my LAN connection? I'll can't check until tomorrow. I'll post the status.

Thanks again for the support!

Re: Mailcrypt

$
0
0

Thank you again ZangHuangbin!

Indeed it's already install in Debian 9.
It's a bit funny how no one talk about this module or get any tutorials for the config...

There's some information here but, pretty space as informations...

Re: trying to convert to sdbox mail format

$
0
0

thanks again.

unfortunately i do not have the pro version of iredadmin, so setting this up there was not an option.

however, after going through quite a number of scripts, i realised that you did not actually insert these values implicitly, but instead you let the default field value be inserted by the database.

that makes sense.

of course that meant that all i needed to do was to change the default field value and it should set things up the way i wanted and that was the case.

so now all that appears to be working perfectly. i will just have to make sure that i check those values whenever an update is done - that's ok.

then the only thing that was not working was the attachments being stored in my chosen directory through the mail_attachment_dir directive in 10-mail.conf.

after trying different things i realised that 10-mail.conf was probably not being used. i then put the directive in the dovecot.conf file and hey presto - it worked!

so to recap for those people who may want to do a similar thing (please note my configuration at the top of this thread)...

after setting up the mailserver in the normal way i did the update as suggested by zhang, above.

i then changed any mailboxes in the user database to the following field values for the mailbox table:
mailboxformat:sdbox //could be sdbox or mdbox - pros and cons for each - previously maildir
mailboxfolder:dbox //this can be anything - your choice - previously Maildir

i then changed the default value for these two fields to the value i input for the current record(s)

i then made the following changes to /etc/dovecot/dovecot.conf :
//this was previously there but i edited it - not 100% sure it does anything - zhang might like to comment

mail_location = sdbox:%Lh/dbox/


//add - this will put attachments in a file for each domain i manage

mail_attachment_dir = /mnt/email_attach/%d/

i restarted dovecot

# /bin/systemctl restart dovecot.service

it all seems to be working fully now although i am happy to be corrected on any points.

this has the advantage of being able to store the bulk of your email content on a separate disk.

also, as i understand it(and this appears correct), each attachment is checked for its uniqueness, so that only once instance of an attachment is saved to the server (i stand to be corrected on this).

the only thing that i am not 100% certain about are the other instances of where maildir is specified in a number of other files. i took it from zhang's instructions that they did not matter

hope this helps someone else as there is not a lot out there on this type of set up.

Viewing all 43498 articles
Browse latest View live


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