Re: Cannot send local e-mails.

2018-07-12 Thread Dan Purgert
Piotr wrote:
> Hi,
>
> When some process produces an error, then root should receive an
> e-mail. Instead I gets some error message forwarded to my gmail
> account (see below). What should I configure to make a local e-mails
> working?.

Check your exim/postfix/whichever MTA config to ensure that it's been
setup properly.  Since it's complaining about "localhost.localdomain", I
imagine you're trying to have your MTA do both

 - resolution of mail between local users (i.e. send to root) AND
 - resolution of remote mail addresses (i.e. send to gmail / outlook.com
   / etc.)

That's a bit tricky of a setup as I recall... 


-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Cannot send local e-mails.

2018-07-11 Thread Piotr
Hi,

When some process produces an error, then root should receive an e-mail. 
Instead I gets some error message forwarded to my gmail account (see below). 
What should I configure to make a local e-mails working?

Regards,
Piotr 

from: Mail Delivery Subsystem 
to: zaxonx...@gmail.com
Subject: Delivery Status Notification (Failure)

** Address not found **

Your message wasn't delivered to user@localhost.localdomain because the domain 
localhost.localdomain couldn't be found. Check for typos or unnecessary spaces 
and try again.



The response was:

DNS Error: 17728931 DNS type 'mx' lookup of localhost.localdomain responded 
with code NXDOMAIN
Domain name not found: localhost.localdomain