Skip to content

Commit

Permalink
Disable smtpd in Postfix. It is not necessary in sent-only satellite …
Browse files Browse the repository at this point in the history
…mode

Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Jun 15, 2023
1 parent 144b990 commit 38bdf39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deb/openmediavault/debian/changelog
@@ -1,6 +1,7 @@
openmediavault (6.4.5-1) stable; urgency=low

*
* Disable smtpd in Postfix. It is not necessary in sent-only
satellite mode.

-- Volker Theile <volker.theile@openmediavault.org> Tue, 13 Jun 2023 18:31:48 +0200

Expand Down
3 changes: 3 additions & 0 deletions deb/openmediavault/debian/openmediavault.postinst
Expand Up @@ -468,6 +468,9 @@ case "$1" in
if dpkg --compare-versions "$2" lt-nl "6.4.4"; then
omv_module_set_dirty samba
fi
if dpkg --compare-versions "$2" lt-nl "6.4.5"; then
omv_module_set_dirty postfix
fi

########################################################################
# Trigger the restart of the omv-engined daemon to load and use the
Expand Down
Expand Up @@ -5,7 +5,7 @@
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtp inet n - n - - smtpd
pickup unix n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr unix n - n 300 1 qmgr
Expand Down

6 comments on commit 38bdf39

@deejaybeam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change breaks the usage of open-relay-config with variables "OMV_POSTFIX_MAIN_INET_INTERFACES" and "OMV_POSTFIX_MAIN_COMPATIBILITY_LEVEL"

@votdev
Copy link
Member Author

@votdev votdev commented on 38bdf39 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change breaks the usage of open-relay-config with variables "OMV_POSTFIX_MAIN_INET_INTERFACES" and "OMV_POSTFIX_MAIN_COMPATIBILITY_LEVEL"

Could you please go into details?

The snmpd daemon was enabled by accident which has been fixed with mentioned commit. OMV is using Postfix in sent-only satellite mode.

@deejaybeam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use the variables menioned to use the omv-postfix instance as an internal open-mail-relay.
This way I can use other systems in my LAN to send mails via OMV, but if smtpd is disabled, this is not possible anymore.
My current config is:

OMV_POSTFIX_MAIN_INET_INTERFACES="all"
OMV_POSTFIX_MAIN_COMPATIBILITY_LEVEL=1

@votdev
Copy link
Member Author

@votdev votdev commented on 38bdf39 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, added the environment variable OMV_POSTFIX_MASTER_SMTPD_ENABLED in openmediavault 6.4.6 to enable/disable smtpd. Check 16e53db

@votdev
Copy link
Member Author

@votdev votdev commented on 38bdf39 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To add some more side-info why smtpd has been disabled. Many users are running mail servers in containers which conflicts with Postfix on the OMV host which does not really need smtpd. See https://forum.openmediavault.org/index.php?thread/48223-how-to-free-port-25-for-mail-server/&pageNo=1

@deejaybeam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!
Thank you!

Please sign in to comment.