3

I have received an alerting email about the Mailqueue length from the Nagios:

Additional Info: WARN - Mailqueue length is 18 (More than threshold: 10)

In the mailq, I see some messages like this:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
A7B39BFB01A7    16746 Tue Apr  9 08:54:57  noreply@domain.vn
                   (connect to asdasd.vn[203.119.8.111]: Connection timed out)
                                         asdasfjkhgkjhkah@asdasd.vn

The value of smtpd_recipient_restrictions:

smtpd_recipient_restrictions = 
    permit_sasl_authenticated,
    permit_mynetworks,
    reject_unauth_destination,
    check_policy_service unix:private/policy,
    reject_unknown_recipient_domain,
    reject_unverified_recipient

Notice that I've enabled the reject_unknown_recipient_domain.

But let's see which IP address that domain is mapped to:

$ nslookup asdasd.vn
Server:     8.8.8.8
Address:    8.8.8.8#53

Non-authoritative answer:
asdasd.vn   canonical name = thongbao.vnnic.vn.
Name:   thongbao.vnnic.vn
Address: 203.119.8.111

Is there any way to disable this behaviour besides blacklist the 203.119.8.111?


UPDATE 1

/var/log/maillog:

Apr 9 15:50:36 mail postfix/qmgr[18585]: 23A66BFB01A0: to=<asdasfjkhgkjhkah@asdasd.vn>, relay=none, delay=25004, delays=24983/21/ 0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to asdasd.vn[203.119.8.111]: Connection timed out)

quanta
  • 52,423

1 Answers1

1

You could run it through postfix_header_checks just set up a line that says /^To:.*@asdasd.vn/ REJECT, or you could do something else if you prefer..

The nice thing about header checks is you can add as many of those as you'd like.

NickW
  • 10,289