I recently updated a server's Ubuntu version, and multi-domain
sender-dependent transport for Postfix has stopped working. Postfix is
now at 2.11.0, but I'm not actually sure what version it was at before.

This installation serves two domains, one of which is the one I'm using
to send this message. The other is supposed to be switched to a
different outgoing IP/host using
sender_dependent_default_transport_maps. This has been working just fine
for many months.

Since the server upgrade, all messages sent by the other domain show as
being sent by the IP for ericabrahamsen.net, and SPF checks are failing.
Ie, the smtp_bind_address in master.cf below isn't taking effect.

Incoming mail is accepted at the two different IP addresses as usual.

I don't know if this is due to a change in postfix configuration, or
something to do with networking on my server. I have also queried my
hosting provider.

Below is what I've got for my configuration. Can anyone tell me if any
of this looks wrong?

Thanks!
Eric

main.cf:
myhostname = mail.ericabrahamsen.net
mydomain = mail.ericabrahamsen.net
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_transports

sender_transports:
@ericabrahamsen.net  ea-out:
@paper-republic.org  pr-out:

master.cf:
# only posting the misbehaving domain
184.106.81.119:smtp   inet    n   -   n   -  1  postscreen
  -o smtpd_tls_key_file=/etc/ssl/key
  -o smtpd_tls_cert_file=/etc/ssl/pem
  -o syslog_name=paper-republic.org
  -o smtp_helo_name=mail.paper-republic.org
  -o smtp_bind_address=184.106.81.119
  -o myhostname=mail.paper-republic.org
  -o smtpd_service_name=smtpd_184.106.81.119
  -o tlsproxy_service_name=tlsproxy_184.106.81.119

tlsproxy_184.106.81.119  unix - - n - 0 tlsproxy
  -o syslog_name=paper-republic.org
  -o smtpd_tls_key_file=/etc/ssl/key
  -o smtpd_tls_cert_file=/etc/ssl/pem

smtpd_184.106.81.119 pass - - n - - smtpd
  -o smtpd_tls_key_file=/etc/ssl/key
  -o smtpd_tls_cert_file=/etc/ssl/pem
  -o syslog_name=paper-republic.org

184.106.81.119:submission inet n    -   n   -   -  smtpd
  -o smtpd_tls_key_file=/etc/ssl/key
  -o smtpd_tls_cert_file=/etc/ssl/pem
  -o myhostname=mail.paper-republic.org
  -o mydomain=mail.paper-republic.org
  -o syslog_name=paper-republic.org

pr-out  unix -       -       n       -       -       smtp
   -o smtp_bind_address=184.106.81.119
   -o myhostname=mail.paper-republic.org
   -o smtp_helo_name=mail.paper-republic.org
   -o syslog_name=paper-republic.org

It's this last clause which doesn't seem to be working.

Reply via email to