Allowing External IP's to Send Mail In Postfix

Hi There,

I've installed PostFix on Ubuntu 7 and created two instances of Postfix, one in /etc/postfix and second in /etc/postfix-second

The reason for this is they are listening to different ip's and it seams to be working fine. My next problem
is allowing external servers/clients to send mail to postfix. My Error message is:

Array ( [connection] => Connected: 220 ESMTP Postfix (Ubuntu) [heloresponse] => 250 [mailfromresponse] => 250 2.1.0 Ok [mailtoresponse] => 554 5.7.1 : Relay access denied [data1response] => 554 5.5.1 Error: no valid recipients [data2response] => 221 2.7.0 Error: I can break rules, too. Goodbye. [quitresponse] => )

So im guessing i need to add something to my config file to allow my other servers to send mail the smtp server.

(Btw I've tested sending a SMTP Request through PHP on the server which Postfix is running and it still comes up with the same message so im completely lost.)
# See /usr/share/postfix/ for a commented, more complete version
queue_directory = /var/spool/postfix-second
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =,, , localhost
relayhost =
mynetworks =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces =
smtp_bind_address =
# I've added these below while googling but they don't seam to work
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_sender_restrictions =

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

easyaffiliateltdAuthor Commented:
Below might give you a better idea, with looking into it more it maybe something todo with sending to external domains ect?
Connecting to host address "" port 25...
Connected to SMTP server "".
S 220 ESMTP Postfix (Ubuntu)
S 250-SIZE 10240000
S 250-VRFY
S 250-ETRN
S 250 DSN
S 250 2.1.0 Ok
S 554 5.7.1 <>: Relay access denied
Cound not send the message to Error: 554 5.7.1 : Relay access denied

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Protocols

From novice to tech pro — start learning today.