Remote smtp interface (rewrite of #245)#310
Open
runout-at wants to merge 3 commits into
Open
Conversation
retrieve IPs for REMOTE_SMTP_INTERFACE from the database
add field out_ip for exim macro REMOTE_SMTP_INTERFACE
add field out_ip for exim macro REMOTE_SMTP_INTERFACE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a rewrite of PR #245 as Exim has incorporated the functionality and some of the old PR is obsolete.
This is only the change in the exim config to read the outgoing IPs for a domain from the database and an update to the database create scripts.
Changes for the PHP-UI should be done in a separate PR. It's just to add one field to the domain form.
Veximpy does already use the out_ip field.
The field should contain a semicolon separated list of IPs (IPv6 and IPv4 is allowed). Veximpy runs some checks on the IPs before accepting it.
Usage is in Debian split config in transport/30_exim4-config_remote_smtp:
.ifdef REMOTE_SMTP_INTERFACE
interface = REMOTE_SMTP_INTERFACE
.endif
I did exclude my monitoring script which was included in PR #245. Reviewing should be easier now.
It is tested for years on my live server.