Getting system mail in 12.1

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting system mail in 12.1

Bob Williams
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Per Jessen-2
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Manfred Hollstein
In reply to this post by Bob Williams
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Manfred Hollstein
In reply to this post by Per Jessen-2
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Werner Flamme-2
In reply to this post by Bob Williams
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Per Jessen-2
In reply to this post by Manfred Hollstein
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Lars Müller
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

attachment0 (197 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Bob Williams
In reply to this post by Werner Flamme-2
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Carlos E. R.-2
In reply to this post by Lars Müller
-----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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Lars Müller
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

attachment0 (197 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Bob Williams
In reply to this post by Lars Müller
-----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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Carlos E. R.-2
In reply to this post by Carlos E. R.-2
-----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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Werner Flamme-2
In reply to this post by Bob Williams
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Bob Williams
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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting system mail in 12.1

Werner Flamme-2
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: [hidden email]
To contact the owner, e-mail: [hidden email]