Skip to content

Commit ca767ef

Browse files
authored
DLPX-91435 [Forward port of DLPX-91396] All emails generated by specific cron job, are redirected to the user SMTP. (#486)
PR URL: https://www.github.com/delphix/delphix-platform/pull/486
1 parent 0e3fcf5 commit ca767ef

File tree

2 files changed

+12
-0
lines changed
  • debian
  • files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks

2 files changed

+12
-0
lines changed

debian/postinst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ configure)
4545
systemctl disable motd-news.service
4646
systemctl disable motd-news.timer
4747

48+
#
49+
# Various tools generate mail on the system, e.g. cron, and we don't
50+
# want those to be sent externally via SMTP (or equivalent). Thus,
51+
# we disable this service, so that it doesn't send external mails.
52+
#
53+
systemctl disable nullmailer.service
54+
4855
systemctl enable auditd.service
4956
systemctl enable delphix.target
5057
systemctl enable delphix-platform.service

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,3 +705,8 @@
705705
block: |
706706
# Set default umask value.
707707
umask 027
708+
709+
- service:
710+
name: "nullmailer"
711+
state: "stopped"
712+
when: not ansible_is_chroot

0 commit comments

Comments
 (0)