At the moment it's failing to start postfix. Here's the error I'm receiving:
warning: unreasonable macro call nesting: "mydomain"
warning: unreasonable macro call nesting: ", localhost."
warning: unreasonable macro call nesting: "mydomain"
warning: unreasonable macro call nesting: ", localhost, "
warning: unreasonable macro call nesting: "mydomain"
fatal: dictionary mail_dict: macro processing error
postfix.service: control process exited, code=exited status=1
Failed to start Postfix Mail Transport Agent.
Unit postfix.service entered failed state.
postfix.service failed.
Here's my main.cf (Only included the bit that's uncommented and been added to the file):
myhostname = mail.domain.net
mydomain = domain.net
myorigin = $mydomain
home_mailbox = mail/
mynetworks = 127.0.0.0/8
inet_interfaces = all
inet_protocols = all
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_key_file = /etc/postfix/ssl/server.key
smtpd_tls_cert_file = /etc/postfix/ssl/server.crt
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
In the above code I've edited the mail.domain.net and domain.net in my local piece of code.
Postconf -n in full:
postconf: warning: unreasonable macro call nesting: "mail.domain.net mydomain = domain.net myorigin = "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: " home_mailbox = mail/ mynetworks = 127.0.0.0/8 relay_domains = inet_interfaces = all inet_protocols = all mydestination = "
postconf: warning: unreasonable macro call nesting: "myhostname"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost."
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: warning: unreasonable macro call nesting: ", localhost, "
postconf: warning: unreasonable macro call nesting: "mydomain"
postconf: fatal: dictionary mail_dict: macro processing error
Best Answer
I see one error on your main.cf: there should only be one line for
inet_interfaces
andlocalhost
is not a valid value for ìnet_interfaces`From http://www.postfix.org/postconf.5.html#inet_interfaces