Commit Graph

347 Commits

Author SHA1 Message Date
James Antill
dc56eb16c8 Fix % to \% for cron CMD format.
Signed-off-by: James Antill <james@and.org>
2024-07-19 19:11:36 +00:00
James Antill
602723ed45 Compress fedora_stats *.log files automatically with xz.
Signed-off-by: James Antill <james@and.org>
2024-07-17 19:17:40 +00:00
Michal Konecny
61330941e4 [base/postfix] Set the missing required configuration value
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-27 14:55:31 +02:00
Michal Konecny
40c0408acd [base/postfix] Redirect back to mx1.redhat.com relay
The firewall rules are now updated.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-20 13:20:42 +02:00
Michal Konecny
c775045ede [base/postfix] Change the relay to something that is still in RDU 2
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-18 17:06:39 +02:00
Michal Konecny
2ff451ae80 [base/postfix] Use smtp.corp.redhat.com instead mxX.redhat.com servers
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-18 16:53:12 +02:00
Michal Konecny
649ede2f89 [base/postfix] Change the Red Hat relay to mx1.redhat.com
The relay changed the IP it points to, let's try this and see if that helps.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-18 16:17:15 +02:00
Michal Konecny
c3a169c08e [postfix] Move destinations to staging mailman configuration
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-10 14:26:38 +02:00
Michal Konecny
438979a996 [postfix] Add mailman staging lists
I followed the instruction from
https://pagure.io/fedora-infrastructure/issue/8455#comment-913675, but this is
my first time I actually doing anything in postfix configuration, so I'm not
sure if everything I did is correct.

The SMTP port on the machine seems to be open according to group_vars for the
mailman_stg.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-10 14:25:30 +02:00
Andrew Heath
74e536d639 Update Rsyslog.conf file
Update Rsyslog config file to use the Splunk LB for rsyslog rather than
one single host.
2024-04-03 22:00:38 +00:00
Francois Andrieu
6f949fe3eb rsyslog: comment out splunk receiver to unblock rsyslog
Splunk receiver seems unresponsive since Feb 12 and result in rsyslog on
log01 to stop logging.
I disabled it for now so we don't loose more logs.
2024-02-15 19:11:29 +01:00
Kevin Fenzi
5fd49a0b20 smtp-mm: reject unauth pipelining.
This should reject broken pipelining attempts.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-12-24 10:15:27 -08:00
Kevin Fenzi
ddd0913262 smtp-auth: rename this to explicit hostname
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-15 17:48:24 -08:00
Michael Scherer
bdd76ae138 Add master.cf with submission enabled
Copied from base master.cf, fix #11623
2023-11-16 01:38:59 +00:00
Andrew Heath
7260701e59 Remove unessary settings for Spunk Setup 2023-11-08 23:28:57 +00:00
Kevin Fenzi
11d2a789ba log01: bump queue size for splunk backlog
I'm pushing this during freeze as it's required to avoid an outage of
our logs. For some reason we hit a large backlog and log01 rsyslog
stopped logging. Bumping this up seems to have fixed it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-09-15 10:39:06 -07:00
Andrew Heath
02046fdc0c Enable Splunk log fowarding 2023-08-21 17:36:17 -04:00
Kevin Fenzi
4527510448 log01: compress job: try escaping the %s for cron
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-17 16:31:12 -07:00
Kevin Fenzi
b7cecd3deb gateway: do not try and specify a local_recipient_maps
This map wasn't there, causing bastion02 to basically reject emails.
So, instead just comment it out because we aren't using it anyhow.
We are luckly bastion01's postfix hasn't been restarted and breaking it
there.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-17 11:19:28 -07:00
Stephen Smoogen
19b500a5fd Remove chunking error messages in gateway systems
RHEL turned off chunking in postfix for various reasons. This causes a
lot of logs from spam and other servers. Turning off logging this as
it is not supported.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-06-29 20:09:57 +00:00
Seddik Alaoui Ismaili
6b804b8b11 change archive format to xz for merged logs 2023-06-22 22:49:53 +00:00
Seddik Alaoui Ismaili
b79003cfda compress merged logs under /var/log/hosts 2023-06-22 20:50:46 +00:00
Pavel Raiskup
bee7b64fe5 main.cf files need to be moved before we claim they are templates
Revert "postfix: install main.cf as template"

This reverts commit 57f75cbcab.
2023-06-19 10:39:39 +02:00
Pavel Raiskup
82205131b7 smtp_auth_relay: new role, use by copr-dist-git-dev for now 2023-06-19 10:10:43 +02:00
Kevin Fenzi
abd52941ef smtp-mm: tweak tls options for rhel9
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-13 16:52:30 -07:00
Kevin Fenzi
14a3a6a2c1 smtp-mm / base / postfix: use gateway-chain cert
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-13 16:32:54 -07:00
Kevin Fenzi
ffbc4a001c base / smtp-auth: setup main.cf for smtp-auth host
This host needs to have it's own self signed certs and needs some more
config to allow the auth and allow authenticated users to relay.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-22 10:58:18 -07:00
Seddik Alaoui Ismaili
6038999d66 fix proxy contitional reload typo 2023-05-19 23:24:18 +02:00
Kevin Fenzi
ddfd50de03 smtp-auth-cc-rdu01: create new smtp auth relay
We need this to try and relay in emails.
It turns out to be bordering on impossible to do this sanely with our
current setup, so make a fedora vm that lets us use saslauthdb to have a
specific (small) list of users that can authenticate and relay emails
via bastion and out. We can't do this on rhel, because they don't build
the saslauthdb backend. We can't use any of the other backends because
they either don't work or would allow any fedora user to relay, which we
do not want.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-18 14:35:49 -07:00
Seddik Alaoui Ismaili
e0531fee72 fix httpd reload only for proxy hosts 2023-05-15 22:22:28 +02:00
Stephen Smoogen
03ea843648 Comment out splunk section as certs are still needed
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-05-11 15:57:02 -04:00
Stephen Smoogen
d07ccd7b62 Use rsyslog omfwd format.
Move above other rules because putting it at the bottom did not send
any packets.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-05-11 15:43:46 -04:00
Stephen Smoogen
e84065541f Put ip address in for host we don't have dns for.
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-05-11 14:11:28 -04:00
Stephen Smoogen
7ea1509a2f Fix MaxOpenFiles declaration
Limits.conf needs to have one type of declaration
Conf-file needs a different declaration.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2023-05-11 14:09:53 -04:00
Andrew Heath
85d5c21bcc updating syntax to follow documentation 2023-05-11 13:08:28 -04:00
Andrew Heath
cca326c270 changing from standard syslog port to syslog-tls 2023-05-11 11:41:49 -04:00
Kevin Fenzi
afb783d989 log01 / rsyslog: install the ca cert and use it in the file
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-04 11:36:56 -07:00
Seddik Alaoui Ismaili
a1e6a14e17 log forward to splunk 2023-05-04 09:03:57 +00:00
Kevin Fenzi
9ddd3e2e6d postfix / gateway: add bysender map
This is a hack to work around SPF screwing us for @fedoraproject.org
aliases. It only fixes email from @redhat.com, but due to bugzilla thats
a lot of email.

Without this:
bugzilla@redhat.com -> user@fedoraproject.org (expands) ->
user@gmail.com sent out directly to gmail and gets rejected because
we aren't in the redhat.com SPF record.

With this:

bugzilla@redhat.com -> user@fedoraproject.org (expands) ->
user@gmail.com but sent to mx2.redhat.com to deliver. Since
mx2.redhat.com definitely is in the redhat.com SPF record the email is
delivered fine and SPF checks pass.

This won't help for other domains with -all SPF records, but at least it
helps for all the redhat.com emails, of which there are a lot going to
fedoraproject.org aliases. :)

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-26 15:58:43 -07:00
Kevin Fenzi
24088dfe9b postfix: put CA file back, needed to verify other certs
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-21 16:42:22 -07:00
Kevin Fenzi
a3c96c4032 postfix: gateway: consolidate tls settings and use chain-file.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-21 16:33:25 -07:00
Kevin Fenzi
c31c99a252 pagure: enable tls for smtp in prod too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-13 18:07:22 -07:00
Kevin Fenzi
352ac4d6fd pagure / staging: correct path to certs, install tls_policy map
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-13 18:01:00 -07:00
Kevin Fenzi
0df1496ae6 pagure / staging: enable tls for postfix.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-13 17:54:07 -07:00
Kevin Fenzi
33403e750e bastion: readd may tls for all non rh sites
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-24 17:46:04 -07:00
Kevin Fenzi
caf5f130c8 bastion / postfix: clean up tls_policy duplicates
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-24 12:33:26 -07:00
Kevin Fenzi
a1af68173d bastion / postfix: disable tls_resue for now
Something is broken with smtp_tls_connection_reuse = yes, so disable it
for now. Also, setup a tls_policy map file and tell it to not use tls
for mx2.redhat.com. The normal smtp connection reuse works just fine, so
this will keep mail flowing until we can one day figure out why tls
connection reuse is busted.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-24 12:24:30 -07:00
Kevin Fenzi
81771937c2 bastion / postfix: need to set session cache for tls connections and timeout
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-24 09:13:08 -07:00
Kevin Fenzi
105cad26dc postfix / main.cf: fix releng and vpn config and drop phx2
We fixed the config in a PR from aheath1992 for most of the machines,
but we need to fix vpn (proxies in particular) and releng boxes now.
Also, while we are here, lets drop the phx2 file since it's not used
anymore.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-23 16:43:01 -07:00
Kevin Fenzi
b1395e9088 bastion / postfix: re-add missing smtp_connection_cache_destinations
Without this it wasn't caching tls connections and was going over the
small limit redhat.com mx had. Hopefully this gets mail flowing again.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-23 08:44:36 -07:00