Relay access denied when using SMTP to external recipients POSTFIX FREEBSD
Clash Royale CLAN TAG#URR8PPP
i am trying to send an email with my freebsd server using postfix and dbmail to an external adress.
I have noticed the following things:
MYSERVER -> MYSERVER = OKAY
EXTERNALSERVER -> MYSERVER = OKAY
MYSERVER -> EXTERNALSERVER = ERROR(454 4.7.1 Relay access denied)
Why do i get this error? i think it has something to do with my main.cf
####MAIN.CF######
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
default_privs = nobody
myhostname = server.domain.nl
mydomain = domain.nl
myorigin = $mydomain
inet_interfaces = all
virtual_transport = dbmail-lmtp:localhost:24
virtual_mailbox_domains = domain.nl
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8 [::1]/128
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
freebsd email postfix smtp
add a comment |
i am trying to send an email with my freebsd server using postfix and dbmail to an external adress.
I have noticed the following things:
MYSERVER -> MYSERVER = OKAY
EXTERNALSERVER -> MYSERVER = OKAY
MYSERVER -> EXTERNALSERVER = ERROR(454 4.7.1 Relay access denied)
Why do i get this error? i think it has something to do with my main.cf
####MAIN.CF######
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
default_privs = nobody
myhostname = server.domain.nl
mydomain = domain.nl
myorigin = $mydomain
inet_interfaces = all
virtual_transport = dbmail-lmtp:localhost:24
virtual_mailbox_domains = domain.nl
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8 [::1]/128
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
freebsd email postfix smtp
add a comment |
i am trying to send an email with my freebsd server using postfix and dbmail to an external adress.
I have noticed the following things:
MYSERVER -> MYSERVER = OKAY
EXTERNALSERVER -> MYSERVER = OKAY
MYSERVER -> EXTERNALSERVER = ERROR(454 4.7.1 Relay access denied)
Why do i get this error? i think it has something to do with my main.cf
####MAIN.CF######
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
default_privs = nobody
myhostname = server.domain.nl
mydomain = domain.nl
myorigin = $mydomain
inet_interfaces = all
virtual_transport = dbmail-lmtp:localhost:24
virtual_mailbox_domains = domain.nl
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8 [::1]/128
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
freebsd email postfix smtp
i am trying to send an email with my freebsd server using postfix and dbmail to an external adress.
I have noticed the following things:
MYSERVER -> MYSERVER = OKAY
EXTERNALSERVER -> MYSERVER = OKAY
MYSERVER -> EXTERNALSERVER = ERROR(454 4.7.1 Relay access denied)
Why do i get this error? i think it has something to do with my main.cf
####MAIN.CF######
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
default_privs = nobody
myhostname = server.domain.nl
mydomain = domain.nl
myorigin = $mydomain
inet_interfaces = all
virtual_transport = dbmail-lmtp:localhost:24
virtual_mailbox_domains = domain.nl
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8 [::1]/128
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
freebsd email postfix smtp
freebsd email postfix smtp
edited Feb 28 '15 at 23:05
HalosGhost
3,70592235
3,70592235
asked Feb 28 '15 at 18:22
Ruben Urresti
30115
30115
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Isn't that you haven't authenticated properly (via your mail client) to send outbound email or otherwise haven't setup mynetworks such that it will allow all systems within your network to send without authentication?
https://serverfault.com/questions/42519/how-to-correct-postfix-relay-access-denied
add a comment |
I had a similar error message when I set up sendmail
as in this thread. For me the problem was that I was authenticating over port 465, which is SMTP with TLS, but the protocol requires TLS to run after authentication, for example over port 25, which is SMTP without TLS.
The solution was to change the port in ~/.authinfo
to
machine server.domain.tld login username@domain.com port 25 password XYZ
add a comment |
mynetworks = 127.0.0.0/8 [::1]/128
Cancel it. # Sheep per line
# mynetworks = 127.0.0.0/8 [::1]/128
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f187423%2frelay-access-denied-when-using-smtp-to-external-recipients-postfix-freebsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Isn't that you haven't authenticated properly (via your mail client) to send outbound email or otherwise haven't setup mynetworks such that it will allow all systems within your network to send without authentication?
https://serverfault.com/questions/42519/how-to-correct-postfix-relay-access-denied
add a comment |
Isn't that you haven't authenticated properly (via your mail client) to send outbound email or otherwise haven't setup mynetworks such that it will allow all systems within your network to send without authentication?
https://serverfault.com/questions/42519/how-to-correct-postfix-relay-access-denied
add a comment |
Isn't that you haven't authenticated properly (via your mail client) to send outbound email or otherwise haven't setup mynetworks such that it will allow all systems within your network to send without authentication?
https://serverfault.com/questions/42519/how-to-correct-postfix-relay-access-denied
Isn't that you haven't authenticated properly (via your mail client) to send outbound email or otherwise haven't setup mynetworks such that it will allow all systems within your network to send without authentication?
https://serverfault.com/questions/42519/how-to-correct-postfix-relay-access-denied
edited Apr 13 '17 at 12:13
Community♦
1
1
answered Feb 28 '15 at 20:55
dtbnguyen
48726
48726
add a comment |
add a comment |
I had a similar error message when I set up sendmail
as in this thread. For me the problem was that I was authenticating over port 465, which is SMTP with TLS, but the protocol requires TLS to run after authentication, for example over port 25, which is SMTP without TLS.
The solution was to change the port in ~/.authinfo
to
machine server.domain.tld login username@domain.com port 25 password XYZ
add a comment |
I had a similar error message when I set up sendmail
as in this thread. For me the problem was that I was authenticating over port 465, which is SMTP with TLS, but the protocol requires TLS to run after authentication, for example over port 25, which is SMTP without TLS.
The solution was to change the port in ~/.authinfo
to
machine server.domain.tld login username@domain.com port 25 password XYZ
add a comment |
I had a similar error message when I set up sendmail
as in this thread. For me the problem was that I was authenticating over port 465, which is SMTP with TLS, but the protocol requires TLS to run after authentication, for example over port 25, which is SMTP without TLS.
The solution was to change the port in ~/.authinfo
to
machine server.domain.tld login username@domain.com port 25 password XYZ
I had a similar error message when I set up sendmail
as in this thread. For me the problem was that I was authenticating over port 465, which is SMTP with TLS, but the protocol requires TLS to run after authentication, for example over port 25, which is SMTP without TLS.
The solution was to change the port in ~/.authinfo
to
machine server.domain.tld login username@domain.com port 25 password XYZ
answered Dec 16 at 16:02
mmorin
1084
1084
add a comment |
add a comment |
mynetworks = 127.0.0.0/8 [::1]/128
Cancel it. # Sheep per line
# mynetworks = 127.0.0.0/8 [::1]/128
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
add a comment |
mynetworks = 127.0.0.0/8 [::1]/128
Cancel it. # Sheep per line
# mynetworks = 127.0.0.0/8 [::1]/128
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
add a comment |
mynetworks = 127.0.0.0/8 [::1]/128
Cancel it. # Sheep per line
# mynetworks = 127.0.0.0/8 [::1]/128
mynetworks = 127.0.0.0/8 [::1]/128
Cancel it. # Sheep per line
# mynetworks = 127.0.0.0/8 [::1]/128
edited Mar 13 at 10:22
answered Mar 13 at 9:30
Abdullah
11
11
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
add a comment |
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
# mynetworks = 127.0.0.0/8 [::1]/128
– Abdullah
Mar 13 at 9:33
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Please describe why you think this line should be modified.
– telcoM
Mar 13 at 10:19
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
Yeah this fixed my setup too. Is it because it restricts who can send email and your home computer ip is never on that network? Or can somebody perhaps explain what it means?
– Christopher Thomas
Sep 20 at 12:10
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f187423%2frelay-access-denied-when-using-smtp-to-external-recipients-postfix-freebsd%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