User Tools

Site Tools


Mail troubleshooting

Error: 554 Service unavailble, No IP queries

Apr  9 11:09:08 myhostname postfix/smtpd[11535]: disconnect from unknown[]
Apr  9 11:09:10 myhostname postfix/smtpd[12679]: connect from[]
Apr  9 11:09:10 myhostname postfix/smtpd[12679]: NOQUEUE: reject: RCPT from[]: 554 5.7.1 Service unavai
lable; Client host [] blocked using; No IP queries, see
DBL#279; from=<> to=<> proto=ESMTP helo=<>
Apr  9 11:09:10 myhostname postfix/smtpd[12679]: disconnect from[]
Apr  9 11:09:12 myhostname postfix/smtpd[10216]: connect from unknown[]


smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/, reject_rbl_client, reject_rbl_client

remove “reject_rbl_client” from above

postfix check
postfix reload

Error: Invalid HELO name

If you get an error like this:

  This message was created automatically by mail delivery software.
  A message that you sent could not be delivered to one or more of its
  recipients. This is a permanent error. The following address(es) failed:
      SMTP error from remote mail server after MAIL FROM:<> SIZE=3627:
      host [<someip>]: 550 Access denied - Invalid HELO name (See RFC2821

A python script was sending an email via exim.

Some SMTP servers require you to send a valid host name with the HELO command that also is the same as the reverse DNS of the IP address the request originates from.

To resolve this add FQDN and hostname in /etc/hosts:

  root@hostname:~# cat /etc/hosts
  <ipaddress> subdomain # add this line	localhost
  ::1		localhost ip6-localhost ip6-loopback
  fe00::0		ip6-localnet
  ff00::0		ip6-mcastprefix
  ff02::1		ip6-allnodes
  ff02::2		ip6-allrouters

hostname -f should now return FQDN correctly

  root@subdomain:~# hostname -f

Tested on

  • Debian 7 Wheezy
  • Exim version 4.80 #3 built 10-Feb-2018 15:37:27

See also


wiki/mail_troubleshooting.txt · Last modified: 2021/04/10 23:15 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki