Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have problem with postfix relay sendind mail from local network. I receive next error

    Jul  9 23:00:46 ext1 postfix/smtpd[2301]: warning: inet_protocols: disabling IPv6    name/address support: Protocol not supported
    Jul  9 23:00:46 ext1 postfix/smtpd[2301]: warning: TLS has been selected, but TLS support is not compiled in
    Jul  9 23:00:46 ext1 postfix/smtpd[2301]: connect from unknown[]
    Jul  9 23:00:46 ext1 postfix/smtpd[2301]: NOQUEUE: reject: RCPT from unknown[]: 554 5.7.1 <unknown[]>: Client host rejected: Access denied; from=<user@exxx> to=<xxx@yyy> proto=ESMTP helo=<[]>
    Jul  9 23:00:46 ext1 postfix/smtpd[2301]: disconnect from unknown[]
    Jul  9 23:00:46 ext1 dovecot: pop3-login: Login: user=<user@xxx>, method=PLAIN, rip=, lip=
    Jul  9 23:00:46 ext1 dovecot: POP3(user@xxx): Disconnected: Logged out top=0/0, retr=0/0,     del=0/0, size=0


    queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
myhostname = localhost
mydomain = localdomain
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks =,
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debugger_command =
    ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
virtual_mailbox_base = /usr/mail/
virtual_alias_maps = mysql:/usr/local/etc/postfix/
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/
virtual_minimum_uid             = 65534
virtual_uid_maps                = static:65534
virtual_gid_maps                = static:65534
virtual_transport               = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination

Can you please help to find where problem is. Thanks

share|improve this question

Firstly, you should change "localhost" and "localdomain" to your actual hostname and domain. Second, you've got two different parameters for trusted hosts - you've got

mynetworks_style = host
mynetworks =,

The first one says to trust only this host. There's no reason to have it when you're specifying networks on the next line and it may be what's causing your problems.

share|improve this answer

I usually define allowed networks in mynetworks file inside /etc/postfix dir.

Then add

mynetworks = $config_directory/mynetworks


Save and restart postfix

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.