Postfix mail "From Address"

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Postfix mail "From Address"

Postby Richard_Lian » Sat Apr 06, 2013 2:26 am

Centos 5.5 and Nagios 3.5.0

Hi all,

In order to use my SMTP relay I need to ensure that all mails come from a specific "From Address" such as smtpuser@mydomain.com

I altered the main.cf and generic files in postfix to ensure the origin domain is mydomain.com. I then added a map for nagios@mydomain.com --> smtpuser@mydomain.com to ensure the "From Address" is what I need.

As a test I also added a map for root@mydomain.com --> smtpuser@mydomain.com and then sent a test mail from the CLI. This worked great! :D

However, my problem is that the mail from Nagios does not come through. I checked the Nagios logs and see that the notifications get sent. I checked the mail logs and see the mail getting sent. I can also see the mail hitting my SMTP relay it that servers logs.

So I can only assume that the "From Address" is not mapping correctly for Nagios and so does not get processed by the end mail server once the relay sends it on...or something else?

Does anyone have any experience of this or any suggestions please?

Thanks in advance.
Richard_Lian
 
Posts: 17
Joined: Sat Apr 06, 2013 2:07 am

Re: Postfix mail "From Address"

Postby Richard_Lian » Mon Apr 08, 2013 7:48 am

Doh! I have fixed it. :geek:

Rather foolish mistake... I had mispelled my own email address. When I arrived at work today I discovered that my other colleagues have been recieving emails just fine! :oops:

So the changes made all worked but I had not checked my own email address properly!
Richard_Lian
 
Posts: 17
Joined: Sat Apr 06, 2013 2:07 am

Re: Postfix mail "From Address"

Postby abrist » Mon Apr 08, 2013 10:02 am

Our work is down here. :P Locking thread.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm


Return to Community Support

Who is online

Users browsing this forum: No registered users and 53 guests