You are here

Email configuration

4 posts / 0 new
Last post
bertalan.voros
bertalan.voros's picture
Email configuration

Hello All,

I have just configured postfix on our OpsView Atom server, all is well, I can get to our relay host but there is no email sent.

I created a shared profile that sends emails of all host groups and service alerts and assigned it to my user, entered my email address and there is still nothing in the postfix log.

What shall I check?

The last line in my postfix log: postfix/master[32480]: daemon started -- version 2.11.0, configuration /etc/postfix

Netcat: Connection to 10.10.10.11 25 port [tcp/smtp] succeeded!

main.cf

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = OpsView
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = opsviewalerts@mydomain.com
mydomain = mydomain.com
mydestination =
relayhost = 10.10.10.11
mynetworks = 127.0.0.0/8, 10.10.10.10
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

 

 

bertalan.voros
bertalan.voros's picture
UPDATE

A netcat to the loopback adapter results in this in the postfix log.

postfix/smtpd[4194]: connect from localhost[127.0.0.1]
postfix/smtpd[4194]: lost connection after CONNECT from localhost[127.0.0.1]
postfix/smtpd[4194]: disconnect from localhost[127.0.0.1]

bertalan.voros
bertalan.voros's picture
UPDATE 2

This was fixed by the Microsoft Certified Solution (restarting the server.)

However, the sender address looks like this:

nagios <"nagios@opsviewalerts"@mydomain.com>

How could this be cleared up?

bertalan.voros
bertalan.voros's picture
UPDATE 3

If I change myorigin = opsviewalerts@mydomain.com to 

myorigin = mydomain.com

Then the sender address looks like this: nagios@mydomain.com.

How do I customise the bit bofore the domain, nagios to something else?