Package Details: postsrsd 2.0.8-1

Git Clone URL: https://aur.archlinux.org/postsrsd.git (read-only, click to copy)
Package Base: postsrsd
Description: Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix
Upstream URL: https://github.com/roehling/postsrsd
Licenses: GPL2
Submitter: fordprefect
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 2
Popularity: 0.000000
First Submitted: 2016-03-30 16:15 (UTC)
Last Updated: 2023-09-08 11:44 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

dreieck commented on 2023-03-27 20:50 (UTC)

Currently, configuration fails for me with

CMake Error at CMakeLists.txt:323 (install):
  install FILES given no DESTINATION!

Full terminal output of build():

==> Starting build()...
-- The C compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for grp.h
-- Looking for grp.h - found
-- Looking for netdb.h
-- Looking for netdb.h - found
-- Looking for poll.h
-- Looking for poll.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/file.h
-- Looking for sys/file.h - found
-- Looking for sys/inotify.h
-- Looking for sys/inotify.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/un.h
-- Looking for sys/un.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for wait.h
-- Looking for wait.h - found
-- Looking for close_range
-- Looking for close_range - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for _strnicmp
-- Looking for _strnicmp - not found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned long
-- Check size of unsigned long - done
CMake Error at CMakeLists.txt:323 (install):
  install FILES given no DESTINATION!


-- Turned off installing because Check is a subproject.
-- Turned off building tests because Check is a subproject.
CMake Deprecation Warning at build/_deps/check-src/CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0076 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Looking for 3 include files sys/types.h, ..., inttypes.h
-- Looking for 3 include files sys/types.h, ..., inttypes.h - found
-- Looking for 4 include files sys/types.h, ..., limits.h
-- Looking for 4 include files sys/types.h, ..., limits.h - found
-- Looking for 5 include files sys/types.h, ..., regex.h
-- Looking for 5 include files sys/types.h, ..., regex.h - found
-- Looking for 7 include files sys/types.h, ..., stdarg.h
-- Looking for 7 include files sys/types.h, ..., stdarg.h - found
-- Looking for 9 include files sys/types.h, ..., stdlib.h
-- Looking for 9 include files sys/types.h, ..., stdlib.h - found
-- Looking for 10 include files sys/types.h, ..., string.h
-- Looking for 10 include files sys/types.h, ..., string.h - found
-- Looking for 11 include files sys/types.h, ..., strings.h
-- Looking for 11 include files sys/types.h, ..., strings.h - found
-- Looking for 15 include files sys/types.h, ..., pthread.h
-- Looking for 15 include files sys/types.h, ..., pthread.h - found
-- Looking for 16 include files sys/types.h, ..., windows.h
-- Looking for 16 include files sys/types.h, ..., windows.h - not found
-- Looking for fork
-- Looking for fork - found
-- Looking for getline
-- Looking for getline - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for _getpid
-- Looking for _getpid - not found
-- Looking for _strdup
-- Looking for _strdup - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Test HAVE_PTHREADS_FLAG
-- Performing Test HAVE_PTHREADS_FLAG - Success
-- Looking for INT64_MAX
-- Looking for INT64_MAX - found
-- Looking for INT64_MIN
-- Looking for INT64_MIN - found
-- Looking for UINT32_MAX
-- Looking for UINT32_MAX - found
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Looking for SIZE_MAX
-- Looking for SIZE_MAX - found
-- Looking for SSIZE_MAX
-- Looking for SSIZE_MAX - found
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE - Failed
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of unsigned
-- Check size of unsigned - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of unsigned __int64
-- Check size of unsigned __int64 - failed
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of intmax_t
-- Check size of intmax_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of uintmax_t
-- Check size of uintmax_t - done
-- Check size of clock_t
-- Check size of clock_t - done
-- Check size of clockid_t
-- Check size of clockid_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of timer_t
-- Check size of timer_t - done
-- Looking for floor in m
-- Looking for floor in m - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for subunit_test_start in subunit
-- Looking for subunit_test_start in subunit - not found
-- The following features have been disabled:

 * WITH_MILTER, run PostSRSd as milter
 * WITH_SQLITE, use SQLite as database backend
 * WITH_REDIS, use Redis as database backend
 * GENERATE_SRS_SECRET, generate missing /etc/postsrsd.secret on install

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

Regards!

mezcal commented on 2023-03-09 10:52 (UTC) (edited on 2023-03-09 10:53 (UTC) by mezcal)

Hello, I am thinking to upgrade to version 2. In the config file is unprivileged-user = "nobody". Should I left it? Is it better to run as postsrsd user? unprivileged-user = "postsrsd"

fordprefect commented on 2023-01-18 13:49 (UTC)

@peippo: thanks for testing and feedback, I implemented the requested changes.

peippo commented on 2023-01-18 09:49 (UTC)

A slight correction: it seems /var/spool/postfix/srs should not be created at all, if postfix is installed as well (it should be, as communication between postfix and postsrsd is now exclusively over unix sockets)

peippo commented on 2023-01-18 08:42 (UTC)

Hi! @fordprefect, I found a couple minor changes required to build in a chroot and on systems that do not have postsrsd installed, already:

1) postsrsd needs systemd as a dependency, and 2) creating /var/spool/postfix/srs should happen in the tmpfiles.d (at build/packaging time, the user does not exist)

Other than that, works like a charm, thank you so much!

fordprefect commented on 2023-01-06 21:42 (UTC)

The package major version has been updated, for migration hints see Readme. Please report any bugs.

fordprefect commented on 2022-10-24 09:46 (UTC)

@jkl: thanks for looking into this, and providing explanation and fix. Implemented.

jkl commented on 2022-10-22 17:28 (UTC) (edited on 2022-10-22 17:29 (UTC) by jkl)

@fordprefect The package is broken with the error reported by @dreieck when building in a clean environment such as a chroot because systemd and systemctl are not dependencies of base-devel. Therefore INIT_FLAVOR is not set and the config files are never installed. Fixed by changing the cmake line:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF -DCONFIG_DIR=/etc/postsrsd -DINIT_FLAVOR=systemd

fordprefect commented on 2022-04-11 07:37 (UTC)

@dreieck: Sorry, cannot reproduce. Make sure to build in a clean environment. If that doesn't help report back with more detail please.

dreieck commented on 2022-04-10 19:07 (UTC)

I get the following error in package():

==> Starting package()...
Consolidate compiler generated dependencies of target postsrsd_tests
Consolidate compiler generated dependencies of target postsrsd
[100%] Built target postsrsd_tests
[100%] Built target postsrsd
Install the project...
-- Install configuration: "Release"
-- Installing: /home/[...]/postsrsd/pkg/postsrsd/usr/share/man/man8/postsrsd.8
-- Installing: /home/[...]/postsrsd/pkg/postsrsd/usr/sbin/postsrsd
-- Installing: /home/[...]/postsrsd/pkg/postsrsd/usr/share/postsrsd/postsrsd-systemd-launcher
-- Installing: /home/[...]/postsrsd/pkg/postsrsd/usr/share/doc/postsrsd/README.md
-- Installing: /home/[...]/postsrsd/pkg/postsrsd/usr/share/doc/postsrsd/README_UPGRADE.md
-- Installing: /home/[...]/postsrsd/pkg/postsrsd/usr/share/doc/postsrsd/main.cf.ex
-- Chroot jail: /home/[...]/postsrsd/pkg/postsrsd//usr/lib/postsrsd
sed: can't read /home/[...]/postsrsd/pkg/postsrsd/etc/postsrsd/postsrsd: No such file or directory
==> ERROR: A failure occurred in package().