16.04 - how to solve this issue in postfix - Ask Ubuntu


"i did setup postfix https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04 of late facing error"

  postconf: fatal: /etc/postfix/main.cf, line 30: missing '=' after  attribute name: "smtpd relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination"   postconf: fatal: /etc/postfix/main.cf, line 30: missing '=' after attribute name: "smtpd relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination" 

main.cf file

# see /usr/share/postfix/main.cf.dist commented, more complete version # debian specific:  specifying file name cause first # line of file used name.  debian default # /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname esmtp $mail_name (ubuntu) biff = no # appending .domain mua's job. append_dot_mydomain = no # uncomment next line generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # tls parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # see /usr/share/doc/postfix/tls_readme.gz in postfix-doc package # information on enabling ssl in smtp client. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = exeter-thinkcentre-e73 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = $myhostname, localhost.$mydomain, $mydomain relayhost =  mynetworks = 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = loopback-only inet_protocols = 

you missing underscore (_) in line 30 between smtpd , relay:

smtpd_relay_restrictions = [...] 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User