Question

Postfix restart issue.

Hello, so i was following up this guide on google; https://hostpresto.com/community/tutorials/how-to-setup-an-email-server-on-centos7/ Followed all instructions, and guide said to restart postfix/dovecot to apply changes, so i went ahead and when i tried to restart postfix, i recieved errors and it wasn’t able to restart the process, i will include the error stack here, so maybe you could give me heads up whats going on there. After doing postfix check I got stack trace like

postfix: warning: unreasonable macro call nesting: "mydomain"
postfix: warning: unreasonable macro call nesting: ", localhost, "
postfix: warning: unreasonable macro call nesting: "mydomain"
postfix: fatal: dictionary mail_dict: macro processing error

Edited files (/etc/hosts, /etc/postfix/main.cf, /etc/postfix/master.cf, /etc/dovecot/conf.d/10-master.conf, /etc/dovecot/conf.d/10-auth.conf, /etc/dovecot/conf.d/10-mail.conf, /etc/dovecot/conf.d/20-pop3.conf

Now i will include my current code on these files, i will be using pastebin in that case. Main.cf = https://pastebin.com/GvBy5jn9 Master.cf = https://pastebin.com/gCte9PJ0 10-master.conf = https://pastebin.com/UhH4bG0y 10-auth.conf = https://pastebin.com/Fa0yTCVX 10-mail.conf = https://pastebin.com/LhjxKa8D 20-pop3.conf = https://pastebin.com/zh1sRWEH

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Please contact http://jesthost.co . We would love to help you for free…!

Hi @iskovadiana95

It’s very difficult to read the main.cf with all those comments. I would recommend that you make a backup of the file and then remove all the comments.

Your problem is at line 682. Which doesn’t have a valid domain. There are other problems with the configuration too.

You can see a simple example of a Postfix configuration here: https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6