Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TLS authentication to smtp relay host #129

Closed
wants to merge 37 commits into from
Closed

Conversation

Bonno
Copy link
Contributor

@Bonno Bonno commented Jun 13, 2021

I've added configuration to provide TLS SMTP authentication for relayhosts. This is necessary when using gmail as relayhost for your mailserver for example.
To make use of the TLS authentication you need to follow these steps:

  • Create a config file './config/mta/sasl_passwd' with the following contents:
    [smtp.gmail.com]:587 username:password

  • Add the following volume to 'docker-compose.override.yml' for the 'mta' service:
    ./config/mta/sasl_passwd:/etc/postfix/sasl_passwd

  • Add the following lines to your '.env' file
    RELAYHOST=[smtp.gmail.com]:587 RELAY_PASSWD_FILE=/etc/postfix/sasl_passwd RELAY_OPTIONS=
    It is important to add the 'RELAY_OPTIONS' line, because these allow Postfix to use anonymous and plaintext authentication by leaving it empty.

@Bonno
Copy link
Contributor Author

Bonno commented Jun 13, 2021

Resolves issue #112

jeboehm and others added 27 commits May 2, 2022 12:22
* fix: renovate regex

* chore(deps): update dependency jwilder/dockerize to v0.6.1

Co-authored-by: Renovate Bot <[email protected]>
Since Dovecot is protecting the global environment variables,
the sieve script for learing ham / spam is modified to obtain its own set of variables
…jeboehm#150, jeboehm#99)

- Add xapian full-text search
- added templating for .env to support:
    - ENABLE_FTS: enable/disable xapian plugin
    - FTS_ARGS: override set of startup options, esp for low-memory
      settings
    - FTS_VSZ_LIMIT: control memory limit for indexer service

Co-authored-by: Ashley Gittins <[email protected]>
* test: Update dependency jeboehm/imap-tester to v1
* add fileinfo extension

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Jeffrey Böhm <[email protected]>
)

This tests the communication between mda and filter
Disabling and enabling of xapian works again.
Added a test to make sure the index (doesn't) exist(s).

thanks to @agittins for pointing this out.
jeboehm and others added 9 commits June 8, 2022 16:32
Postfix now serves the submission port 587. Please check your port bindings
as reflected in docker-compose.production.yml
This allows rspamd to recognize authenticated users. Besides that, sender
adresses are restricted to either the account name itself or its aliases.
The port forwarding has to be enabled in docker-compose.production.yml.
Fixes jeboehm#146
@Bonno
Copy link
Contributor Author

Bonno commented Aug 17, 2022

This PR is to much cluttered due to merges. I will close this one and create a new one if needed.

@Bonno Bonno closed this Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants