Commit Graph

51 Commits

Author SHA1 Message Date
Felix Matouschek 0db2d27801 postfix: Fix enabling PCRE support
After the change from PCRE to PCRE2 when enabling POSTFIX_PCRE the
resulting postfix build no longer reports pcre as an available module.
(postfconf -m). This is caused by using the wrong syntax for the
HAS_PCRE build flag (HAS_PCRE2 vs HAS_PCRE=2). This fixes the build flag
to use the correct syntax.

Signed-off-by: Felix Matouschek <felix@matouschek.org>
2023-12-01 11:24:34 -08:00
Christian Marangi f585559690
postfix: move to PCRE2 library
Move to PCRE2 library as PCRE is EOL and won't receive any security
updates anymore.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-29 15:18:19 +01:00
Christian Marangi 4b7d365b86
postfix: bump to 3.8.2 release
Bump postfix to 3.8.2 release.

Refresh patches and drop patch 502-detect-glibc.patch as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-29 15:16:41 +01:00
Hauke Mehrtens 33786efe66 postfix: Fix compile against glibc 2.36
This backports a change from postfix 3.8, I do not know exactly why it
detects Linux 6 here, but this is needed to fix compilation with glibc
2.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-19 07:30:15 +08:00
Michal Vasilek d4feef97e6
postfix: fix download failure
cdn.postfix.johnriley.me serves a certificate for a different domain
name.

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-07-17 12:03:42 +02:00
Sergey V. Lobanov 11a79e9aa2 Revert "postfix: fix build on macos"
This reverts commit 9d8171aa06.
2022-02-11 17:56:07 -08:00
Sergey V. Lobanov 9d8171aa06 postfix: fix build on macos
macos build fails due to two reasons:
1. using build host ar and ranlib tools
2. using uname -r to get kernel version

First issue is fixed by specifying ar and ranlib from toolchain
Second issue is fixed by specifying kernel release major version=5
Using 'uname -r' from build host for cross-compiling is not a good
idea even for Linux build host

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-01-25 15:32:39 -08:00
Hauke Mehrtens 99fc0216e0 postfix: Fix compile with glibc 2.34
This adds a patch from Open embedded to fix compilation with glibc 2.34.
This patch was taken from here:
https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-daemons/postfix/files/0007-correct-signature-of-closefrom-API.patch

It fixes the following build problem:
/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-11.2.0_glibc/include/unistd.h:366:13: error: conflicting types for 'closefrom'; have 'void(int)'
  366 | extern void closefrom (int __lowfd) __THROW;
      |             ^~~~~~~~~
In file included from attr_clnt.c:87:
./sys_defs.h:1511:12: note: previous declaration of 'closefrom' with type 'int(int)'
 1511 | extern int closefrom(int);
      |            ^~~~~~~~~
make: *** [Makefile:192: attr_clnt.o] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-01-09 15:25:13 -08:00
Matthew Hagan 1f61285463 postfix: prevent displaying config options when not enabled
Postfix's options should not be visible in the config when Postfix
is not enabled.

Secondly, place the config option menu behind the Postfix option rather
than underneath.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
2021-11-08 17:56:46 -08:00
Rosen Penev 788afe757d
postfix: update to 3.5.8
Pass TARGET_[C/LD]FLAGS to reduce filesize.

Fix glibc compilation by adding lresolv.

Remove uClibc-ng patch as that's now gone.

Refreshed other patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-31 02:29:46 -08:00
Florian Eckert fef5dda5f6 postfix: use new extra_command function definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 08:50:34 +01:00
Rosen Penev c9ad71dbfd
postfix: update to 3.5.7
Fix compilation with GCC10.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-10-11 19:11:53 -07:00
Lucian Cristian 4cde1f8f8b postfix: update to 3.5.0
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-04-10 02:45:00 +03:00
Sebastian Kemper 3872e13cc3 postfix: update tinycdb dependency
tinycdb now installs a shared lib alongside the static archive. postfix
will use the shared lib, hence this commit updates the dependency.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-15 10:51:13 +01:00
W. Michael Petullo d87f61a1f1 postfix: remove 100-fsstat.patch
Resolves #9970.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-11-28 23:42:55 -05:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Denis Shulyaka f2d98ef395 postfix: bump version
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2019-07-14 00:37:56 +03:00
Rosen Penev 65d4442680
postfix: Fix compilation with uClibc-ng
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-05-05 13:31:09 -07:00
Rosen Penev c7a52d9a95
postfix: Update to 3.4.4
Switched to HTTP from FTP for one of the mirrors.

Rebased Patches.

Removed ENGINES patch as it is only relevant for OpenSSL 1.0.2.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-03-28 19:50:14 -07:00
Rosen Penev d0e42a5f49 postfix: Fix compilation without OpenSSL ENGINE
While ENGINE is not actually used, the header being included
unconditionally as well as the cleanup function being called breaks
compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-01 23:39:03 -08:00
Rosen Penev 2f900553ed
postfix: Update to 3.3.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-17 14:12:55 -08:00
Lucian Cristian 032b486d59 postfix: increase start priority
on some slow system, postfix starts before network, delaying the init helps

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2018-08-29 21:15:55 +03:00
Lucian Cristian 405bb186a3 postfix: add mysql support
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2018-08-29 15:45:17 +03:00
Denis Shulyaka dbbeae5944 postfix: version update to 3.3.1
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2018-05-28 21:51:34 +03:00
Denis Shulyaka 405ea1976c postfix: version update to 3.3.0
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2018-04-08 00:37:49 +03:00
Matthias Schiffer 6e3a609d07
treewide: remove superfluous + signs from PKG_BUILD_DEPENDS
A + sign does not have meaning in build depends.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-07 20:08:31 +01:00
Val Kulkov e4d3afeabd postfix: version update, fix file descriptor passing
Update to the latest stable release.

Fix check for file descriptor passing that causes libmilter's runtime
error when libmilter/OpenDKIM are used with Postfix:
"unix_send_fd: your system has no support for file descriptor passing"

The issue with the file descriptor passing has been fixed upstream in
20170618 update to Postfix v3.3 experimental release. The patch must
therefore be removed before compiling Postfix v3.3.*

Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
2017-11-19 11:50:18 -05:00
Val Kulkov ed3d8020bc postfix: fix uid/gid conflicts, general cleanup
Fix uid/gid conflict with package icecast (uid=87, gid=87) and
package pianod (uid=88, gid=88) by claiming uid/gid 25 for postfix
instead of 87 and uid/gid 26 for postconf instead of 88.

Remove main.cf.default that is not used by any Postfix module.
The default configuration parameters are hardcoded into postconf
and they are available via "postconf -d <parameter>".
main.cf.default is therefore unnecessary.

"mydomain" parameter should be deduced from the domain configuration
setting in /e/c/dhcp rather than from "hostname" in /e/c/system
which is often just a hostname without the domain name component.

"mynetworks" parameter is unnecessary where "mynetworks_style" is
defined.

The change of the location of data_directory, queue_directory and
mail_spool_directory from /var/lib/postfix, /var/spool/postfix and
/var/mail to /data/postfix/lib, /data/postfix/spool and
/data/postfix/mail has been postponed until the author of this
commit and the maintainer of this package has had a meaningful
opportunity to consult with LEDE/OpenWrt developers on the preferred
mount point for the persistent data storage device.

Change the criteria for executing the post-installation script.
Invoke postinst() where the value of "myhostname" parameter in main.cf
is not defined rather than where "$config_directory"/opkg_postinst is
present with the value of "$config_directory" hardcoded to
"$IPKG_INSTROOT"/etc/postfix in /etc/init.d/postfix.

Enable PCRE support by default.

Remove the code making entries in /etc/sysupgrade.conf and instead
define configuration files to be saved during a sysupgrade in
Makefile's Package/postfix/conffiles section.

Move the creation of mail_spool_directory from host to target in
order to enable change of directory ownership to 'postfix' when
postinit() is executed on the target.

Avoid postfix restart in postinst script that results in an
error message during opkg install process.

Enable Postfix autostart by creating a link in /etc/rc.d/ on
installation.

Make the code less verbose.

Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
2017-11-15 10:17:08 -05:00
Lucian Cristian 6e2ba26cd0 postfix: version bump to 3.2.3
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-10-03 20:18:47 +03:00
Denis Shulyaka ab4e5c53de postfix: less overlayfs rewrites
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2017-08-02 21:43:36 +03:00
Denis Shulyaka b80b17db6b postfix: fix sendmail symlink
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2017-08-02 16:23:08 +03:00
Lucian Cristian 8b1abfb931 Postfix: security update to 3.2.2, add PostgreSQL and PCRE support
refresh patches
add PKG_CONFIG_DEPENDS

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-07-18 15:51:20 +03:00
Lucian Cristian 2fdca4d5a5 postfix: Add SQLite support
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-03-08 02:02:03 +02:00
Lucian Cristian 154a0da724 postfix: fix musl compile without POSTFIX_TLS
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-03-08 01:59:38 +02:00
Denis Shulyaka 26941653f5 postfix: update to 3.1.4
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2017-02-03 19:11:25 +03:00
Denis Shulyaka c2e98055eb postfix: version update to 3.1.3
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2016-11-03 17:58:38 +03:00
Denis Shulyaka eadf60cf82 postfix: version update to 3.1.0
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2016-02-27 15:48:29 +03:00
Denis Shulyaka 2e150391dc postfix: version update to 3.0.4
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2016-02-26 00:22:09 +03:00
Denis Shulyaka c98b5ace9e postfix: version update to 3.0.3.
Some minor issues fixed.
SMTPUTF8 support option added (by Val Kulkov). Disabled by default because of icu library size.
2016-02-09 11:25:13 +03:00
Jo-Philipp Wich abcadcbede postfix: fix musl compatibility
The current package patches `makedefs` to probe for the existance
of the `nsl` and `resolv` libraries but uses the wrong variables
for the prefix, leading to `makedefs` probing the host directories,
not the staging dir ones.

Replace `$PKG_BUILD_DIR` with `$STAGING_DIR` to perform the library
tests in the correct directory.

Fixes the following error spotted by doing test builds against musl
which does not provide a `libnsl`:

    .../mips-openwrt-linux-musl/bin/ld: cannot find -lnsl
    collect2: error: ld returned 1 exit status
    make: *** [master] Error 1

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 14:55:33 +02:00
Denis Shulyaka 14c5938398 postfix: update to 3.0.1
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2015-05-10 22:35:34 +03:00
Steven Barth 5d4e18786f Merge pull request #912 from Shulyaka/master
postfix: upgrade to version 3.0.0
2015-02-16 09:47:34 +01:00
Denis Shulyaka b7bc73104c postfix: upgrade to version 3.0.0
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2015-02-16 01:17:45 +03:00
Steven Barth 6abf491ff3 Merge pull request #604 from Shulyaka/master
postfix: broken mynetworks parameter default value
2014-12-07 11:19:03 +01:00
Denis Shulyaka 9adfea21f9 postfix: broken mynetworks parameter default value
Fixed an issue with the default parameter value.

1. By default, the init script set ip address instead of network address in the parameter value (i.e. 192.168.1.1/24 instead of 192.168.1.0/24)
2. Dynamic address were not caught by the init script

As a result, if the mynetworks parameter was left default, Postfix would have rejected the mails with the following message in the logs:

Sat Dec  6 23:26:45 2014 mail.info postfix/smtpd[22806]: NOQUEUE: reject: RCPT from unknown[104.167.106.30]: 451 4.3.0 <ds_gitcommit@shulyaka.org.ru>: Temporary lookup failure; from=<delivery@mx.sailthru.com> to=<ds_gitcommit@shulyaka.org.ru> proto=ESMTP helo=<mx-indiegogo-b.sailthru.com>
Sat Dec  6 23:26:45 2014 mail.warn postfix/smtpd[22806]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead

This commit fixes that behavior for the new installations.

Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2014-12-07 01:00:30 +03:00
Steven Barth 40aaae1f9d Merge pull request #582 from Shulyaka/master
postfix: fixed installing to the filesystem image
2014-12-01 08:53:28 +01:00
Denis Shulyaka 06a096858d postfix: fixed installing to the filesystem image
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2014-12-01 01:52:13 +03:00
Ian Leonard ac7cd4c6e6 misc: correct typo in Makefiles for PKG_LICENSE_FILES
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2014-11-24 23:43:37 -08:00
Denis Shulyaka 250f1f2ade postfix: Added experimental support for Berkeley DB (btree files).
Note that hash files are currently not supported by OpenWRT package of Berkeley DB.
CDB is still default.

Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2014-11-01 13:20:17 +03:00
Denis Shulyaka 977968bf65 postfix 2.11.3
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
2014-10-25 21:21:31 +04:00