Hello,
A client has a domain (sample.com) which resolves to the IP 190.190.168.54
The MX records this domain point to another IP completely different:
64.233.171.27

My postfix server houses the domain someotherdomain.com, the problem is that
I am unable to send email to my clients domain.

When I look in the log files, I see that postfix is trying to send the email
to the HOST and not the MX servers.
Sep  8 11:04:40 mailserver postfix/smtp[23528]: C6B494C421D: to=<
[EMAIL PROTECTED]>, relay=none, delay=1, status=deferred (connect to
sample.com[190.190.168.54]: Connection refused)

The DNS table looks like

@ A 190.190.168.54
@ MX 1  aspmx.l.google.com.
@ MX 5  alt1.aspmx.l.google.com.
@ MX 5  alt2.aspmx.l.google.com.
@ MX 10 aspmx2.googlemail.com.
@ MX 10 aspmx3.googlemail.com.
@ MX 10 aspmx4.googlemail.com.
@ MX 10 aspmx5.googlemail.com.

When I resolve using TYPE=MX all looks fine, in fact the client is able to
receive email from other severs except this one postfix.

Why is the postfix server trying to connect to the host (web server) instead
of the mail servers?

postconf -n produces:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mail_spool_directory = /var/mail/
mailbox_size_limit = 0
mydestination = localhost
myhostname = mailserver.someotherdomain.com
mynetworks = 127.0.0.0/8,201.218.24.200/29
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes

PS. Sometimes (not often) the postfix servers delivers email succesfully,
but it is less than 25% of the time.

Thanks.

Reply via email to