[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1889
  • Last Modified:

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

0
easyaffiliateltd
Asked:
easyaffiliateltd
1 Solution
 
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now