Results 1 to 2 of 2

Thread: how to get email for root or root@localhost

  1. #1
    Join Date
    Jun 2013
    Posts
    9
    Rep Power
    2

    Default how to get email for root or root@localhost

    I have Release 8.0.4.GA.5737.UBUNTU12.64 UBUNTU12_64 FOSS edition.

    Everything works well. I have a default domain and another virtual domain. Accounts in both domains can send and receive email. However, I am trying to get localhost/root email. Email sent to root simply disappears.

    echo "Howdy" | sendmail -v root
    echo "Howdy" | sendmail -v root@localhost

    My main domain is westcoasteden.com. From the command line, if I send an email to an external account using the same echo command, the mail arrives in my mailbox and is shown as coming from: root <root@mail.westcoasteden.com>. If I reply to this account, I get a bounce back from my Zimbra server (relay access denied). However, if I send an email to root@westcoasteden.com, it arrives in the mailbox@westcoasteden.com (I set up an alias for root@westcoasteden for this account.

    I installed mutt and configured mutt for the root account, but this Mailbox (~/Maildir) receives no mail. I can send from Mutt and it arrives as sent from root@mail.westcoasteden.com.

    I looked at past messages about this issue and tried a few things, but none seem to work. For example, in my /etc/aliases file, I have a line that says:
    root: mailbox@westcoasteden.com

    This same line appears in: /opt/zimbra/postfix-2.10.0.2z/conf/aliases.

    After I send email to root or root@localhost, I check the queue and the queue is empty. There is also a symbolic link:
    /usr/sbin/sendmail symbolically links to /opt/zimbra/postfix/sbin/sendmail.

    I see the following in /var/log/zimbra.log after I send an email to root...

    Sep 11 11:49:30 mail postfix/smtp[26362]: 012EA283062: to=<root@mail.westcoasteden.com>, relay=none, delay=0.07, delays=0.01/0.04/0.02/0, dsn=5.4.6, status=bounced (mail for mail.westcoasteden.com loops back to myself)
    Sep 11 11:49:30 mail postfix/qmgr[13288]: 1D7AC283066: from=<>, size=2103, nrcpt=1 (queue active)
    Sep 11 11:49:30 mail postfix/bounce[26363]: C8693283063: sender delivery status notification: 1D7AC283066
    Sep 11 11:49:30 mail postfix/qmgr[13288]: C8693283063: removed
    Sep 11 11:49:30 mail postfix/cleanup[26355]: 215E1283064: message-id=<20130911184930.215E1283064@mail.westcoasteden. com>
    Sep 11 11:49:30 mail postfix/qmgr[13288]: 215E1283064: from=<>, size=2985, nrcpt=1 (queue active)
    Sep 11 11:49:30 mail postfix/bounce[26364]: 012EA283062: sender non-delivery notification: 215E1283064
    Sep 11 11:49:30 mail postfix/qmgr[13288]: 012EA283062: removed
    Sep 11 11:49:30 mail postfix/smtp[26362]: 1D7AC283066: to=<root@mail.westcoasteden.com>, relay=none, delay=0.05, delays=0.01/0.01/0.02/0, dsn=5.4.6, status=bounced (mail for mail.westcoasteden.com loops back to myself)
    Sep 11 11:49:30 mail postfix/qmgr[13288]: 1D7AC283066: removed
    Sep 11 11:49:30 mail postfix/smtp[26362]: 215E1283064: to=<root@mail.westcoasteden.com>, relay=none, delay=0.05, delays=0.03/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for mail.westcoasteden.com loops back to myself)
    Sep 11 11:49:30 mail postfix/qmgr[13288]: 215E1283064: removed


    My /etc/hosts file is:
    root@mail:/etc# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.7.140 mail.westcoasteden.com mail

    My /etc/resolv.conf file is:
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.0.1
    search westcoasteden.com

    root@mail:/etc# cat dnsmasq.conf
    server=8.8.8.8
    server=64.59.160.13
    server=64.59.161.68
    domain=westcoasteden.com
    mx-host=westcoasteden.com,mail.westcoasteden.com,5
    listen-address=127.0.0.1

  2. #2
    Join Date
    Jan 2014
    Location
    Australia
    Posts
    3
    Rep Power
    1

    Default

    Quote Originally Posted by zmgd View Post
    However, I am trying to get localhost/root email. Email sent to root simply disappears.
    I don't know whether you had success in resolving this, but I found my changing the mailer string in logwatch.conf to use the Zimbra postfix sendmail, ie

    mailer = "/opt/zimbra/postfix/sbin/sendmail -t"

    You could of course use symbolic links instead. Admittedly, this was for my Centos environment, but can't see any reason why it shouldn't work on Ubuntu.

Similar Threads

  1. root email alias
    By Paulatia in forum Administrators
    Replies: 3
    Last Post: 11-08-2010, 01:04 AM
  2. root email alias
    By Paulatia in forum Installation
    Replies: 0
    Last Post: 04-13-2010, 09:01 AM
  3. user zimbra can't ping localhost, but root can?
    By gtr33m in forum Installation
    Replies: 12
    Last Post: 04-23-2009, 07:36 AM
  4. Replies: 29
    Last Post: 03-06-2007, 12:14 PM
  5. Receiving mail from root@localhost
    By FunkyPenguin in forum Administrators
    Replies: 2
    Last Post: 04-18-2006, 11:54 AM

Tags for this Thread

Posting Permissions

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