Hello all!
I'm looking at logs of my postfix-2.6.6 and wonder how postfix chooses
which MX it'll connect.
There is some "cool" configured domain simplusnet.pl:
simplusnet.pl. 300 IN SOA plusmx1.polkomtel.com.pl.
postmaster.plusgsm.pl. 2010122205 28800 7200 1209600 86400
simplusnet.pl. 300 IN MX 20 mx2.plusnet.pl.
simplusnet.pl. 300 IN MX 50 mx3.plusnet.pl.
simplusnet.pl. 300 IN MX 10 mx1.plusnet.pl.
mx1 & mx3 resolve to the same IP address, and permanently refuses
connections to smtp port.
Works only mx2. And now going back to logs:
Apr 11 00:15:27 [postfix/smtpd] 77ECE33058: client=localhost[127.0.0.1]
Apr 11 00:15:27 [postfix/cleanup] 77ECE33058:
message-id=<20110410221527.6C0C4330CE@...>
Apr 11 00:15:27 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 00:15:27 [postfix/smtp] 6C0C4330CE: to=<[email protected]>,
relay=127.0.0.1[127.0.0.1]:10025, delay=0.41, delays=0.32/0/0.04/0.06,
dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 77ECE33058)
Apr 11 00:15:27 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=0.07, delays=0.06/0/0.02/0, dsn=4.4.1, status=deferred
(connect to mx3.plusnet.pl[212.2.120.79]:25: Connection refused)
Apr 11 00:24:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 00:24:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=550, delays=550/0.01/0.02/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 00:34:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 00:34:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=1150, delays=1150/0.02/0.01/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 00:54:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 00:54:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=2350, delays=2350/0/0.01/0, dsn=4.4.1, status=deferred
(connect to mx3.plusnet.pl[212.2.120.79]:25: Connection refused)
Apr 11 01:34:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 01:34:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=4750, delays=4750/0.02/0.06/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 02:44:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 02:44:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=8950, delays=8950/0.01/0.01/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 03:54:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 03:54:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=13150, delays=13150/0.01/0.05/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 05:04:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 05:04:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=17350, delays=17350/0.01/0.02/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 05:04:37 [postfix/bounce] 77ECE33058: sender delay notification:
B5FA4330CD
Apr 11 06:14:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 06:14:38 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=21551, delays=21550/0.01/0.05/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 07:24:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 07:24:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=25750, delays=25750/0.01/0.07/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 08:34:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 08:34:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=29950, delays=29950/0.01/0.06/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 09:44:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 09:44:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=34150, delays=34150/0.04/0.08/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 10:54:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 10:54:38 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=38351, delays=38350/0.06/0.07/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 12:04:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 12:04:37 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=none, delay=42550, delays=42550/0.01/0.09/0, dsn=4.4.1,
status=deferred (connect to mx3.plusnet.pl[212.2.120.79]:25: Connection
refused)
Apr 11 13:14:37 [postfix/qmgr] 77ECE33058: from=<...@...>, size=1229,
nrcpt=1 (queue active)
Apr 11 13:14:48 [postfix/smtp] 77ECE33058: to=<[email protected]>,
relay=mx2.plusnet.pl[212.2.120.80]:25, delay=46761,
delays=46750/0.02/0.16/10, dsn=2.0.0, status=sent (250 OK
id=1Q9F4n-0000Hj-LU)
Apr 11 13:14:48 [postfix/qmgr] 77ECE33058: removed
Heh after 15 tries and 13 hours mail is delivered. Why postfix uses mx3
so many times?
And I have deliveries that not succeeded at all, because postfix was
connecting only to mx3 till delivery expired.
Does this has something to do with TTL of MX records? If MX records
expire in dns-cache
(after first try of delivery to second one is 9 minutes and 10 seconds -
and MX records expire in 5 minutes),
refreshing the cache makes postfix use again MX with lowest priority (mx3)?
I know there are transport_maps but I really do not want to use it -
situation with working/not-working MX'es may change and
problem will be back again...
Cheers,
--
Administrator Systemu
Fundacja "Opoka"
tel. 322308944