Changed 'smtp_host' address in config.php isn't being recognized
![](https://secure.gravatar.com/avatar/2bb60a8319d1abe7a7417a11c9b5a8cc.jpg?s=120&d=mm&r=g)
Hey all, we upgraded our Exchange server and now it has a new address. I changed the old address, xxx.xxx.xxx.102 to the new address, xxx.xxx.xxx.105 in config.php and Observium still sees the old address.
Nov 6 12:00:19 Observe postfix/smtp[27371]: connect to 192.168.2.102[192.168.2.102]:25: No route to host
The new address was also changed in /etc/postfix/main.cf. I've rebooted the server a couple of times but no joy. I must be missing something really simple here but I don't have a clue what it could be. Is there still another location where I need to change my new Exchange server's address?
Thanks,
Joe Brouillette IT Specialist Link Transit 509.664.7643 jobee@linktransit.commailto:jobee@linktransit.com
[EmailFooter]
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Hi,
Are you sure you're using smtp? If you have a local MTA, you don't need to use smtp. It's indeed best not to use SMTP in these circumstances because using the local MTA is more reliable.
If you've postfix correctly installed locally, remove all of the SMTP settings from your config.
try :
grep -ril '192.168.2.102' /etc to see if there are any other places it might be referenced.
This error message is coming from postfix, and doesn't really have anything to do with observium beyond postfix being on the same system. Probably there's a smarthost line or something somewhere in the postfix config you've missed. Grep will find it!
adam.
On 2018-11-06 20:36, Joe Brouillette via observium wrote:
Hey all, we upgraded our Exchange server and now it has a new address. I changed the old address, xxx.xxx.xxx.102 to the new address, xxx.xxx.xxx.105 in config.php and Observium still sees the old address.
Nov 6 12:00:19 Observe postfix/smtp[27371]: connect to 192.168.2.102[192.168.2.102]:25: No route to host
The new address was also changed in /etc/postfix/main.cf. I've rebooted the server a couple of times but no joy. I must be missing something really simple here but I don't have a clue what it could be. Is there still another location where I need to change my new Exchange server's address?
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/2bb60a8319d1abe7a7417a11c9b5a8cc.jpg?s=120&d=mm&r=g)
Ok, I removed the smtp configuration from config.php and I can send some things but in a strange way. In my Contact List I have three contacts: 1 is my email address, 2 is my cell phone address using vzwpix.com, and 3 is my cell phone address using vtext.com. if I send myself an email using test_alert.php -c 1 I get a text message on my phone (should be an email). If I try with -c 2 or -c 3 I get nothing. I checked mail.log and things look good there: ------------------------------------------------------------------------------------------------------------------------------------------------------- Nov 8 13:32:10 Observe postfix/pickup[1218]: 69E51787: uid=0 from=<root> Nov 8 13:32:10 Observe postfix/cleanup[8836]: 69E51787: message-id=2d3c58f9619979daa6729d794d24aac2@Observe.domain.com Nov 8 13:32:10 Observe postfix/qmgr[1219]: 69E51787: from=root@Observe.domain.com, size=25556, nrcpt=1 (queue active) Nov 8 13:32:10 Observe postfix/smtp[8838]: 69E51787: to=jobee@domain.com, relay=192.168.2.105[192.168.2.105]:25, delay=0.25, delays=0.04/0/0/0.21, dsn=2.6.0, status=sent (250 2.6.0 2d3c58f9619979daa6729d794d24aac2@Observe.domain.com [InternalId=17381732647097, Hostname=srv-Exchange3.domain.com] Queued mail for delivery) Nov 8 13:32:10 Observe postfix/qmgr[1219]: 69E51787: removed Nov 8 13:32:13 Observe postfix/pickup[1218]: 1D8E5787: uid=0 from=<root> Nov 8 13:32:13 Observe postfix/cleanup[8836]: 1D8E5787: message-id=27fc3686839bedf6ae2a63f09006ec85@Observe.domain.com Nov 8 13:32:13 Observe postfix/qmgr[1219]: 1D8E5787: from=root@Observe.domain.com, size=25556, nrcpt=1 (queue active) Nov 8 13:32:13 Observe postfix/smtp[8838]: 1D8E5787: to=1234567890@vzwpix.com, relay=192.168.2.105[192.168.2.105]:25, delay=0.25, delays=0.01/0/0/0.23, dsn=2.6.0, status=sent (250 2.6.0 27fc3686839bedf6ae2a63f09006ec85@Observe.domain.com [InternalId=17381732647103, Hostname=srv-Exchange3.domain.com] Queued mail for delivery) Nov 8 13:32:13 Observe postfix/qmgr[1219]: 1D8E5787: removed Nov 8 13:32:17 Observe postfix/pickup[1218]: 15599787: uid=0 from=<root> Nov 8 13:32:17 Observe postfix/cleanup[8836]: 15599787: message-id=736fe8e4583a8f6f01441c0f81096645@Observe.domain.com Nov 8 13:32:17 Observe postfix/qmgr[1219]: 15599787: from=root@Observe.domain.com, size=25553, nrcpt=1 (queue active) Nov 8 13:32:17 Observe postfix/smtp[8838]: 15599787: to=1234567890@vtext.com, relay=192.168.2.105[192.168.2.105]:25, delay=0.25, delays=0.03/0/0/0.21, dsn=2.6.0, status=sent (250 2.6.0 736fe8e4583a8f6f01441c0f81096645@Observe.domain.com [InternalId=17381732647105, Hostname=srv-Exchange3.domain.com] Queued mail for delivery) Nov 8 13:32:17 Observe postfix/qmgr[1219]: 15599787: removed root@Observe:/opt/observium# ------------------------------------------------------------------------------------------------------------------------------------------------------- The first entry, where it says to=jobee@domain.com, is the one that goes to my cell phone as a text message. I tried emailing from my desktop to the two text message destinations and that works.
I just did a device down test with one of my servers. The device down alert is configured to send an alert to Contact 1 (email) and 2 (text message). I did get a text message but no email. Any ideas on what I need to change so I get the email too? Some of my alerts are configured for email only.
Thanks,
Joe Brouillette IT Specialist Link Transit 509.664.7643 jobee@linktransit.com
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong via observium Sent: Tuesday, November 6, 2018 1:51 PM To: Observium observium@observium.org Cc: Adam Armstrong adama@memetic.org Subject: Re: [Observium] Changed 'smtp_host' address in config.php isn't being recognized
Hi,
Are you sure you're using smtp? If you have a local MTA, you don't need to use smtp. It's indeed best not to use SMTP in these circumstances because using the local MTA is more reliable.
If you've postfix correctly installed locally, remove all of the SMTP settings from your config.
try :
grep -ril '192.168.2.102' /etc to see if there are any other places it might be referenced.
This error message is coming from postfix, and doesn't really have anything to do with observium beyond postfix being on the same system. Probably there's a smarthost line or something somewhere in the postfix config you've missed. Grep will find it!
adam.
On 2018-11-06 20:36, Joe Brouillette via observium wrote:
Hey all, we upgraded our Exchange server and now it has a new address. I changed the old address, xxx.xxx.xxx.102 to the new address, xxx.xxx.xxx.105 in config.php and Observium still sees the old address.
Nov 6 12:00:19 Observe postfix/smtp[27371]: connect to 192.168.2.102[192.168.2.102]:25: No route to host
The new address was also changed in /etc/postfix/main.cf. I've rebooted the server a couple of times but no joy. I must be missing something really simple here but I don't have a clue what it could be. Is there still another location where I need to change my new Exchange server's address?
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Joe Brouillette