Postfix sendmail command receipient not showing up in mail header
I am trying to send an email from my gmail account to another email account using postfix's command echo content | sendmail myaccount@other.edu
, the mail seemed to be delivered to the gmail server, and the actual mail showed up in my gmail outbox, but not in the inbox of myaccount@other.edu
. And when I inspected the mail, the original message header didn't even contain myaccount@other.edu
. What went wrong? Can anyone help me?
Below is my postfix configuration:
myhostname = gmail.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, localhost.localdomain
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual
And here is the email header that I found in my outbox:
Bcc: wallet@gmail.com
Return-Path:
Received: from gmail.com ([216.127.196.189])
by smtp.gmail.com with ESMTPSA id v5sm4267284iob.78.2018.12.16.13.50.22
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 16 Dec 2018 13:50:22 -0800 (PST)
From: wallet
X-Google-Original-From: wallet
Received: by gmail.com (Postfix, from userid 1000) id 37438132312; Sun, 16 Dec 2018 15:50:21 -0600 (CST)
Message-Id:
Date: Sun, 16 Dec 2018 15:50:18 -0600 (CST)
content
server email postfix mail gmail
New contributor
add a comment |
I am trying to send an email from my gmail account to another email account using postfix's command echo content | sendmail myaccount@other.edu
, the mail seemed to be delivered to the gmail server, and the actual mail showed up in my gmail outbox, but not in the inbox of myaccount@other.edu
. And when I inspected the mail, the original message header didn't even contain myaccount@other.edu
. What went wrong? Can anyone help me?
Below is my postfix configuration:
myhostname = gmail.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, localhost.localdomain
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual
And here is the email header that I found in my outbox:
Bcc: wallet@gmail.com
Return-Path:
Received: from gmail.com ([216.127.196.189])
by smtp.gmail.com with ESMTPSA id v5sm4267284iob.78.2018.12.16.13.50.22
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 16 Dec 2018 13:50:22 -0800 (PST)
From: wallet
X-Google-Original-From: wallet
Received: by gmail.com (Postfix, from userid 1000) id 37438132312; Sun, 16 Dec 2018 15:50:21 -0600 (CST)
Message-Id:
Date: Sun, 16 Dec 2018 15:50:18 -0600 (CST)
content
server email postfix mail gmail
New contributor
You are notgmail.com
, so why does your server havemyhostname = gmail.com
? If you are trying to set theFrom
header of sent mail tosomething@gmail.com
, you are doing it wrong.
– fkraiem
Dec 17 at 16:49
So what should I put inmyhostname
? I thought it had to be a FQDN.
– 邓皓天
Dec 17 at 22:53
No, it does not have to be a FQDN, especially if you are sending through a relay.
– fkraiem
Dec 17 at 22:55
But what should I put asmyhostname
? If I leave it as blank, the server would respond with an error, saying my local domain is not found. e.g. The response was: DNS Error: 8530627 DNS type 'mx' lookup of wallet-n550jv.localdomain responded with code NXDOMAIN Domain name not found: wallet-n550jv.localdomain
– 邓皓天
Dec 18 at 0:19
add a comment |
I am trying to send an email from my gmail account to another email account using postfix's command echo content | sendmail myaccount@other.edu
, the mail seemed to be delivered to the gmail server, and the actual mail showed up in my gmail outbox, but not in the inbox of myaccount@other.edu
. And when I inspected the mail, the original message header didn't even contain myaccount@other.edu
. What went wrong? Can anyone help me?
Below is my postfix configuration:
myhostname = gmail.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, localhost.localdomain
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual
And here is the email header that I found in my outbox:
Bcc: wallet@gmail.com
Return-Path:
Received: from gmail.com ([216.127.196.189])
by smtp.gmail.com with ESMTPSA id v5sm4267284iob.78.2018.12.16.13.50.22
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 16 Dec 2018 13:50:22 -0800 (PST)
From: wallet
X-Google-Original-From: wallet
Received: by gmail.com (Postfix, from userid 1000) id 37438132312; Sun, 16 Dec 2018 15:50:21 -0600 (CST)
Message-Id:
Date: Sun, 16 Dec 2018 15:50:18 -0600 (CST)
content
server email postfix mail gmail
New contributor
I am trying to send an email from my gmail account to another email account using postfix's command echo content | sendmail myaccount@other.edu
, the mail seemed to be delivered to the gmail server, and the actual mail showed up in my gmail outbox, but not in the inbox of myaccount@other.edu
. And when I inspected the mail, the original message header didn't even contain myaccount@other.edu
. What went wrong? Can anyone help me?
Below is my postfix configuration:
myhostname = gmail.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, localhost.localdomain
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual
And here is the email header that I found in my outbox:
Bcc: wallet@gmail.com
Return-Path:
Received: from gmail.com ([216.127.196.189])
by smtp.gmail.com with ESMTPSA id v5sm4267284iob.78.2018.12.16.13.50.22
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 16 Dec 2018 13:50:22 -0800 (PST)
From: wallet
X-Google-Original-From: wallet
Received: by gmail.com (Postfix, from userid 1000) id 37438132312; Sun, 16 Dec 2018 15:50:21 -0600 (CST)
Message-Id:
Date: Sun, 16 Dec 2018 15:50:18 -0600 (CST)
content
server email postfix mail gmail
server email postfix mail gmail
New contributor
New contributor
New contributor
asked Dec 16 at 22:05
邓皓天
11
11
New contributor
New contributor
You are notgmail.com
, so why does your server havemyhostname = gmail.com
? If you are trying to set theFrom
header of sent mail tosomething@gmail.com
, you are doing it wrong.
– fkraiem
Dec 17 at 16:49
So what should I put inmyhostname
? I thought it had to be a FQDN.
– 邓皓天
Dec 17 at 22:53
No, it does not have to be a FQDN, especially if you are sending through a relay.
– fkraiem
Dec 17 at 22:55
But what should I put asmyhostname
? If I leave it as blank, the server would respond with an error, saying my local domain is not found. e.g. The response was: DNS Error: 8530627 DNS type 'mx' lookup of wallet-n550jv.localdomain responded with code NXDOMAIN Domain name not found: wallet-n550jv.localdomain
– 邓皓天
Dec 18 at 0:19
add a comment |
You are notgmail.com
, so why does your server havemyhostname = gmail.com
? If you are trying to set theFrom
header of sent mail tosomething@gmail.com
, you are doing it wrong.
– fkraiem
Dec 17 at 16:49
So what should I put inmyhostname
? I thought it had to be a FQDN.
– 邓皓天
Dec 17 at 22:53
No, it does not have to be a FQDN, especially if you are sending through a relay.
– fkraiem
Dec 17 at 22:55
But what should I put asmyhostname
? If I leave it as blank, the server would respond with an error, saying my local domain is not found. e.g. The response was: DNS Error: 8530627 DNS type 'mx' lookup of wallet-n550jv.localdomain responded with code NXDOMAIN Domain name not found: wallet-n550jv.localdomain
– 邓皓天
Dec 18 at 0:19
You are not
gmail.com
, so why does your server have myhostname = gmail.com
? If you are trying to set the From
header of sent mail to something@gmail.com
, you are doing it wrong.– fkraiem
Dec 17 at 16:49
You are not
gmail.com
, so why does your server have myhostname = gmail.com
? If you are trying to set the From
header of sent mail to something@gmail.com
, you are doing it wrong.– fkraiem
Dec 17 at 16:49
So what should I put in
myhostname
? I thought it had to be a FQDN.– 邓皓天
Dec 17 at 22:53
So what should I put in
myhostname
? I thought it had to be a FQDN.– 邓皓天
Dec 17 at 22:53
No, it does not have to be a FQDN, especially if you are sending through a relay.
– fkraiem
Dec 17 at 22:55
No, it does not have to be a FQDN, especially if you are sending through a relay.
– fkraiem
Dec 17 at 22:55
But what should I put as
myhostname
? If I leave it as blank, the server would respond with an error, saying my local domain is not found. e.g. The response was: DNS Error: 8530627 DNS type 'mx' lookup of wallet-n550jv.localdomain responded with code NXDOMAIN Domain name not found: wallet-n550jv.localdomain– 邓皓天
Dec 18 at 0:19
But what should I put as
myhostname
? If I leave it as blank, the server would respond with an error, saying my local domain is not found. e.g. The response was: DNS Error: 8530627 DNS type 'mx' lookup of wallet-n550jv.localdomain responded with code NXDOMAIN Domain name not found: wallet-n550jv.localdomain– 邓皓天
Dec 18 at 0:19
add a comment |
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
邓皓天 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1102426%2fpostfix-sendmail-command-receipient-not-showing-up-in-mail-header%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
邓皓天 is a new contributor. Be nice, and check out our Code of Conduct.
邓皓天 is a new contributor. Be nice, and check out our Code of Conduct.
邓皓天 is a new contributor. Be nice, and check out our Code of Conduct.
邓皓天 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1102426%2fpostfix-sendmail-command-receipient-not-showing-up-in-mail-header%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You are not
gmail.com
, so why does your server havemyhostname = gmail.com
? If you are trying to set theFrom
header of sent mail tosomething@gmail.com
, you are doing it wrong.– fkraiem
Dec 17 at 16:49
So what should I put in
myhostname
? I thought it had to be a FQDN.– 邓皓天
Dec 17 at 22:53
No, it does not have to be a FQDN, especially if you are sending through a relay.
– fkraiem
Dec 17 at 22:55
But what should I put as
myhostname
? If I leave it as blank, the server would respond with an error, saying my local domain is not found. e.g. The response was: DNS Error: 8530627 DNS type 'mx' lookup of wallet-n550jv.localdomain responded with code NXDOMAIN Domain name not found: wallet-n550jv.localdomain– 邓皓天
Dec 18 at 0:19