wader / postfix-relay

Postfix SMTP relay docker image
https://hub.docker.com/r/mwader/postfix-relay/
MIT License
123 stars 41 forks source link

qshape tool not working #91

Open xenuser opened 1 year ago

xenuser commented 1 year ago

qshape is a great Postfix tool to display deferred queue mails grouped by target domains. You can read about it here: https://www.postfix.org/QSHAPE_README.html

When trying to use that tool in this container, it looks like it is not working: qshape Can't locate File/Find.pm in @INC (you may need to install the File::Find module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/sbin/qshape line 114. BEGIN failed--compilation aborted at /usr/sbin/qshape line 114.

Possible fix: apt-get install libpath-tiny-perl

perl -MCPAN -e 'install "File::HomeDir"'

wader commented 1 year ago

Hey! so in the current image qshape is half-installed somehow? if so some incorrect package dependency thing going on?

xenuser commented 1 year ago

Hey there, I am not really an expert for this Perl modules stuff. To me, it looks like this module is missing and it did not get installed automatically through dependencies. As CPAN was not installed, I am not sure what would actually resolve dependencies of Perl modules...

wader commented 1 year ago

I see, i wonder if it is the --no-install-recommends that messes thing up? could you try without? but maybe lots of other things will get installed... but maybe good things?

wader commented 1 year ago

Did you get anywhere with this?

xenuser commented 1 year ago

I'm currently working on another issue that I've found that is more important to me. Will come back to this issue here when I have some time left on a quiet afternoon

wader commented 1 year ago

👍

Found https://github.com/mailcow/mailcow-dockerized/issues/1123 seems to suggest installing perl should be enough