On Fri, Oct 30, 2015 at 02:21:21PM -0500, Keegan Jacobson wrote:

> 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).

    http://www.postfix.org/discard.8.html
    http://www.postfix.org/transport.5.html
    http://www.postfix.org/virtual.5.html
    http://www.postfix.org/postconf.5.html#transport_maps
    http://www.postfix.org/postconf.5.html#virtual_alias_maps
    http://www.postfix.org/postmap.1.html

    transport:
        discard.invalid    discard:silently

    virtual:
        smtp-pr...@example.com  smtp-probe@discard.invalid

    main.cf:
        indexed = ${default_database_type}:${config_directory}/
        transport_maps = ${indexed}transport
        virtual_alias_maps = ${indexed}virtual

-- 
        Viktor.

Reply via email to