![]() |
root .forward not working
Pre-Panther I had set up root's .forward file so that mail to root would get sent to me (at my ISP IMPAP acct). Installing Panther removed the old .forward file and replaced it with one showing /dev/null.
I edited that to replace it with my e-mail address, but mail to root seems to still go to /dev/null I know postfix is working because I can send mail to me. It's just that root's .forward file doesn't seem to work. There's nothing for root in the mail queue. |
send an email to root.
do you expect mail from root? the maintenance jobs? might need to review the periodic config file to see that it mails rather than logs. |
Mail to root ends up in a black hole.
Mail to me (at my ISP) works fine. Pre-Panther, all cron job stuff was mailed to root and forwarded to me at my ISP. Post-Panther install mail to root was being delivered to me at my local account: Code:
Message 7:Now, mail to root goes nowhere. Does postfix somehow ignore the .forward file and look somewhere else? |
mail to root works here, a la postfix OSX 10.3.1
root .forward contains my username is your ISP blocking relays? there should be a lot of entries in mail.log when postfix fires up. perhaps postfix is bork'd ? report: sudo mailq |
Here's a mail.log entry for when sendmail was properly forwarding mail addressed to root to me:
Code:
Oct 31 16:57:36 imac-newman sendmail[13060]:Now, here's a mail log entry for when postfix fails to properly forward the mail: Code:
Dec 6 11:49:39 localhost postfix/pickup[762]:It looks to me like I've somehow screwed up forwarding in postfix.... There is nothing recent in the mailq. |
So, I created mail account called:
root@mgnewman.com And, sure enough, that's where procmail is forwarding root's mail, even though: So, how do I get procmail to forward mail to a real e-mail address instead of root@whateverdomain? |
I'd declare an alias for root in /etc/aliases.
Then run newaliases |
Sorry, still mails to root@mgnewman.com
Code:
Dec 7 07:16:08 localhost postfix/smtp[1575]: 51D5A173B3D:Code:
Dec 7 07:01:54 localhost postfix/postfix-script: If so, it seems like Apple hasn't much thought through this postfix implementation. |
Try running postfix in verbose mode to see if there are any errors. Maybe it is not reading the aliases db due to permissions or some such thing (although I would expect that to come out in the normal logs)
Code:
-v Enable verbose logging for debugging purposes. Multiple -vAs well, I do not use a .forward for root at all, I just have this line set in the /etc/aliases: Code:
# Person who should get root's mail. Don't receive mail as root! |
stetner,
Thank you. Verbose logging revealed that I had improperly set (and misunderstood) the myorigin parameter. Once I fixed that mail to root works OK. Thanks again. |
pilot error!
|
Quote:
|
That's all right, I fought with a configuration issue for half a day before I finally turned on verbose logging and realised that there was a line at the bottom of a config file that was undoing what I was trying to do :rolleyes:
|
We've all been there!
Glad you got it running properly. Breen |
Unfortunately, I'm still having problem.
I know that all the directories in: Code:
/private/var/spool/postfix/But, for some reason, they keep getting changed to be owned by user 27, which is not a valid UID on my system. If I go back and chown everything to postfix, it all works until "Repair Permissions" screws things up again: Code:
User differs on ./private/var/spool/postfix/active, should be 27,And, what should the group be (and GID) for this set of directories? |
Quote:
Code:
$ find / -user 255 -print0 | xargs -0 chown 27Code:
$ sudo ls -l /private/var/spool/postfix |
I tried to use "find" as described above to change the ownership, but I get this:
Code:
[imac-newman:~] mnewman% sudo find / -user 255 -print0 | xargs -0 chown 27Code:
[imac-newman:~] mnewman% sudo chown -R postfix /private/var/spool/postfix/At least postfix is up and running again. For now.... |
Code:
$ sudo find / -user 255 -print0 | xargs -0 chown 27 |
Sorry, I forgot to say do a 'sudo -s' first :(
I really tend to avoid recursive chown/chgrp/chmods unless I am totally sure what is down the tree.... On my system the pid files are all owned by root. There may be a security reason for this (or my system could be messed up :) Anyone have a clean install to check this?) Code:
# pwd |
I checked another system. pid and all of the files in pid are owned by root. I've now fixed that. Postfix is still running....
Thanks for your help. I learned a lot. |
check
Code:
$ ls -l /var/spool/postfix/pid/ |
Same, same here.
Thanks. You know, I really appreciate the help I've gotten in these forums over the past few years. I'm old (55) and don't learn new tricks very well. And, I don't have time to spend hours at the unix command line. But, I do enjoy learning and I do have a few command line tasks that I need to do now and then. And, living on a small island I don't really have anywhere to go for help. So, the assistance I've received from folks like you all is sincerely and ernestly appreciated. Mike |
Glad we can help Mike! Hey, someone once told me that 'old' people are people who are more than 15 years older than you are, so since I am 42, you are not old! :D
Just had a look at your web page Mike, quite comprehensive! Saipan looks pretty good, very similar to a lot of tropical countries. I currently live on a big island ;) to the south (I am a dual citizen now, Canadian-Australian), but have visited many of the countries around here (including Chuuk) as I am an avid scuba diver and I love all the WWII wrecks in the south pacific. I love getting away to some of those places, but I can see how some people go stir crazy after a while. Anyway, if you ever need a hand, just pay my airfare and I will come up and help you with any Mac problems (between dives that is)! :) |
Stetner,
Tried to send this to your private box, but it's full.... ===== I may have mentioned this before, but we have friends who live in Brisbane (Ascot, not far from Eagle Farm) whom we visit every other year or so. Next time we're down we'll have to have a beer or coffee somewhere. Maybe even a dive? Thanks again, Mike |
| All times are GMT -5. The time now is 10:42 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.