Re: Spam relay problems - need some config assistance

2021-01-24 Thread Viktor Dukhovni
On Mon, Jan 25, 2021 at 03:53:54AM +0100, Benny Pedersen wrote: > /etc/postfix/main.cf: > proxy_interfaces = 1.2.3.4 (the proxy/NAT external network address) This does not solve the issue at hand. It just prevents mail forwarding loops in the smtp(8) delivery agent. -- Viktor.

Re: Spam relay problems - need some config assistance

2021-01-24 Thread Benny Pedersen
On 2021-01-25 01:22, P. Ik. wrote: Dec 29 06:48:27 mail postfix/qmgr[108]: 6A158635: from=, size=, nrcpt=20 (queue active) Dec 29 06:48:27 mail postfix/smtpd[4467]: B033063B: client=unknown[172.17.0.1] Dec 29 06:48:27 mail postfix/smtpd[4470]: C3D6F63C: client=unknown[172.17.0.1] Dec 29 06:4

Re: Spam relay problems - need some config assistance

2021-01-24 Thread Viktor Dukhovni
On Sun, Jan 24, 2021 at 06:30:43PM -0600, P. Ik. wrote: > 172.17.0.* are the container ip's > .1 is the postfix host You have *source NAT* between the Internet and your MTA, so that all external connections appear to originate from the same source. With such a configuration, you MUST NOT trust a

Re: Spam relay problems - need some config assistance

2021-01-24 Thread P. Ik.
172.17.0.* are the container ip's .1 is the postfix host On Sun, Jan 24, 2021 at 6:05 PM Richard wrote: > > > Date: Sunday, January 24, 2021 15:57:18 -0600 > > From: "P. Ik." > > > >> On Sun, Jan 24, 2021 at 9:05 AM Matus UHLAR - fantomas > >> wrote: > >> > >> > >> example could explain much.

Re: Spam relay problems - need some config assistance

2021-01-24 Thread P. Ik.
Thanks for the info Benny, I will make those adjustments. I have mynetworks_style = subnet #mynetworks commented out Local apps that send mail are from other containerized apps on this host and from another host on the 192.168.* address range, but that will eventually go away. I added some log i

Re: Spam relay problems - need some config assistance

2021-01-24 Thread Richard
> Date: Sunday, January 24, 2021 15:57:18 -0600 > From: "P. Ik." > >> On Sun, Jan 24, 2021 at 9:05 AM Matus UHLAR - fantomas >> wrote: >> >> >> example could explain much. >> >> > postconf -n returns: >> >> > mynetworks_style = subnet >> >> > smtpd_relay_restrictions = permit_mynetworks, >

Re: Spam relay problems - need some config assistance

2021-01-24 Thread Benny Pedersen
On 2021-01-24 01:26, P. Ik. wrote: -take mail in from internet for delivery only to local email addresses on this server (I have 3 total local addresses) -local addresses on this server can send mail to any address -local delivery is forwarded to a gmail account Forwarding and reception to gmai

Re: Spam relay problems - need some config assistance

2021-01-24 Thread P. Ik.
Thanks for the reply Matus, another user also asked for similar. As I told them as well, I wasn't sure if based on what I was trying to accomplish someone would see a clear error in my config. I have the mail server shut down until I fix this, I dug out some examples here, I appreciate your assist

Re: Spam relay problems - need some config assistance

2021-01-24 Thread Matus UHLAR - fantomas
On 23.01.21 18:26, P. Ik. wrote: I've been using Postfix for quite some time and recently have installed it in a container but am getting a small amount of relay spam through and a lot of mail errors to unknown addresses (which signaled me to the config issue). example could explain much. pos

Spam relay problems - need some config assistance

2021-01-23 Thread P. Ik.
Hello everyone, I've been using Postfix for quite some time and recently have installed it in a container but am getting a small amount of relay spam through and a lot of mail errors to unknown addresses (which signaled me to the config issue). As part of the migration, postfix was updated from a