Find the answer to your Linux question:
Results 1 to 3 of 3
hi I cannot send any mails to the root user; Code: ext:/var/mail# echo "Message" | mailx -s "this is a test mail" root@localhost ext:/var/mail# mail No mail for root other ...
  1. #1
    cc
    cc is offline
    Linux Newbie
    Join Date
    Jun 2004
    Posts
    120

    cannot send any mails to the root user

    hi

    I cannot send any mails to the root user;
    Code:
    ext:/var/mail#  echo "Message" | mailx -s "this is a test mail" root@localhost
    ext:/var/mail# mail
    No mail for root
    other user get mails without any problems.
    I have sarge stable with postfix installed.
    Code:
    ext:/# newaliases
    ext:/# postmap /etc/aliases
    postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 3: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 4: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 5: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 6: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 7: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 8: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 9: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 10: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 11: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 12: record is in "key: value" format; is this an alias file?
    postmap: warning: /etc/aliases, line 14: record is in "key: value" format; is this an alias file?
    ext:/# postalias /etc/aliases
    ext:/# cat /etc/aliases
    # /etc/aliases
    mailer-daemon: postmaster
    postmaster: root
    nobody: root
    hostmaster: root
    usenet: root
    news: root
    webmaster: root
    www: root
    ftp: root
    abuse: root
    noc: root
    security: root
    
    ext:/# /etc/init.d/postfix restart
    Stopping mail transport agent: Postfix.
    Starting mail transport agent: Postfix.
    greetings
    cc
    Last edited by cc; 09-14-2006 at 02:39 AM. Reason: configure mailx

  2. #2
    Linux Newbie
    Join Date
    Apr 2005
    Location
    CT --> PA
    Posts
    170
    have you rebuilt the database since making those changes? Once you make changes (or every time you do) you need to rebuild it, so that it may be parsed correctly (i believe it actually compiles an inline copy elsewhere that it uses for realtime parsing of the aliases file).
    Chicks dig giant mechanized war machines

  3. #3
    cc
    cc is offline
    Linux Newbie
    Join Date
    Jun 2004
    Posts
    120
    I found this:
    Code:
    # cat .forward
    | mailx linux@localhost
    I've deleted

    and have done the following:
    Code:
    # dpkg-reconfigure postfix
    now it seems to work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •