Hello Sandy & Per,

first I list my configuration, I work with IPv4:

master.cf:

smtp      unix  -       -       n       -       -       smtp
# ^ first IP for all except example.com
# bind second IP for example.com
smtp155   unix  -       -       n       -       -       smtp
    -o smtp_bind_address=xx.xx.xx.155

- - -

main.cf:

sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay

- - -

/etc/postfix/sender_relay:

@example.com                       smtp155:

- - -

I did postmap sender_relay and rcpostfix reload.


- - -

dig example.com:

; <<>> DiG 9.4.1-P1 <<>> example.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18538
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;example.com.             IN      A

;; ANSWER SECTION:
example.com.      3544    IN      A       xy.xy.xy.xy

;; Query time: 2 msec
;; SERVER: xy.xy.xy.xy#53(xy.xy.xy.xy)
;; WHEN: Sun Jan 20 19:06:24 2008
;; MSG SIZE  rcvd: 51


> > As far as I could read until now the sender_dependent_relayhost map
> > expects a domain as well on the right hand side, or? (like netxthop in
> > transport) E.g. smtp2:domainxy.com (it has to know to where to relay).
>
> No, it doesn't.  If you don't specify where to relay, the nexthop is the
> MX for the recipient domain.
>

So it works like transport basically?

I send a test mail:

mail -r [EMAIL PROTECTED] -s test [EMAIL PROTECTED]

It returns the described error:
<[EMAIL PROTECTED]>: Host or domain name not found. Name service
    error for name=smtp155 type=AAAA: Host found but no data record of
    requested type

What's the meaning of "Host found but no data record of requested type"?

Why does it work if I have a empty /etc/postfix/sender_relay? Without
DNS errors?

Thanks.
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to