Postfix From Address

joshlamerritt
Posts: 3
Member Since:
2007-02-05

Sorry to have to ask this question, but I can't figure out where to change the asterisk@ setting in Postfix (at least I'm assuming it's a Postfix setting). Of course, this may be an Asterisk setting. Anyway, here is my problem:

I'm trying to send voice mail notifications through an Exchange server. However, Postfix insists on sending asterisk@ as the "sender" email address. Here is a copy of relevant info from /var/log/maillog when the system attempts to send a voicemail notification email:

-----start snip-----
Aug 31 20:07:17 voice postfix/cleanup[5301]: DEE58BB087B: message-id=
Aug 31 20:07:17 voice postfix/qmgr[4926]: DEE58BB087B: from=, size=11533, nrcpt=1 (queue active)
Aug 31 20:07:17 voice postfix/smtp[5304]: certificate verification failed for legolas.pcca.local: num=20:unable to get local issuer certificate
Aug 31 20:07:17 voice postfix/smtp[5304]: certificate verification failed for legolas.pcca.local: num=21:unable to verify the first certificate
Aug 31 20:07:18 voice postfix/smtp[5304]: DEE58BB087B: to=, relay=legolas.pcca.local[10.2.1.22]:25, delay=0.12, delays=0.04/0.01/0.05/0.03, dsn=5.7.1, status=bounced (host legolas.pcca.local[10.2.1.22] said: 550 5.7.1 Client does not have permissions to send as this sender (in reply to end of DATA command))
Aug 31 20:07:18 voice postfix/cleanup[5301]: 02989BB087C: message-id=
Aug 31 20:07:18 voice postfix/qmgr[4926]: 02989BB087C: from=, size=13558, nrcpt=1 (queue active)
Aug 31 20:07:18 voice postfix/bounce[5306]: DEE58BB087B: sender non-delivery notification: 02989BB087C
Aug 31 20:07:18 voice postfix/qmgr[4926]: DEE58BB087B: removed
-----end snip-----

The TO address is the only thing I change when posting the output of /var/log/maillog

Legolas (the Exchange server) is rejecting because it's attempting to send as asterisk@voice.pcca.local. I need it to send as voice@domain.com. I can change it to asterisk@domain.com by changing myorigin in mail.cf, but I can't change the asterisk@ to voice@.

Thanks.
--
Josh



mducharme
Posts: 3
Member Since:
2010-08-31
/etc/asterisk/vm_general.inc

/etc/asterisk/vm_general.inc

The default setting is vm@asterisk, for whatever reason this default setting doesn't seem to use the vm and uses the asterisk as the first part of the address. Change it to voice@domain.com if that is what you want it to be and the emails should start going out with that.



joshlamerritt
Posts: 3
Member Since:
2007-02-05
vm_general.inc no change

Unfortunately, vm_general.inc has done nothing for me. I tried changing both the servermail and fromstring options. No effect whatsoever. Emails are stilling coming through as "Asterisk PBX" as the subject line (should be "PCCA Voicemail Message" per fromstring= option), and are coming through as from asterisk@voice.pcca.local (voice.pcca.local being the hostname of the server).



domiflichi
Posts: 164
Member Since:
2007-04-06
Check out the part on 'user

Check out the part on 'user mapping' (about half-way down) in: http://fonality.com/trixbox/wiki/howto-voicemail-email-postfix-an...



kareem
Posts: 36
Member Since:
2008-02-21
Postfix From Address

Without looking at your box, if you've exhausted all of your asterisk options, and if you're not using this box for anything else, you might want to consider going into Postfix and overwriting it there.

Kareem Hamdy
Account Manager
FonSWITCH Inc.
http://www.fonswitch.com

"Make the SWITCH to FonSWITCH"
Fully tested with trixbox Pro, PBXtra, Fonality PBX, and trixbox CE for SIP service

--

Kareem Hamdy
Account Manager
FonSWITCH Inc.
http://www.fonswitch.com

"Make the SWITCH to FonSWITCH"
Fully tested with trixbox Pro, PBXtra, Fonality PBX, and trixbox CE for SIP service



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.