Re: [CentOS] Help Getting Postfix relaying via Gmail
Am 28.12.2012 08:37, schrieb Clint Dilks: Sorry was doing this at 2am in the morning and didn't realise I mis-copied 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 = 3 html_directory = no inet_interfaces = localhost inet_protocols = all 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.6.6/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt smtp_tls_mandatory_ciphers = high smtp_tls_mandatory_protocols = TLSv1 smtp_tls_secure_cert_match = nexthop smtp_tls_security_level = secure smtp_use_tls = yes smtpd_sasl_path = smtpd unknown_local_recipient_reject_code = 550 yum install cyrus-sasl-plain Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
2012/12/28 Clint Dilks clint.di...@gmail.com: Sorry was doing this at 2am in the morning and didn't realise I mis-copied 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 = 3 html_directory = no inet_interfaces = localhost inet_protocols = all 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.6.6/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt smtp_tls_mandatory_ciphers = high smtp_tls_mandatory_protocols = TLSv1 smtp_tls_secure_cert_match = nexthop smtp_tls_security_level = secure smtp_use_tls = yes smtpd_sasl_path = smtpd unknown_local_recipient_reject_code = 550 remember to postmap /etc/postfix/sasl_passwd and then restart the postfix. then provide log entries from postfix after trying to send mail.. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
On 12/27/2012 11:16 AM, Clint Dilks wrote: Hi, I am trying to get a CentOS 6 system relaying mail via my G-Mail account. I followed the instructions found at https://www.zulius.com/how-to/set-up-postfix-with-a-remote-smtp-relay-host/but there seems to be a problem with authentication. I have done some research but still can't get this working. Any suggestions ? It seems the user and password are correct. Dec 27 23:15:36 hbc postfix/pickup[2588]: 8DEB1410B3: uid=0 from=root Dec 27 23:15:36 hbc postfix/cleanup[2603]: 8DEB1410B3: message-id= 20121227101536.8deb141...@hbc.hillcrest.org.nz Dec 27 23:15:36 hbc postfix/qmgr[2589]: 8DEB1410B3: from= r...@hbc.hillcrest.org.nz, size=317, nrcpt=1 (queue active) Dec 27 23:15:37 hbc postfix/smtp[2605]: connect to smtp.gmail.com[2607:f8b0:400e:c00::6d]:587: Network is unreachable Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 45 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 220 mx.google.com ESMTP vo8sm17581810pbc.16 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 122 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:37 hbc postfix/smtp[2605]: server features: 0x101b size 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 10 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 30 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 220 2.0.0 Ready to start TLS Dec 27 23:15:37 hbc postfix/smtp[2605]: event_request_timer: reset 0x7f79a9113bb0 0x7f79aa8429d0 5 Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr request = seed Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr size = 32 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 9 flush 22 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 9 got 60 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: 0 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: xIHq7bnC7bggzN5/v38KVLhUrfnowW/aYWlTcvBI1LM= Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: (list terminator) Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: (end) Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 145 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:38 hbc postfix/smtp[2605]: server features: 0x102b size 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd: smtp.gmail.com: not found Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd: hash:/etc/postfix/sasl_passwd(0,lock|fold_fix): smtp.gmail.com:587 = clint.di...@gmail.com: Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp_sasl_passwd_lookup: host ` smtp.gmail.com' user `user@gmail.com' pass `correct password' Dec 27 23:15:38 hbc postfix/smtp[2605]: starting new SASL client Dec 27 23:15:38 hbc postfix/smtp[2605]: name_mask: noanonymous Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp_sasl_authenticate: smtp.gmail.com[173.194.79.109]:587: SASL mechanisms LOGIN PLAIN XOAUTH XOAUTH2 Dec 27 23:15:38 hbc postfix/smtp[2605]: warning: SASL authentication failure: No worthy mechs found Dec 27 23:15:38 hbc postfix/smtp[2605]: 8DEB1410B3: SASL authentication
Re: [CentOS] Help Getting Postfix relaying via Gmail
Hi already done this A number of Ubuntu related sites indicate its missing Libraries. But in this case doesn't seem to be the problem. tried setting smtp_sasl_security_options = and smtp_cname_overrides_servername=no (individually and together) changing relayhost so that it is [smtp.gmail.com]:587 seems to produce the following error status=bounced (host smtp.gmail.com[74.125.141.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 gq10sm17693070pbc.54 (in reply to MAIL FROM command)) On Fri, Dec 28, 2012 at 12:22 AM, Phil Dobbin bukowskis...@gmail.comwrote: On 12/27/2012 11:16 AM, Clint Dilks wrote: Hi, I am trying to get a CentOS 6 system relaying mail via my G-Mail account. I followed the instructions found at https://www.zulius.com/how-to/set-up-postfix-with-a-remote-smtp-relay-host/but there seems to be a problem with authentication. I have done some research but still can't get this working. Any suggestions ? It seems the user and password are correct. Dec 27 23:15:36 hbc postfix/pickup[2588]: 8DEB1410B3: uid=0 from=root Dec 27 23:15:36 hbc postfix/cleanup[2603]: 8DEB1410B3: message-id= 20121227101536.8deb141...@hbc.hillcrest.org.nz Dec 27 23:15:36 hbc postfix/qmgr[2589]: 8DEB1410B3: from= r...@hbc.hillcrest.org.nz, size=317, nrcpt=1 (queue active) Dec 27 23:15:37 hbc postfix/smtp[2605]: connect to smtp.gmail.com[2607:f8b0:400e:c00::6d]:587: Network is unreachable Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 45 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 220 mx.google.com ESMTP vo8sm17581810pbc.16 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 122 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:37 hbc postfix/smtp[2605]: server features: 0x101b size 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 10 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 30 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 220 2.0.0 Ready to start TLS Dec 27 23:15:37 hbc postfix/smtp[2605]: event_request_timer: reset 0x7f79a9113bb0 0x7f79aa8429d0 5 Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr request = seed Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr size = 32 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 9 flush 22 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 9 got 60 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: 0 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: xIHq7bnC7bggzN5/v38KVLhUrfnowW/aYWlTcvBI1LM= Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: (list terminator) Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: (end) Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 145 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:38 hbc postfix/smtp[2605]: server features: 0x102b size 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd:
Re: [CentOS] Help Getting Postfix relaying via Gmail
2012/12/27 Clint Dilks clint.di...@gmail.com: Hi, I am trying to get a CentOS 6 system relaying mail via my G-Mail account. I followed the instructions found at https://www.zulius.com/how-to/set-up-postfix-with-a-remote-smtp-relay-host/but there seems to be a problem with authentication. I have done some research but still can't get this working. Any suggestions ? It seems the user and password are correct. Dec 27 23:15:36 hbc postfix/pickup[2588]: 8DEB1410B3: uid=0 from=root Dec 27 23:15:36 hbc postfix/cleanup[2603]: 8DEB1410B3: message-id= 20121227101536.8deb141...@hbc.hillcrest.org.nz Dec 27 23:15:36 hbc postfix/qmgr[2589]: 8DEB1410B3: from= r...@hbc.hillcrest.org.nz, size=317, nrcpt=1 (queue active) Dec 27 23:15:37 hbc postfix/smtp[2605]: connect to smtp.gmail.com[2607:f8b0:400e:c00::6d]:587: Network is unreachable Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 45 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 220 mx.google.com ESMTP vo8sm17581810pbc.16 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 122 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:37 hbc postfix/smtp[2605]: server features: 0x101b size 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 10 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 30 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 220 2.0.0 Ready to start TLS Dec 27 23:15:37 hbc postfix/smtp[2605]: event_request_timer: reset 0x7f79a9113bb0 0x7f79aa8429d0 5 Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr request = seed Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr size = 32 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 9 flush 22 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 9 got 60 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: 0 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: xIHq7bnC7bggzN5/v38KVLhUrfnowW/aYWlTcvBI1LM= Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: (list terminator) Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: (end) Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 145 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com[173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:38 hbc postfix/smtp[2605]: server features: 0x102b size 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd: smtp.gmail.com: not found Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd: hash:/etc/postfix/sasl_passwd(0,lock|fold_fix): smtp.gmail.com:587 = clint.di...@gmail.com: Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp_sasl_passwd_lookup: host ` smtp.gmail.com' user `user@gmail.com' pass `correct password' Dec 27 23:15:38 hbc postfix/smtp[2605]: starting new SASL client Dec 27 23:15:38 hbc postfix/smtp[2605]: name_mask: noanonymous Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp_sasl_authenticate: smtp.gmail.com[173.194.79.109]:587: SASL mechanisms LOGIN PLAIN XOAUTH XOAUTH2 Dec 27 23:15:38 hbc postfix/smtp[2605]: warning: SASL authentication failure: No worthy mechs found Dec 27 23:15:38 hbc postfix/smtp[2605]: 8DEB1410B3: SASL authentication
Re: [CentOS] Help Getting Postfix relaying via Gmail
Hi, I have a working setup. Eye-grep differences from your configs: relayhost = [smtp.gmail.com]:587 smtp_sasl_security_options = noanonymous, noplaintext # cat /etc/postfix/sasl_passwd [smtp.gmail.com]:587full-email@address:mypassword HTH, Mário ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
Thank you but no change On Fri, Dec 28, 2012 at 1:12 AM, Eero Volotinen eero.voloti...@iki.fiwrote: 2012/12/27 Clint Dilks clint.di...@gmail.com: Hi, I am trying to get a CentOS 6 system relaying mail via my G-Mail account. I followed the instructions found at https://www.zulius.com/how-to/set-up-postfix-with-a-remote-smtp-relay-host/but there seems to be a problem with authentication. I have done some research but still can't get this working. Any suggestions ? It seems the user and password are correct. Dec 27 23:15:36 hbc postfix/pickup[2588]: 8DEB1410B3: uid=0 from=root Dec 27 23:15:36 hbc postfix/cleanup[2603]: 8DEB1410B3: message-id= 20121227101536.8deb141...@hbc.hillcrest.org.nz Dec 27 23:15:36 hbc postfix/qmgr[2589]: 8DEB1410B3: from= r...@hbc.hillcrest.org.nz, size=317, nrcpt=1 (queue active) Dec 27 23:15:37 hbc postfix/smtp[2605]: connect to smtp.gmail.com[2607:f8b0:400e:c00::6d]:587: Network is unreachable Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 45 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 220 mx.google.com ESMTP vo8sm17581810pbc.16 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 122 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:37 hbc postfix/smtp[2605]: server features: 0x101b size 35882577 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: STARTTLS Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 10 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 30 Dec 27 23:15:37 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 220 2.0.0 Ready to start TLS Dec 27 23:15:37 hbc postfix/smtp[2605]: event_request_timer: reset 0x7f79a9113bb0 0x7f79aa8429d0 5 Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr request = seed Dec 27 23:15:37 hbc postfix/smtp[2605]: send attr size = 32 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_fflush_some: fd 9 flush 22 Dec 27 23:15:37 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 9 got 60 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: status Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: 0 Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: seed Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute value: xIHq7bnC7bggzN5/v38KVLhUrfnowW/aYWlTcvBI1LM= Dec 27 23:15:37 hbc postfix/smtp[2605]: private/tlsmgr: wanted attribute: (list terminator) Dec 27 23:15:37 hbc postfix/smtp[2605]: input attribute name: (end) Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: EHLO hbc.hillcrest.org.nz Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_fflush_some: fd 15 flush 27 Dec 27 23:15:38 hbc postfix/smtp[2605]: vstream_buf_get_ready: fd 15 got 145 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-mx.google.com at your service, [121.75.4.39] Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-SIZE 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-8BITMIME Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp.gmail.com [173.194.79.109]:587: 250 ENHANCEDSTATUSCODES Dec 27 23:15:38 hbc postfix/smtp[2605]: server features: 0x102b size 35882577 Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd: smtp.gmail.com: not found Dec 27 23:15:38 hbc postfix/smtp[2605]: maps_find: smtp_sasl_passwd: hash:/etc/postfix/sasl_passwd(0,lock|fold_fix): smtp.gmail.com:587 = clint.di...@gmail.com: Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp_sasl_passwd_lookup: host ` smtp.gmail.com' user `user@gmail.com' pass `correct password' Dec 27 23:15:38 hbc postfix/smtp[2605]: starting new SASL client Dec 27 23:15:38 hbc postfix/smtp[2605]: name_mask: noanonymous Dec 27 23:15:38 hbc postfix/smtp[2605]: smtp_sasl_authenticate:
Re: [CentOS] Help Getting Postfix relaying via Gmail
2012/12/27 Clint Dilks clint.di...@gmail.com: Thank you but no change what is unedited output of postconf -n ? -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
Hi, Currently # postconf -n | less 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 = 3 debug_peer_list = smtp.gmail.com html_directory = no inet_interfaces = localhost inet_protocols = all 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.6.6/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.6.6/samplesr sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop On Fri, Dec 28, 2012 at 1:43 AM, Eero Volotinen eero.voloti...@iki.fiwrote: 2012/12/27 Clint Dilks clint.di...@gmail.com: Thank you but no change what is unedited output of postconf -n ? -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
2012/12/27 Clint Dilks clint.di...@gmail.com: Hi, Currently # postconf -n | less 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 = 3 debug_peer_list = smtp.gmail.com html_directory = no inet_interfaces = localhost inet_protocols = all 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.6.6/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.6.6/samplesr sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop and you didn't follow any of instructions that I just posted? all sasl settings are missing from configuration. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
Check this tutorial: http://charlesa.net/tutorials/centos/centosgmail.php -- Eero, RHCE Eero, How do you work around the issue of Google/Gmail rewriting your From email address to your gmail address when relaying via Gmail? -- Mike Burger http://www.bubbanfriends.org It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore. --Colonel Jack O'Neill, SG1 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
2012/12/27 Mike Burger mbur...@bubbanfriends.org: Check this tutorial: http://charlesa.net/tutorials/centos/centosgmail.php -- Eero, RHCE Eero, How do you work around the issue of Google/Gmail rewriting your From email address to your gmail address when relaying via Gmail? Well, using real (working) smarthost instead of google? -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
2012/12/27 Mike Burger mbur...@bubbanfriends.org: Check this tutorial: http://charlesa.net/tutorials/centos/centosgmail.php -- Eero, RHCE Eero, How do you work around the issue of Google/Gmail rewriting your From email address to your gmail address when relaying via Gmail? Well, using real (working) smarthost instead of google? -- Eero I suspected as much. LOL. -- Mike Burger http://www.bubbanfriends.org It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore. --Colonel Jack O'Neill, SG1 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help Getting Postfix relaying via Gmail
Sorry was doing this at 2am in the morning and didn't realise I mis-copied 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 = 3 html_directory = no inet_interfaces = localhost inet_protocols = all 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.6.6/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt smtp_tls_mandatory_ciphers = high smtp_tls_mandatory_protocols = TLSv1 smtp_tls_secure_cert_match = nexthop smtp_tls_security_level = secure smtp_use_tls = yes smtpd_sasl_path = smtpd unknown_local_recipient_reject_code = 550 On Fri, Dec 28, 2012 at 2:24 AM, Eero Volotinen eero.voloti...@iki.fiwrote: 2012/12/27 Clint Dilks clint.di...@gmail.com: Hi, Currently # postconf -n | less 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 = 3 debug_peer_list = smtp.gmail.com html_directory = no inet_interfaces = localhost inet_protocols = all 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.6.6/README_FILES relayhost = [smtp.gmail.com]:587 sample_directory = /usr/share/doc/postfix-2.6.6/samplesr sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop and you didn't follow any of instructions that I just posted? all sasl settings are missing from configuration. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos