Hello community,
here is the log from the commit of package opensuse-postfix-image for
openSUSE:Factory checked in at 2020-11-17 21:27:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opensuse-postfix-image (Old)
and /work/SRC/openSUSE:Factory/.opensuse-postfix-image.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opensuse-postfix-image"
Tue Nov 17 21:27:44 2020 rev:4 rq:849120 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/opensuse-postfix-image/opensuse-postfix-image.changes
2020-11-11 20:47:00.283681513 +0100
+++
/work/SRC/openSUSE:Factory/.opensuse-postfix-image.new.24930/opensuse-postfix-image.changes
2020-11-17 21:27:44.665521972 +0100
@@ -1,0 +2,5 @@
+Tue Nov 17 15:16:47 UTC 2020 - Thorsten Kukuk <[email protected]>
+
+- Add support for LMTP
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ README.md ++++++
--- /var/tmp/diff_new_pack.xX2rRO/_old 2020-11-17 21:27:45.353522631 +0100
+++ /var/tmp/diff_new_pack.xX2rRO/_new 2020-11-17 21:27:45.353522631 +0100
@@ -21,6 +21,7 @@
- `INET_PROTOCOLS` The network interface protocols used for connections.
Valid values are "all", "ipv4", "ipv6" or "ipv4,ipv6". The default value is
"ipv4".
- `MASQUERADE_DOMAINS` Comma separated list of domains that must have their
subdomain structure stripped off.
- `MYDESTINATION` List of domains for which mails are delivered locally
instead of forwarding to another machine.
+- `LMTP=host` Host on which the lmtp service is running. This will
disable the usage of the vmail user account.
- `VIRTUAL_MBOX=[0|1]` Create virtual mail boxes in /var/spool/vmail owned by
user vmail.
- `VMAIL_UID=5000` User ID and group ID of the vmail user for virtual
domains and mailboxes.
- `VIRTUAL_DOMAINS=` Whitespace seperated list of virtual domains, will be
written to `/etc/postfix/vhosts`.
++++++ entrypoint.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/entrypoint/entrypoint.sh new/entrypoint/entrypoint.sh
--- old/entrypoint/entrypoint.sh 2020-11-04 15:53:50.000000000 +0100
+++ new/entrypoint/entrypoint.sh 2020-11-17 16:17:12.000000000 +0100
@@ -154,24 +154,6 @@
}
setup_vhosts() {
- # Create the vmail user with the requested UID, else 5000
- VMAIL_UID="${VMAIL_UID:-5000}"
- if [ -x /usr/sbin/adduser ]; then
- adduser -D -h /var/spool/vmail -g "Virtual Mail User" -u "${VMAIL_UID}"
-s /sbin/nologin vmail
- else
- useradd -d /var/spool/vmail -U -c "Virtual Mail User" -u
"${VMAIL_UID}" vmail
- fi
- if [ $? -ne 0 ]; then
- echo "ERROR: creating of vmail user failed! Aborting."
- exit 1
- fi
-
- if [ ! -d /var/spool/vmail ]; then
- mkdir -p /var/spool/vmail
- chown vmail:vmail /var/spool/vmail
- chmod 775 /var/spool/vmail
- fi
-
if [ "${USE_LDAP}" -eq "1" ]; then
LDAP_BASE_DN=${LDAP_BASE_DN:-"dc=example,dc=org"}
LDAP_SERVER_URL=${LDAP_SERVER_URL:-"ldap://localhost"}
@@ -234,15 +216,41 @@
fi
update_db vmaps
- set_config_value "virtual_mailbox_base" "/var/spool/vmail"
- set_config_value "virtual_minimum_uid" "1000"
- set_config_value "virtual_uid_maps" "static:${VMAIL_UID}"
- set_config_value "virtual_gid_maps" "static:${VMAIL_UID}"
- set_config_value "home_mailbox" "Maildir/"
- # XXX make this configureable and adjust message_size_limit
- set_config_value "virtual_mailbox_limit" "0"
- set_config_value "mailbox_size_limit" "0" # "51200000"
- set_config_value "message_size_limit" "0" # "10240000"
+ if [ -n "${LMTP}" ]; then
+ # Use LMTP to deliver the mail to the user
+
+ set_config_value "virtual_transport" "lmtp:${LMTP}:24"
+ else
+ # Store mails local below /var/spool/vmail
+
+ # Create the vmail user with the requested UID, else 5000
+ VMAIL_UID="${VMAIL_UID:-5000}"
+ if [ -x /usr/sbin/adduser ]; then
+ adduser -D -h /var/spool/vmail -g "Virtual Mail User" -u
"${VMAIL_UID}" -s /sbin/nologin vmail
+ else
+ useradd -d /var/spool/vmail -U -c "Virtual Mail User" -u
"${VMAIL_UID}" vmail
+ fi
+ if [ $? -ne 0 ]; then
+ echo "ERROR: creating of vmail user failed! Aborting."
+ exit 1
+ fi
+
+ if [ ! -d /var/spool/vmail ]; then
+ mkdir -p /var/spool/vmail
+ chown vmail:vmail /var/spool/vmail
+ chmod 775 /var/spool/vmail
+ fi
+
+ set_config_value "virtual_mailbox_base" "/var/spool/vmail"
+ set_config_value "virtual_minimum_uid" "1000"
+ set_config_value "virtual_uid_maps" "static:${VMAIL_UID}"
+ set_config_value "virtual_gid_maps" "static:${VMAIL_UID}"
+ set_config_value "home_mailbox" "Maildir/"
+ # XXX make this configureable and adjust message_size_limit
+ set_config_value "virtual_mailbox_limit" "0"
+ set_config_value "mailbox_size_limit" "0" # "51200000"
+ set_config_value "message_size_limit" "0" # "10240000"
+ fi
}
configure_postfix() {
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]