• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Unable to update domain data

V

VitorR

Guest
When i try to add a new domain I get this error:
Error: Unable to update domain data: mailmng failed: Fatal error: plesk::mail::postfix::postfixConfigurationError(unable to parse /etc/postfix/master.cf)

Any help, please?
 
More details:
OS Linux 2.6.18-274.3.1.el5
Panel version 10.4.4 Update #18

When I try to restart SMTP Server (Postfix) from plesk Server Administration Panel:
ERROR: PleskUtilException
mailmng failed: Fatal error: plesk::mail::postfix::postfixConfigurationError(unable to parse /etc/postfix/master.cf)
0: Manager.php:165
mail_Manager::execWithException(string 'smart_exec', string 'mailmng', array, array, string 'lst')
1: Manager.php:220
mail_Manager->callMailManager(string 'restart-service', array)
2: Manager.php:488
mail_Manager->smtpControl(string 'restart')
3: class.ServiceControl.php:427
ServiceControl->action()
4: restart_services.php:22
require(string '/usr/local/psa/admin/htdocs/server/restart_services.php')
5: plesk.php:61
 
More details about server components:
awstats 7.0-11122114.swsoft
bind 9.3.6-16.P1.el5
coldfusion-support 10.13.0-cos5.build1013110822.13
courier-imap 3.0.8-cos5.build1013111101.14
httpd 2.2.3-53.el5.centos.3
mailman 2.1.9-6.el5_6.1
mod_bw 0.8-11082213
mod_perl 2.0.4-6.el5
mod_python 3.2.8-3.1
mysql 5.0.77-4.el5_6.6
perl-Apache-ASP 2.59-0.93298
php 5.3.3-1.el5_7.3
postfix 2.8.4-11100518
postgresql-server 8.1.23-1.el5_7.3
PPSitebuilder 10.4.4-36793.11110312
psa 10.4.4-cos5.build1013111102.18
psa-api-rpc 10.13.4-cos5.build1013111102.18
psa-atmail 1.04-cos5.build1013111101.14
psa-autoinstaller 3.11.0-111102.17
psa-backup-manager 10.13.4-cos5.build1013111102.18
psa-horde 3.3.10-cos5.build1013111101.14
psa-imp 4.3.9-cos5.build1013111101.14
psa-kav8 8.0.3-0.303893
psa-logrotate 3.7-cos5.build1013111101.14
psa-migration-manager 10.13.4-cos5.build1013111102.18
psa-miva 5.06-cos5.build1013111101.14
psa-mod-fcgid-configurator 2.0.0-cos5.build1013111101.14
psa-proftpd 1.3.3e-cos5.build1013111101.14
psa-rubyrails-configurator 1.1.6-cos5.build1013111101.14
psa-spamassassin 10.13.4-cos5.build1013111102.18
psa-tomcat-configurator 10.13.4-cos5.build1013111101.14
psa-turba 2.3.5-cos5.build1013111101.14
ruby 1.8.5-19.el5_6.1
samba 3.0.33-3.29.el5_7.4
spamassassin 3.3.1-2.el5
SSHTerm 0.2.2-10.11082213
synced 1329624363
tomcat 5.5.23-0jpp.17.el5_6
webalizer 2.01_10-30.1
 
And my services panel:
serverj.gif
 
When I try to stop services have the same error:

# /usr/local/psa/admin/sbin/mailmng --stop-service
Fatal error: plesk::mail::postfix::postfixConfigurationError(unable to parse /etc/postfix/master.cf)
Fatal error: plesk::mail::postfix::postfixConfigurationError(unable to parse /etc/postfix/master.cf)

Really need some advice... :(
 
Hi there mate, I hope it is not to late but here is the answer:
You need to manually fix the problem:
#Create the virtual.db file
postmap /etc/postfix/virtual

#Copy the .db file to the location you see in the error message:
cp /etc/postfix/virtual.db /var/spool/postfix/plesk/virtual.db

This will allow you to add domains on your server.
 
Hi there mate, I hope it is not to late but here is the answer:
You need to manually fix the problem:
#Create the virtual.db file
postmap /etc/postfix/virtual

#Copy the .db file to the location you see in the error message:
cp /etc/postfix/virtual.db /var/spool/postfix/plesk/virtual.db

This will allow you to add domains on your server.
Thanks Noxext but this don't solve my problem... maybe I can't understand what you are saying, I do exactly what you say:
# postmap /etc/postfix/virtual
# cp /etc/postfix/virtual.db /var/spool/postfix/plesk/virtual.db

And I replace the virtual.db at "/var/spool/postfix/plesk/"... but still have the same problem.

This error isn't related with master.cf?

Thanks!
 
This is my /etc/postfix/
-rw-r--r-- 1 root root 20876 Oct 5 12:49 access
-rw-r--r-- 1 root root 11681 Oct 5 12:49 canonical
-rw-r--r-- 1 root root 9904 Oct 5 12:49 generic
-rw-r--r-- 1 root root 21535 Oct 5 12:49 header_checks
-rw-r--r-- 1 root root 28415 Feb 20 13:34 main.cf
-rw-r--r-- 1 root root 27013 Oct 5 12:49 main.cf.rpmnew
-rw-r--r-- 1 root root 5190 Feb 8 23:51 master.cf
-rw-r--r-- 1 root root 5715 Oct 5 12:49 master.cf.rpmnew
-rw------- 1 root root 3017 Oct 3 22:10 postfix_default.pem
-rw------- 1 root root 1024 Nov 22 12:49 prng_exch
-rw-r--r-- 1 root root 6816 Oct 5 12:49 relocated
-rw-r--r-- 1 root root 12549 Oct 5 12:49 transport
-rw-r--r-- 1 root root 12494 Oct 5 12:49 virtual
-rw-r--r-- 1 root root 12288 Feb 20 19:57 virtual.db
 
And my master.cf:
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 1 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

plesk_virtual unix - n n - - pipe flags=DORhu user=popuser:popuser argv=/usr/lib64/plesk-9.0/postfix-local -f ${sender} -d ${recipient} -p /var/qmail/mailnames
mailman unix - n n - - pipe flags=R user=mailman:mailman argv=/usr/lib64/plesk-9.0/postfix-mailman ${nexthop} ${user} ${recipient}
plesk_saslauthd unix y y n - 1 plesk_saslauthd status=5 listen=6 dbpath=/var/spool/postfix/plesk/passwd.db

smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes

retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
#smtp inet n - n - 1 postscreen
#smtpd pass - - n - - smtpd
#dnsblog unix - - n - 0 dnsblog
#tlsproxy unix - - n - 0 tlsproxy

188.XXX.XX.XXX- unix - n n - - smtp -o smtp_bind_address=188.XXX.XX.XXX -o smtp_bind_address6= -o smtp_address_preference=ipv4
 
SOLVED!

Don't know how... after a "vi master.cf" and close it with ":wq" it works!

UUUFA!
 
Back
Top