[email protected]

When I get e-mail they come from [email protected]

Where can I change localhost.localdomain to the name that I want?

Is this for voicemail notifications? And which version of FreePBX are you using? For 2.10 go into “Settings” and then “Voicemail Admin” and set the serveremail parameter to the address that you want the emails to come from.

I’m using the freepbx 2.11 including the system admin tools. updated that exact field with a mail address that is valid.

went into the email admin tool into debug mode and stil saw from=[email protected]. restart of the server did not do it.

any thoughts on wher I can change it directly is appreciated.

Cheers

that still the from= [email protected] was presented as sender. and the restart of the server did not make any changes

i will bet your host name is localhost.

I have a feeling in astrerisk 2.11.0 there might be a bug when trying to change “from” address.

“Settings” and then “Voicemail Admin” and set the serveremail parameter to the address that you want the emails to come from.

I have changed my serveremail parameter and it doesn’t make any difference.

debug logs;

did a new install of Freepbx 2.11 and all updated modules, and yes I updated the serveremail field in the voicemail settings, before installing the paid sysadmin tools and configuring email

Aug 26 16:43:15 localhost postfix/pickup[3311]: 1A101162C1B: uid=499 from=
Aug 26 16:43:15 localhost postfix/cleanup[3336]: 1A101162C1B: message-id=[email protected]
Aug 26 16:43:15 localhost postfix/qmgr[3310]: 1A101162C1B: from=[email protected], size=567, nrcpt=1 (queue active)
Aug 26 16:43:20 localhost postfix/smtp[3338]: 1A101162C1B: to=[email protected], relay=212.54.42.9[212.54.42.9]:25, delay=5.1, delays=0.02/0/0.05/5, dsn=5.0.0, status=bounced (host 212.54.42.9[212.54.42.9] said: 550-Verification failed for [email protected] 550-Unrouteable address 550 Sender e-mail address invalid / Afzender e-mail adres bestaat niet (in reply to MAIL FROM command))
Aug 26 16:43:20 localhost postfix/cleanup[3336]: 2F86E162C1C: message-id=[email protected]
Aug 26 16:43:20 localhost postfix/qmgr[3310]: 2F86E162C1C: from=<>, size=2769, nrcpt=1 (queue active)
Aug 26 16:43:20 localhost postfix/bounce[3342]: 1A101162C1B: sender non-delivery notification: 2F86E162C1C
Aug 26 16:43:20 localhost postfix/qmgr[3310]: 1A101162C1B: removed
Aug 26 16:43:20 localhost postfix/local[3343]: 2F86E162C1C: to=[email protected], relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 26 16:43:20 localhost postfix/qmgr[3310]: 2F86E162C1C: removed
Aug 26 16:43:44 localhost postfix/pickup[3311]: 213C9162C1B: uid=499 from=
Aug 26 16:43:44 localhost postfix/cleanup[3336]: 213C9162C1B: message-id=[email protected]
Aug 26 16:43:44 localhost postfix/qmgr[3310]: 213C9162C1B: from=[email protected], size=567, nrcpt=1 (queue active)

the servername I change from smtp.ziggo.nl to the IP address and port. Mind the server is internal, not in DMZ and only needs to connect to the SIP provider. and of course to send mail, which is still not working.

type the command “hostname” without the quotes in the centos console
I will be it says localhost

Please read !! We know the name is localhost .! And duh! The domain local domain

The question IS HOW TO CHANGE IT !

update the host name in /etc/sysconfig/network and restart - editing this file will ensure the host name stays in place after a reboot

if you don’t want or can’t restart right away, then do a hostname “new host name” command with “new host name” being the same name you edited into the /etc/sysconfig/network file

Bksales, i did your change in the network file. Eventually it worked. but let me explain the eventually.

before explaining, I want to state that I bought the advanced module from Schmooze that would enable external mailing, and that you could say in the advanced settings the “email from” name. that last bit did not work

my ISP SMTP checks the senders address and will only relay if the sender is valid. so the localhost.local domain was blocked. my domain that I have as a hosting provider including mail is [mydomain].com, setting the local host also to [mydomain].com would the voip server/Centos believe it is internal and would never route the mail to outside. so what I had to do is to change the hostname to an existing domain with valid email address not equal to the domain I wanted to have my mails sent to.

that eventually worked (or better said; worked around)

so thanks for your help and I believe Schmooze needs to get their module a little more stable…

regards

Coert

That’s awful. First, there are many reasons one wouldn’t want to require their PBX server’s hostname to match the from: domain on their notifications. Second, it’s such an easy thing to make configurable.