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 ned.easervers.co.uk ESMTP Postfix (Ubuntu) [heloresponse] => 250 hostname.mydomain.co.uk [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 main.cf 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/main.cf.dist 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_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
 
myhostname = hostname.mydomain.co.uk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = hostname.mydomain.co.uk, localhost.mydomain.co.uk, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 100.100.100.100
smtp_bind_address = 100.100.100.100
 
# 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

easyaffiliateltdAsked:
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 "86.3.6.3" port 25...
Connected to SMTP server "86.3.6.3".
S 220 ned.easervers.co.uk ESMTP Postfix (Ubuntu)
C EHLO 86.3.6.112
S 250-ned.easervers.co.uk
S 250-PIPELINING
S 250-SIZE 10240000
S 250-VRFY
S 250-ETRN
S 250-STARTTLS
S 250-ENHANCEDSTATUSCODES
S 250-8BITMIME
S 250 DSN
C MAIL FROM:<noreply@myfreerewards.co.uk>
C RCPT TO:<jayson.c@easyaffiliate.co.uk>
C DATA
S 250 2.1.0 Ok
S 554 5.7.1 <jayson.c@easyaffiliate.co.uk>: Relay access denied
Disconnected.
Cound not send the message to jayson.c@easyaffiliate.co.uk. Error: 554 5.7.1 : Relay access denied

Open in new window

0

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.