Discussion:
Help with my new postfix server
(too old to reply)
Jason England
2018-04-27 15:08:24 UTC
Permalink
Hey guys, I am fairly new to linux and postfix, I am mostly an Exchange guy. I have configured everything as well as I can but I am running into an issue sending external mail. The error in my maillog is

(NOTE: I can send internally and can receive mail from external recipients. )

NOQUEUE: reject: RCPT from localhost[::1]: 454 4.7.1


Here is the result from postconf -n

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
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
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = jkengland.com
myhostname = mail.jkengland.com
mynetworks = 127.0.0.0/8 172.31.36.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/certs/apache-selfsigned.crt
smtpd_tls_key_file = /etc/ssl/private/apache-selfsigned.key
unknown_local_recipient_reject_code = 550


Any help is appreciated.

thanks!

Jason
Jonathan N. Little
2018-04-27 17:40:11 UTC
Permalink
Post by Jason England
Hey guys, I am fairly new to linux and postfix, I am mostly an Exchange guy. I have configured everything as well as I can but I am running into an issue sending external mail. The error in my maillog is
(NOTE: I can send internally and can receive mail from external recipients. )
NOQUEUE: reject: RCPT from localhost[::1]: 454 4.7.1
Here is the result from postconf -n
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
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
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = jkengland.com
myhostname = mail.jkengland.com
mynetworks = 127.0.0.0/8 172.31.36.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/certs/apache-selfsigned.crt
smtpd_tls_key_file = /etc/ssl/private/apache-selfsigned.key
unknown_local_recipient_reject_code = 550
Any help is appreciated.
Add IPv6 loopback addresses to mynetworks

mynetworks = 127.0.0.0/8 172.31.36.0/24 [::ffff:127.0.0.0]/104 [::1]/128
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Loading...