LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2021, 02:57 AM   #1
riahc3
Member
 
Registered: Dec 2002
Posts: 223

Rep: Reputation: 1
Postfix 454 4.7.1 Relay access denied (in reply to RCPT TO command))


Hello

Im trying to send email from a email relay in Postfix.

Basically I have two Postfix installed: One (A) is trying to send email and the other (B) is attached pointing to a Office 365.

The other one (B) is configured correctly but when I try to send emails from A, I get:

Postfix 454 4.7.1 Relay access denied (in reply to RCPT TO command))

Both Postfix have a name of SERVER1.internaldomain.net and SERVER2.internaldomain.net

The email address I trying to send from is email@externaldomain.com

The email adddres I am trying to send email TO is email@anotherexternaldomain.com

This is my main.cf on SERVER1:

Code:
	queue_directory = /var/spool/postfix
	command_directory = /usr/sbin
	daemon_directory = /usr/libexec/postfix
	data_directory = /var/lib/postfix
	mail_owner = postfix
	inet_interfaces = $myhostname, localhost
	inet_protocols = all
	mydestination = $myhostname, localhost.$mydomain, localhost
	unknown_local_recipient_reject_code = 550
	alias_maps = hash:/etc/aliases
	alias_database = hash:/etc/aliases
	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/sbin/sendmail.postfix
	newaliases_path = /usr/bin/newaliases.postfix
	mailq_path = /usr/bin/mailq.postfix
	setgid_group = postdrop
	html_directory = no
	manpage_directory = /usr/share/man
	sample_directory = /usr/share/doc/postfix-2.10.1/samples
	readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
	myhostname = SERVER1.internaldomain.net
	relayhost = [SERVER2.internaldomain.net]
	smtp_use_tls = yes
	smtp_sasl_auth_enable = yes
	smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
	smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
	smtp_sasl_security_options = noanonymous
	smtp_sasl_tls_security_options = noanonymous
	smtp_generic_maps = hash:/etc/postfix/generic
 
Old 05-06-2021, 03:20 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
http://www.postfix.org/SMTPD_ACCESS_README.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
554 5.7.1 Relay access denied Postfix Open Relay kryspek Linux - Software 5 04-26-2017 08:35 AM
Postfix 2.5.5 sending mail error: Domain not found (in reply to RCPT TO command) edderkop Linux - Server 2 07-05-2011 02:26 PM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration