Re: [opensuse] Getting system mail in 12.1



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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Getting system mail in 12.1
    ... but no system mail comes to the user. ... Maybe you have to fix this on your box. ... check if postfix uses this aliases file by "postconf ...
    (SuSE)
  • imap question again...sorry if u replied before
    ... Sep 29 00:25:27 linuxbox imapd: Command stream end of file, ... i have my main.cf from postfix attached ... # Global Postfix configuration file. ... # The daemon_directory parameter specifies the location of all Postfix ...
    (RedHat)
  • RE: Postfix error
    ... However, Postfix does have its own, internal local delivery agent, or most ... >> command from a command line to see what it is or isn't doing. ... >> To be notified of updates to the web site, ...
    (RedHat)
  • Re: best/easiest commandline email program for mass-email
    ... Well, the mail command does it as a one liner, but the custom ... Then configure postfix (or sendmail, ... I would suggest for bulk mail to set the appropriate headers, ...
    (Ubuntu)
  • Re: Mini 10v
    ... I run postfix on my Neo Freerunner and haven't ... If you really hate MTA being resident, run queue comman like "exim -q" ... Simplest thing to do is run queue from command line ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)