SOLVED Updated to Incredible 13.3 WhEn, Sendmail working, Extension Emails are not

knotworking

Member
Joined
Jul 18, 2008
Messages
55
Reaction score
7
Hello, so yes, I had an incredibly old Incredible PBX running FreePBX 2.10 that I upgraded to 13.3. First go-round made the big mistake of just backing up the old server (via the FreePBX Backup/Restore), installing the newest, and then restoring the old settings. Very bad results, hosed everything, never do that; luckily I was swapping drives, so I reinstalled the old drive and upgraded it until it got to FreePBX 13, then successfully did a fresh backup/install/restore.

Everything is working so far in my initial tests, except for the mailing of voicemail alerts from extensions. I have been using the Gmail proxy hack for years (Purple or Gold?? it was several children ago...), and that's working again on this install, I know because Fail2Ban is drowning me with all the emails about things stopping/starting when I restart. But the email alerts for voicemails aren't being sent. I can see the voicemail WAV files in the inbox for the extensions, but there is nothing in the mail log or asterisk log about it even making an attempt. I'm installed on CentOS 7. Any ideas what might be wrong?
 
Last edited:

knotworking

Member
Joined
Jul 18, 2008
Messages
55
Reaction score
7
Still no luck on figuring out this issue. System emails go out properly, but luck with voicemails. I've been tailing the log, successful emails initiate with this message:
Code:
Feb 22 11:48:23 pbx sendmail[16972]: x1MGmM88016972: from=root, size=227, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Feb 22 11:48:23 pbx sendmail[16973]: x1MGmNBx016973: from=<[email protected]>, size=458, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=pbx.local [127.0.0.1]
Feb 22 11:48:23 pbx sendmail[16972]: x1MGmM88016972: [email protected], ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30227, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x1MGmNBx016973 Message accepted for delivery)
Feb 22 11:48:23 pbx sendmail[16975]: STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
Feb 22 11:48:25 pbx sendmail[16975]: x1MGmNBx016973: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=120458, relay=smtp.gmail.com [74.125.141.108], dsn=2.0.0, stat=Sent (OK  1550854105 a9sm439814vka.51 - gsmtp)
but the failed voicemail emails generate a single line in the log:
Code:
Feb 22 11:50:14 pbx sendmail[17170]: x1MGoEjG017170: from=asterisk, size=10110, class=0, nrcpts=0, msgid=<Asterisk-1321-674043250-752-16132@PBX>, relay=asterisk@localhost

I'm thinking from=asterisk and/or nrcpts=0 are my issues. My old install sent all emails from root, I'm thinking sendmail doesn't like emails from asterisk, but I've been failing at finding where I switch the from address. I know the nrcpts=0 means I have no recipients, but I can't tell if that's the chicken or egg in the problem....but also it looks like the msgid @ is also different (pbx.local vs just PBX).
 
Last edited:

knotworking

Member
Joined
Jul 18, 2008
Messages
55
Reaction score
7
Whelp, though I might su to asterisk and see if I could send a test message as asterisk, and it did indeed go through:
Code:
Feb 22 17:58:13 pbx sendmail[9231]: x1MMwDSL009231: from=asterisk, size=227, class=0, nrcpts=1, msgid=<[email protected]>, relay=asterisk@localhost
Feb 22 17:58:13 pbx sendmail[9232]: x1MMwDXI009232: from=<[email protected]>, size=475, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=pbx.local [127.0.0.1]
Feb 22 17:58:13 pbx sendmail[9231]: x1MMwDSL009231: [email protected], ctladdr=asterisk (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30227, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x1MMwDXI009232 Message accepted for delivery)
Feb 22 17:58:13 pbx sendmail[9235]: STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
Feb 22 17:58:15 pbx sendmail[9235]: x1MMwDXI009232: to=<[email protected]>, ctladdr=<[email protected]> (1000/1000), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=120475, relay=smtp.gmail.com [74.125.141.108], dsn=2.0.0, stat=Sent (OK  1550876296 a30sm1023591uaf.18 - gsmtp)
So it's not that asterisk is the problem.
 

knotworking

Member
Joined
Jul 18, 2008
Messages
55
Reaction score
7
Am I posting in the wrong place? I've run out of Google search queries to try, all the results return pages I've read already. Logs aren't telling me anything, neither is asterisk. Test emails all get sent successfully from the command line.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
I doubt there are more than a couple people in the world that have tried to upgrade FreePBX 2.10 to FreePBX 13. You appear to be the only one here. Obviously, something came unglued in your FreePBX setup during the procedure. It's one of the reasons we always recommend cut-and-paste when moving between versions of FreePBX. That may change with FreePBX 13, but that isn't much help to you. Sorry.
 

knotworking

Member
Joined
Jul 18, 2008
Messages
55
Reaction score
7
Thank you for the response Ward. Taking it from 2.10 to 13 didn't hose the extension emails, I just plugged the old drive in that I went from 2.10 to 13 (still Asterisk 11) on and it sent an extension email as expected. It's something in the backup that caused the issue, because I installed Incredible 13 Whole Enchilada (Asterisk 13) on a new disk/fresh Cent7 install. Something in the backup restore hosed the extension emailing. I'm thinking it's probably the Asterisk 11 -> 13 that caused the issue, but I can't find the Asterisk file that actually sends the emails to test against (not meaning voicemail.conf, but the file that calls vm.conf).

One thing I had setup in the install that I didn't add to the new build yet was the IBM Watson transcription. Any chance that could be the issue?

If I can ask you one last thing, let me ask you this, with the old disk functioning properly (but on Asterisk 11, Cent6, and a 20GB SLC SSD), what would you do? I have this 240GB disk that would solve my space issues and the desire to be on Cent7 and Asterisk 13, but the email issue is a non-starter. Would you install Postfix or use another method of smtp proxy through gmail? I also have a 24/7 dedicated server running my company websites, would you just omit the gmail step and route emails through there?
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
@knotworking on your IncrediblePBX 13-13 system, log in as admin then go to Settings > VoiceMail Admin > Settings > Email Config. Go to the last field on that page. That caused me a lot of grief when I upgraded. This is what I have in that field:
upload_2019-2-23_19-35-30.png

If that isn't it then I can't figure out what else it might be. I had to uninstall sendmail and reinstall and then make sure that my ISP had port 25 and 587 open so that I could relay mail.
 
Last edited:

knotworking

Member
Joined
Jul 18, 2008
Messages
55
Reaction score
7
HOLY FN MOLEY KENN!!!!!! You and that little "-t" just turned my whole week around, that fixed it. Emails with voicemail attachments are now working. I had read about the "t" option in my searching, but didn't think that could possibly be the issue (thought the "rcpts=0" looks like a big clue in hindsight).

Where's the link to send you a beer or three? My Sunday will now feature some outside time because of you. Thank you sir!
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
HOLY FN MOLEY KENN!!!!!! You and that little "-t" just turned my whole week around, that fixed it. Emails with voicemail attachments are now working. I had read about the "t" option in my searching, but didn't think that could possibly be the issue (thought the "rcpts=0" looks like a big clue in hindsight).

Where's the link to send you a beer or three? My Sunday will now feature some outside time because of you. Thank you sir!


Glad I could lend a hand. I've had my share of endless nights beating my head against the wall myself. Enjoy what's left of your weekend! :auto:
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
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