I have a server set up with Debian 8, LAMP stack, Sendmail. It runs an instance of HumHub, which is a (PHP) social network platform. As i guess that my problem lies in the Sendmail config, I am posting here and not in some HumHub related forum. Configuring Sendmail was quite a hassle for me and i suspect i might have done something wrong. I don't just want to blindly try around, as i am happy it's running and working, all in all.
HumHub is set up to use the PHP mail function (which uses sendmail -t -i) to send out mails. Now it tries to send daily activity report mails to the users with a daily cronjob, which doesn't work, because the script it runs gives me the following error:
Checking for new HumHub version... done. Sending update e-mails to users... 20% (1/5) ETA: n/a Recipient names must be specified Sending update e-mails to users... done - 0 email(s) sent. Deleting old unassigned files... done. Deleting old notifications... done.
What confuses me is that Sendmail sends mails perfectly fine when i test it from the command line, so does the PHP mail function. Even HumHub successfully sends individual mails to users when they register (e.g. registration link) without any problem. I don't think a well tested and widely used application like HumHub forgets to specify anything needed for sending an email - so where does this error come from?
Here's the /var/log/mail.log from when the error occurs (domain name and mail addresses changed):
Jan 10 09:12:50 serverdomain sendmail: v0A8CoBF032480: Authentication-Warning: serverdomain.de: www-data set sender to firstname.lastname@example.org using -f Jan 10 09:12:50 serverdomain sendmail: v0A8CoBF032480: email@example.com, size=37761, class=0, nrcpts=1, msgid=$ Jan 10 09:12:50 serverdomain sm-mta: v0A8CoAN032481: from=, size=37979, class=0, nrcpts=1, msgid=$ Jan 10 09:12:50 serverdomain sendmail: v0A8CoBF032480: firstname.lastname@example.org, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=67761, relay=[127.0.0.1] [127.0.0.1]$ Jan 10 09:12:50 serverdomain sm-mta: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/$ Jan 10 09:12:50 serverdomain sm-mta: v0A8CoAN032481: to=, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=157979, relay=gmail-smtp-in.l.google$ Jan 10 13:40:57 serverdomain sendmail: v0ACevVp002261: email@example.com, size=304, class=0, nrcpts=1, msgid=, relay=somename@lo$ Jan 10 13:40:57 serverdomain sm-mta: v0ACevrq002262: from=, size=542, class=0, nrcpts=1, msgid=, proto=ESMTP, $ Jan 10 13:40:57 serverdomain sendmail: v0ACevVp002261: to=, firstname.lastname@example.org (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30$ Jan 10 13:40:58 serverdomain sm-mta: STARTTLS=client, relay=mx2.mailbox.org., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256 Jan 10 13:41:00 serverdomain sm-mta: v0ACevrq002262: to=, ctladdr= (1000/1000), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=12$ Jan 10 13:42:00 serverdomain sendmail: v0ACg0KE002274: email@example.com, size=612, class=0, nrcpts=0, msgid=, re$
Sorry if i missed something important. Just tell me if you need anything (logs, etc.). Also i don't know if it makes sense to post Sendmails configs here, as this is a lot of stuff to go through and the possible causes might be more general rather then specific.
And thank you in advance!