Constant send error in maillog

I’m running freepbx distro 13 (centos 6 based) and I’m getting a constant send failure in the maillog. This started after a module update, here is a tail of my maillog:

Jun 8 09:26:06 freepbx sm-msp-queue[17524]: x53GL5C2026065: to=postmaster, delay=4+16:00:00, xdelay=00:00:00, mailer=relay, pri=11623117, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later
Jun 8 09:26:06 freepbx sendmail[17525]: x588L5DB017525: from=<>, size=1513723, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 8 09:26:06 freepbx sendmail[17525]: x588L5DC017525: Milter: from=<>, reject=451 4.3.2 Please try again later
Jun 8 09:26:06 freepbx sm-msp-queue[17524]: x53GL5C3026065: to=postmaster, delay=4+16:00:00, xdelay=00:00:00, mailer=relay, pri=11969409, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later
Jun 8 09:26:06 freepbx sendmail[17525]: x588L5DC017525: from=<>, size=1860015, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 8 09:26:06 freepbx sendmail[17525]: x588L5DD017525: Milter: from=<>, reject=451 4.3.2 Please try again later
Jun 8 09:26:06 freepbx sm-msp-queue[17524]: x53GL5C4026065: to=postmaster, delay=4+16:00:00, xdelay=00:00:00, mailer=relay, pri=12263313, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later
Jun 8 09:26:06 freepbx sendmail[17525]: x588L5DD017525: from=<>, size=2153919, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 8 09:26:06 freepbx mimedefang[7603]: x588L5D8017525: smfi_chgheader returned MI_FAILURE
Jun 8 09:26:06 freepbx mimedefang[7603]: x588L5D8017525: smfi_addheader returned MI_FAILURE

I run spamassassin and mimedefang on this freepbx machine. I don’t understand where this ‘email’ is coming from because in the log it says ‘from=<>’. Also this problem is causing unnecessary load on my machine. before the module update my daily mail activity was about 3 to 5Mb a day, now it’s about 35Mb a day.

Why? FreePBX is not setup to be mail server that is accepting incoming SMTP requests and sending it to a mailbox. It just sends outgoing mail via Postfix.

just because its not set up to be a mail server doesn’t mean it can’t do that and many other tasks as well. Freepbx is basically a centos 6 machine with software added.

1 Like

OK. Just so we’re on the same page: This is a FreePBX forum. You’re asking us to help you troubleshoot software you added that isn’t part of FreePBX and isn’t causing problems with the PBX.

… and a bunch of stuff that was removed.

I’ll give you this much help (since this is way off topic): The file /var/log/maillog should have the information you are looking for. Something on your machine is generating an email that isn’t configured correctly. The From address is not set correctly and the To address is not set correctly. Both of these will cause the mail to left in the outbound queue until your mail requeue time limit is reached (usually 5 days).

There are several ways to solve this, but all of them are “sendmail” solutions and way outside of our (this list’s) scope.

ok thanks but the reason I came here is because this thing started after a freepbx module update.

Do you mean multiple module updates or A module update? Either way, the question will be the same: What module(s) did you update?

The only module that impinges on any MTA would be sysadmin.

There is also the thing where the FreePBX distro uses Postfix (as I said earlier). So was Postfix completely removed as the MTA on the system? Also have you configured sendmail with all the proper settings for the PBX?

Do you mean multiple module updates or A module update?

it was multiple module updates, there was a ton of them and I never kept a record.

was Postfix completely removed as the MTA on the system?

yes I’ve always used sendmail, plus I don’t know how to integrate mimedefang and spamassassin into postfix

have you configured sendmail with all the proper settings for the PBX?

afaik yes, it all worked fine for ages until the module update

The only module that impinges on any MTA would be sysadmin.

This machine is not activated. The Free version of Sysadmin is only available to Activated machines.

sorry wouldnt now howto restore your sendmail setup. I dont use sysadmin and it has never been a problem updating any/all non commercial FreePBX modules, my /etc/postfix structure which is hugely customized for sending and receiving faxes is never touched but i dont use ‘sendmail’ per se.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.