I have RHEL 5.4 with Postfix running fine for local delivery. The machine is on a separate network and has no outside access apart from a punch in the firewall for SMTP. I'm trying to get nagios to send alerts to an outside email address. I look at the logs and everything goes through fine, but I never receive a test message.
If I change the nagios alert mail back to nagios@thismachine I get alerts. But when I set it to go outside the LAN to the email account created EG, alert.outside.somehwere.com it gets lost. Here is my main.cf file to digest and see what mistakes I've made.
queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = $mydomain mydomain = localhost.thismachine.com myorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain ## mynetworks = 127.0.0.0/8 ## RELAY DOMAIN ## relay_domain = 22.214.171.124 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop disable_dns_lookups = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options =
EDIT: Now I'm getting the error listed below. BIND is not on this system. Like I said it's just on a LAN with 1 punch through the corporate firewall to allow nagios alerts to go out from this machine to an external address that was created.
Name service error for name = somedomain.com type=MX: Host not found, try again