Hello,

We use Google Apps as our primary mail server, but our internal servers all
use and relay off of Postfix. Our configuration is fairly bare-bones, it
basically just lets us send mail.

What I'm trying to do - is add these servers to our load balancer, and I
want to check for availability by having the load balancer try to
successfully send email (I have seen this referenced and others have done
it, but not posted exactly how they went about configuring it).

I am looking to have the load balancer when it attempts to send an email,
when it tries to send this email account to simply have the mail go
straight to /dev/null because I am not interested in the contents of the
email or any record of it - it is being used to see if the service is
processing mail and that is it. I am curious how I would go about setting
this up, I did try my hand at working with /etc/aliases and
virtual_alias_maps to no avail (I simply must not know how to configure it
properly).

Here is what my current postconf -n looks like, and I have defaulted my
/etc/aliases file and virtual_alias_maps for the time being because I
couldn't get it to work. Thank you

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    config_directory = /etc/postfix
    inet_interfaces = all
    inet_protocols = all
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    mydestination = mail.contoso.com, localhost.localdomain, localhost
    myhostname = mail.contoso.com
    mynetworks = 10.0.0.0/8 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    myorigin = /etc/mailname
    readme_directory = no
    recipient_delimiter = +
    relayhost = smtp-relay.gmail.com
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_helo_restrictions = warn_if_reject check_helo_access static:reject
    smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
defer_unauth_destination
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes

-- 
[CONFIDENTIALITY AND PRIVACY NOTICE]

Information transmitted by this email is proprietary to Physio-Control and 
is intended for use only by the individual or entity to which it is 
addressed, and may contain information that is private, privileged, 
confidential or exempt from disclosure under applicable law. If you are not 
the intended recipient or it appears that this mail has been forwarded to 
you without proper authority, you are notified that any use or 
dissemination of this information in any manner is strictly prohibited. In 
such cases, please delete this mail from your records.
 
To view this notice in other languages you can either select the following 
link or manually copy and paste the link into the address bar of a web 
browser: http://www.physio-control.com/emaildisclaimer/

Reply via email to