As will be clear I am new to Postfix. I am setting up a server to run a Wordpress site which is currently hosted by a third party.
I want to use postfix to handle forwarding of email to specific.users@domain of the website to a user@gmail account. I found an article to do this with some simple instructions. I have a static ip address for the proposed server xxx.xxx.xxx.yyy, the the domain name is still in use on the hosted third party so on my test system I am using a ip literals. I have two problems at the moment: 1. if an email is forwarded to the gmail user account - it does not arrive at the gmail account, with no apparent error in the postfix log as far as I can see 2. if an email is forwarded to another p...@anoymised35.co.uk different external account, I get an email from postfix to the usera@gmail account : This is the mail system at host raspberrypi. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <p...@anoymised35.co.uk> (expanded from <p...@xxx.xxx.xxx.yy>): host mx1.krystal.co.uk[77.72.0.30] said: 550 Access denied - Invalid HELO name (See RFC5321 4.1.1.1) (in reply to RCPT TO command) Reporting-MTA: dns; raspberrypi X-Postfix-Queue-ID: 510909DE68 X-Postfix-Sender: rfc822; gmail.u...@gmail.com Arrival-Date: Tue, 18 Oct 2016 09:52:53 +0100 (BST) Final-Recipient: rfc822; p...@anoymised35.co.uk Original-Recipient: rfc822;p...@xxx.xxx.xxx.yy Action: failed Status: 5.0.0 Remote-MTA: dns; mx1.krystal.co.uk Diagnostic-Code: smtp; 550 Access denied - Invalid HELO name (See RFC5321 4.1.1.1) postconf -n gives: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_size_limit = 0 mydestination = [xxx.xxx.xxx.yy], xxx.xxx.xxx.yy, localhost.localdomain, , localhost myhostname = raspberrypi mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 readme_directory = no recipient_delimiter = + relayhost = resolve_numeric_domain = yes smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Raspbian) smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes # See man 5 aliases for format postmaster: root MAILER-DAEMON: postmaster Alias file: # Common aliases abuse: postmaster spam: postmaster # Other aliases root: gmail.u...@gmail.com gerry: gmail.u...@gmail.com paul: p...@anoymised35.co.uk Postfix log: Oct 18 09:52:23 raspberrypi postfix/smtpd[3061]: connect from mail-lf0-f44.google.com[209.85.215.44] Oct 18 09:52:23 raspberrypi postfix/smtpd[3061]: 967DA9DE67: client=mail-lf0-f44.google.com[209.85.215.44] Oct 18 09:52:23 raspberrypi postfix/cleanup[3065]: 967DA9DE67: message-id=<20bcc940-d91f-f6cb-167c-a9aef5227...@gmail.com> Oct 18 09:52:23 raspberrypi postfix/qmgr[2125]: 967DA9DE67: from=<gmail.u...@gmail.com>, size=2648, nrcpt=1 (queue active) Oct 18 09:52:23 raspberrypi postfix/cleanup[3065]: CB7159DE68: message-id=<20bcc940-d91f-f6cb-167c-a9aef5227...@gmail.com> Oct 18 09:52:23 raspberrypi postfix/local[3066]: 967DA9DE67: to=<gerry@[xxx.xxx.xxx.yy>, orig_to=<ge...@xxx.xxx.xxx.yy >, relay=local, delay=0.24, delays=0.22/0.02/0/0.01, dsn=2.0.0, status=sent (forwarded as CB7159DE68) Oct 18 09:52:23 raspberrypi postfix/qmgr[2125]: CB7159DE68: from=<gmail.u...@gmail.com>, size=2776, nrcpt=1 (queue active) Oct 18 09:52:23 raspberrypi postfix/qmgr[2125]: 967DA9DE67: removed Oct 18 09:52:23 raspberrypi postfix/smtpd[3061]: disconnect from mail-lf0-f44.google.com[209.85.215.44] Oct 18 09:52:24 raspberrypi postfix/smtp[3067]: CB7159DE68: to=<gmail.u...@gmail.com>, orig_to=<gerry@>, relay=gmail-smtp-in.l.google.com[66.102.1.26]:25, delay=0.53, delays=0/0.02/0.27/0.24, dsn=2.0.0, status=sent (250 2.0.0 OK 1476780744 ma1si47546333wjb.183 - gsmtp) Oct 18 09:52:24 raspberrypi postfix/qmgr[2125]: CB7159DE68: removed Oct 18 09:52:52 raspberrypi postfix/smtpd[3061]: connect from mail-lf0-f51.google.com[209.85.215.51] Oct 18 09:52:53 raspberrypi postfix/smtpd[3061]: 26E0E9DE67: client=mail-lf0-f51.google.com[209.85.215.51] Oct 18 09:52:53 raspberrypi postfix/cleanup[3065]: 26E0E9DE67: message-id=<15ee98e2-ef6a-f385-b0de-4cf94aa00...@gmail.com> Oct 18 09:52:53 raspberrypi postfix/qmgr[2125]: 26E0E9DE67: from=<gmail.u...@gmail.com>, size=2634, nrcpt=1 (queue active) Oct 18 09:52:53 raspberrypi postfix/cleanup[3065]: 510909DE68: message-id=<15ee98e2-ef6a-f385-b0de-4cf94aa00...@gmail.com> Oct 18 09:52:53 raspberrypi postfix/local[3066]: 26E0E9DE67: to=<paul@[xxx.xxx.xxx.yy]>, orig_to=<p...@xxx.xxx.xxx.yy >, relay=local, delay=0.18, delays=0.17/0/0/0.01, dsn=2.0.0, status=sent (forwarded as 510909DE68) Oct 18 09:52:53 raspberrypi postfix/qmgr[2125]: 510909DE68: from=<gmail.u...@gmail.com>, size=2761, nrcpt=1 (queue active) Oct 18 09:52:53 raspberrypi postfix/qmgr[2125]: 26E0E9DE67: removed Oct 18 09:52:53 raspberrypi postfix/smtpd[3061]: disconnect from mail-lf0-f51.google.com[209.85.215.51] Oct 18 09:52:53 raspberrypi postfix/smtp[3067]: 510909DE68: to=<p...@anoymised35.co.uk>, orig_to=<p...@xxx.xxx.xxx.yy>, relay=mx1.krystal.co.uk[77.72.0.30]:25, delay=0.33, delays=0.01/0.01/0.17/0.15, dsn=5.0.0, status=bounced (host mx1.krystal.co.uk[77.72.0.30] said: 550 Access denied - Invalid HELO name (See RFC5321 4.1.1.1) (in reply to RCPT TO command)) Oct 18 09:52:53 raspberrypi postfix/cleanup[3065]: A1BEE9DE69: message-id=<20161018085253.A1BEE9DE69@raspberrypi> Oct 18 09:52:53 raspberrypi postfix/bounce[3100]: 510909DE68: sender non-delivery notification: A1BEE9DE69 Oct 18 09:52:53 raspberrypi postfix/qmgr[2125]: A1BEE9DE69: from=<>, size=4747, nrcpt=1 (queue active) Oct 18 09:52:53 raspberrypi postfix/qmgr[2125]: 510909DE68: removed Oct 18 09:52:54 raspberrypi postfix/smtp[3067]: A1BEE9DE69: to=<gmail.u...@gmail.com>, relay=gmail-smtp-in.l.google.com[66.102.1.26]:25, delay=0.48, delays=0.01/0/0.19/0.28, dsn=2.0.0, status=sent (250 2.0.0 OK 1476780774 wg6si47472524wjb.146 - gsmtp) Oct 18 09:52:54 raspberrypi postfix/qmgr[2125]: A1BEE9DE69: removed Any help fixing this would be great, thank you Paul -- View this message in context: http://postfix.1071664.n5.nabble.com/Using-Postfix-to-forward-mail-to-external-accounts-tp86825.html Sent from the Postfix Users mailing list archive at Nabble.com.