Giter VIP home page Giter VIP logo

deeztek / hermes-secure-email-gateway Goto Github PK

View Code? Open in Web Editor NEW
61.0 12.0 14.0 213.13 MB

Hermes Secure Email Gateway is a Free Open Source Ubuntu 20.04 LTS Server based Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. It features the latest email authentication techniques such as SPF, DKIM and DMARC.

Home Page: https://www.hermesseg.io

License: GNU General Public License v3.0

Self 0.01% Shell 2.13% Perl 0.01% ColdFusion 12.11% JavaScript 65.50% CSS 4.02% Makefile 0.20% Roff 1.02% C 12.49% M4 0.02% SCSS 2.49%
postfix spamassassin amavisd ciphermail mariadb ubuntu hermes-seg email-gateway dmarc dkim

hermes-secure-email-gateway's People

Contributors

deeztek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hermes-secure-email-gateway's Issues

Initial System Settings Error

Hey,

im currently testing this secure email gateway. Installation went pretty smooth but now im facing a error in the initial system settings page.

Postmaster E-Mail: [email protected]
Admin E-Mail: [email protected]

When i select "Save Settings" the system prompts: The Postmaster E-mail Address must be part of a domain that this system relays.

How can i fix this?

How to configure Hermes SEG for Godaddy

Hello nice project.
I have a contracted email service with GoDaddy that I would like to configure so that Hermes acts as a gateway between GoDaddy's email service and email clients. I followed the installation steps outlined in the documentation, where the installation was done on a virtual machine to host Hermes SEG, and it is installed on Ubuntu Server 20.04 with 8 GB of RAM and 4 processors.
After the installation, I will configure the network to use a static IP address as follows:

  1. Network Mode: Static
  2. HostName: smtp
  3. Primary Domain Name: domain.tld
  4. Ip Address: 192.168.1.50
  5. Subnet Mask: 255.255.255.0/24
  6. Gateway: 192.168.1.1
  7. DNS1: 192.168.1.116

Finally, I added a domain with the following configuration in order for the messages sent and received by email clients to be filtered by Hermes and then forwarded to the GoDaddy server:

  1. Domain Name smtp.test.tld
  2. Delivery Method: SMTP
  3. Recipient Delivery: ANY
  4. Destination Address: smtpout.secureserver.net
  5. Destination Port: 25
  6. Destination Requires Authentication: YES
  7. Destination Username: [email protected]
  8. Destination Password: ****

Once I have made this configuration, I will try to connect the Outlook application using the following SMTP settings:

  1. Smtp Domain: smtp.test.tld
  2. Smtp Port: 25

The Outlook email configuration process was completed successfully; however, when I try to send an email, it doesn't go through, and the Hermes SEG log doesn't register anything.
On the other hand, I performed a test by setting up an SMTP client using .NET 8 language with the following configuration:

  1. Smtp Domain: smtp.test.tld
  2. Smtp Port: 25

In this instance, when I send the email, I get the following log from the Hermes application.

PREGREET 22 after 0.01 from [192.168.1.215]:52092: EHLO VMWindows\r\n
CONNECT from [192.168.1.215]:52092 to [192.168.1.50]:25

However, the email is not received by Hermes SEG because it doesn't appear in the Mail Queue view nor does it appear in the Message History view.

So, I would like to know exactly how the configuration should be done in Hermes SEG so that it can act as a gateway between the Godaddy email service and the email clients for the purpose of filtering emails.

What type of client and configuration in the client needs to be done? For example, if the port number is 25 and if the DNS registered in Hermes needs to be specified.
Is it necessary to configure SMTP TLS? If so, could an SSL certificate for a website provided by GoDaddy be used?

Is there a documented use case for configuring Hermes SEG? If so, where can I find this documentation?

Edit Domain Destination Address IP

When trying to edit a domain under Gateway --> Domains --> Edit Domain if an IP address is entered in the Destination Address field, the following error is generated when clicking Submit:

The Destination Address field must be a valid FQDN or IP Address

Fix issue with missing empty directories under /opt/hermes/

During git clone of hermes-seg-18.04.git, empty directories under /opt/hermes do not get cloned due to the way git works. In order to work around this issue, I already placed git_placeholder.txt files in all those empty directories so any new installations should clone all those empty directories. However, need to create update to address issue with existing installations.

Email Archive Add Archive Job throws error when attempting to add job and access to SMB share is denied

Following error is displayed when attempting to add Email Archive Job and access to SMB share is denied:

Lucee 5.2.9.31 Error (application)
Message	Error invoking external process
Detail	/bin/cp: cannot create regular file '/mnt/hermesarchivetest/testsmb': Permission denied
Stacktrace	The Error Occurred in
/var/www/html/admin/email_archive.cfm: line 595
593: outputfile ="/dev/null"
594: arguments="-inputformat none">
595: </cfexecute>
596:
597:

Need to update cfcatch for "permission denied" in error detail.

System Status Filesystem Usage script error

Logging into the admin interface I am presented with the following warning box.
error

Examining the script, it contains:

#!/bin/bash df -hl | awk '/^\/dev\/mapper/ubuntu--vg-ubuntu--lv/ { sum+=$5 } END { print sum }'
Executing script:

awk: cmd. line:1: /^\/dev\/mapper/ubuntu--vg-ubuntu--lv/ { sum+=$5 } END { print sum } awk: cmd. line:1: ^ syntax error
It also looks like a new script is generated on each page load/refresh, is this expected behaviour?

DKIM import function request

Discussed in #37

Originally posted by Lumanet2012 October 27, 2022
Hey Team,

first of NICE NICE work. I am a big supporter of your product and we just done a migration to a new Data Center in Dallas,
During all this we ran into a situation needing a new E-Mail Gateway Server which we did install and we did configure it all with wildcard SSL and TLS and you name it.

But we do already have all our DKIM key's and do like to import ours instead of having to generate new keys. So It would be a very nice feature if under "Edit Domain DKIM Configuration" we do get a import like copy past field option so we can import quickly them DKIM keys.

All outbound e-mail are PDF encrypted

In certain deployments where Internal Recipients are not utilized, all outbound e-mails are automatically PDF encrypted. Issue is caused by the domain being set with PDF encryption enabled.

Error when adding message to block list

Here is the error received when selecting a quarantined message and message action block sender.


We apologize for the inconvenience but a system error has occurred or malicious activity has been detected or database credentials are missing/incorrect

Page Specific Error below
Message History: url.startdate is invalid
Attempting to modify a URL parameter or form input or attempting to use certain keywords such as (select, update etc.) in form fields will generate this error. Please go back to retry your operation without modifying any system URLs and/or change your form input with fields that are not banned. Additionally, verify the database credentials are correct under System --> System Settings.

If you have any further questions, please contact support

Authelia authentication and authorisation server

Discussed in #51

Originally posted by easyfit77 March 15, 2023
Ok so my issue is as follows,

I have installed Hermes-seg on both Ubuntu 18.04LTS and 20.04LTS and in both instances I cannot access the admin interface because the Authelia just wont run.

When I check the status of the service I get the following

cu_admin@test-seg:/usr/lib/systemd/system$ sudo systemctl status authelia.service
● authelia.service - Authelia authentication and authorization server
Loaded: loaded (/lib/systemd/system/authelia.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-03-14 03:09:12 UTC; 51s ago
Process: 12127 ExecStart=/usr/bin/authelia --config /etc/authelia/configuration.yml (code=exited, status=1/FAILURE)
Main PID: 12127 (code=exited, status=1/FAILURE)

Mar 14 03:09:12 test-seg systemd[1]: Started Authelia authentication and authorization server.
Mar 14 03:09:12 test-seg authelia[12127]: time="2023-03-14T03:09:12Z" level=error msg="Configuration: option 'jwt_secret' is required"
Mar 14 03:09:12 test-seg authelia[12127]: time="2023-03-14T03:09:12Z" level=error msg="Configuration: session: option 'secret' is required when using the>
Mar 14 03:09:12 test-seg authelia[12127]: time="2023-03-14T03:09:12Z" level=error msg="Configuration: storage: option 'encryption_key' is required"
Mar 14 03:09:12 test-seg authelia[12127]: time="2023-03-14T03:09:12Z" level=fatal msg="Can't continue due to the errors loading the configuration"
Mar 14 03:09:12 test-seg systemd[1]: authelia.service: Main process exited, code=exited, status=1/FAILURE
Mar 14 03:09:12 test-seg systemd[1]: authelia.service: Failed with result 'exit-code'.

Anyone have any idea on how to rectify this, or perhaps know what I may be doing wrong during the install process?

Deploy Docker Nextcloud

Deploy Docker Nextcloud in Hermes SEG as the groupware solution to compliment Dovecot Server.

Hermes SEG will NOT run in a LXC Environment

We have been getting a lot of support requests for Hermes from people getting 502 Gateway errors when attempting to run Hermes SEG in a LXC environment. Hermes SEG will not run in a LXC environment. Hermes is designed to run in a physical machine or in a full virtual environment (Vmware, virtualbox etc...)

Application Loading and DB user Permission Denied error

I am not sure what is breaking, but I have noticed a few things that stand out as issues. After logging into the application I get the following errors:

Lucee 5.2.9.31 Error (application)
--
Message | Error invoking external process
Detail | /sys/firmware/dmi/tables/smbios_entry_point: Permission denied/dev/mem: No such file or directory
Stacktrace | The Error Occurred in/compile/proprietary/2/inc/setsession.cfm: line 1412: ?O�13: doStartTagQ$14: ?R��initBody�&(Ljavax/servlet/jsp/tagext/BodyTag;I)VTU15: /V��16: �X��doAfterBodyZ$called from /var/www/html/admin/Application.cfc: line 261

I also noticed that the Hermes user cannot access the DB:
Aug 30 18:05:16 Hermes-SEG postfix/smtp[9692]: warning: connect to mysql server 127.0.0.1: Access denied for user 'hermes'@'localhost' (using password: YES)

I was able to login with the DB user locally, but the application fails to do so. This proves that the password works.

I used the exact recommended setup for Ubuntu 20.04. It is running in a LXC container on ProxMox

New Build

Newest build will stall out on fresh installation during mysql when running the install script.
image

Deploy Docker Dovecot Mail Server

Deploy Docker Dovecot Mail Server in Hermes SEG in order to be able to additionally receive e-mail locally instead of being limited to only relay e-mail to external servers.

Upgrade and Migrate Hermes SEG based on Ubuntu 18.04 LTS Server to Ubuntu 20.04 LTS Server

Due to the pending end of the standard standard five year maintenance window for Long Term Support (LTS) for Ubuntu 18.04 LTS Server on May 31, 2023, we have created instructions and a script to perform a release upgrade and migration for existing Ubuntu 18.04 LTS based Hermes installation to Ubuntu 20.04 LTS. Details and instructions can be located here:

https://docs.deeztek.com/books/hermes-seg-administrator-guide/page/upgrade-and-migrate-hermes-seg-1804-to-2004

Unknown column 'queue_type' in 'field list' on Build-220410

When navigating to System --> Mail Queue the system throws the following error:

Unknown column 'queue_type' in 'field list'
--
SQL | insert into postfix_queue(trans_id, msg_id, queue_type)values('dXFq2Yrl', '83261121B3E', 'N/A')

This is caused by missing column in the postfix_queue table in the build-220410 release.

SMTP TLS Settings throws error when SMTP TLS Support Available is selected and certificates missing

Gateway --> SMTP TLS Settings throws ApplicationException error when SMTP TLS Support Available is selected and Certificate, Unencrypted Key and Root & Int CA Certificate are left blank and the Save & Apply Settings button is clicked.

Until issue is resolved, workaround is to ensure ensure you fill out the Certificate, Unencrypted Key and Root & Int CA Certificate fields before clicking the Save & Apply Settings button

Can not edit some files

Hello Hermes Secure Email Gateway Admin,
I want to edit some UI in files like view_console_settings.cfm.
How I view the source code

Thanks.

Deploy Docker and Docker Compose

Deploy Docker and Docker Compose in Hermes SEG in order to be able to deploy various Docker containers for future enhancements.

Error step 61 of 61: 1, occured during ensuring Hermes SEG permissions are set correctly

Hi there,
I'd like to evaluate Hermes SEG however each time diring install the installation quits all of a sudden. The log file shows the following on the last line;
Error step 61 of 61: 1, occured during ensuring Hermes SEG permissions are set correctly

This happens right after the expected OpenDMARC error.

The server is a VM on on ESXI.
It's a new install and has Ubuntu 18.04 installed with the latest updates, 10Gb RAM, 1x 16Gb disk and 1x 250Gb disk.

I wasn't able to find any documents on the forum so I'm not really sure where to go from here. Any support would be much appreciated.

Kind regards,
Ronald.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.