[opensuse] Getting system mail in 12.1
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 -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 06:00am up 22:03, 3 users, load average: 0.25, 0.19, 0.12 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bob Williams wrote:
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.
That sounds like a bad alias setup. Check your /etc/aliases file, I'm fairly certain that is where it is set up. -- Per Jessen, Zürich (3.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 06 Mar 2012, 10:26:20 +0100, Per Jessen wrote:
Bob Williams wrote:
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.
That sounds like a bad alias setup. Check your /etc/aliases file, I'm fairly certain that is where it is set up.
I'm pretty sure his aliases file is OK, but since 12.1 SUSEconfig doesn't automatically generate/re-build the map files any more. See my other posting. Cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Manfred Hollstein wrote:
On Tue, 06 Mar 2012, 10:26:20 +0100, Per Jessen wrote:
Bob Williams wrote:
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.
That sounds like a bad alias setup. Check your /etc/aliases file, I'm fairly certain that is where it is set up.
I'm pretty sure his aliases file is OK, but since 12.1 SUSEconfig doesn't automatically generate/re-build the map files any more. See my other posting.
Sounds like a bug. -- Per Jessen, Zürich (4.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Mar 06, 2012 at 11:17:27AM +0100, Per Jessen wrote: [ 8< ]
Sounds like a bug.
No, there was no bug ID included. Therefore it's not yet a bug. ;) Please, please file one and report the ID back here as a clickable link for the lazy dudes like me. In the bug report please reference the initial mail of this thread from the list archive at http://lists.openSUSE.org/opensuse/2012-03/msg00338.html Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-03-06 11:40, Lars Müller wrote:
On Tue, Mar 06, 2012 at 11:17:27AM +0100, Per Jessen wrote: [ 8< ]
Sounds like a bug.
No, there was no bug ID included. Therefore it's not yet a bug. ;)
Please, please file one and report the ID back here as a clickable link for the lazy dudes like me.
I think it has been reported. I reported that postfix does not start with systemd (747640), corrected with your patches, that "chkconfig service on" did not put the service on (732934), and there is another one by someone else IIRC that SuSEconfig doesn't do postifx correctly. I hope this one is reported, I do not know for certain. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEUEARECAAYFAk9V9wQACgkQIvFNjefEBxoFcACfd3QffekmmAe4JPupxmsnoF3L mHoAljdZqRK/4ZfZdoPfvfrJaZdAI5A= =CJx+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Mar 06, 2012 at 12:37:40PM +0100, Carlos E. R. wrote:
On 2012-03-06 11:40, Lars Müller wrote:
On Tue, Mar 06, 2012 at 11:17:27AM +0100, Per Jessen wrote: [ 8< ]
Sounds like a bug.
No, there was no bug ID included. Therefore it's not yet a bug. ;)
Please, please file one and report the ID back here as a clickable link for the lazy dudes like me.
I think it has been reported. I reported that postfix does not start with systemd (747640), corrected with your patches, that "chkconfig service on" did not put the service on (732934), and there is another one by someone else IIRC that SuSEconfig doesn't do postifx correctly. I hope this one is reported, I do not know for certain.
Frederic requested the missing information but unfortunately missed to set the bug in need info state from Rudi. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-03-06 12:37, Carlos E. R. wrote:
and there is another one by someone else IIRC that SuSEconfig doesn't do postifx correctly. I hope this one is reported, I do not know for certain.
This: https://bugzilla.novell.com/show_bug.cgi?id=736072 It is reported as solved, waiting for the update, since December 2. Reporting again. https://bugzilla.novell.com/show_bug.cgi?id=750685 - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk9WBF4ACgkQIvFNjefEBxpv3wCgrhI3Ty0Bo6JgkcAXw5RXfPMz PEEAn1FdfIssWVfFKc83oWoV/XbFQ9Re =65B4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/03/12 10:40, Lars Müller wrote:
On Tue, Mar 06, 2012 at 11:17:27AM +0100, Per Jessen wrote: [ 8< ]
Sounds like a bug.
No, there was no bug ID included. Therefore it's not yet a bug. ;)
Please, please file one and report the ID back here as a clickable link for the lazy dudes like me.
In the bug report please reference the initial mail of this thread from the list archive at http://lists.openSUSE.org/opensuse/2012-03/msg00338.html
Lars
https://bugzilla.novell.com/show_bug.cgi?id=750677 - -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 06:00am up 22:03, 3 users, load average: 0.25, 0.19, 0.12 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9V/YkACgkQ0Sr7eZJrmU5x2QCfeYQkeVFyVakP4pHMZh5ISOoT nsgAnjMC3d3Swd0CQkuH5oClQCE+3Xrg =ykVa -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi there, On Tue, 06 Mar 2012, 10:09:18 +0100, Bob Williams wrote:
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
I'm not sure this happens by intention (or just for those users who have selected sysvinit over systemd, like I did), but I found out, that one has to run the following command to make postfix honour the settings from /etc/sysconfig/postfix : env MD5DIR=/var/adm/SuSEconfig/md5 /usr/sbin/SuSEconfig.postfix Then restart the postfix service and it should just work.
Bob
HTH, cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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 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 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). BTW: on openSUSE, you nomally do not use "service $something start", but "rcsomething start", and "insserv something" instead of "chkconfig something on" - though it should do exactly the same. I think you found a RedHat incantation ;-) HTH Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi Werner, Firstly, I'm using systemd not sysVinit, if that makes a difference. 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
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.
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).
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.
BTW: on openSUSE, you nomally do not use "service $something start", but "rcsomething start", and "insserv something" instead of "chkconfig something on" - though it should do exactly the same. I think you found a RedHat incantation ;-)
Many thanks for the tip. Stored in my 'useful tips' file :)
HTH Werner
Bob -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 06:00am up 22:03, 3 users, load average: 0.25, 0.19, 0.12 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
On 06/03/12 14:49, Werner Flamme wrote:
and soon you will have mail :-) If not, we have a real problem...
No problem. All working as expected now. Many thanks for your help. Bob -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 06:00am up 22:03, 3 users, load average: 0.25, 0.19, 0.12 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bob Williams [06.03.2012 18:02]:
On 06/03/12 14:49, Werner Flamme wrote:
and soon you will have mail :-) If not, we have a real problem...
No problem. All working as expected now. Many thanks for your help.
You're welcome! Thanks for the feedback, it was my good deed of the month then :-) Regards, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Bob Williams
-
Carlos E. R.
-
Lars Müller
-
Manfred Hollstein
-
Per Jessen
-
Werner Flamme