Postfix - Connection Refused error - Ubuntu 18.04

Multi tool use
I'm trying to build send only mail server using postfix. I folowed this documentation from digital ocean
When I try to send email, it gives below error. (I copied from /var/log/mail.log)
lets say my domain name is domainaddress.com
Feb 9 07:52:54 domainaddress postfix/qmgr[22091]: B22861BA03A: from=<hsntngr@domainaddress>, size=403, nrcpt=1 (queue active)
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6A8D81BA0FA: to=<hsntngr@domainaddress>, relay=none, delay=29909, delays=29909/0.01/0/0, dsn=4.4.1, status=deferred (conn$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress.com[128.199.50.100]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: 6CDC81BA03F: to=<hsntngr@domainaddress>, relay=none, delay=126295, delays=126295/0.01/0/0, dsn=4.4.1, status=deferred (co$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6BDFF1BA0F8: to=<hsntngr@domainaddress.com>, relay=none, delay=29997, delays=29997/0.02/0/0, dsn=4.4.1, status=deferred ($
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: B22861BA03A: to=<your_email_address@domainaddress>, relay=none, delay=126304, delays=126304/0.02/0.01/0, dsn=4.4.1, status..
Even if I setup my host name in config file, host name seems wrong..
Also my config file (/etc/postfix/main.cf)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.domainaddress.com
mydomain = domainaddress.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname, localhost, $mydomain , www.$mydomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = ipv4
I know I'm doing something wrong at somewhere but I couldn't figure out what it is and where, for two days.
18.04 postfix
add a comment |
I'm trying to build send only mail server using postfix. I folowed this documentation from digital ocean
When I try to send email, it gives below error. (I copied from /var/log/mail.log)
lets say my domain name is domainaddress.com
Feb 9 07:52:54 domainaddress postfix/qmgr[22091]: B22861BA03A: from=<hsntngr@domainaddress>, size=403, nrcpt=1 (queue active)
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6A8D81BA0FA: to=<hsntngr@domainaddress>, relay=none, delay=29909, delays=29909/0.01/0/0, dsn=4.4.1, status=deferred (conn$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress.com[128.199.50.100]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: 6CDC81BA03F: to=<hsntngr@domainaddress>, relay=none, delay=126295, delays=126295/0.01/0/0, dsn=4.4.1, status=deferred (co$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6BDFF1BA0F8: to=<hsntngr@domainaddress.com>, relay=none, delay=29997, delays=29997/0.02/0/0, dsn=4.4.1, status=deferred ($
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: B22861BA03A: to=<your_email_address@domainaddress>, relay=none, delay=126304, delays=126304/0.02/0.01/0, dsn=4.4.1, status..
Even if I setup my host name in config file, host name seems wrong..
Also my config file (/etc/postfix/main.cf)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.domainaddress.com
mydomain = domainaddress.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname, localhost, $mydomain , www.$mydomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = ipv4
I know I'm doing something wrong at somewhere but I couldn't figure out what it is and where, for two days.
18.04 postfix
add a comment |
I'm trying to build send only mail server using postfix. I folowed this documentation from digital ocean
When I try to send email, it gives below error. (I copied from /var/log/mail.log)
lets say my domain name is domainaddress.com
Feb 9 07:52:54 domainaddress postfix/qmgr[22091]: B22861BA03A: from=<hsntngr@domainaddress>, size=403, nrcpt=1 (queue active)
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6A8D81BA0FA: to=<hsntngr@domainaddress>, relay=none, delay=29909, delays=29909/0.01/0/0, dsn=4.4.1, status=deferred (conn$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress.com[128.199.50.100]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: 6CDC81BA03F: to=<hsntngr@domainaddress>, relay=none, delay=126295, delays=126295/0.01/0/0, dsn=4.4.1, status=deferred (co$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6BDFF1BA0F8: to=<hsntngr@domainaddress.com>, relay=none, delay=29997, delays=29997/0.02/0/0, dsn=4.4.1, status=deferred ($
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: B22861BA03A: to=<your_email_address@domainaddress>, relay=none, delay=126304, delays=126304/0.02/0.01/0, dsn=4.4.1, status..
Even if I setup my host name in config file, host name seems wrong..
Also my config file (/etc/postfix/main.cf)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.domainaddress.com
mydomain = domainaddress.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname, localhost, $mydomain , www.$mydomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = ipv4
I know I'm doing something wrong at somewhere but I couldn't figure out what it is and where, for two days.
18.04 postfix
I'm trying to build send only mail server using postfix. I folowed this documentation from digital ocean
When I try to send email, it gives below error. (I copied from /var/log/mail.log)
lets say my domain name is domainaddress.com
Feb 9 07:52:54 domainaddress postfix/qmgr[22091]: B22861BA03A: from=<hsntngr@domainaddress>, size=403, nrcpt=1 (queue active)
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6A8D81BA0FA: to=<hsntngr@domainaddress>, relay=none, delay=29909, delays=29909/0.01/0/0, dsn=4.4.1, status=deferred (conn$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: connect to domainaddress.com[128.199.50.100]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: 6CDC81BA03F: to=<hsntngr@domainaddress>, relay=none, delay=126295, delays=126295/0.01/0/0, dsn=4.4.1, status=deferred (co$
Feb 9 07:52:54 domainaddress postfix/smtp[26332]: 6BDFF1BA0F8: to=<hsntngr@domainaddress.com>, relay=none, delay=29997, delays=29997/0.02/0/0, dsn=4.4.1, status=deferred ($
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: connect to domainaddress[127.0.1.1]:25: Connection refused
Feb 9 07:52:54 domainaddress postfix/smtp[26333]: B22861BA03A: to=<your_email_address@domainaddress>, relay=none, delay=126304, delays=126304/0.02/0.01/0, dsn=4.4.1, status..
Even if I setup my host name in config file, host name seems wrong..
Also my config file (/etc/postfix/main.cf)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.domainaddress.com
mydomain = domainaddress.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname, localhost, $mydomain , www.$mydomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = ipv4
I know I'm doing something wrong at somewhere but I couldn't figure out what it is and where, for two days.
18.04 postfix
18.04 postfix
asked Feb 9 at 8:40


Hasan TıngırHasan Tıngır
157111
157111
add a comment |
add a comment |
0
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
});
}
});
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%2f1116876%2fpostfix-connection-refused-error-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%2f1116876%2fpostfix-connection-refused-error-ubuntu-18-04%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
jx6jq IsFr0EXzpt3vP7gCjTB,lBkD,Kg,yaPGvLk3,C0R6jhqkr3trj,uU4nvbOYV5vGfwt4dGhu,sN32 luwPTRxsx bv,FTVkkO