If you activated dial-on-demand, enter a value in the file /etc/hosts. Postfix does not contact the name server when delivering mail.