# Constant send error in maillog

**URL:** <https://community.freepbx.org/t/constant-send-error-in-maillog/59311>\
**Category:** General Help\
**Created:** [June 9, 2019, 9:01am UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311 "2019-06-09T09:01:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![neuronetv](https://community.freepbx.org/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@neuronetv](https://community.freepbx.org/u/neuronetv)\
**Post date:** [June 9, 2019, 9:01am UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/1 "2019-06-09T09:01:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BlazeStudios](https://community.freepbx.org/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@BlazeStudios](https://community.freepbx.org/u/BlazeStudios)\
**Post date:** [June 9, 2019, 1:09pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/2 "2019-06-09T13:09:34Z")

</div>

> [@neuronetv](#):
>
> I run spamassassin and mimedefang on this freepbx machine.

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.

---

<div class="post-metadata">

**Author:** ![neuronetv](https://community.freepbx.org/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@neuronetv](https://community.freepbx.org/u/neuronetv)\
**Post date:** [June 9, 2019, 5:03pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/3 "2019-06-09T17:03:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cynjut](https://community.freepbx.org/user_avatar/community.freepbx.org/cynjut/32/5840_2.png) [@cynjut](https://community.freepbx.org/u/cynjut)\
**Post date:** [June 10, 2019, 4:24pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/4 "2019-06-10T16:24:00Z")

</div>

> [@neuronetv](#):
>
> just because its not set up to be a mail server doesn’t mean it can’t do that

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.

> [@neuronetv](#):
>
> Freepbx is basically a centos 6 machine with software added.

… and a bunch of stuff that was removed.

> [@neuronetv](#):
>
> 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]

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.

---

<div class="post-metadata">

**Author:** ![neuronetv](https://community.freepbx.org/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@neuronetv](https://community.freepbx.org/u/neuronetv)\
**Post date:** [June 10, 2019, 5:45pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/5 "2019-06-10T17:45:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BlazeStudios](https://community.freepbx.org/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@BlazeStudios](https://community.freepbx.org/u/BlazeStudios)\
**Post date:** [June 10, 2019, 6:23pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/6 "2019-06-10T18:23:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [June 10, 2019, 6:28pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/7 "2019-06-10T18:28:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BlazeStudios](https://community.freepbx.org/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@BlazeStudios](https://community.freepbx.org/u/BlazeStudios)\
**Post date:** [June 10, 2019, 6:56pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/8 "2019-06-10T18:56:12Z")

</div>

> [@neuronetv](#):
>
> 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

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?

---

<div class="post-metadata">

**Author:** ![neuronetv](https://community.freepbx.org/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@neuronetv](https://community.freepbx.org/u/neuronetv)\
**Post date:** [June 10, 2019, 9:44pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/9 "2019-06-10T21:44:32Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![neuronetv](https://community.freepbx.org/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@neuronetv](https://community.freepbx.org/u/neuronetv)\
**Post date:** [June 10, 2019, 9:51pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/10 "2019-06-10T21:51:28Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![neuronetv](https://community.freepbx.org/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@neuronetv](https://community.freepbx.org/u/neuronetv)\
**Post date:** [June 10, 2019, 9:55pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/11 "2019-06-10T21:55:09Z")

</div>

> 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.**

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [June 10, 2019, 9:56pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/12 "2019-06-10T21:56:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://community.freepbx.org/uploads/default/original/3X/f/7/f7056d57e04fdbf71c6ad967e1ced351317f5c3f.png) [@system](https://community.freepbx.org/u/system)\
**Post date:** [June 17, 2019, 9:56pm UTC](https://community.freepbx.org/t/constant-send-error-in-maillog/59311/13 "2019-06-17T21:56:59Z")

</div>

Closed on June 17, 2019, 9:56pm UTC

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