Repository navigation
Send mail only from the addresses that have reverse DNS - #38
Merged
Merged
Conversation
just install records the provider-assigned addresses (Terraform outputs, for which reverse DNS was set) in machine.json. Postfix binds outgoing SMTP to them (smtp_bind_address/smtp_bind_address6), and on DHCP providers (UpCloud) the assigned IPv6 address is also configured statically, so mail never leaves from a SLAAC or other address without a PTR record, which Gmail and others reject. Closes #14 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
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.
Closes #14
Changes
just installadds the provider-assigned addresses (the Terraformipv4/ipv6outputs, i.e. the ones reverse DNS was set for) tomachine.jsonaspublicIPv4/publicIPv6.smtp_bind_address,smtp_bind_address6). Mail can no longer leave from a SLAAC or secondary address without a PTR record, which Gmail rejects (550-5.7.25)./128) next to DHCP/RA, so the bind address always exists.machine.jsonexists, or for keys it doesn't contain, nothing is bound. Behaviour is unchanged until the next install records the addresses.Testing
Address=192.0.2.10/24,Address=2001:db8::10/128, withsmtp_bind_address = 192.0.2.10andsmtp_bind_address6 = 2001:db8::10inmain.cf.Address=2001:db8::10/128plus DHCP, with the same bind addresses.🤖 Generated with Claude Code
https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
Generated by Claude Code