Score:0

Postfix using asterisk user to send emails. Mapping did not work, are there any other options?

vu flag

I am trying to set up a PBX server to send voicemails to emails, which is being triggered properly, however, the from email is not the correct one I want to use. Instead of using [email protected], it's using [email protected]

So far I have tried adding mappings into generic file for postfix:

root@*   [email protected]
asterisk@*   [email protected]

Then making sure it's being relayed to properly

smtp_generic_maps = hash:/etc/postfix/generic

But that did not do anything

I've tried changing this setting in main.conf file:

#myorigin = $myhostname
#myorigin = $mydomain

But it just overwrites the domain part and the asterisk@... still remains. I have reloaded postfix multiple times, as well as wrote the mappings into .db file after updating them.

I'm simply not sure what to try anymore, I've tried to apply any fix I've found online and I am writing here as last resort

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.