Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ichdasich
Copy link
Contributor

Adds support for opensmtpd, strictly working with the mailq command. Related to #1495, but submitting this as a subsequent pull requests depends on this change.

@ichdasich ichdasich changed the title added support for opensmtpd added support for opensmtpd to check_mailq.pl Mar 25, 2022
@waja waja added this to the 2.4 milestone Feb 3, 2023
@RincewindsHat
Copy link
Member

ok, finally came around to testing this and on a debian 11 this doesn't work out of the box (or I am doing something wrong).
If I understand correctly, mailq is not provided by the package opensmtp. What actually works though, is using smtpctl show queue on debian.
Now, I don't know how common that setup is.
I guess we have to test whether PATH_TO_MAILQ is empty and search for smtpctl then, execute that and use the output.

@RincewindsHat
Copy link
Member

                if ( $utils::PATH_TO_MAILQ eq "" ) {
                        # Got no Mailq
                        if (! open (MAILQ, "$sudo /usr/sbin/smtpctl show queue | ")) {
                                print "ERROR: could not open  $sudo /usr/sbin/smtpctl\n";
                                exit $ERRORS{'UNKNOWN'};
                        }

something like that, but probably less prone to breaking

@waja
Copy link
Member

waja commented Sep 19, 2023

@ichdasich what @RincewindsHat might want to say ... can you maybe try to implement his suggested changes? ;)

@waja waja modified the milestones: 2.4, 2.3.6 Oct 18, 2023
@waja waja modified the milestones: 2.3.6, 2.4.1 Jul 23, 2024
@RincewindsHat RincewindsHat modified the milestones: 2.4.1, 3.1.0 Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants