Joris Dobbelsteen wrote, On 22-07-09 00:27:
Wietse Venema wrote, On 21-07-09 23:12:
Joris Dobbelsteen:
[ Charset ISO-8859-1 unsupported, converting... ]
I'm using Postfix 2.3 (with debian etch, but I'm planning to go to
postfix 2.5 with debian lenny). I'm using the postfix box solely for
relaying e-mail and doing virus/spam scanning. Mail for local domains
is relayed to a local server and everything else goes to my ISPs
server. I currently use transport_maps to manage this and that is
working fine for a couple years.
Now I want to reduce the use of my ISP mail server. For IPv4 this is
not possible: its troublesome with residential access & my ISP blocks
outgoing port 25. However I have an IPv6 ip address where mail
delivery is available.
Is there any possibility to use the "transport_maps" to indicate
multiple destinations?
No, but perhaps it is enough to set smtp_fallback_relay to the ISP.
smtp_fallback_relay = [mail.isp.example]
Wietse
I thought so. Thanks for the confirmation, suggestion and fast reply.
However that option is scaring me due to mailing loops. Postfix is
behind NAT on a residential ADSL connection, meaning it doesn't know its
Internet IP address (for certain). Besides the 'internal' hostname
doesn't necessarily reflect the outside one.
This is because "internal" is also a relay destination and I simply
cannot guarantee it's ready to receive email.
====
A better idea seems to be looking a bit deeper into master.cf and see if
I can add some entry here that does what I want.
[snip]
What I currently tested is below, but it simply does not work:
---
familiedobbelsteen.nl relay:joris2k.local
* direct6:
---
smtp unix - - - - - smtp
direct6 unix - - - - - smtp
-o inet_protocol=ipv6
-o smtp_fallback_relay=smtp:[smtp.online.nl]
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
---
I guess it doesn't like the ipv6 part of it at all. It seems that it
doesn't work with ipv4 any more.
Log gives:
Jul 21 04:52:17 mx1 postfix/smtp[6213]: connect to
smtp.online.nl[194.134.41.21]: No route to host (port 25)
And I can confirm its absolutely not true, except for IPv6.
- Joris