Changing the voicemail email FROM address?

If this didn’t work:

you need to submit a ticket. This is how that is supposed to get set.

Before submitting a ticket, first confirm the value is properly written to the file /etc/asterisk/voicemail.conf.

Did we find the solution of this problem … I am having same issue .

Even though an email address is configured in ‘Serveremail’ it still send out FROM [email protected] and hence get rejected by external SMTP server …

Has anyone found a solution for this? I’ve found a number of suggestions online, but none of them work. No matter what I do my e-mails are from “asterisk@…”

Can you share with us what you did?

Also, please see this:

I have confirmed that /etc/asterisk/voicemail.conf has been updated with the proper value.

I followed all of the steps listed here to setup the voicemail e-mail.

I also tried suggestions from a couple of other web sites, but I don’t recall which one.

I’ve been struggling with the same issue for the past couple of days.
I have the correct/configured value for the FROM: email address in /etc/asterisk/voicemail.conf, but emails go out from [email protected]
Can you please detail a little bit what you did to make it work for you?

I never found a solution. I found several places that offered similar instructions but none of them fixed my problem.

Try ‘cd /etc’ and “grep -v [email protected] * */* */*/*”.

Those two commands should get you any file that has that string in it. Post the result and we’ll see what we can do.

Then, I assume, you never contacted support either.

I worked quite a while with support from the vendor who sold us the equipment, without any success. (I don’t think he had any idea how to setup emails for Office365.)

This is pretty low on my priority list, so I moved on to other things. The next step was to create a GMail account and give up on using Office365.

I think I have everything configured properly, but no matter what I do the “from” is “asterisk@” which Office365 rejects.

Try adding

[email protected] [email protected]

To /etc/postfix/generic

And then run

postmap /etc/postfix/generic
service postfix restart

See details here

https://wiki.freepbx.org/display/PPS/Setup+Postfix+Manually

I had already tried those steps, but I went through it again, just in case. Here is what I get from the debug page.

Jun 13 12:50:05 uc-37817158 postfix/pickup[25686]: 8F687C1B5D51: uid=995 from=<asterisk>
Jun 13 12:50:05 uc-37817158 postfix/cleanup[25711]: 8F687C1B5D51: message-id=<[email protected]>
Jun 13 12:50:05 uc-37817158 postfix/qmgr[25687]: 8F687C1B5D51: from=<[email protected]>, size=502, nrcpt=1 (queue active)
Jun 13 12:50:07 uc-37817158 postfix/smtp[27212]: 8F687C1B5D51: to=<*******@carolina.rr.com>, relay=smtp.office365.com[40.97.24.34]:587, delay=1.6, delays=0.01/0.04/1.2/0.33, dsn=5.2.0, status=bounced (host smtp.office365.com[40.97.24.34] said: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:E20D0000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140FAD870000F01FCB030000, 20.50032:140FAD877017401080030400, 0.35180:D0030000, 255.23226:0A00438A, 255.27962:0A000000, 255.27962:0E000000, 255.31418:1F000130, 16.55847:00010000, 17.43559:00000000E0020000000000000000000000000000, 20.52176:140FAD870000401080030400, 20.50032:140FAD87701710103A000000, 0.35180:03000136, 255.23226:21000000, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:44000000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:49000000, 0.38698:00000000, 0.37692:0F010480, 0.37948:09000100, 5.33852:00000000534D545000000100, 4.56248:DC040000, 7.40748:010000000000010B09000100, 7.57132:000000000000000009000100, 1.63016:32000000, 4.39640:DC040000, 8.45434:12D7678E383E41458440B5993CCBA0C131344D42, 5.10786:0000000031352E32302E313936352E3030303A424E38505231344D42323831383A37333863613031662D386462362D343835632D383662622D38663531666435363663636400383333000000, 255.1750:9D000000, 255.31418:80000000, 0.22753:03000236, 255.21817:DC040000, 4.60547:DC040000, 0.21966:03001736, 4.30158:DC040000 [Hostname=BN8PR14MB2818.namprd14.prod.outlook.com] (in reply to end of DATA command))
Jun 13 12:50:07 uc-37817158 postfix/cleanup[25711]: 3C1B9C1B5D53: message-id=<[email protected]>
Jun 13 12:50:07 uc-37817158 postfix/bounce[27213]: 8F687C1B5D51: sender non-delivery notification: 3C1B9C1B5D53
Jun 13 12:50:07 uc-37817158 postfix/qmgr[25687]: 3C1B9C1B5D53: from=<>, size=5219, nrcpt=1 (queue active)
Jun 13 12:50:07 uc-37817158 postfix/qmgr[25687]: 8F687C1B5D51: removed
Jun 13 12:50:07 uc-37817158 postfix/local[25728]: 3C1B9C1B5D53: to=<[email protected]>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jun 13 12:50:07 uc-37817158 postfix/qmgr[25687]: 3C1B9C1B5D53: removed

Add the following to this:

asterisk [email protected]
root [email protected]

See if that helps.

it helped.

I missed this reply earlier. I gave that a try and received hundreds of lines of results, the majority of which seem to have nothing to do with e-mail.

No change. Everything is still being sent from asterisk@

Jun 17 10:22:54 uc-37817158 postfix/master[28501]: daemon started – version 2.10.1, configuration /etc/postfix
Jun 17 10:23:01 uc-37817158 postfix/pickup[28502]: 84A6EC1BE726: uid=995 from=<asterisk>
Jun 17 10:23:01 uc-37817158 postfix/cleanup[28536]: 84A6EC1BE726: message-id=<[email protected]>
Jun 17 10:23:01 uc-37817158 postfix/qmgr[28503]: 84A6EC1BE726: from=<[email protected]>, size=887, nrcpt=1 (queue active)
Jun 17 10:23:01 uc-37817158 postfix/local[28555]: 84A6EC1BE726: to=<[email protected]>, orig_to=<asterisk>, relay=local, delay=0.22, delays=0.19/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jun 17 10:23:01 uc-37817158 postfix/qmgr[28503]: 84A6EC1BE726: removed
Jun 17 10:23:22 uc-37817158 postfix/pickup[28502]: 7E9ACC1BE726: uid=995 from=<asterisk>
Jun 17 10:23:22 uc-37817158 postfix/cleanup[28536]: 7E9ACC1BE726: message-id=<[email protected]>
Jun 17 10:23:22 uc-37817158 postfix/qmgr[28503]: 7E9ACC1BE726: from=<[email protected]>, size=506, nrcpt=1 (queue active)
Jun 17 10:23:22 uc-37817158 postfix/local[28555]: 7E9ACC1BE726: to=<@ctwautomation.com>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "")
Jun 17 10:23:22 uc-37817158 postfix/cleanup[28536]: 8467CC1BE727: message-id=<[email protected]>
Jun 17 10:23:22 uc-37817158 postfix/bounce[28712]: 7E9ACC1BE726: sender non-delivery notification: 8467CC1BE727
Jun 17 10:23:22 uc-37817158 postfix/qmgr[28503]: 8467CC1BE727: from=<>, size=2291, nrcpt=1 (queue active)
Jun 17 10:23:22 uc-37817158 postfix/qmgr[28503]: 7E9ACC1BE726: removed
Jun 17 10:23:22 uc-37817158 postfix/local[28555]: 8467CC1BE727: to=<[email protected]>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jun 17 10:23:22 uc-37817158 postfix/qmgr[28503]: 8467CC1BE727: removed

This is what is at the end of my /etc/postfix/generic file

root [email protected]
root@localhost [email protected]
[email protected] [email protected]
root@freepbx [email protected]
[email protected] [email protected]
asterisk [email protected]
asterisk@localhost [email protected]
[email protected] [email protected]
asterisk@freepbx [email protected]
[email protected] [email protected]
vm@asterisk [email protected]
asterisk@ [email protected]
@freepbx.localdomain @ctwautomation.com
smtp_generic_maps = hash:/etc/postfix/generic
[email protected] [email protected]
[email protected] [email protected]

This should be in the main conf file not the generic file.

1 Like

I have moved that line to my “generic” file. (The file was previously empty.) The e-mails are still being bounced.