Koozali.org: home of the SME Server

qmail delivery problem after restore from sme9.2 onto new sme10rc1

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
I've got an issue with mail delivery on an updated sme10 machine.
At first I thought it was something to do with importing my old users but have created a new user and get the same issue.
mail is accepted for any local user but fails to be delivered, it just gets spooled.
extract from qmail log

@400000006084ece72fe1fcec starting delivery 4: msg 2274185172 to local sam@fwbox10.sages.com.au
@400000006084ece72fe208a4 status: local 1/20 remote 0/20
@400000006084ece730bf8bac delivery 4: deferral: /bin/sh:_/usr/bin/maildrop:_No_such_file_or_directory/
@400000006084ece730bfce14 status: local 0/20 remote 0/20


I get the same result if I send a test email (using webmail but similar results from server status emails) to another local user or to myself.

It appears to be a common fault as it seems to impact any local email delivery.
I can deliver email to external destinations ok.

I still have my older sme9.2 running so don't have the ability to see if external emails are delivered as expected.

I'm currently using the bulldozer technique of comparing things between my sme9.2 and sme10 box to try and see any differences. ie file permissions/owners/paths etc.
Any pointers welcome
Rod

[edit] From the error message it looks like a file/folder/permission issue but I'm struggling to see what and/or where
...

Offline Jean-Philippe Pialasse

  • *
  • 2,760
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: qmail delivery problem after restore from sme9.2 onto new sme10rc1
« Reply #1 on: April 25, 2021, 07:18:56 AM »
Quote
@400000006084ece730bf8bac delivery 4: deferral: /bin/sh:_/usr/bin/maildrop:_No_such_file_or_directory/

this clearly states that the file /usr/bin/maildrop is missing

seems that SME9 was providing it from anaconda
Code: [Select]
rpm -qf /usr/bin/maildrop
maildrop-2.5.0-13.el6.x86_64
# yum info maildrop
Nom        : maildrop
Architecture        : x86_64
Version     : 2.5.0
Révision     : 13.el6
Taille        : 5.9 M
Dépôt         : installed
Depuis le dépôt   : anaconda-base-201610081534.x86_64

good catch we do not have it


Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: qmail delivery problem after restore from sme9.2 onto new sme10rc1
« Reply #2 on: April 25, 2021, 07:23:07 AM »
I've been reading that error message all morning and read it as an error message from maildrop. duh!
[edit] confirm that the maildrop is in sme9.2 and missing on 10rc1
« Last Edit: April 25, 2021, 07:24:57 AM by sages »
...

Offline Jean-Philippe Pialasse

  • *
  • 2,760
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: qmail delivery problem after restore from sme9.2 onto new sme10rc1
« Reply #3 on: April 25, 2021, 07:31:26 AM »
however, could you tell me more on contribs installed and template custom ?


I see no trace of call of maildrop on my SME10 systems

Code: [Select]
/sbin/e-smith/audittools/templates
/sbin/e-smith/audittools/newrpms

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: qmail delivery problem after restore from sme9.2 onto new sme10rc1
« Reply #4 on: April 25, 2021, 07:40:12 AM »
[root@fwbox10 bin]# /sbin/e-smith/audittools/templates
/etc/e-smith/templates-custom/etc/raddb/users/40ldap: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/crontab/clamav: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/modules.conf/10i2c: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyMulticast: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/fail2ban/jail.conf/99wordpress: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/41go-into: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/45prune: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/php-fpm.d/www.conf/15Nextcloud: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/rsyslog.conf/12remotelog: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/ssh/ssh_config/30Ciphers: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/sysconfig/syslog/90AllowRemoteSyslog: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/qmail/control/badmailfromto/template-begin: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31badmailfromto: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/10earlytalker: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/17check_basicheaders: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/31badmailfromto: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/17check_basicheaders: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/05auth_cvm_unix_local: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/31badmailfromto: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/80relayFromLocalNetwork: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/opt/wordpress/wp-config.php/05multi: MANUALLY_ADDED, ADDITION
[root@fwbox10 bin]# /sbin/e-smith/audittools/newrpms
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.ventraip.net.au
 * smeaddons: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
 * updates: mirror.ventraip.net.au
Extra Packages
GeoIP.x86_64                              1.6.12-9.el7.sme          @smecontribs
GeoIP-GeoLite-data.noarch                 2018.06-7.el7.sme         @smecontribs
GeoIP-GeoLite-data-extra.noarch           2018.06-7.el7.sme         @smecontribs
ImageMagick6-libs.x86_64                  6.9.12.8-1.el7.remi       @remi-safe
aoetools.x86_64                           36-1.4                    installed
atop.x86_64                               2.6.0-5.el7               @epel
awstats.noarch                            7.8-2.el7                 @smecontribs
fail2ban.noarch                           0.11.1-10.el7             @epel
fail2ban-firewalld.noarch                 0.11.1-10.el7             @epel
fail2ban-sendmail.noarch                  0.11.1-10.el7             @epel
fail2ban-server.noarch                    0.11.1-10.el7             @epel
hddtemp.x86_64                            0.3-0.31.beta15.el7       @smecontribs
openvpn.x86_64                            2.4.10-1.el7              @smecontribs
perl-Array-Compare.noarch                 3.0.0-1.of.el7            @smecontribs
perl-B-Hooks-EndOfScope.noarch            0.24-1.of.el7             @smecontribs
perl-B-Hooks-OP-Check.x86_64              0.22-1.of.el7             @smecontribs
perl-Class-Load-XS.x86_64                 0.08-1.of.el7             @smecontribs
perl-Class-Method-Modifiers.noarch        2.13-1.of.el7             @smecontribs
perl-Class-XSAccessor.x86_64              1.19-2.el7                @smecontribs
perl-Clone-PP.noarch                      1.06-1.of.el7             @smecontribs
perl-Data-Dumper-Concise.noarch           2.022-1.of.el7            @smecontribs
perl-Data-IEEE754.noarch                  0.01-1.of.el7             @smecontribs
perl-Data-Printer.noarch                  0.35-1.of.el7             @smecontribs
perl-Data-Validate-IP.noarch              0.27-13.el7               @smecontribs
perl-DateTime.x86_64                      2:1.10-1.of.el7           @smecontribs
perl-DateTime-Locale.noarch               0.4500-1.of.el7           @smecontribs
perl-Devel-GlobalDestruction.noarch       0.14-1.of.el7             @smecontribs
perl-Eval-Closure.noarch                  0.11-1.of.el7             @smecontribs
perl-File-HomeDir.noarch                  1.002-1.of.el7            @smecontribs
perl-Geo-IP.x86_64                        1.45-1.of.el7             @smecontribs
perl-GeoIP2.noarch                        2.001002-1.of.el7         @smecontribs
perl-Hash-FieldHash.x86_64                0.14-1.of.el7             @smecontribs
perl-Lexical-SealRequireHints.x86_64      0.011-1.of.el7            @smecontribs
perl-List-AllUtils.noarch                 0.08-1.of.el7             @smecontribs
perl-MRO-Compat.noarch                    0.12-2.el7                @smecontribs
perl-Math-Int128.x86_64                   0.18-1.of.el7             @smecontribs
perl-Math-Int64.x86_64                    0.52-1.el7                @smecontribs
perl-MaxMind-DB-Common.noarch             0.040000-1.of.el7         @smecontribs
perl-MaxMind-DB-Reader.noarch             1.000004-1.of.el7         @smecontribs
perl-Module-Implementation.noarch         0.09-1.of.el7             @smecontribs
perl-Module-Runtime.noarch                0.016-1.of.el7            @smecontribs
perl-Moo.noarch                           2.004004-2.of.el7         @smecontribs
perl-MooX-StrictConstructor.noarch        0.006-1.of.el7            @smecontribs
perl-MooX-Types-MooseLike.noarch          0.25-1.of.el7             @smecontribs
perl-Moose.x86_64                         2.1210-2.of.el7           @smecontribs
perl-Net-Works.noarch                     0.21-1.of.el7             @smecontribs
perl-Params-Classify.x86_64               0.013-7.el7               @smecontribs
perl-Params-Validate.x86_64               1.30-1.of.el7             @smecontribs
perl-Role-Tiny.noarch                     2.001004-1.of.el7         @smecontribs
perl-Sort-Naturally.noarch                1.03-8.el7                @smecontribs
perl-Sub-Exporter-Progressive.noarch      0.001013-1.of.el7         @smecontribs
perl-Sub-Identify.x86_64                  0.10-1.of.el7             @smecontribs
perl-Sub-Install.noarch                   0.928-1.of.el7            @smecontribs
perl-Sub-Name.x86_64                      0.26-1.of.el7             @smecontribs
perl-Sub-Quote.noarch                     2.006006-1.of.el7         @smecontribs
perl-Test-Warnings.noarch                 0.016-1.of.el7            @smecontribs
perl-Throwable.noarch                     0.200011-1.of.el7         @smecontribs
perl-Try-Tiny.noarch                      0.22-1.of.el7             @smecontribs
perl-Unicode-IMAPUtf7.noarch              2.01-1.of.el7             @smecontribs
perl-Variable-Magic.x86_64                0.62-1.of.el7             @smecontribs
perl-bareword-filehandles.x86_64          0.007-1.of.el7            @smecontribs
perl-indirect.x86_64                      0.39-1.of.el7             @smecontribs
perl-multidimensional.x86_64              0.014-1.of.el7            @smecontribs
perl-namespace-autoclean.noarch           0.24-1.of.el7             @smecontribs
perl-namespace-clean.noarch               0.25-1.of.el7             @smecontribs
perl-strictures.noarch                    2.000006-1.of.el7         @smecontribs
php74.x86_64                              1.0-3.el7.remi            @remi-safe
php74-php-gmp.x86_64                      7.4.16-1.el7.remi         @remi-safe
php74-php-pecl-apcu.x86_64                5.1.20-1.el7.remi         @remi-safe
php74-php-pecl-imagick.x86_64             3.4.4-17.el7.remi         @remi-safe
php74-php-pecl-inotify.x86_64             3.0.0-1.el7.remi          @remi-safe
php74-php-pecl-mcrypt.x86_64              1.0.4-1.el7.remi          @remi-safe
php74-php-smbclient.x86_64                1.0.6-1.el7.remi          @remi-safe
phpMyAdmin.noarch                         5.1.0-1.el7.sme           @smecontribs
phpki-ng.noarch                           0.84-10.el7.sme           @smetest
pkcs11-helper.x86_64                      1.11-3.el7                @smecontribs
smeserver-awstats.noarch                  1.4-3.el7.sme             @smecontribs
smeserver-check4updates.noarch            0.0.4-4.el7.sme           @smecontribs
smeserver-email-management.noarch         1.3-5.el7.sme             @smecontribs
smeserver-fail2ban.noarch                 9:0.1.18-11.el7.sme       @smedev
smeserver-geoip.noarch                    1.2-18.el7.sme            @smecontribs
smeserver-hwinfo.noarch                   1.2-4.el7.sme             @smetest
smeserver-letsencrypt.noarch              0.5-17                    @smecontribs
smeserver-mailsorting.noarch              1.4-12.el7.sme            @smecontribs
smeserver-mailstats.noarch                1.1-16.el7.sme            @smecontribs
smeserver-mod_dav.noarch                  1.1-6.el7.sme             @smecontribs
smeserver-nextcloud.noarch                1.2.0-7.el7.sme           @smetest
smeserver-password.noarch                 1.2.0-12.el7.sme          @smetest
smeserver-php.x86_64                      3.0.0-34.el7.sme          @smetest
smeserver-phpki-ng.noarch                 0.3-5.el7.sme             @smetest
smeserver-phpmyadmin.noarch               4.0.10.2-11.el7.sme       @smecontribs
smeserver-qmHandle.noarch                 1.4-14.el7.sme            @smecontribs
smeserver-remoteuseraccess.noarch         1.3-5.el7.sme             @smecontribs
smeserver-shared-folders.noarch           0.3-14.el7.sme            @smetest
smeserver-smeadmin.noarch                 1.6-2.el7.sme             @smecontribs
smeserver-usbdisksmanager.noarch          1.2-9.el7.sme             @smetest
smeserver-vacation.noarch                 1.1-32.el7.sme            @smecontribs
smeserver-wbl.noarch                      0.5.0-3.el7.sme           @smecontribs
smeserver-webhosting.noarch               0.0.9-11.el7.sme          @smecontribs
smeserver-wordpress.noarch                1.2-11.el7.sme            @smetest
smeserver-wsdd.noarch                     0.2-5.el7.sme             @smecontribs
wsdd.noarch                               0.6.4-1.el7               @smecontribs


My sme9.2 system has been upgraded over the years as well. I did a restore from my sme9 to v10 box. So there could be something left over from a previous email configuration
...

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: qmail delivery problem after restore from sme9.2 onto new sme10rc1
« Reply #5 on: April 25, 2021, 07:49:18 AM »
Contrib emailmanagement is the culprit, mine is configured to use maildrop
...

Offline Jean-Philippe Pialasse

  • *
  • 2,760
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: qmail delivery problem after restore from sme9.2 onto new sme10rc1
« Reply #6 on: April 25, 2021, 07:53:35 AM »
Contrib emailmanagement is the culprit, mine is configured to use maildrop

temp workaround would be to use procmail


I am building maildrop https://bugs.koozali.org/show_bug.cgi?id=11577