Server configuration error postconf -n attached

I've sent from .mac account and email not received. Also get Server configuation error on smtp rejection message. This started after I removed zen.spamhaus.org. I know have 2 entries for zen.spamhaus.org and cannot access /etc/postfix/main.cf from the root.

any help appreciated

ADMServer:~ root# postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug peerlevel = 2
enable serveroptions = yes
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox sizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps rbldomains =
message sizelimit = 10485760
mydestination = $myhostname,localhost.$mydomain,localhost,admgmt.com
mydomain_fallback = localhost
myhostname = mail.admgmt.com
mynetworks = 127.0.0.1/32
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd clientrestrictions = permit_mynetworks zen.spamhaus.org reject rblclient zen.spamhaus.org permit
smtpd pw_server_securityoptions = cram-md5
smtpd recipientrestrictions = permit sasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpd sasl_authenable = yes
smtpd tls_keyfile =
smtpd use_pwserver = yes
unknown local_recipient_rejectcode = 550

Dual G5, Mac OS X (10.4.10)

Posted on Jun 26, 2007 4:16 PM

Reply
4 replies

Jun 26, 2007 5:09 PM in response to Kerry Adams

It's not at all clear what you mean by you "can't access /etc/postfix/main.cf from the root"

Open a terminal window and type:

Stop mail services via:
sudo serveradmin stop mail

and when asked for your password, give your (admin) password.

Then:
cd /etc/postfix
sudo cp main.cf main.cf.bak

(for example).

then use vi/pico (really nano in 10.4) or emacs to edit main.cf
ie:
sudo nano /etc/postfix/main.cf

Change

smtpd clientrestrictions = permit_mynetworks zen.spamhaus.org reject rblclient zen.spamhaus.org permit

by removing that first instance of zen.spamhaus.org (made bold by me for emphasis)

You probably want that line to read:

permit saslauthenticated, permit_mynetworks, reject rblclient zen.spamhaus.org

the final "permit" happens by default and need not be stated explicity, but there's no harm in having it there.

Save the changes and exit your editor.
Then issue:

serveradmin start mail

Watch /var/log/system.log
and /var/log/mail.log

Aug 5, 2007 6:49 PM in response to davidh

I have the same problem - after adding the spam entry for spamhaus my configuration file is corrupt and i am getting no mail.

I also have the same problem that I cannot access, or even find, the etc/postfix/main.cf file. Spotlight says there are no files called main.cf and there is no such directory as etc/postfix.

How do i find this configuration file so i can remove the offending entry?

Aug 5, 2007 9:24 PM in response to ByronBound

With your standard user account, Spotlight will not find these files.

The files you are looking for are located in the directory:

imapd.conf is located in
/etc

main.cf is located in
/etc/postfix

However, you will need to use Terminal to access these directories and files.

However, before you start editing these files, feel free to open Terminal on your server and issue the following command:

postconf -n

Post the results here, and I'm sure we can offer you some more specific help.

PS, when you post the results of postconf -n, you may want to do so in a new thread. This one is marked as closed, and posting a new thread may invite more help.

Message was edited by: Joel Mcintosh1

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Server configuration error postconf -n attached

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.