SOLVED Sendmail not working

shetu

Member
Joined
Nov 28, 2014
Messages
113
Reaction score
7
I can not send email from Pbx In Flash shell (server behind pfsense firewall). This was working few days ago. Where do I look around?
From [email protected]:587 Sun Dec 30 15:03:15 2018
Return-Path: <[email protected]:587>
Received: from localhost (localhost)
by pbx.domain.name (8.15.2/8.15.2/Debian-10) id wBU93F5l026391;
Sun, 30 Dec 2018 15:03:15 +0600
Date: Sun, 30 Dec 2018 15:03:15 +0600
From: Mail Delivery Subsystem <[email protected]:587>
Message-Id: <[email protected]>
To: <[email protected]:587>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="wBU93F5l026391.1546160595/pbx.domain.name"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--wBU93F5l026391.1546160595/pbx.domain.name

The original message was received at Sun, 30 Dec 2018 15:03:10 +0600
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<[email protected]>
(reason: 553-5.1.2 The sender address <[email protected]:587> is not a valid RFC-5321)

----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
>>> MAIL From:<[email protected]:587> SIZE=596
<<< 553-5.1.2 The sender address <[email protected]:587> is not a valid RFC-5321
<<< 553 5.1.2 address. b36si3875977pla.354 - gsmtp
501 5.6.0 Data format error

--wBU93F5l026391.1546160595/pbx.domain.name
Content-Type: message/delivery-status

Reporting-MTA: dns; pbx.domain.name
Received-From-MTA: DNS; localhost
Arrival-Date: Sun, 30 Dec 2018 15:03:10 +0600

Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.2
Diagnostic-Code: SMTP; 553-5.1.2 The sender address <[email protected]:587> is not a valid RFC-5321
Last-Attempt-Date: Sun, 30 Dec 2018 15:03:15 +0600

--wBU93F5l026391.1546160595/pbx.domain.name
Content-Type: text/rfc822-headers

Return-Path: <[email protected]>
Received: from pbx.domain.name (localhost [127.0.0.1])
by pbx.domain.name (8.15.2/8.15.2/Debian-10) with ESMTP id wBU93A5l026389
for <[email protected]>; Sun, 30 Dec 2018 15:03:10 +0600
Received: (from [email protected])
by pbx.domain.name (8.15.2/8.15.2/Submit) id wBU93A5Y026388
for [email protected]; Sun, 30 Dec 2018 15:03:10 +0600
Date: Sun, 30 Dec 2018 15:03:10 +0600
From: root <[email protected]>
Message-Id: <[email protected]>
Subject: You have new SMS from 105 via dongle0

--wBU93F5l026391.1546160595/pbx.domain.name--
Code:
[sms-incoming]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,2,Set(MESSAGE(body)=Incoming GSM Grameen Phone SMS: ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,3,System(echo "Subject: You have new SMS from ${CALLERID(num)} via ${DONGLENAME}" > /var/log/asterisk/sms_email)
exten => sms,4,System(echo "" >> /var/log/asterisk/sms_email)
exten => sms,5,System(echo "${BASE64_DECODE(${SMS_BASE64})}" >>/var/log/asterisk/sms_email)
exten => sms,6,System(sendmail -f [email protected] -t [email protected] < /var/log/asterisk/sms_email)
exten => sms,7,System(echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}" >> /var/log/asterisk/sms.txt)
;                Full SMS File email
exten => sms,8,System((echo "Subject: Old and New full SMS File from ${DONGLENAME}"; echo;) | sendmail -f [email protected] -t [email protected] < /var/log/asterisk/sms.txt)
;exten => sms,8,System(sendmail -f [email protected] -t [email protected] < /var/log/asterisk/sms.txt)
; This part recive sms to SIP Client
exten => sms,n,MessageSend(sip:701,"${CALLERID(num)}"<${CALLERID(num)}>)
exten => sms,n,NoOp(Send status: ${MESSAGE_SEND_STATUS})
exten => sms,n,Hangup()
 

Attachments

shetu

Member
Joined
Nov 28, 2014
Messages
113
Reaction score
7
mqueue folder empty.
Successfully send email few minute ago. Thanks.
Another question how to change name root to something?
 

Attachments

Last edited:

shetu

Member
Joined
Nov 28, 2014
Messages
113
Reaction score
7
Thanks for your right information and help.
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,581
Messages
138,982
Members
14,676
Latest member
BluePeter