28 Commits

Author SHA1 Message Date
Sergey Ponomarev
0e413008c8 emailrelay: Add support of build with MbedTLS
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
0d5659690d emailrelay: move config options to Config.in
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
d5e4a8a7e7 emailrelay: update to v2.6
The emailrelay-filter-copy was removed and   --filter=copy: can be used instead.
Minor improvement of description.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
c5604731ca emailrelay: fix reference link
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
0cba893a3d emailrelay: more options
--as-client mode.
dnsbl: to reject bad IPs.
spool_dir and delivery_dir: to set storage on USB disk.
filter: for SpamAssassin.
POP3 options.
Specify interface.
Use --forward-to-some by default.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
7383eb093b emailrelay: conf: TLS split cert and private key
Since v2.3.1 --server-tls-certificate and --client-tls-certificate may be comma separated list of privkey and fullchain so users don't need to merge the both files.
The privkey must be firts, the cert second.
Reflect this in config samples.

Alternatively instead of comma separated the emailrelay allows just pass two --server-tls-certificate options: one for a privkey and second time for a cert.

So the server_tls_certificate option may be a list. But instead to make it easier to configure from UCI let's add a separate option server-tls-key which is dedicated for a privkey.

Similarly, the client-tls-key is a private key part for the --client-tls-certificate

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
ccd014b247 emailrelay: conf: TLS options
The server_tls/client_tls option also requires certs.

server_tls_required
server_tls_certificate
server_tls_verify
client_tls_required
client_tls_certificate
client_tls_verify

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
996b2ec672 emailrelay: fix server_tls
The --server-tls is a boolean option and don't have an arg.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Sergey Ponomarev
caa4f7f8fa emailrelay: early return if not enabled
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-05-21 11:08:36 +02:00
Andre Heider
e7d9c86503 treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This
fixes it and properly enables LTO.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Andre Heider
35f4ef76e0 treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.

Note: This only touches packages which use all three parts
(-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by
this build flag. Some packages only use a subset, and these are left
unchanged for now.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Sergey Ponomarev
735cba83ce emailrelay: update to v2.4.1
The patch seems not needed anymore.
Also remove deprecated PKG_RELEASE:=$(AUTORELEASE)

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2022-12-20 21:20:39 +01:00
Rosen Penev
0bd444e694 emailrelay: don't disable fortify source
GCC8 and 9 are gone.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-04 11:19:33 -08:00
Rosen Penev
d45965e22d emailrelay: fix compilation with GCC11
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-07 14:51:09 -07:00
Rosen Penev
b80af2eb31 emailrelay: update to 2.2
Remove upstreamed patch.

Switch to AUTORELEASE for simplicity.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-12 15:05:49 -08:00
Ilya Lipnitskiy
5d8d4fbbcb treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Rosen Penev
de4ed9178e emailrelay: Update to 2.1
Remove uClibc++ reference. This requires C++11 features not provided by
uClibc++.

Added size optimizations as this package is huge.

Cleaned up Makefile for consistency between packages.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-20 11:43:56 -07:00
Jeffery To
53e1692ae9 treewide: Use default PKG_BUILD_DIR when possible
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-13 02:01:34 +08:00
Rosen Penev
e6919c19cb emailrelay: Remove unnecessary OpenSSL engine include
There's no usage of any ENGINE APIs and trying to include the header
breaks compilation with ENGINE support disabled.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-01 23:35:26 -08:00
Rosen Penev
2b238005c1 emailrelay: Remove SSLv3 option
The next version of OpenSSL will not include support. Removing in advance.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-10-28 12:57:56 -07:00
Othmar Truniger
432cc99d9a emailrelay: add some runtime options
Signed-off-by: Othmar Truniger <github@truniger.ch>
2018-08-20 19:29:41 +02:00
Eneas U de Queiroz
6cf615d90d emailrelay: avoind linking with -lpam
The package seems to link to -lpam even when using --without-pam.  Set
ac_cv_search_pam_end=no to avoid it.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-08-04 15:12:35 -03:00
Rosen Penev
213f482d30 emailrelay: Update to 2.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-07-31 14:40:04 -07:00
Paul Wassi
084a9ee0c1 mail/emailrelay: tune up initscript and config
Previously, configuration of emailrelay was done by fiddling around
with the commandline inside the initscript. Introduce a config file
in /etc/config for basic configuration and at the same time switch
to a procd-style initscript.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-11-17 12:07:08 +01:00
Paul Wassi
e83d0c0d8d mail/emailrelay: cosmetic fixes
This is just a cosmetic thing, therefore no increase of PKG_RELEASE.
- Trailing spaces and tabs
- Add newline to end of file
- Add License info to Makefile
- Move maintainer definition to PKG_MAINTAINER

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-11-16 10:10:41 +01:00
Etienne Champetier
4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Rupan
8fa1833509 emailrelay: bugfix #2401, switched to libstdcpp due to some uclibc++ issues
Signed-off-by: Federico Di Marco <fededim@gmail.com>
2016-12-07 15:39:08 +01:00
Rupan
5758939831 emailrelay: added configuration options
- moved from net to mail category
- removed no-ssl package and added ssl support as configuration option (default enabled)
- added configuration option to support extended logging (default disabled)
- disabled build of test tools
- added LEDE compatibility (support for openssl without SSL3)

Signed-off-by: Federico Di Marco <fededim@gmail.com>
2016-10-04 12:23:17 +02:00