Bob Williams [06.03.2012 12:18]:
Hi Werner,
Firstly, I'm using systemd not sysVinit, if that makes a difference.
So do I. It should not make a difference, since the "old" commands are modified so that they can "speak" with both worlds. Talking to systemd seems to start with "systemctl" always ;-)
Rest of my reply inline below ...
On 06/03/12 10:03, Werner Flamme wrote:
Bob Williams [06.03.2012 10:09]:
In previous openSUSE installations I have checked the box for the first user to get system mail, and it works.
On this new 12.1 installation with KDE 4.7.2, with a pre-existing /home, I did the same, but no system mail comes to the user.
Even after doing
:~ # service postfix start :~ # chkconfig postfix on
an incantation that I found on a forum, root now gets mail, but it is not redirected to me.
Any suggestions
Bob
Hi Bob,
I think postfix is special on 12.1. On one of my 12.1 boxes, "insserv postfix" was not sufficient. I had to issue "systemctl enable postfix.service", though insserv told me the command was passed to systemctl.
First, do a "grep root /etc/aliases". One of the resulting lines should point to your account, like (in my case)
root: werner
Mine says root: bob
So, this seems to be OK, unless your account has another name ;-). "echo "$LOGNAME, $USER" should output "bob, bob" now :-)
Maybe you have to fix this on your box.
Second, check if postfix uses this aliases file by "postconf alias_maps". You should get a line like
alias_maps = hash:/etc/aliases
Same here, so no changes required.
Right.
If you have a line like "alias_maps = hash:/etc/postix/aliases", you refer to the wrong aliases file. Fix the config (/etc/postfix/main.cf) to point to /etc/aliases.
Then do a "newaliases" as root, and a "rcpostfix reload" as root. After that, new system mail should be delivered to your mailbox (old mail is not sent again, of course).
Did you do a "newaliases" as user root, so that the file /etc/aliases.db is newer than /etc/aliases? Because the "hash:" at the start means that postfix lokks for the .db file. The "newaliases" command creates the hash file from the text file. And doing a "rcpostfix reload" will not do any harm, either :-)
I think I need to wait for new mail to root to be generated (there are 23 old messages in root's mailspool), as everything seems to set up OK here now.
wflamme@rz36:~> mail -s "just a test" root something to read . EOT and soon you will have mail :-) If not, we have a real problem... Regards, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org