~cjwatson/charm-postfix-relay:master

Last commit made on 2023-06-20
Get this branch:
git clone -b master https://git.launchpad.net/~cjwatson/charm-postfix-relay
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~cjwatson/charm-postfix-relay

Recent commits

9a44eb5... by Colin Watson

Ensure that /etc/mailname exists

Reviewed-on: https://code.launchpad.net/~cjwatson/charm-postfix-relay/+git/charm-postfix-relay/+merge/444992
Reviewed-by: Tianqi Xiao <email address hidden>
Reviewed-by: Nick Moffitt <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Gabriel Cocenza <email address hidden>

7c23020... by Colin Watson

Ensure that /etc/mailname exists

While Ubuntu LXD containers come up with `/etc/mailname` by default, not
all image providers do the same - for example OpenStack VMs using Ubuntu
cloud images don't. Ensure that it exists with some
minimally-reasonable contents, since the generated
`/etc/postfix/main.cf` requires it.

LP: #1972745

88b5d47... by Loïc Gomez

Allow to connect to remotes with TLS even if no specific CA is added

Reviewed-on: https://code.launchpad.net/~kotodama/charm-postfix-relay/+git/charm-postfix-relay/+merge/440673
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Haw Loeung <email address hidden>
Reviewed-by: Erhan Sunar <email address hidden>

e32b5be... by Loïc Gomez

If auth parameters are set, disable anonymous sending of emails and set default auth mechanisms

Reviewed-on: https://code.launchpad.net/~kotodama/charm-postfix-relay/+git/charm-postfix-relay/+merge/440672
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Haw Loeung <email address hidden>
Reviewed-by: Erhan Sunar <email address hidden>

003ea67... by Loïc Gomez

If auth parameters are set, disable anonymous sending of emails and set default auth mechanisms

2effc8b... by Loïc Gomez

Allow to connect to remotes with TLS even if no specific CA is added

b237249... by Colin Watson

Add sender_dependent_relayhost_maps option

Reviewed-on: https://code.launchpad.net/~cjwatson/charm-postfix-relay/+git/charm-postfix-relay/+merge/438972
Reviewed-by: Erhan Sunar <email address hidden>
Reviewed-by: Tianqi Xiao <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Robert Gildein <email address hidden>

634c685... by Colin Watson

Add sender_dependent_relayhost_maps option

I'd like to use this charm in Launchpad deployments. We use
sender-dependent relay hosts on at least some Launchpad machines in
order to ensure that only messages with expected envelope senders are
sent out to our authenticated relay, and this will let us reproduce the
necessary configuration. I imagine it might have other use cases as
well.

75a9c22... by Colin Watson

Default myhostname to the system's FQDN

Reviewed-on: https://code.launchpad.net/~cjwatson/charm-postfix-relay/+git/charm-postfix-relay/+merge/431427
Reviewed-by: Eric Chen <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Robert Gildein <email address hidden>

8f371ca... by Colin Watson

Default myhostname to the system's FQDN

There isn't really a strong reason to require units to have an
externally-resolvable hostname, especially for a subordinate charm.
It's quite common for internet email to originate at a host that isn't
even externally-routable never mind having an externally-resolvable
hostname, and this is fine as long as it's relaying to something whose
hostname can be resolved by the next hop in the chain.

A better default is to just let Postfix use the system's fully-qualified
domain name from `gethostname`, which is its default. That way, this
charm can be deployed on units that aren't exposed to the internet, and
they can just be configured to relay to something that does have an
externally-resolvable hostname.