FOOD FOR THOUGHT Does my PBX send me emails?

Joined
Sep 29, 2014
Messages
259
Reaction score
13
Hello:
How can I tell if my Centos 6.7 PIAF running on a Digital Ocean droplet is setup to send me emails?
Setup:
PIAF Installed Version = 3.0.6.7 under *KVM* │
│ FreePBX Version = 2.11.0.43 │
│ Running Asterisk Version = 11.16.0 │
│ Asterisk Source Version = 11.16.0 MODIFIED

Some info:
root@a2b:~ $ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=a2b # this is my digital Oceans droplet name
root@a2b:~ $

root@a2b:~ $ cat /etc/hostname
a2b
root@a2b:~ $

root@a2b:~ $ cat /etc/hosts
#127.0.0.1 pbx.local localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 pbx.local localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.1.1 a2b.mydomain.com a2b
45.nn.nn.nn a2b.mydomain.com a2b # my digital Oceans IP ???
root@a2b:~ $

If I do this: root@a2b:~ $ echo test message | mail -s test [email protected] - no email arrives.

Any help would be appreciated,
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
I assume you followed a tutorial ? something about making gmail your sendmail relay host?
Your digital ocean-IP I hope is nn.nn.nn.45 (don't expose the rest) so 45 is the IPv4 4th octet.
check your fqdn
Code:
hostname -f
I assume it to be 45.nn.nn.nn.a2b.mydomain.com ? note the extra dot
also check your rdns
Code:
host nn.nn.nn.45
(host yoursvrIP)
result has your fqdn after the last space

my /etc/hosts starts with 1st line on one line
Code:
127.0.0.1  nn.nn.nn.45.a2b.mydomain.com.  a2b.freednsSub.Dom.tld a2b a2b.local localhost localhost.localdomain localhost4 localhost4.localdomain4

::1        pbx.local localhost ip6-localhost ip6-loopback
aa00::0  ip6-localnet
aa00::0  ip6-mcastprefix
aa02::1  ip6-allnodes
aa02::2  ip6-allrouters

127.0.1.1 noreply.incrediblepbx.com raspberrypi

Someone will tell me if that is not the best?
So far my server sends to [email protected]
Now I need to get server to rewrite the to addresses as gmail tries to send back to asterisk @fqdn but my server or firewall likes to reject those.
 
Last edited:
Joined
Sep 29, 2014
Messages
259
Reaction score
13
Thanks, ostridge, for replying. :)


root@a2b:~ $ hostname -f
a2b.mydomain.com
root@a2b:~ $


Am I to change "mydomain.com", in "a2b.mydomain.com", to something else?

This has been changed:
root@a2b:~ $ cat /etc/hosts
127.0.0.1 pbx.local localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 pbx.local localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.1.1 a2b.mydomain.com a2b
45.nn.nn.49 a2b.mydomain.com a2b
root@a2b:~ $

Is there a tutorial on this that you know of?

Thanks for you time,




 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
When editing your post Take a hard look at the symbols just above your typing. - if you hover over each one it tells what its for. If posting use the markers \[CODE\]mycode\[/CODE\] which shows as
Code:
mycode
this makes it easier to read as your long lines can be scrolled across.
click on the boxed + sign above and select '</> Code' in the dropdown (which I only now discovered) b'cause its just as easy to type your own tags.

Anyway experiment with the buttons to improve your posts.
So your code says:-

Code:
root@a2b:~ $ hostname -f
a2b.mydomain.com
root@a2b:~ $

Am I to change "mydomain.com", in "a2b.mydomain.com", to something else?

This has been changed:
Code:
root@a2b:~ $ cat /etc/hosts
127.0.0.1 pbx.local localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 pbx.local localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.1.1 a2b.mydomain.com a2b
45.nn.nn.49 a2b.mydomain.com a2b
root@a2b:~ $

Am I to change "mydomain.com", in "a2b.mydomain.com", to something else?

Yes change it to whatever combination of server.domain.com or if you have a subdomain registered somewhere and pointing to your externIP like a2b.subdomain.dyndns.org or something that makes sense to you and your domain registrar.

However this hasnot addressed the lack of an rdns and for this I seem to recall Ward say you could use your ISP's rdns

If you type at the command prompt subst your actual IP address
Code:
 host 45.nn.nn.49
root@a2b:~ $ 49.nn.nn.45.in-addr.arpa domain name pointer 49.nn.nn.45.something.someisp.com.
The bit after pointer ' 49.nn.nn.45.something.someisp.com. ' is the needed rdns
which you needed after 127.0.0.1 on 1st line of /etc/hosts and before a2b.mydomain.com a2b
Code:
127.0.0.1 49.nn.nn.45.something.someisp.com a2b.mydomain.com a2b pbx.local localhost localhost.localdomain localhost4 localhost4.localdomain4
then the rest of lines 2 to EoF (end of file)


hope that helps but then test if it works in real life!
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
25,824
Messages
167,825
Members
19,247
Latest member
mdauck
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.
Top