Failed to start sendmail.service: Connection timed out

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

NielsCharlier
Posts: 1
Joined: Mon Jul 04, 2016 12:23 pm

Failed to start sendmail.service: Connection timed out

Post by NielsCharlier »

I installed openemm on ubuntu 15. I removed postfix and replaced it with sendmail.

I get the following messages when I start-up openemm:
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start python /home/openemm/bin/scripts/recovery.py .. done.
Start /home/openemm/bin/scripts/update.py account bounce .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Stopping obsolete sendmail processes: done.
Starting sendmails: listener [....] Starting sendmail (via systemctl): sendmail.service Failed to start sendmail.service: Connection timed out
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
failed!

mail queues ADMIN WARNING: Ignoring submission mode -N option (not in submission mode)
WARNING: Ignoring submission mode -N option (not in submission mode)
QUEUE WARNING: Ignoring submission mode -N option (not in submission mode)
WARNING: Ignoring submission mode -N option (not in submission mode)
MIDQUEUE WARNING: Ignoring submission mode -N option (not in submission mode)
SLOWQUEUE WARNING: Ignoring submission mode -N option (not in submission mode)
done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation :OK
Check Tomcat installation :OK
Using CATALINA_BASE: /home/openemm
Using CATALINA_HOME: /usr/share/tomcat8
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64
Using CLASSPATH: /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar
Tomcat started.
At first, I was also getting error messages in /var/log/mail.log, all to do with permissions.
I solved all of these by doing two things:
* in /etc/mail/sendmail.cf, replaced the TrustedUser 'smmta' by openemm:
# Trusted user for file ownership and starting the daemon
O TrustedUser=openemm
* Added openemm to the smmsp and smmta groups so it has permission to all mail related files.

BUT the errors and warnings during start-up prevail.

I have done a test mailing and openemm does seem able to send emails though. So maybe it doesn't even matter? I'm not sure, but it bothers me.

1. Can I get rid of these messages, in particular the errors (warnings I can perhaps ignore)?
2. Should I even worry about them at all?


Thanks for your help!
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Failed to start sendmail.service: Connection timed out

Post by maschoff »

We are not familiar with toolkit polkit-agent-helper, but it seems to be the cause of your access problem.
OpenEMM Maintainer
Post Reply