On 20/09/2021 11:15, Adam Barnett wrote:
Hi,
I have setup a postfix relay to allow us t send some of our mail to google
My main.cf <http://main.cf> looks like this
inet_protocols = ipv4
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
mailbox_size_limit = 0
readme_directory = no
mydomain = blah.com <http://blah.com>
myorigin = blah.com <http://blah.com>
mynetworks = /etc/postfix/mynetworks
smtpd_banner = $myhostname ESMTP
sender_dependent_relayhost_maps = hash:/etc/postfix/relay_by_sender
mydestination =
relay_domains = $myhostname /etc/postfix/our_domains
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
compatibility_level = 2
# Is this left blank by design
smtp_sasl_security_options =
# Random choose a account to avoid sender limits
smtp_sasl_password_maps = pipemap:{
inline:{ { [smtp.gmail.com <http://smtp.gmail.com>]:587 =
accou...@blah.com:password } },
randmap:{ accoui...@blah.com:password, accou...@blah.com:password} }
It was done with the Round Robbin to avoid any sending limit of google.
but i am seeing that some email are coming through as from
accou...@blah.com/accou...@blah.com/etc
<http://accou...@blah.com/accou...@blah.com/etc> instead of the
original from address
I have missed something
Thanks
AFAIK Google don't like you relaying through them unless the from and
login match and they rewrite the from. Years ago they used to provide a
free relay service for any from domain via a valid GMail account but
those days are long passed. Thst is why I had to use an alternative
relay service. Check if you ISP has one.