On Saturday, 31 August 2024 21:56:59 BST syscon edm wrote: > In /etc/postfix/main.cf I only have: > > myorigin = gmail.com > > If I use: > myorigin = sysc...@gmail.com > > I get an error message; > Aug 31 14:28:02 i5 postfix/smtp[25841]: 1A31217E00EC: to=<root@syscon8@ > gmail.com>,
OK, I expect you'd need to set an alias instead. Try: My cat /etc/mail/aliases # Basic system aliases -- these MUST be present. # Redirect mail for local recipients MAILER-DAEMON: postmaster postmaster: root root: syscon8 or try: root: sysc...@gmail.com then run 'newaliases' each time to rebuild the database. One of these aliases ought to work. > relay=smtp.gmail.com[142.250.99.109]:587, delay=0.54, > delays=0.01/0/0.5/0.03, dsn=5.1.3, status=bounced (host > smtp.gmail.com[142.250.99.109] > said: 553-5.1.3 The recipient address <root@sysc...@gmail.com> is not a > valid RFC 553-5.1.3 5321 address. > > my /etc/postfix/sender_canonical > /^root@gmail\.com$/ sysc...@gmail.com I don't think you should be using canonical - this will be rewriting addresses within the header *and* body of messages. Use an alias instead.
signature.asc
Description: This is a digitally signed message part.