TIPS Unable to send emails or text when voicemail left on system

Shadowfire

Member
Joined
Mar 19, 2008
Messages
42
Reaction score
1
Hello Gents and Ladies,

I am currently trying to setup email to text/pager. I have gone in to the /var/mail/asterisk file and I can see that it is internally trying to send out the messages via email or sms. But then it recieves the following errors:

(reason: 553 #5.1.8 Domain of sender address <[email protected]> does not exist)
(expanded from: <[email protected]>)

and

<<< 553 #5.1.8 Domain of sender address <[email protected]> does not exist
501 5.6.0 Data format error


Here is an example from /var/mail/asterisk file:

--u6TIxDYR002737.1469818753/pbx.hullcounselingpa.com--

From [email protected] Fri Jul 29 15:15:26 2016
Return-Path: <[email protected]>
Received: from localhost (localhost)
by pbx.hullcounselingpa.com (8.14.4/8.14.4) id u6TJFQUj003047;
Fri, 29 Jul 2016 15:15:26 -0400
Date: Fri, 29 Jul 2016 15:15:26 -0400
From: Mail Delivery Subsystem <[email protected]>
Message-Id: <[email protected]>
To: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="u6TJFQUj003047.1469819726/pbx.hullcounselingpa.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--u6TJFQUj003047.1469819726/pbx.hullcounselingpa.com

The original message was received at Fri, 29 Jul 2016 15:15:24 -0400
from pbx.hullcounselingpa.com [127.0.0.1]

----- The following addresses had permanent fatal errors -----
[email protected]
(reason: 553 #5.1.8 Domain of sender address <[email protected]> does not exist)
(expanded from: <[email protected]>)

----- Transcript of session follows -----
... while talking to smtp-bb.vtext.com.:
>>> MAIL From:<[email protected]> SIZE=721
<<< 553 #5.1.8 Domain of sender address <[email protected]> does not exist
501 5.6.0 Data format error

--u6TJFQUj003047.1469819726/pbx.hullcounselingpa.com
Content-Type: message/delivery-status

Reporting-MTA: dns; pbx.hullcounselingpa.com
Received-From-MTA: DNS; pbx.hullcounselingpa.com
Arrival-Date: Fri, 29 Jul 2016 15:15:24 -0400

Final-Recipient: RFC822; [email protected]
X-Actual-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.3
Diagnostic-Code: SMTP; 553 #5.1.8 Domain of sender address <[email protected]> does not exist
Last-Attempt-Date: Fri, 29 Jul 2016 15:15:26 -0400

--u6TJFQUj003047.1469819726/pbx.hullcounselingpa.com

---------------------------------------------------------------------------------------

I have placed - pbx.hullcounselingpa.com in the /etc/hosts

127.0.0.1 pbx.hullcounselingpa.com pbx.HAA.local localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 pbx.hullcounselingpa.com pbx.HAA.local localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.2 pbx.hullcounselingpa.com pbx.HAA.local pbx

I have placed - pbx.hullcounselingpa.com in the /etc/mail/local-host-names file.


I have reviewed a number of items in the forums on this ... including the following -

http://pbxinaflash.com/community/th...dresses-and-pager-addresses.14012/#post-89558

I understand it has to do with the pbx.hullcounselingpa.com, but I thought it I put ti in the local-host-names that it should resolve localy and send.

Can someone tell me where I am going wrong with getting the voicemails to send out to email and sms.


-SF-
 
Last edited:

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
There is neither an A nor MX record for pbx.hullcounselingpa.com. The remote mail server is rejecting your mail because of the fake domain name. Add it to DNS or use a mail transfer service such as SendGrid or Mailgun (both free for low volumes).
 

atsak

Guru
Joined
Sep 7, 2009
Messages
2,386
Reaction score
440
You'll also need a PTR for reliable email delivery as per the relevant RFC.
 

Shadowfire

Member
Joined
Mar 19, 2008
Messages
42
Reaction score
1
There is neither an A nor MX record for pbx.hullcounselingpa.com. The remote mail server is rejecting your mail because of the fake domain name. Add it to DNS or use a mail transfer service such as SendGrid or Mailgun (both free for low volumes).

Thanks for the reply Billsimon. I never have heard of SendGrid and MailGun. Thanks for the suggestion, I am looking into those right now.

-SF-
 

Shadowfire

Member
Joined
Mar 19, 2008
Messages
42
Reaction score
1
So I am thinking I should probably use Ward's Tutorial he posted for gmail instead -

Tutorial Install gMail as SMTP Relay Host for SendMail
http://pbxinaflash.com/community/threads/install-gmail-as-smtp-relay-host-for-sendmail.974/

Oh yeah...do I a bandon this thread and start another? or just keep moving foward? Let me know... in the meantime I will move on with this thread...

So I am am stuck - because of the following....

Seem like everything has gone through till I get to the code part of Ward's Tut...

So I type in the following -

sed -i 's|sendmail-cf|sendmail\/cf' /etc/mail/sendmail.mc

and I get the following .....

sed: -e expression #1, char 26: unterminated `s' command
-bash: sed:: command not found

It was because on the Wards Tut he left out the | after cf. So I figured that out....but then I got to the following....

sed -i 's|sendmail-cf|sendmail\/cf|' /etc/mail/databases

and I get the following....

sed: can't read /etc/mail/databases: No such file or directory

Obviously this is telling me I have no file named databases in the /etc/mail. In which I check and it is correct that there is not file named databases. I am unsure of how to get that file created in that directory. Anyone have idea?

I get the same for

sed -i 's|sendmail-cf|sendmail\/cf|' /etc/mail/sendmail.cf.errors

and I get the following...

sed: can't read /etc/mail/sendmail.cf.errors: No such file or directory

Once again telling me the file /etc/mail/sendmail.cf.errors does not exist and is not in that folder...

once again why is the file not there and how can I get them both databases and sendmail.cf.error in the directory?


Thanks,
-SF-
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729

Shadowfire

Member
Joined
Mar 19, 2008
Messages
42
Reaction score
1
I installed postfix and was moving forward to get this working, but I had to jump to something else. I am not thinking of reloading my system keeping original HDD and use another drive with new install, I will see how far I get and if I run in to the same issue I will step though your suggestions again.

Thanks,
-SF-
 

Members online

Forum statistics

Threads
25,815
Messages
167,786
Members
19,245
Latest member
rahee
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top