SOLVED E-Mail Settings

serevin

New Member
Joined
Apr 16, 2023
Messages
8
Reaction score
2
Hi all,

Incredible PBX is sending E-Mails from "[email protected]"

I tried to find the proper thread here in the forum and online but wasn't very successful.

Where can i change the from E-Mail Address and also probably set my own Mail server to be used for sending E-Mails?

My Mail Server rejects the E-Mails as spam and i honestly would whitelist the PBX IP as a last option.

Thank you
Daniel
 
More info would be helpful.
You have a VM somewhere and installed Incredible 2027 on some OS
You used the script to set up sendmail probably ./enable-gmail-smarthost-for-sendmail

You have manually edited the /etc/aliases file to redirect mail
Code:
# cat /etc/mail/aliases
# Following alias is required by the mail protocol, RFC 2821
# Set it to the address of a HUMAN who deals with this system's
# mail problems.
postmaster: root
MAILER-DAEMON:  postmaster
root:   [email protected]
# Common aliases
abuse:          postmaster
spam:           postmaster
# Other aliases
asterisk:       root
ubuntu:         root    #possibly 'opc' or whatever default-non-root-user-is.
devnull:        /dev/null

Your /etc/hosts file looks like
Code:
#filename /etc/hosts.BLAND+ # use tab separated fields
# 127.0.0.1       localhost# changed as nextline
127.0.0.1       noreply.incrediblepbx.com       localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost   ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# 127.0.1.1     noreply.incrediblepbx.com       instance-yyyymmdd-xxxx  # changed as nextline
127.0.1.1       svr-fqdn.example.tld    noreply.incrediblepbx.com       instance-yyyymmdd-xxxx  instance-yyyymmdd-xxxx

##Notes
## 'noreply.incrediblepbx.com' will be accepted by gmail it will work or use you own it can be a valid DDNS-address.noip.com
## OR you own but it must resolve to any IPaddress. Can also use  an rdns address.
## "127.0.1.1   instance-yyyymmdd-xxxx    instance-yyyymmdd-xxxx" # is typical in CloudOracle
Maybe this is right?
 
Last edited:
Hi ostridge,

Incredible PBX 2027 runs on a Debian 11 VM.

But as mentioned, I want to use my own external Mail Server (that is a dedicated Server) external.

So i would need settings, how to connect to an existing Mailbox on my external Mail Server to send the E-Mails via SMTP.
 
Hi ostridge,

Incredible PBX 2027 runs on a Debian 11 VM.

But as mentioned, I want to use my own external Mail Server (that is a dedicated Server) external.

So i would need settings, how to connect to an existing Mailbox on my external Mail Server to send the E-Mails via SMTP.
Well yes you can do that BUT you will be going off the reservation in which case you are on your own.
The tried and tested alternative is to use gmail as your smarthosthost and the emails can still be addressed to your work email addresses that you chose. That is why the above post indicates an address other than google, but google will hapilly relay your mails to you server.
 
Hi ostridge,

And i would be again at the same as I am now as I'm sending e-mails only internally and my server doesn't allow relayed emails as it doesn't pass DMARC and DKIM Checks.

OK, than my alternative will be to whitelist the PBX IP to bypass the scans

Daniel
 
You need to set the domain of the PBX server with a FQDM and a machine name like "mypbx.mydomain.com" and set an A record for "mypbx" to the IP address of it.

Your email server should then accept it along with making the changes at @ostridge mentioned.
 
Hi KNERD,

In my case, it's a little bit more complicated.

i have strict SPAM and Mail-Rules on my Mail-Server in place. Means that the Mail-System is checking if a server is authorized to use a domain for sending mails.

Done via DMARC, DKIM and SPF Records as well MX-Records.

A FQDN is not sufficient, as the Mail Servers sees that the Server is a complete different. I also don't allow servers that allow relaying a domain for sending E-Mails.

As a quick Solution, i Whitelisted the PBX from scanning on the Mail Server and the mails are now getting accepted.

Best
Daniel
 
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.
Back
Top