Afternoon all, as the subject states, I have a central postfix server running 
which the web servers use along with some other processes with no problems.  I 
added a new server and not sure where the problem is, and a lot of the readings 
discuss mysql (which is not used) so looking for some help.  Note the postfix 
server and the new server are both located in amazon’s cloud.

I made a basic PHP form for testing, and when I submit I see the following on 
the local server;

Oct 27 19:35:47 ip-10-245-118-99 sm-mta[26541]: r9RJ2tBV024843: 
to=<perso...@gmail.com>, ctladdr=<www-data@ip1> (33/33), delay=00:32:52, 
xdelay=00:00:03, mailer=relay, pri=480371, relay=mail.mydomain.com. [mailIP], 
dsn=4.3.0, stat=Deferred: 451 4.3.0 <perso...@gmail.com>: Temporary lookup 
failure

and the following on the centralized mail server log;

Oct 27 15:44:04 mail postfix/smtpd[20073]: NOQUEUE: reject: RCPT from 
unknown[newIP]: 451 4.3.0 <perso...@gmail.com>: Temporary lookup failure; 
from=<www-d...@webserver.com> to=<perso...@gmail.com> proto=ESMTP 
helo=<ip-internal>

The postfix server on the EC2 instance has the following config;
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# 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:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = mail.mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.mydomain.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8 ipblock/26 ec2-ip/32 ec-2-private/32 
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

I’m not sure what else I can provide to help or it’s just a simple thing I am 
missing.  I tried putting the mail servers private IP in the hosts file (as 
there on the same network) but get the same results.

Thanks for all read/replies.



Reply via email to