On Wed, January 14, 2009 10:23 am, Chris Babcock wrote:
> I'm using multiple instances of Postfix. One of the IP addresses I just
> started using is blocked by a major provider. I've gone through all the
> hoops... It's not on any RBLs, rDNS records match the hostname, etc., but
> I have no indication that this provider has even received my
> request about the block let alone plans to remove it.
>
> Meanwhile, I'm using "relayhost = [IP-of-other-Postfix-instance]" to
> send mail through an IP address that isn't blocked, which kind of defeats
> my purposes for having multiple Postfix instances.
>
> What I want to do is configure an alternate transport for this domain
> like...
>
> /etc/postfix-asciiking/main.cf:
> transport_maps = hash:/etc/postfix-asciiking/transport
>
> /etc/postfix-asciiking/master.cf:
> blocked      unix  -       -       n       -       -       smtp -o
> relayhost = [IP-of-other-Postfix-instance]
>
> /etc/postfix-asciiking/transport
> earthlink.com blocked:
> mindspring.com        blocked:

Put the "IP-of-other-Postfix-instance" after "blocked:"

See: http://www.postfix.org/transport.5.html

       When  no  nexthop  host name is specified, the destination
       domain name is used instead. For  example,  the  following
       directs  mail  for u...@example.com via the slow transport
       to a mail exchanger for example.com.  The  slow  transport
       could be configured to run at most one delivery process at
       a time:

            example.com      slow:


-Matt

>
>
> When I tried this, I did postmap on the tranport file and postfix reload
> for that configuration, but the logs clearly showed the asciiking Postfix
> instance attempting to make direct delivery to Earthlink rather than
> handing it to the other instance for delivery. I'm trying to follow
> "Configuring an Alternate Transport" from p 403 of 'The Book of
> Postfix'. Is my transport misconfigured? Is transport_maps the right
> main.cf parameter? Something painfully obvious?
>
> Thanks,
> Chris Babcock
>
>
>


-- 
Matt Rude
website: http://www.mattrude.com  -  wiki: http://wiki.mattrude.com
PGP Fingerprint: 0E94 70DA 89F8 5102 0862  5EA2 CB10 759E E65F 2C46

Reply via email to