Ask Your Question

Local mail system with gmail on Fedora 20

asked 2014-09-29 02:05:41 -0500

updated 2014-09-29 02:09:42 -0500

Can someone please explain why I get this message when I send mail to: root@localhost from my system. I've set up gmail on it to send mail and forwarded root's mail to my gmail.

Error message:

Delivery to the following recipient failed permanently:


Technical details of permanent failure: 
DNS Error: Domain name not found              <-------------- I just noticed this, is this the problem, how do I resolve this?

----- Original message -----

Algorithm here; Some values here;; some value here;
        key here
X-Received: by with SMTP id here;
        Sun, 28 Sep 2014 23:14:44 -0700 (PDT)
Return-Path: <>
Received: from Hostname (My ip here and more)
        by some id
        for <root@localhost>
        (Algirthm values here);
        Sun, 28 Sep 2014 23:14:44 -0700 (PDT)
Message-ID: <some>
From: root <>
X-Google-Original-From: "root" <root@Hostname>
Received: by Hostname (sSMTP sendmail emulation); Mon, 29 Sep 2014 06:14:42 +0000
Date: Mon, 29 Sep 2014 06:14:42 +0000
To: root@localhost
Subject: This is a test
User-Agent: Some agent
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: some coding


I configured the system with this.

I send a test message with this command:

echo Test | mail -s "This is a test" root@localhost

Is it because gmail is trying to send a mail to root@Hostname with gmail and can't find the recipient, if so how can I fix this so gmail understands who root@Hostname is?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-29 04:54:32 -0500

baoboa gravatar image

updated 2014-09-29 05:13:39 -0500

in /etc/ssmtp/revaliases

use your email for root

edit flag offensive delete link more



@baoboa Thanks. I think your answer did it but it was not working, then I searched some more and found something about postfix which I tried, but uninstalled again. Then I couldn't send any mail but after starting sendmail it worked and I think it's because of your answer and I just needed to restart sendmail after the change. Didn't think of that when I thought it didn't work. Thanks again. It's working!

somethingSomething gravatar imagesomethingSomething ( 2014-09-29 06:29:58 -0500 )edit

Question Tools

1 follower


Asked: 2014-09-29 02:05:41 -0500

Seen: 553 times

Last updated: Sep 29 '14