Zsombor B:
> 
> Hi All,
> 
> 
> Customer asked us to relay their mails to a specific smtp server.
> 
> Actually they provided 6 possible destination servers.
> 
> 
> When add them to sender_dependent_relayhost_maps postmap complains  
> that there are duplicate entries:
> 
> @foo.bar [mail1.whatever]:123
> @foo.bar [mail2.whatever]:123
> @foo.bar [mail3.whatever]:123

There can be only one table entry with the name @foo.bar. The
postmap command ignores the rest with a warning.

> How can I solve this?

Postfix 3.5 supports multiple relayhosts:

transport_maps example:
    example.com relay:[mail1.example]:123, [mail2.example]:123, ...

sender_dependent_relayhost_maps example:
    @foo.bar [mail1.example]:123, [mail2.example]:123, ..

This is a fixed order (as if you had multiple records in /etc/hosts).

If these folks want to receive mail in six places, why can't they
set up DNS records like everyone else does?

        Wietse

Reply via email to