Re: RHEL packaged postfix jump

2021-05-18 Thread Viktor Dukhovni
On Wed, May 19, 2021 at 12:01:00PM +1000, Simon Wilson wrote: > Before I hit the GO button, I have had a look at the changelog lists > and I think we should be OK with a straight upgrade, but if anyone has > any other comments on the large version change to be aware of please > feel free to

Re: RHEL packaged postfix jump

2021-05-18 Thread Simon Wilson
Correction, 3.3.1 to 3.5.8 Hi list, RH have just dropped RHEL 8.4 and it appears to have jumped Postfix from 3.3.5 to 3.5.8: Installed Packages postfix.x86_64                                                             2:3.3.1-12.el8_3.1                                               

RHEL packaged postfix jump

2021-05-18 Thread Simon Wilson
Hi list, RH have just dropped RHEL 8.4 and it appears to have jumped Postfix from 3.3.5 to 3.5.8: Installed Packages postfix.x86_64                                                             2:3.3.1-12.el8_3.1                                                             

RE: too many errors after RCPT

2021-05-18 Thread Juerg Reimann
> Dnia 18.05.2021 o godz. 19:46:30 Juerg Reimann pisze: > > > > I have a customer with a newsletter that has apparently a large number of > > invalid email addresses. When he tries to send mail through my server, > > postfix cuts the smtp session after a while with "too many errors after > >

RE: too many errors after RCPT

2021-05-18 Thread Juerg Reimann
> > Hi there > > > > I have a customer with a newsletter that has apparently a large > > number of invalid email addresses. When he tries to send mail > > through my server, postfix cuts the smtp session after a while > > with "too many errors after RCPT". > > And I suppose that this SMTP does

too many errors after RCPT

2021-05-18 Thread Juerg Reimann
Hi there I have a customer with a newsletter that has apparently a large number of invalid email addresses. When he tries to send mail through my server, postfix cuts the smtp session after a while with "too many errors after RCPT". How can I allow him to send his newsletter, even though many

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Jaroslaw Rafa
Dnia 18.05.2021 o godz. 16:26:03 post...@ptld.com pisze: > End game goals: > > Server 1 is the MX server to accept mail for domain. It should not > be tasked with submissions, relays, etc. Keep it available for one > purpose only for balancing purposes. > > Server 2 is to cater to the end user,

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Viktor Dukhovni
> On May 18, 2021, at 4:26 PM, post...@ptld.com wrote: > > Server 1 is the MX server to accept mail for domain. It should not be tasked > with submissions, relays, etc. Keep it available for one purpose only for > balancing purposes. > > Server 2 is to cater to the end user, to handle their

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 3:36 pm, Jaroslaw Rafa wrote: Before writing my previous mail, I read exactly the same documentation as you linked above and for me it says something exactly opposite: Dovecot submission service needs real MTA as a "backend" to relay mail onto the Internet. By itself it can only

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread IL Ka
> > > The issue im trying to avoid is that when postfix/submission accepts a > message meant for another user on the same domain, it delivers it > directly to maildir and does not put that message through the same > filters, milters, policy servers as if the message was accepted by > smtp:25. You

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
Perhaps the OP should explain the *actual* problem he's trying to solve, rather than the artificial goal of routing inbound mail via a second SMTP hop, while outbound mail goes direct. End game goals: Server 1 is the MX server to accept mail for domain. It should not be tasked with

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Wietse Venema
Viktor Dukhovni: > > On May 18, 2021, at 3:02 PM, Wietse Venema wrote: > > > > What about using this to send only local recipients to the MX host, > > and all other recipients directly. > > > > master.cf: > >submission .. .. ... . smtpd > > -o { smtpd_recipient_restrictions = > >

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Viktor Dukhovni
> On May 18, 2021, at 3:02 PM, Wietse Venema wrote: > > What about using this to send only local recipients to the MX host, > and all other recipients directly. > > master.cf: >submission .. .. ... . smtpd > -o { smtpd_recipient_restrictions = > check_recipient_access >

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Jaroslaw Rafa
Dnia 18.05.2021 o godz. 15:28:28 post...@ptld.com pisze: > >what would send the mail out to the Internet after being accepted > >by Dovecot > >submission service? Dovecot is not a MTA, it's submission service > >needs to > >pass mail to a real MTA to be sent out further. > > Not anymore. Dovecot

Re: too many errors after RCPT

2021-05-18 Thread Jaroslaw Rafa
Dnia 18.05.2021 o godz. 19:46:30 Juerg Reimann pisze: > > I have a customer with a newsletter that has apparently a large number of > invalid email addresses. When he tries to send mail through my server, > postfix cuts the smtp session after a while with "too many errors after > RCPT". > > How

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 3:14 pm, Jaroslaw Rafa wrote: So where is the maildir actually located? On server X or on server Y? If it is located on server Y, how Dovecot on server X accesses it? NFS or some other kind of shared storage? Yes, both servers are sharing NFS storage. And, if there were no

Re: Bind Submission IPv4 & IPv6 in Master.cf

2021-05-18 Thread postfix
On 05-18-2021 3:10 pm, Noel Jones wrote: Yes, postfix will attempt to lookup a hostname and use all the IPs associated with it. This can cause a problem on startup if postfix starts before the name resolution is available. The solution i use to this problem on a RHEL systemd server is using the

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Jaroslaw Rafa
Dnia 18.05.2021 o godz. 13:47:15 post...@ptld.com pisze: > >On 05-18-2021 12:36 pm, Jaroslaw Rafa wrote: > >If Postfix on server X is only for submission, then how does Postfix on > >server Y deliver mail to server X? > > It doesn't because as you said, server X is only for submission. > Nothing

Re: Bind Submission IPv4 & IPv6 in Master.cf

2021-05-18 Thread postfix
On 05-18-2021 3:04 pm, Noel Jones wrote: Yes, you can use macros in main.cf and reference them in the master.cf # main.cf submission_recipient_restrictions = permit_sasl_authenticated reject # master.cf 127.0.0.1:submission inet n - n - - smtpd -o smtpd_recipient_resrictions={

Re: Bind Submission IPv4 & IPv6 in Master.cf

2021-05-18 Thread Noel Jones
On 5/17/2021 6:27 PM, Benny Pedersen wrote: On 2021-05-18 00:29, Noel Jones wrote: 127.0.0.1:submission inet n - n - - smtpd [::1]:submission inet n - n - - smtpd localhost:submission inet n - n - - smtpd imho postfix will accept this aswell, not tested Yes, postfix will attempt to

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Wietse Venema
What about using this to send only local recipients to the MX host, and all other recipients directly. master.cf: submission .. .. ... . smtpd -o { smtpd_recipient_restrictions = check_recipient_access inline:{{example.com = filter smtp:mx.example.com}}

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 2:32 pm, IL Ka wrote: Think about postfix as about some kind of router. It has several "input channels" like smtpd server or sendmail command. All messages go to the queue and routed by "qmgr" regardless the way they got to the system http://www.postfix.org/OVERVIEW.html I have

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 2:12 pm, Matus UHLAR - fantomas wrote: so, you have multiple instances? No, i don't have multiple instances of a postfix install. Postfix has multiple instances as in: 01: /usr/libexec/postfix/master -w 02: \_ pickup -l -t unix -u 03: \_ qmgr -l -t unix -u 04: \_ smtpd -n

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread IL Ka
> > And i know you all keep politely telling me im crazy for not > understanding postfix wants to deliver to user's mailboxes. I get that. > Not knowing the inner workings of postfix, from a logical point of view, > submission isn't smtp:25, it has its own service spawn, it works on its > own

Re: too many errors after RCPT

2021-05-18 Thread Wietse Venema
Juerg Reimann: > Hi there > > I have a customer with a newsletter that has apparently a large > number of invalid email addresses. When he tries to send mail > through my server, postfix cuts the smtp session after a while > with "too many errors after RCPT". And I suppose that this SMTP does

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Matus UHLAR - fantomas
On 05-18-2021 12:41 pm, Jaroslaw Rafa wrote: This gets more and more confusing. I understand what you are trying to achieve in two-server setup, but in case there is only one server, where do you want to send the local mail if not deliver it locally? Where else can it be delivered if there is

Re: too many errors after RCPT

2021-05-18 Thread postfix
On 05-18-2021 1:46 pm, Juerg Reimann wrote: How can I allow him to send his newsletter, even though many false, no longer valid email addresses? Preferably I'd like to only allow I always wondered why my mail server gets repeatedly spammed with invalid email addresses from spamsters. I

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 12:41 pm, Jaroslaw Rafa wrote: This gets more and more confusing. I understand what you are trying to achieve in two-server setup, but in case there is only one server, where do you want to send the local mail if not deliver it locally? Where else can it be delivered if there is

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 12:36 pm, Jaroslaw Rafa wrote: If Postfix on server X is only for submission, then how does Postfix on server Y deliver mail to server X? It doesn't because as you said, server X is only for submission. Nothing should ever be delivered to X. Server Y is the destination and Y

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Jaroslaw Rafa
Dnia 18.05.2021 o godz. 11:45:53 post...@ptld.com pisze: > > Yes, i understand the logic of what is happening. The only behavior > im trying to change is for the submission service, because on a > single server setup (in my perfect world) postfix is the destination > for mail received via smtp:25

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Jaroslaw Rafa
Dnia 18.05.2021 o godz. 11:45:53 post...@ptld.com pisze: > > Yes, and postfix X is not the MX server for the recipient domain. If > you didn't get the beginning of this thread, the purpose of postfix > X is to be only a submission service for dovecot/imap. I wouldn't > even use postfix if

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Matus UHLAR - fantomas
On 05-18-2021 11:17 am, Matus UHLAR - fantomas wrote: So, you want postfix X to deliver mail to whatever server is MX for the recipient domain. On 18.05.21 11:45, post...@ptld.com wrote: Yes, and postfix X is not the MX server for the recipient domain. no mailservers I know care about MX

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 12:00 pm, Viktor Dukhovni wrote: A multi-instance configuration can do what you ask and more. I believe this is the third time I've said that that's the main way (likely the only way) to do this. Yes, i understand and heard you. In the same email you replied to at the bottom i

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Viktor Dukhovni
> On May 18, 2021, at 11:45 AM, post...@ptld.com wrote: > > Yes, and postfix X is not the MX server for the recipient domain. If you > didn't get the beginning of this thread, the purpose of postfix X is to be > only a submission service for dovecot/imap. I wouldn't even use postfix if >

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 11:17 am, Matus UHLAR - fantomas wrote: So, you want postfix X to deliver mail to whatever server is MX for the recipient domain. Yes, and postfix X is not the MX server for the recipient domain. If you didn't get the beginning of this thread, the purpose of postfix X is to be

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Matus UHLAR - fantomas
On 05-18-2021 10:51 am, Wietse Venema wrote: You want Postfix X to forward a recipient to Postfix Y (the MX). You want Postfix Y to deliver that recipient to Postfix X. That is a loop. It can be broken with multiple instances, content_filter, or smtpd_proxy_filter. On 18.05.21 11:11,

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 10:51 am, Wietse Venema wrote: You want Postfix X to forward a recipient to Postfix Y (the MX). You want Postfix Y to deliver that recipient to Postfix X. That is a loop. It can be broken with multiple instances, content_filter, or smtpd_proxy_filter. Not exactly. Yes i want

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Wietse Venema
post...@ptld.com: > I do not understand how what im asking would cause a loop issue. If mail > received by submission service uses transport smtp: which then connects > to smtp:25 and smtpd service by default uses transport=virtual it would > never loop. Unless again the answer is postfix isn't

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 9:45 am, Viktor Dukhovni wrote: As I already noted in this thread, doing this on a single machines is typically best accomplished via a MULTI-INSTANCE configuration, with separate submission and relay instances. I read over multi instance and it feels heavy handed / overkill for

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
Wietse Venema: Actually, here is a simpler one, that uses content_filter. master.cf: submission .. .. .. .. smtpd -o { content_filter = smtp:[mxhost.example.com] } In my situation this did not give the behavior i was looking for. It sends all mail to the smtp:host, including mail

Re: Cannot connect to email server with client; postfix logs errors

2021-05-18 Thread Bill Cole
On 2021-05-18 at 09:50:32 UTC-0400 (Tue, 18 May 2021 09:50:32 -0400) Viktor Dukhovni is rumored to have said: On Mon, May 17, 2021 at 09:27:42PM -0400, Bill Cole wrote: May 17 15:29:50 gentooserver postfix/smtpd[119496]: fatal: host/service localhost/12301 not found: No such file or

Re: mysql entry needed?

2021-05-18 Thread postfix
On 05-18-2021 9:31 am, Maurizio Caloro wrote: Installed Mysql on debian 10.9 and will ask you friendly to receive the 5 command to create this db on my mysql sever. Please I don't know the command's and I don't found or see any nice example. Postfix wont have any examples because it is

Re: Cannot connect to email server with client; postfix logs errors

2021-05-18 Thread Viktor Dukhovni
On Mon, May 17, 2021 at 09:27:42PM -0400, Bill Cole wrote: > > May 17 15:29:50 gentooserver postfix/smtpd[119496]: fatal: > > host/service localhost/12301 not found: No such file or directory > > May 17 15:29:50 gentooserver postfix/submission/smtpd[119495]: fatal: > > host/service

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Viktor Dukhovni
On Tue, May 18, 2021 at 09:26:40AM -0400, post...@ptld.com wrote: > But for the single all in one server configuration, i tried: > > main.cf: > virtual_transport=virtual > > master.cf: > submission inet n - n - - smtpd > -o virtual_transport=smtp:mxhost.example.com > > However the -o

mysql entry needed?

2021-05-18 Thread Maurizio Caloro
Hello Installed Mysql on debian 10.9 and will ask you friendly to receive the 5 command to create this db on my mysql sever. Please I don't know the command's and I don't found or see any nice example. Postfix 3.4.14 virtual_mailbox_maps = mysql:

mysql entry needed?

2021-05-18 Thread Maurizio Caloro
Hello Installed Mysql on debian 10.9 and will ask you friendly to receive the 5 command to create this db on my mysql sever. Please I don't know the command's and I don't found or see any nice example. Postfix 3.4.14 virtual_mailbox_maps = mysql:

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread postfix
On 05-18-2021 8:53 am, Wietse Venema wrote: Wietse Venema: Remove the recipient domain from main.cf:mydestination and main.cf:virtual_mailbox_domains. Add the recipient domain to main.cf:relay_domains. Actually, here is a simpler one, that uses content_filter. master.cf: submission ..

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Wietse Venema
Wietse Venema: > post...@ptld.com: > > If i send mail to submission:587 addressed to another user on the same > > server, postfix instead of sending the mail to the mx records for that > > domain, and connecting to postfix on smtp:25 it bypasses all of that and > > delivers directly into that

Re: Mail sent thru submission to user on same server.

2021-05-18 Thread Wietse Venema
post...@ptld.com: > If i send mail to submission:587 addressed to another user on the same > server, postfix instead of sending the mail to the mx records for that > domain, and connecting to postfix on smtp:25 it bypasses all of that and > delivers directly into that users inbox. This avoids