Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I install sendmail from the debian repos, I get the following output:

Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Updating /etc/mail/access...
Updating /etc/mail/aliases...
WARNING: local host name (ixtmixilix) is not qualified; see cf/README: WHO AM I?

Can someone please tell me what this means, what I need to do to qualify my hostname?

share|improve this question
up vote 6 down vote accepted

It's referring to this page from the readme, which tells you how to specify your hostname. It's warning you that your hostname won't work outside your local network; sendmail attaches your hostname as the sender of the message, but it's going to be useless on the other end because people outside your local network can't find the machine ixtmixilix. You should specify a hostname that can be resolved from anywhere, like ixtmixilix.example.com

share|improve this answer
Where should I put the line suggested in the docs? (Dmbar.com define(confDOMAIN_NAME', $w.$m')dnl) Is it in /etc/mail/sendmail.mc? – Throoze Apr 21 '14 at 21:47
in /etc/mail/sendmail.cf , then .mc will be updated automatically after running : sendmailconfig cmd – Abdennour TOUMI Jul 17 '14 at 13:22
@AbdennourTOUMI You sure that’s not the other way around? Edit sendmail.mc, and .cf will be updated? – Jezen Thomas Mar 17 '15 at 23:58

For me on Ubuntu 14.04 that solved the problem:

$ sudo nano /etc/hostname

Change your host name to something like my-domain.XXX

Where XXX = .com OR .net OR .some

Then sudo sendmailconfig updated all the rest You can test your configuration so:

$ sendmail -v username@privateDomain.ext < test.mail

I used my private domain email box as services such as gmail block these kind of email: 050 550-5.7.1 [ 12] Our system has detected that this message is 050 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 050 550-5.7.1 this message has been blocked. Please visit 050 550 5.7.1 https://support.google.com/mail/answer/188131 for more information. u3si25544809wje.160 - gsmtp

Where test.mail is a file containing whatever message you wish to send

share|improve this answer
didn't worked for me – PJunior Jul 20 '15 at 19:44
@PJunior, thank you for the remark, fixed! it was test.mail - file name – Jadeye Jul 20 '15 at 20:10
I was talking about the edition on /etc/hostname/ – PJunior Jul 20 '15 at 20:12
@PJunior, its a file, not a folder, hence /etc/hostname - usually holds your machine name. Try this command: cat /etc/hostname, if you get your machine name as: XXX, just edit this file and rename your machine to XXX.com or XXX.some or any other FQDN – Jadeye Jul 20 '15 at 20:16
Yes, i'v edit it. Didn't worked :/ but emails are being sent – PJunior Jul 20 '15 at 20:17

This output refers to a Fully-qualified domain name (FQDN). Which is either an IP address or a domain name (something with a dot in it).

share|improve this answer

On Debian 8 (Jessie) works:

$ sudo hostnamectl set-hostname yourdomain.com

Then test it this way:

$ hostname yourdomain.com

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.