Link to home
Start Free TrialLog in
Avatar of easyaffiliateltd
easyaffiliateltd

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of easyaffiliateltd
easyaffiliateltd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial