Postfix restart issue.

May 15, 2017 421 views
Apache Email CentOS

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

2 Answers

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

by Etel Sverdlov
This tutorial explains how to install postfix and cyrus with yum, how to configure postfix, how to configure cyrus, how to install mailx, and how to send a test email. Postfix is free open source Mail Transfer Agent which works to route and deliver email.This tutorial should help you set up a mail server on a centos droplet.

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

Have another answer? Share your knowledge.