Re: sender restrictions after milter ?

2022-04-26 Thread Wietse Venema
Use reject_authenticated_sender_login_mismatch (on the port 25 service or post-milter). reject_authenticated_sender_login_mismatch Enforces the reject_sender_login_mismatch restriction for au- thenticated clients only. This feature is available in Postfix

sender restrictions after milter ?

2022-04-25 Thread Jesse Norell
, the signature should be available. Maybe there is a solution I am overlooking, but ideally I would like to apply some sender restrictions prior to DATA, then verify the DKIM signature (via a milter), and if there is no valid dkim signature, apply some more sender restrictions (including

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Viktor Dukhovni
On Wed, Oct 28, 2020 at 12:09:38PM -0400, Joey J wrote: > Thank you, sometime I forget to RTFM. > > A 2 part question. > abc.com 550 Spam from ABC.com > > Will this match anything with abc.com, as an example if the message comes > from m...@test.abc.com will it get rejected? The same documenta

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Joey J
Thank you, sometime I forget to RTFM. A 2 part question. abc.com 550 Spam from ABC.com Will this match anything with abc.com, as an example if the message comes from m...@test.abc.com will it get rejected? Additionally in the doc I see REJECT and below that 5xx, do I need to have REJECT 550 We d

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Dominic Raferd
On 28/10/2020 15:53, Allen Coates wrote: On 28/10/2020 15:24, Viktor Dukhovni wrote: On Wed, Oct 28, 2020 at 09:05:40AM +, Allen Coates wrote: Some time ago (5 years maybe) I discovered that "OK" was not being universally recognised in every access list; I cultivated the habit of using

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Allen Coates
On 28/10/2020 15:24, Viktor Dukhovni wrote: > On Wed, Oct 28, 2020 at 09:05:40AM +, Allen Coates wrote: > >> Some time ago (5 years maybe) I discovered that "OK" was not being >> universally >> recognised in every access list; I cultivated the habit of using the words >> "ACCEPT" and REJE

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Viktor Dukhovni
On Wed, Oct 28, 2020 at 11:34:35AM -0400, Joey J wrote: > Since you are looking within the code, on a reject we used to put > @abc.com 550 and custom reject message There's no need to consult the code. The lookup keys for access(5) tables are documented. They DO NOT include "@domain". To rej

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Joey J
Viktor, Since you are looking within the code, on a reject we used to put @abc.com 550 and custom reject message is that still valid? Will @abc.com REJECT 550 and custom reject message work? Thank you! On Wed, Oct 28, 2020 at 11:25 AM Viktor Dukhovni wrote: > On Wed, Oct 28, 2020 at 09:0

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Viktor Dukhovni
On Wed, Oct 28, 2020 at 09:05:40AM +, Allen Coates wrote: > Some time ago (5 years maybe) I discovered that "OK" was not being universally > recognised in every access list; I cultivated the habit of using the words > "ACCEPT" and REJECT" - and have had no problems since. That's odd, because

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Allen Coates
On 26/10/2020 20:44, Joey J wrote: > And within that file have both white & blacklist like so: > youareok.com    OK > youarebad.com   REJCT > 1.2.3.4  550 Block-I dont like you > 1.5.6.0/24 550 Block I dont like any of you. > Some

Fwd: Verify Proper method for sender restrictions

2020-10-26 Thread Joey J
Hello All, Trying to make sure I'm doing this correctly, both at the right point within the mail communications and in the format of my has file. smtpd_recipient_restrictions= check_sender_access hash:name of file And within that file have both white & blacklist like so: youareok.com OK you

Re: Relay and Sender Restrictions

2019-12-07 Thread Matus UHLAR - fantomas
On 07.12.19 15:08, spaceman wrote: I have a destination and a relay postfix. Both have the following (with a few extra for the destination): smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, permit The destination rejects emails as it is supposed to, however the

Re: Relay and Sender Restrictions

2019-12-07 Thread Wietse Venema
spaceman: > Hi, > > I have a destination and a relay postfix. Both have the following > (with a few extra for the destination): > > smtpd_sender_restrictions = reject_non_fqdn_sender, > reject_unknown_sender_domain, permit > > The destination rejects emails as it is supposed to, however the rejec

Relay and Sender Restrictions

2019-12-07 Thread spaceman
Hi, I have a destination and a relay postfix. Both have the following (with a few extra for the destination): smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, permit The destination rejects emails as it is supposed to, however the relay does not. This means that

Re: smtpd sender restrictions

2016-01-12 Thread Noel Jones
On 1/12/2016 11:00 AM, Matteo Cazzador wrote: > Hi, i've question about smtp sender restriction. > > I've a domain example.com, is it possible for specified users domain > restrict to send mail only to example.com. > > Example: > > j...@example.com can send mail to every domain > > t...@example

smtpd sender restrictions

2016-01-12 Thread Matteo Cazzador
Hi, i've question about smtp sender restriction. I've a domain example.com, is it possible for specified users domain restrict to send mail only to example.com. Example: j...@example.com can send mail to every domain t...@example.com can send mail only to example.com domain and relative user

Postfix Sender Restrictions - policy service only for SASL users

2012-06-18 Thread Elaconta.com Webmaster
overriding their sent email quota. However, this check is running on all emails sent from the server. Is there any way i can change the sender restrictions so that the policyd service is only applied to SASL authenticated users and lower CPU usage? Thanks in advance, Luis Oliveira Elaconta

Re: Sender restrictions

2010-07-23 Thread Noel Jones
On 7/23/2010 6:42 PM, Andrés Gattinoni wrote: On Fri, Jul 23, 2010 at 8:31 PM, Jeroen Geilman wrote: On 07/24/2010 12:44 AM, Andrés Gattinoni wrote: Hi guys, I have the following question: Is it possible to restrict some virtual accounts from sending emails through my Postfix? What does "

Re: Sender restrictions

2010-07-23 Thread Andrés Gattinoni
On Fri, Jul 23, 2010 at 8:45 PM, Jeroen Geilman wrote: >>> With a check_sender_access restriction in smtpd_recipient_restrictions. >>> >> >> Ok. Should it be something like this in /etc/postfix/access >> >> someu...@domain.com REJECT >> >> And then: >> >> smtpd_recipient_restrictions = check_sende

Re: Sender restrictions

2010-07-23 Thread Jeroen Geilman
On 07/24/2010 01:42 AM, Andrés Gattinoni wrote: On Fri, Jul 23, 2010 at 8:31 PM, Jeroen Geilman wrote: On 07/24/2010 12:44 AM, Andrés Gattinoni wrote: Hi guys, I have the following question: Is it possible to restrict some virtual accounts from sending emails through my Postfix?

Re: Sender restrictions

2010-07-23 Thread Andrés Gattinoni
On Fri, Jul 23, 2010 at 8:31 PM, Jeroen Geilman wrote: > On 07/24/2010 12:44 AM, Andrés Gattinoni wrote: >> >> Hi guys, I have the following question: >> >> Is it possible to restrict some virtual accounts from sending emails >> through my Postfix? >> > > What does "through" mean ? > If you mean F

Re: Sender restrictions

2010-07-23 Thread Jeroen Geilman
On 07/24/2010 12:44 AM, Andrés Gattinoni wrote: Hi guys, I have the following question: Is it possible to restrict some virtual accounts from sending emails through my Postfix? What does "through" mean ? If you mean FROM an address that is in your virtual_*_maps, then no, not trivially.

Sender restrictions

2010-07-23 Thread Andrés Gattinoni
Hi guys, I have the following question: Is it possible to restrict some virtual accounts from sending emails through my Postfix? I have Postfix 2.3.3 running on a box with several virtual accounts. I want to prevent some of them from sending emails (I just want them to be able to receive). How co

Re: sender restrictions based on IP of sender

2010-07-13 Thread Wojtek Bogusz
thank you Noel. so simple :-) and it works. regards, Wojtek Noel Jones wrote: > On 7/12/2010 8:59 AM, Wojtek Bogusz wrote: >> hi, could you please help me to understand is this possible with postfix >> configuration: >> >> i have postfix installed on the gateway computer and also on the >> interna

Re: sender restrictions based on IP of sender

2010-07-12 Thread Noel Jones
On 7/12/2010 8:59 AM, Wojtek Bogusz wrote: hi, could you please help me to understand is this possible with postfix configuration: i have postfix installed on the gateway computer and also on the internal mail server. the internal mail server accepts emails only from LAN addresses and does not r

sender restrictions based on IP of sender

2010-07-12 Thread Wojtek Bogusz
hi, could you please help me to understand is this possible with postfix configuration: i have postfix installed on the gateway computer and also on the internal mail server. the internal mail server accepts emails only from LAN addresses and does not require authentication from users to send emai

Re: sender restrictions

2008-12-03 Thread Victor Duchovni
On Wed, Dec 03, 2008 at 09:25:04AM -0600, Cengiz Vural wrote: > > smtpd_sender_restrictions = > > check_sender_access regexp:/etc/postfix/tables/access > > > > and > > > > created /etc/postfix/tables/access > > > > [EMAIL PROTECTED]REDIRECT [EMAIL PROTECTED] > > > > Ran postmap /etc/postfi

Re: sender restrictions

2008-12-03 Thread Cengiz Vural
On Wed, Dec 3, 2008 at 9:22 AM, Cengiz Vural <[EMAIL PROTECTED]> wrote: > > > On Tue, Dec 2, 2008 at 2:18 PM, Victor Duchovni < > [EMAIL PROTECTED]> wrote: > >> On Tue, Dec 02, 2008 at 02:05:20PM -0600, Cengiz Vural wrote: >> >> > hello all, >> > >> > I am trying to place some restrictions on a lo

Re: sender restrictions

2008-12-03 Thread Cengiz Vural
On Tue, Dec 2, 2008 at 2:18 PM, Victor Duchovni < [EMAIL PROTECTED]> wrote: > On Tue, Dec 02, 2008 at 02:05:20PM -0600, Cengiz Vural wrote: > > > hello all, > > > > I am trying to place some restrictions on a local user account. I would > like > > to redirect any emails sent from a specific user t

Re: sender restrictions

2008-12-02 Thread Victor Duchovni
On Tue, Dec 02, 2008 at 02:05:20PM -0600, Cengiz Vural wrote: > hello all, > > I am trying to place some restrictions on a local user account. I would like > to redirect any emails sent from a specific user to another local user > regardless of what email address the user enters in the recipient

Re: sender restrictions

2008-12-02 Thread Brian Evans
Brian Evans - Postfix List wrote: > Cengiz Vural wrote: > >> hello all, >> >> I am trying to place some restrictions on a local user account. I >> would like to redirect any emails sent from a specific user to another >> local user regardless of what email address the user enters in the >> recip

Re: sender restrictions

2008-12-02 Thread Brian Evans - Postfix List
Cengiz Vural wrote: > hello all, > > I am trying to place some restrictions on a local user account. I > would like to redirect any emails sent from a specific user to another > local user regardless of what email address the user enters in the > recipient list.Is it possible to do this with postfi

sender restrictions

2008-12-02 Thread Cengiz Vural
hello all, I am trying to place some restrictions on a local user account. I would like to redirect any emails sent from a specific user to another local user regardless of what email address the user enters in the recipient list.Is it possible to do this with postfix? In summary, whenever [EMAIL