Skip to content

Conversation

@a16bitsysop
Copy link

and update for new version of postfix.

a16bitsysop and others added 2 commits March 17, 2020 16:44
Change postfix version to new version and change hiredis path as should now be able install with a package
@titusjose
Copy link
Owner

@a16bitsysop Thanks for the patch.

Since I have not been using this for a while, I do not have any setup handy to check if this patch compiles with postfix version that you have created diff.

Have you tested this patch?

README.md Outdated
@@ -1,14 +1,14 @@
### Postfix Redis
This is a patch to the postfix 2.9.3 MTA to add a lookup table for redis database.
This is a patch to the postfix 3 MTA to add a lookup table for redis database.
Copy link
Owner

Choose a reason for hiding this comment

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

Can we be more specific of the postfix version here and not just major version.

Copy link
Author

Choose a reason for hiding this comment

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

ok will have a look into it

README.md Outdated
This patch depends on hiredis client library.

Apply the patch to a vanilla postfix 2.9.3 source tree
Apply the patch to a vanilla postfix 3 source tree
Copy link
Owner

Choose a reason for hiding this comment

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

Can we be more specific of the postfix version here and not just major version.

README.md Outdated
% make makefiles CCARGS="-DHAS_REDIS -I/usr/include/hiredis" AUXLIBS="-L/usr/lib -lhiredis"
Change the include and library location for hiredis client library if required.

### Compile postfix
Copy link
Owner

Choose a reason for hiding this comment

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

Which distribution did you use? Would'nt the include directory change from distribution to distribution.

Copy link
Author

Choose a reason for hiding this comment

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

I used alpine, but there is a package on ubuntu as well. Will install it and check it installs to /usr or /usr/local

@titusjose
Copy link
Owner

@a16bitsysop If you intent to use this in your project I would like to change this project to be dyncamically loaded database plugin for postfix 3 and above.

@a16bitsysop
Copy link
Author

Yes I am planning to, but just got to the getting it to compile (in alpine) stage.

delete hiredis.h as it is in hiredis package
@a16bitsysop
Copy link
Author

Compiles postfix-redis.so but doesn’t install it, and not linked to libhiredis if ldd it.

@a16bitsysop
Copy link
Author

a16bitsysop commented Mar 24, 2020

compiles, links, and installs now. Tested with postconf and postmap queries

@titusjose
Copy link
Owner

@a16bitsysop Thanks for those quick changes. Sorry for the delays, I have not been able to focus on this because of the ongoing issues around here. I did glimpse through the patch. Just wanted to know if alpine ships the postfix package with dynamicmaps support like what debian and derivative do. For example, ubuntu latest version ships postfix with dynaicmaps and all supported database plugins as separate packages too.

@a16bitsysop
Copy link
Author

Yes they do the same, the main alpine packages are:

postfix-lmdb-3.4.9-r0
postfix-ldap-3.4.9-r0
postfix-mysql-3.4.9-r0
postfix-3.4.9-r0
postfix-stone-3.4.9-r0
postfix-pcre-3.4.9-r0
postfix-pgsql-3.4.9-r0
postfix-sqlite-3.4.9-r0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants