Postfix not working in 10.2?

hazmat

Rusher of Din
Anyone else having problems with Postifx in 10.2? I can still receive mail, but sending out does nothing. I don't see anything in the logs, either. I send mail from mutt, and nothing seems to get sent out.
 
What do the logs say?

Is the email in your mail queue?
You can use mailq or postqueue -p
to see what's in the mail queue.
 
Hmmm. mailq says:

/etc/mail/sendmail.cf: line 93: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory

And postqueue doesn't exist.
 
Sounds like it didn't install properly or it isn't configured properly.

Here's what it should look like if there's nothing in the mail queue:

Code:
[localhost:/] admin% mailq
Mail queue is empty

postqueue -p has the same output.
 
Did you just upgrade your existing 10.1.5 installation to 10.2?
If so, I suspect that your mail server is now incorrectly configured and sendmail took over mail services instead of postfix.

Things to check:
*Make sure postfix is running: sudo lsof -i | grep master
*If it isn't running start it manually: sudo postfix start
*If it isn't running, this means that your postfix startup item was overwritten in the upgrade process. If this is the case, you will have to recreate the startup item.
*Make sure /System/Library/StartupItems/Sendmail/Sendmail has an "exit 0" at the beginning of the script.
*Make sure /etc/hostconfig has the line: MAILSERVER=-YES-
 
Postfix is running. I receive mail, it just won't go out. All the stuff you mentioned checks out. I even moved Sendmail to StartupItems.unused. :)
 
Did you reinstall Postfix after you upgraded? If not, the upgrade might have overwritten something in /Library or another system directory.

I would try doing another make install and see what happens.
 
Originally posted by devonferns
Did you reinstall Postfix after you upgraded? If not, the upgrade might have overwritten something in /Library or another system directory.

I would try doing another make install and see what happens.

No, I didn't reinstall Postfix after upgrading? It never occurred to me that that would be necessary. I wonder why might have been overwritten. And what I find odd is that it partly works, receiving mail. I did fix the mailq thing by removing group write permission from /. I hope that doesn't screw up anything else.
 
It's just a guess that it *could* overwrite some files. It most probably overwrote the sendmail replacement when upgrading. That probably doesn't matter to you though unless you are running a web server as well that uses sendmail.

It can't hurt to reinstall it either, except for a little down time when installing, which isn't a big deal if you're running the server on your home machine.
 
Originally posted by G. Peretz
Did you make sure that your postfix user and group is intact in NetInfo? Does it have write permissions to /tmp?

/tmp is world writeable, and I would love to tell you about NetInfo, but it won't open. First time I've tied to open it since 10.2, and it opens with a yellow triangle with exclamation point in it in the Dock, and all I can do it select Force Quit from the context menu. But, what I could get from nidump is that there is in fact a user and also a group postfix.
 
Back
Top