Postfix : TLS is required, but was not offered by host smtp.gmail.com


#1

Dear All,

We need to make linux root send email for notifications, job status, cron results…etc. So we are trying to make basic and simple configuration to postfix with gmail as relay; following

all sent emails are in mail queue with:

TLS is required, but was not offered by host smtp.gmail.com[74.125.206.108])

Following is the postconf -n output:

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 html_directory = no inet_interfaces = localhost inet_protocols = ipv4 mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_enforce_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_tls_security_level = encrypt smtp_use_tls = yes unknown_local_recipient_reject_code = 550

How to solve this issue;

Thanks in Advance,

Shareef


#2

Try to use the port 465 instead of 587 with smtp.gmail.com