I have installed Postfix on AWS ubuntu(18.04). When I am trying to send email from my EmailId to configured postfix mail server i.e [email protected], getting below log:
Sep 30 15:12:05 mailer postfix/smtpd[17712]: connect from mail-pg1-f178.google.com[209.85.215.178] Sep 30 15:12:06 mailer postfix/smtpd[17712]: NOQUEUE: reject: RCPT from mail-pg1-f178.google.com[209.85.215.178]: 454 4.7.1 : Relay access denied; from= to= proto=ESMTP helo=
My /etc/postfix/mail.cf has following configuration:
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
biff = no
append_dot_mydomain = no
readme_directory = no
mailbox_size_limit = 0
recipient_delimiter = + .
inet_interfaces = all
inet_protocols = all
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
compatibility_level = 2
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mailer.visitormanagementsystem.co.in
myorigin = /etc/mailname
mydestination = $myhostname, mailer.visitormanagementsystem.co.in, localhost.visitormanagementsystem.co.in, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128