some improvements on smtp-auth-cc-rdu01.fedoraproject.org #12835

Open
opened 2025-10-06 20:10:40 +00:00 by kevin · 12 comments
Owner

A few improvements we need to do on this machine.

This vm is used to relay (authenticated) emails out to people from various places (copr cron outputs, flock / conference stuff, packager reports).

  1. It would be nice to adjust postfix config to not leak the headers/ips from the orig systems, ie something like https://serverfault.com/a/998993 or the like

  2. The ssl cert on this machine is a self signed one, but it's also expired. Would be nice to generate a new one and make sure to keep it up to date.

A few improvements we need to do on this machine. This vm is used to relay (authenticated) emails out to people from various places (copr cron outputs, flock / conference stuff, packager reports). 1. It would be nice to adjust postfix config to not leak the headers/ips from the orig systems, ie something like https://serverfault.com/a/998993 or the like 2. The ssl cert on this machine is a self signed one, but it's also expired. Would be nice to generate a new one and make sure to keep it up to date.
Member

Metadata Update from @james:

  • Issue priority set to: Waiting on Assignee (was: Needs Review)
  • Issue tagged with: low-gain, medium-trouble
**Metadata Update from @james**: - Issue priority set to: Waiting on Assignee (was: Needs Review) - Issue tagged with: low-gain, medium-trouble
Author
Owner

The cert has been fixed.

The config change hasn't been done yet.

The cert has been fixed. The config change hasn't been done yet.

I imported the new self-signed cert into my local trust store and tried to run the orphans email script without disabling tls verification. It now fails with Error: tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead. Would it be possible to fix this or to use a letsencrypt cert? If the server can have port 80 opened, one could be gotten with the HTTP-01 challenge and auto-renewed with certbot or similar.

I imported the new self-signed cert into my local trust store and tried to run the orphans email script without disabling tls verification. It now fails with `Error: tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead`. Would it be possible to fix this or to use a letsencrypt cert? If the server can have port 80 opened, one could be gotten with the HTTP-01 challenge and auto-renewed with certbot or similar.
Author
Owner

I don't think I like the idea of running a web server on this instance just for this... it exposes it a lot more. :(

@james might you be able to look at a new cert without this problem above?

I don't think I like the idea of running a web server on this instance just for this... it exposes it a lot more. :( @james might you be able to look at a new cert without this problem above?

Any updates here, particularly about the Postfix config changes? The cert issue I can at least work around by locally disabling TLS verification, but I can't work around the Postfix IP leaking.

Any updates here, particularly about the Postfix config changes? The cert issue I can at least work around by locally disabling TLS verification, but I can't work around the Postfix IP leaking.
zlopez self-assigned this 2026-04-22 10:45:06 +00:00
Owner

So I created this PR to add the config changes. But let's wait for freeze to end before merging it.

So I created this [PR](https://forge.fedoraproject.org/infra/ansible/pulls/3297) to add the config changes. But let's wait for freeze to end before merging it.
Owner

The PR is now merged and the IP should be hidden. @gotmax23 Could you check if this is what you wanted?

The PR is now merged and the IP should be hidden. @gotmax23 Could you check if this is what you wanted?

Yes, the headers look good now. Thanks zlopez!

Yes, the headers look good now. Thanks zlopez!
Owner

Anything else we need to do here or is this OK to close now?

Anything else we need to do here or is this OK to close now?
Owner

Closing this as done, as there doesn't seem to be anything needed from our side.

Closing this as done, as there doesn't seem to be anything needed from our side.

zlopez wrote in #12835 (comment):

Anything else we need to do here or is this OK to close now?

No, the TLS cert issue is still outstanding.

zlopez wrote in https://forge.fedoraproject.org/infra/tickets/issues/12835#issuecomment-698458: > Anything else we need to do here or is this OK to close now? No, the TLS cert issue is still outstanding.
zlopez reopened this issue 2026-06-01 11:21:03 +00:00
Owner

@james I see Kevin mentioned you regarding the tls cert issue. Could you look into it?

@james I see Kevin mentioned you regarding the tls cert issue. Could you look into it?
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#12835
No description provided.