1 (edited by derrick 2022-08-03 08:11:59)

Topic: altermime error in apport.log

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? iRedMail Easy
- Linux/BSD distribution name and version: Ubuntu 20.04.4 LTS (GNU/Linux 5.15.0-1015-aws x86_64)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

The /var/log/apport.log shows this:

ERROR: apport (pid 1068301) Tue Aug  2 23:01:48 2022: called for pid 1068300, signal 11, core limit 0, dump mode 1
ERROR: apport (pid 1068301) Tue Aug  2 23:01:48 2022: executable: /usr/bin/altermime (command line "/usr/bin/altermime --input=/var/spool/amavisd/tmp/amavis-20220802T215945-1064789-13hiXFcf/email-repl.txt --disclaimer=/opt/iredmail/custom/postfix/disclaimer/default.txt --disclaimer-html=/opt/iredmail/custom/postfix/disclaimer/default.html --force-for-bad-html")
ERROR: apport (pid 1068301) Tue Aug  2 23:01:48 2022: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 1068301) Tue Aug  2 23:01:48 2022: wrote report /var/crash/_usr_bin_altermime.119.crash

I review the /var/crash/_usr_bin_altermime.119.crash file like so:
$ sudo apport-unpack /var/crash/_usr_sbin_apache2.0.crash /var/crash/unpacked
$ gdb $(cat /var/crash/unpacked/ExecutablePath) /var/crash/unpacked/CoreDump

I see the following:
Core was generated by `/usr/bin/altermime --input=/var/spool/amavisd/tmp/amavis-20220725T140511-470358'.
Program terminated with signal SIGSEGV, Segmentation fault.

The interesting thing about the error messages is that neither the file in the apport.log nor the directory in the crash file exist:

/var/spool/amavisd/tmp/amavis-20220802T215945-1064789-13hiXFcf/email-repl.txt
/var/spool/amavisd/tmp/amavis-20220725T140511-470358

Is this why we are getting a Segmentation fault? If so, what can be done to address the issue?

Thanks.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: altermime error in apport.log

altermime is out of date and not maintained by its author, temporary solution is disabling it for signature signing.