Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Steve Dondley
And I would use "check_client_access" instead? Yes. Note that trailing comments are not part of the Postfix map syntax. Any comment must occupy its entire line. Good to know. I would have screwed this up at some point if I haven't already. You can use a CIDR map if you prefer,

Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Viktor Dukhovni
On Wed, Sep 01, 2021 at 09:49:21PM -0400, Steve Dondley wrote: > > I would have opted for "client" rather than "sender" checks, provided a > > sufficiently stable/comprehensive range of source IP addresses for the > > forwarding host were available. > > OK, took a quick look at the documentation

Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Steve Dondley
I would have opted for "client" rather than "sender" checks, provided a sufficiently stable/comprehensive range of source IP addresses for the forwarding host were available. OK, took a quick look at the documentation on this but still left with questions. So would "client" be the same as

Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Viktor Dukhovni
On Wed, Sep 01, 2021 at 04:05:55PM -0400, Steve Dondley wrote: > Thank you. Problem solved. For the benefit of others: > > 1) Add /etc/postfix/sender_checks file: > > amazonses.com OK > > 2) Add check to smtpd_recipient_restrictions config in main.cf: > > smtpd_recipient_restrictions =

Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Steve Dondley
Anything else I can try? Yes, far better to disable SPF checks on hostB when receiving mail from hostA. Thank you. Problem solved. For the benefit of others: 1) Add /etc/postfix/sender_checks file: amazonses.com OK 2) Add check to smtpd_recipient_restrictions config in main.cf:

Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Viktor Dukhovni
On Wed, Sep 01, 2021 at 06:37:59AM -0400, Steve Dondley wrote: > So I followed the instructions at > http://www.postfix.org/ADDRESS_REWRITING_README.html#generic for generic > mapping and set that up. I modified main.cf with: Which leads you to http://www.postfix.org/generic.5.html TABLE

Re: Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Steve Dondley
smtp_generic_maps = hash:/etc/postfix/smtp_generic_map Forgive the typo in this email. I have it correctly entered in the actual config file as: "smtp_generic_maps = hash:/etc/postfix/smtp_generic_maps"

Can't deliver forwarded email coming from amazonses.com

2021-09-01 Thread Steve Dondley
I have a mail server the receives email from a website. The website uses Amazon SES to send its email out. This email gets sent to somebody@HOST_A address. Then, the email client on the server has a filter installed to forward to a local address and then to an email address on another adrees,