pt., 10 maj 2024 o 16:13 Wietse Venema via Postfix-users < postfix-users@postfix.org> napisał(a):
All at once answer, hope it's OK: IP's: ^^^^^^^^^^^^^^^^^^^^^^^^^ dig mx mxmail.adatum.net +short | cut -d' ' -f2 | xargs dig a +short 10.56.155.14 10.32.32.103 10.32.32.104 10.26.15.31 10.26.15.32 10.26.15.34 And this one is favorized nlp3.loc-prd.net = 10.26.15.31 $$$$$$$$$$$$$$$$$$$$$$$$$ RESOLV.CONF and DIG: ^^^^^^^^^^^^^^^^^^^^^^^^^ cat /etc/resolv.conf search adatum.net nameserver 10.20.30.10 nameserver 10.20.30.20 AND: dig mx mxmail.adatum.net ... ;; ANSWER SECTION: mxmail.adatum.net. 146 IN MX 10 nlp1.loc-prd.net. mxmail.adatum.net. 146 IN MX 10 nlp2.loc-prd.net. mxmail.adatum.net. 146 IN MX 10 nlp3.loc-prd.net. mxmail.adatum.net. 146 IN MX 10 nlp6.loc-prd.net. mxmail.adatum.net. 146 IN MX 10 nlp5.loc-prd.net. mxmail.adatum.net. 146 IN MX 10 nlp4.loc-prd.net. ;; Query time: 0 msec ;; SERVER: 10.20.30.10#53(10.20.30.10) ;; WHEN: Fri May 10 15:26:10 BST 2024 ;; MSG SIZE rcvd: 261 -------------------------- also: dig a mxmail.adatum.net NOTHING ( no A record in DNS for this) $$$$$$$$$$$$$$$$$$$$$$$$$ CONFIG: ^^^^^^^^^^^^^^^^^^^^^^^^^ alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases allow_min_user = yes allow_percent_hack = no append_dot_mydomain = no best_mx_transport = local default_database_type = hash default_process_limit = 500 delay_warning_time = 16 disable_vrfy_command = no enable_long_queue_ids = yes header_checks = pcre:/etc/postfix/header_checks.pcre html_directory = no inet_interfaces = all inet_protocols = ipv4 local_recipient_maps = $alias_maps mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /app/PFXpostfix/postfix/usr/local/man mydestination = $myhostname, localhost.$mydomain, localhost, smtp.mydomain.com, mailhost mynetworks = 127.0.0.1, 10.20.30.5 myorigin = anonymized.com nested_header_checks = queue_directory = /var/spool/postfix readme_directory = no relayhost = mxmail.adatum.net setgid_group = postdrop smtp_host_lookup = dns, native smtp_mx_address_limit = 10 smtp_tls_loglevel = 1 smtp_tls_mandatory_ciphers = high smtp_tls_security_level = may swap_bangpath = no syslog_name = postfix transport_maps = hash:/etc/postfix/transport.map $$$$$$$$$$$$$$$$$$$$$$$$$ > > We have another 2 servers with the same setup, and they relay quite > equally. > > Equally as in that they also "prefer" the same MX host? Or a different one? > > It means, we have other set of mailhost + other 6 relayhosts, all setup the same, and this other set is working fine, round robin, equal amount of emails relayed, etc. Please provide evidence in the form of logs that show the preference. > > grep 'postfix/smtp.*relay=' /the/maillog/file | grep -v > nlp3.loc-prd.net > > Is this OK / enough ? Logs: ^^^^^^^^^^^^^^^^^^^^^^^^^ grep relay=nlp[123456].*status=sent /var/log/maillog | sed 's/.*relay=//' | sed 's/,.*//' | sort | uniq -c 5770 nlp1.loc-prd.net[10.56.155.14]:25 5694 nlp2.loc-prd.net[10.32.32.103]:25 5402 nlp4.loc-prd.net[10.32.32.104]:25 21531 nlp3.loc-prd.net[10.26.15.31]:25 5570 nlp6.loc-prd.net[10.26.15.32]:25 5694 nlp5.loc-prd.net[10.26.15.34]:25 $$$$$$$$$$$$$$$$$$$$$$$$$ Best regards, John pt., 10 maj 2024 o 16:13 Wietse Venema via Postfix-users < postfix-users@postfix.org> napisał(a): > John Doe via Postfix-users: > > Hi, > > > > I was hoping for real MX record round-robin but it does not work on one > of > > my servers. > > > > Somehow, postfix is prioritising one of the MX more than others. > > By default, Postfix looks up SMTP servers in DNS, and randomizes > the order of equal-preference records. After 25 years this is one > of the more bizarre problem reports. > > > Always the same: nlp3.loc-prd.net > > Then you aren't using the default settings for server lookup, or > Postfix is using a different resolver than your manual tests (with > dig), or Postfix has to ignore hosts that speak only IPv6 while > Postfix speaks only IPv4, or your resolver is doing nasty things. > > Postfix has no built-in DNS protocol support and relies on system > infrastructure. Historically that was a local bind or unbound > server, but more recently, systemd has also invaded into this > territory. > > > All MX servers, are in local network to this client mailserver. > > Postfix can handle that. > > > We have relayhost in main.cf: > > > > relayhost = mxmail.adatum.net > > Good. You have MX lookups turned on. > > > We have MX record for this relayhost with equal weights of 10 for each, > DNS > > TTL is setup to 300s, dns system is BIND, not Windows. > > > dig mx mxmail.adatum.net > > Can you demonstrate that this uses the exact same resolv.conf file > as Postfix? > > > mxmail.adatum.net. 146 IN MX 10 nlp1.loc-prd.net. > > mxmail.adatum.net. 146 IN MX 10 nlp2.loc-prd.net. > > mxmail.adatum.net. 146 IN MX 10 nlp3.loc-prd.net. > > mxmail.adatum.net. 146 IN MX 10 nlp6.loc-prd.net. > > mxmail.adatum.net. 146 IN MX 10 nlp5.loc-prd.net. > > mxmail.adatum.net. 146 IN MX 10 nlp4.loc-prd.net. > > What are the IP addresses for these hosts? Postfix will > use only hosts that it gets an IP address for. > > > Some setup parametres for better view: > > This is not useful, because you select only the things that YOU > thnk are useful. Send "postconf -n" output (as an attachment if > your mail software does not respect line endomgs and mashes everything > up. > > There is no need for smtpd_xxx settings. > > But I do need to see things like any non-default inet_protocol settings. > > > We have another 2 servers with the same setup, and they relay quite > equally. > > Equally as in that they also "prefer" the same MX host? Or a different one? > > > Anything that will help to sove this issue would be much appreciated. > > Please provide evidence in the form of logs that show the preference. > > grep 'postfix/smtp.*relay=' /the/maillog/file | grep -v > nlp3.loc-prd.net > > You can anonymize user names and domain names, and you can omit > mail that wasn't using the $relayhost setting. > > Wietse > _______________________________________________ > Postfix-users mailing list -- postfix-users@postfix.org > To unsubscribe send an email to postfix-users-le...@postfix.org >
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org