[pfx] Reply To header

2023-04-28 Thread Doug Hardie via Postfix-users
I have an app that sends SMTP to post fix to deliver an email. The first line it sends after the DATA command is a Reply To line. However, that causes postfix to terminate the headers and puts the Reply To line after the blank line at the end of theheaders. As a result, none of the following

[pfx] Re: postscreen question

2023-04-28 Thread Phil Biggs via Postfix-users
Saturday, April 29, 2023, 10:15:41 AM, Ken Peng via Postfix-users wrote: > Sorry i have a question to postscreen. > I saw many people use postscreen for RBL checks. > But postfix itself have the RBL checks already: > smtpd_recipient_restrictions = >... >reject_rbl_client

[pfx] Re: postscreen question

2023-04-28 Thread Ken Peng via Postfix-users
April 28, 2023 at 1:02 AM, "Phil Stracchino via Postfix-users" wrote: > > On 4/27/23 04:47, Ralph Seichter via Postfix-users wrote: > > > > > * Ken Peng via Postfix-users: > > Using rspamd instead of postscreen? > > I'm not quite sure what you mean by that. > > If you suggest relying on

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread Viktor Dukhovni via Postfix-users
On Fri, Apr 28, 2023 at 06:38:04PM +0200, Jaroslaw Rafa via Postfix-users wrote: > Also take into account that many countries use two-level domain registration > scheme ... In Japan, 3rd-level public suffixes are quite common, taking the form: ...jp. For example: hospital.hekinan.aichi.jp.

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread Ken Peng via Postfix-users
April 29, 2023 at 12:38 AM, "Jaroslaw Rafa via Postfix-users" wrote: > > Dnia 28.04.2023 o godz. 15:59:53 Gerd Hoerst via Postfix-users pisze: > > > > > question 1st : is it a good idea to reject any email which is not > > sent from a domain  (means sen...@domain.tld) any other like > >

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread Jaroslaw Rafa via Postfix-users
Dnia 28.04.2023 o godz. 15:59:53 Gerd Hoerst via Postfix-users pisze: > > question 1st : is it a good idea to reject any email which is not > sent from a domain  (means sen...@domain.tld) any other like > sen...@sub.domain.tld or sub.sub.domain.tld is rejected ? As others have said, it's a total

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread Bill Cole via Postfix-users
On 2023-04-28 at 09:59:53 UTC-0400 (Fri, 28 Apr 2023 15:59:53 +0200) Gerd Hoerst via Postfix-users is rumored to have said: Hi ! question 1st : is it a good idea to reject any email which is not sent from a domain  (means sen...@domain.tld) any other like sen...@sub.domain.tld or

[pfx] Re: Domain scoring

2023-04-28 Thread Gerald Galster via Postfix-users
> Do you know any plugins for scoring a domain? > For example, new registered domain, free domain get the low scores. Postfix is not an antispam solution. Its job is to reliably deliver emails. Therefore it has some functions to avoid overload like query blocklists but to analyze emails use

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread Gerald Galster via Postfix-users
> question 1st : is it a good idea to reject any email which is not sent from a > domain (means sen...@domain.tld) any other like sen...@sub.domain.tld or > sub.sub.domain.tld is rejected ? Generally, no, because you will reject legitimate domains that just look like subdomains, e.g. *.co.uk,

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread David Bürgin via Postfix-users
Gerd Hoerst: > question 1st : is it a good idea to reject any email which is not sent from a > domain  (means sen...@domain.tld) any other like sen...@sub.domain.tld or > sub.sub.domain.tld is rejected ? > > at least i tried with header checks in pcre > > /^From:\.*@.*\.*\.*/    DISCARD NO

[pfx] Re: Deny any sender address with subdomain

2023-04-28 Thread Noel Jones via Postfix-users
On 4/28/2023 8:59 AM, Gerd Hoerst via Postfix-users wrote: Hi ! question 1st : is it a good idea to reject any email which is not sent from a domain  (means sen...@domain.tld) any other like sen...@sub.domain.tld or sub.sub.domain.tld is rejected ? That seems like a bad idea, extremely

[pfx] Deny any sender address with subdomain

2023-04-28 Thread Gerd Hoerst via Postfix-users
Hi ! question 1st : is it a good idea to reject any email which is not sent from a domain  (means sen...@domain.tld) any other like sen...@sub.domain.tld or sub.sub.domain.tld is rejected ? at least i tried with header checks in pcre /^From:\.*@.*\.*\.*/    DISCARD NO SUBDOMAINS but this

[pfx] Re: Domain scoring

2023-04-28 Thread Byung-Hee HWANG via Postfix-users
Ken Peng via Postfix-users writes: > Do you know any plugins for scoring a domain? > For example, new registered domain, free domain get the low scores. How about dnswl.org? Sincerely, -- ^고맙습니다 _布德天下_ 감사합니다_^))// ___ Postfix-users mailing list --

[pfx] Re: forwarding questions

2023-04-28 Thread Gerald Galster via Postfix-users
> I have a local real mailbox: u...@foo.com > When I setup this alias map in virtual_alias_maps file: > > u...@foo.com u...@gmail.com > > (then postmap this file). > The message sent to u...@foo.com won't reach into mailbox, but just forwarded > to gmail. > > How can I setup it to both reach

[pfx] Re: Subject modification based on recipient

2023-04-28 Thread Peter via Postfix-users
On 28/04/23 21:19, Andreas Cieslak via Postfix-users wrote: Why are To and From replaced in the header but not the subject? Am I perhaps missing the right expression here and could someone give me some advice? Or is there really no way around Mailmunge or MimeDefang etc.? Any hints would be

[pfx] Re: Subject modification based on recipient

2023-04-28 Thread Andreas Cieslak via Postfix-users
Thanks for your replies. Meanwhile i have tested with some simple replacements in header checks. /email@office/ REPLACE From: Office /email@hospital/ REPLACE From: Hospital With the above, the replacement works fine for multiple lines. Here are the logs: Apr 28 10:40:10 server

[pfx] Re: forwarding questions

2023-04-28 Thread Sean Gallagher via Postfix-users
map in virtual_alias_maps file:     u...@foo.com u...@gmail.com (then postmap this file).  The message sent to u...@foo.com won't reach into mailbox, but just forwarded to gmail. How can I setup it to both reach local mailbox and forwarding? This is a bad idea.  Don't do this.  Forwarding

[pfx] Re: forwarding questions

2023-04-28 Thread Tom Reed via Postfix-users
On 2023-04-28 10:21, Viktor Dukhovni via Postfix-users wrote: On Fri, Apr 28, 2023 at 08:32:29AM +0800, Tom Reed via Postfix-users wrote: I have a local real mailbox: u...@foo.com. When I setup this alias map in virtual_alias_maps file: u...@foo.com u...@gmail.com (then postmap this