smtpd_recipient_restrictions evaluation question

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

smtpd_recipient_restrictions evaluation question

by garphy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello folks,

I've got some checks setup like that :

smtpd_recipient_restrictions =
   reject_non_fqdn_sender,
   reject_unknown_sender_domain,
   reject_non_fqdn_recipient,
   reject_unknown_recipient_domain,
   permit_mynetworks,
   reject_unauth_destination,
   reject_invalid_helo_hostname,
   reject_non_fqdn_helo_hostname,
   check_helo_access pcre:/etc/postfix/helo_checks.pcre,
   check_sender_access hash:/etc/postfix/white_senders,
   check_client_access hash:/etc/postfix/white_clients,
   check_recipient_access hash:/etc/postfix/white_recipients,
   reject_rbl_client sbl-xbl.spamhaus.org,
   reject_rhsbl_sender dsn.rfc-ignorant.org,
   check_policy_service inet:10.18.0.100:60000,

I notice that event if the recipient address doesn't exists, the
check_policy_service (greylist) got evaluated, causing higher load than
needed. Isn't reject_unauth_destination there to block inexistent
recipients ?

Thanks in advance !

--
Simon.

Re: smtpd_recipient_restrictions evaluation question

by Markus Schönhaber-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Morvan:

> I notice that event if the recipient address doesn't exists, the
> check_policy_service (greylist) got evaluated, causing higher load than
> needed. Isn't reject_unauth_destination there to block inexistent
> recipients ?

No, that's what reject_unlisted_recipient is for.

--
Regards
  mks

Re: smtpd_recipient_restrictions evaluation question

by /dev/rob0 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 30 October 2009 09:52:44 Simon Morvan wrote:

> Hello folks,
>
> I've got some checks setup like that :
>
> smtpd_recipient_restrictions =
>    reject_non_fqdn_sender,
>    reject_unknown_sender_domain,
>    reject_non_fqdn_recipient,
>    reject_unknown_recipient_domain,
>    permit_mynetworks,
>    reject_unauth_destination,
>    reject_invalid_helo_hostname,
>    reject_non_fqdn_helo_hostname,
>    check_helo_access pcre:/etc/postfix/helo_checks.pcre,
>    check_sender_access hash:/etc/postfix/white_senders,
>    check_client_access hash:/etc/postfix/white_clients,
>    check_recipient_access hash:/etc/postfix/white_recipients,
>    reject_rbl_client sbl-xbl.spamhaus.org,

Consider Zen here. It also incorporates the (not-quite-so) new PBL,
which has been very effective here.

>    reject_rhsbl_sender dsn.rfc-ignorant.org,
>    check_policy_service inet:10.18.0.100:60000,
>
> I notice that event if the recipient address doesn't exists, the
> check_policy_service (greylist) got evaluated, causing higher load than
> needed. Isn't reject_unauth_destination there to block inexistent
> recipients ?

If the load of a policy service is a problem for you, you should
consider increasing your resources, i.e., throw more money at it. :)
That notwithstanding, I know that's not your real question, which
appears to be confusion of reject_unauth_destination with
reject_unlisted_recipient; see:

http://www.postfix.org/postconf.5.html#reject_unlisted_recipient
--
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Re: smtpd_recipient_restrictions evaluation question

by garphy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le 30/10/2009 16:05, /dev/rob0 a écrit :

> On Friday 30 October 2009 09:52:44 Simon Morvan wrote:
>    
>> Hello folks,
>>
>> I've got some checks setup like that :
>>
>> smtpd_recipient_restrictions =
>>     reject_non_fqdn_sender,
>>     reject_unknown_sender_domain,
>>     reject_non_fqdn_recipient,
>>     reject_unknown_recipient_domain,
>>     permit_mynetworks,
>>     reject_unauth_destination,
>>     reject_invalid_helo_hostname,
>>     reject_non_fqdn_helo_hostname,
>>     check_helo_access pcre:/etc/postfix/helo_checks.pcre,
>>     check_sender_access hash:/etc/postfix/white_senders,
>>     check_client_access hash:/etc/postfix/white_clients,
>>     check_recipient_access hash:/etc/postfix/white_recipients,
>>     reject_rbl_client sbl-xbl.spamhaus.org,
>>      
> Consider Zen here. It also incorporates the (not-quite-so) new PBL,
> which has been very effective here.
>
>    
The last time I tried it, Zen included too many legitimate users behind
ADSL lines. The "Policy" behind PBL is a bit too restrictive. Maybe it
changed, I'll give it another try.

>>     reject_rhsbl_sender dsn.rfc-ignorant.org,
>>     check_policy_service inet:10.18.0.100:60000,
>>
>> I notice that event if the recipient address doesn't exists, the
>> check_policy_service (greylist) got evaluated, causing higher load than
>> needed. Isn't reject_unauth_destination there to block inexistent
>> recipients ?
>>      
> If the load of a policy service is a problem for you, you should
> consider increasing your resources, i.e., throw more money at it. :)
> That notwithstanding, I know that's not your real question, which
> appears to be confusion of reject_unauth_destination with
> reject_unlisted_recipient; see:
>
> http://www.postfix.org/postconf.5.html#reject_unlisted_recipient
>    
Thanks to all repliers abount reject_unlisted_recipient, i'll try to
search the F** manual a bit deeper the next time :).

Btw, I was telling "load" for "human load" :). There is no point of
greylisting mail for unexistant recipients. It increase the greylist
pending database and make it harder for me to find the legitimate
servers I should whitelist.

--
Simon.


Re: smtpd_recipient_restrictions evaluation question

by Mikael Bak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Morvan wrote:
>> Consider Zen here. It also incorporates the (not-quite-so) new PBL,
>> which has been very effective here.
>>    
> The last time I tried it, Zen included too many legitimate users behind
> ADSL lines. The "Policy" behind PBL is a bit too restrictive. Maybe it
> changed, I'll give it another try.

Can you please tell me why an ADSL user would send legitimate email
without using the ISP's SMTP server?

More and more ISP even blocks outbound access to port 25, which may not
be popular, but it's very effective in stoping spam at its source.

Mikael


smtpd_recipient_restrictions evaluation question

by Stan Hoeppner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Markus Schönhaber put forth on 10/30/2009 10:05 AM:
> Simon Morvan:
>
>> I notice that event if the recipient address doesn't exists, the
>> check_policy_service (greylist) got evaluated, causing higher load than
>> needed. Isn't reject_unauth_destination there to block inexistent
>> recipients ?
>
> No, that's what reject_unlisted_recipient is for.

I only have reject_unauth_destination on my relay-only server, and
sending to an invalid recipient address returns:

550 5.1.1 <invalid@...>: Recipient address rejected: User unknown
in relay recipient table

I don't have reject_unauth_destination.  I guess which parameter one
needs to implement depends on whether one uses local deliver?

--
Stan

smtpd_recipient_restrictions evaluation question

by Stan Hoeppner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stan Hoeppner put forth on 10/30/2009 2:23 PM:

> I don't have reject_unauth_destination.  I guess which parameter one
> needs to implement depends on whether one uses local deliver?

Should have proofread that...  I meant I do not have
reject_unlisted_recipient defined.  However, the docs say it's turned on
by default, which would explain why my rejections work properly.

http://www.postfix.org/postconf.5.html#reject_unlisted_recipient

smtpd_reject_unlisted_recipient (default: yes)

    Request that the Postfix SMTP server rejects mail for unknown
recipient addresses, even when no explicit reject_unlisted_recipient
access restriction is specified. This prevents the Postfix queue from
filling up with undeliverable MAILER-DAEMON messages.

--
Stan


Re: smtpd_recipient_restrictions evaluation question

by Markus Schönhaber-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stan Hoeppner:

> I only have reject_unauth_destination on my relay-only server, and
> sending to an invalid recipient address returns:
>
> 550 5.1.1 <invalid@...>: Recipient address rejected: User unknown
> in relay recipient table
>
> I don't have reject_unauth_destination.  I guess which parameter one
> needs to implement depends on whether one uses local deliver?

You probably have
smtpd_reject_unlisted_recipient
at it's default value: yes.

--
Regards
  mks

Re: smtpd_recipient_restrictions evaluation question

by Noel Jones-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/30/2009 2:28 PM, Stan Hoeppner wrote:

> Stan Hoeppner put forth on 10/30/2009 2:23 PM:
>
>> I don't have reject_unauth_destination.  I guess which parameter one
>> needs to implement depends on whether one uses local deliver?
>
> Should have proofread that...  I meant I do not have
> reject_unlisted_recipient defined.  However, the docs say it's turned on
> by default, which would explain why my rejections work properly.
>
> http://www.postfix.org/postconf.5.html#reject_unlisted_recipient
>
> smtpd_reject_unlisted_recipient (default: yes)
>
>      Request that the Postfix SMTP server rejects mail for unknown
> recipient addresses, even when no explicit reject_unlisted_recipient
> access restriction is specified. This prevents the Postfix queue from
> filling up with undeliverable MAILER-DAEMON messages.
>
> --
> Stan
>

You can use reject_unlisted_recipient in your
smtpd_*_restrictions to ask postfix to reject unknown
recipients earlier in the process, eg. before RBL or greylist
checks.

The default smtpd_reject_unlisted_recipient basically tacks
reject_unlisted_recipient at the very end of
smtpd_recipient_restrictions.

  -- Noel Jones

smtpd_recipient_restrictions evaluation question

by Stan Hoeppner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Morvan put forth on 10/30/2009 10:39 AM:

> The last time I tried it, Zen included too many legitimate users behind
> ADSL lines. The "Policy" behind PBL is a bit too restrictive. Maybe it
> changed, I'll give it another try.

Would you please elaborate a bit on this?  Most of the listings in PBL
are created by the ISPs who own the IP address space listed in PBL.
THEY are the ones saying "mail should not originate from this IP (or IP
block)".  Spamhaus creates some PBL entries when lazy bot infested ISPs
fail to do so.  In lieu of the Spamhaus created entries, anyone else
sending mail from a PBL listed IP is violating their ISP's TOS by doing so.

I hope you're not an ISP and are checking your users' mail submission
against dnsbls.  This is a recipe for disaster, and may explain why
you're having problems when using Zen.  Never check your own users' mail
against dnsbls.  Zen is the most widely used dnsbl on the planet,
considered by most to be the "safest" dnsbl, and very very few people
ever report false positives with Zen.  Something seems amiss in your
situation.

--
Stan

Re: smtpd_recipient_restrictions evaluation question

by Larry Stone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 30 Oct 2009, Mikael Bak wrote:

> Simon Morvan wrote:
>> The last time I tried it, Zen included too many legitimate users behind
>> ADSL lines. The "Policy" behind PBL is a bit too restrictive. Maybe it
>> changed, I'll give it another try.
>
> Can you please tell me why an ADSL user would send legitimate email
> without using the ISP's SMTP server?

At ths risk of this moving too far away from Postfix, let me just ask if
you're thinking ADSL means dynamic IP address? There are many legitimate
mail servers on static IP ADSL lines (including mine) provided by ISPs
with "servers permitted" policies. Typically these are business-class
services but not always (my ISP does not distinguish between residential
and business but their services are not priced for the mass-market
residential user). Why handle the outgoing mail myself? Better control. If
there's a problem, it sits on my system where I can see it and deal with
it, not on my ISP's server where it's invisible to me.

-- Larry Stone
    lstone19@...

Re: smtpd_recipient_restrictions evaluation question

by Mikael Bak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Larry Stone wrote:

> On Fri, 30 Oct 2009, Mikael Bak wrote:
>
>> Simon Morvan wrote:
>>> The last time I tried it, Zen included too many legitimate users behind
>>> ADSL lines. The "Policy" behind PBL is a bit too restrictive. Maybe it
>>> changed, I'll give it another try.
>>
>> Can you please tell me why an ADSL user would send legitimate email
>> without using the ISP's SMTP server?
>
> At ths risk of this moving too far away from Postfix, let me just ask if
> you're thinking ADSL means dynamic IP address? There are many legitimate
> mail servers on static IP ADSL lines (including mine) provided by ISPs
> with "servers permitted" policies. Typically these are business-class
> services but not always (my ISP does not distinguish between residential
> and business but their services are not priced for the mass-market
> residential user). Why handle the outgoing mail myself? Better control.
> If there's a problem, it sits on my system where I can see it and deal
> with it, not on my ISP's server where it's invisible to me.
>

You are of course right. I ment home ADSL, not static IP business ADSL.
And yes. We're moving away from postfix :-)

Mikael

Re: smtpd_recipient_restrictions evaluation question

by garphy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mikael Bak a écrit :

> Larry Stone wrote:
>  
>> On Fri, 30 Oct 2009, Mikael Bak wrote:
>>
>>    
>>> Simon Morvan wrote:
>>>      
>>>> The last time I tried it, Zen included too many legitimate users behind
>>>> ADSL lines. The "Policy" behind PBL is a bit too restrictive. Maybe it
>>>> changed, I'll give it another try.
>>>>        
>>> Can you please tell me why an ADSL user would send legitimate email
>>> without using the ISP's SMTP server?
>>>      
>> At ths risk of this moving too far away from Postfix, let me just ask if
>> you're thinking ADSL means dynamic IP address? There are many legitimate
>> mail servers on static IP ADSL lines (including mine) provided by ISPs
>> with "servers permitted" policies. Typically these are business-class
>> services but not always (my ISP does not distinguish between residential
>> and business but their services are not priced for the mass-market
>> residential user). Why handle the outgoing mail myself? Better control.
>> If there's a problem, it sits on my system where I can see it and deal
>> with it, not on my ISP's server where it's invisible to me.
>>
>>    
>
> You are of course right. I ment home ADSL, not static IP business ADSL.
> And yes. We're moving away from postfix :-)
>
> Mikael
>  
And why shouldn't be able to use my own mail server behind my private
residential ADSL line ?

Not allowing so is against the net neutrality... but this discussion is
already out of the postfix scope :)

--
Simon.


smtpd_recipient_restrictions evaluation question

by Stan Hoeppner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Morvan put forth on 10/31/2009 12:30 PM:

> And why shouldn't be able to use my own mail server behind my private
> residential ADSL line ?

You should be able to.  Here's how to implement the outbound mail
portion to prevent mass rejections:

http://www.hardwarefreak.com/postfix-adsl-relay-config.txt

--
Stan

Re: smtpd_recipient_restrictions evaluation question

by garphy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stan Hoeppner a écrit :

> Simon Morvan put forth on 10/31/2009 12:30 PM:
>
>  
>> And why shouldn't be able to use my own mail server behind my private
>> residential ADSL line ?
>>    
>
> You should be able to.  Here's how to implement the outbound mail
> portion to prevent mass rejections:
>
> http://www.hardwarefreak.com/postfix-adsl-relay-config.txt
>
> --
> Stan
>  
That's prevent rejection but also prevent my ability to ensure my
freedom to use the network :
http://en.wikipedia.org/wiki/Network_neutrality

That's will be my last message on-list for this topic but feel free to
keep on discuss this off-list :)

--
Simon.




smtpd_recipient_restrictions evaluation question

by Stan Hoeppner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Morvan put forth on 11/1/2009 4:20 AM:

> That's prevent rejection but also prevent my ability to ensure my
> freedom to use the network :
> http://en.wikipedia.org/wiki/Network_neutrality
>
> That's will be my last message on-list for this topic but feel free to
> keep on discuss this off-list :)

Net Neutrality has nothing to do with SMTP receivers.  It has everything
to do with network carriers and QOS.  You have no inherent right to send
email to _my_ MX, nor anyone else's.  Your rights end where mine begin.
 If I chose to drop your SMTP connections due to the rDNS name of your
sending MTA, its status as being listed in the Spamhaus PBL, or any
other reason, that's my right, and dropping you does not in any way
infringe upon _your_ rights, because in this case, again, you have no
rights.

If, after reading this, you feel that receivers who reject mail sent
directly from your residential IP are infringing upon your rights, then
we can safely file your comments into the kook folder.

--
Stan


Re: smtpd_recipient_restrictions evaluation question

by Daniel V. Reinhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



----- Original Message ----

> From: Stan Hoeppner <stan@...>
> To: postfix-users@...
> Sent: Sun, November 1, 2009 1:00:30 PM
> Subject: smtpd_recipient_restrictions evaluation question
>
> Simon Morvan put forth on 11/1/2009 4:20 AM:
>
> > That's prevent rejection but also prevent my ability to ensure my
> > freedom to use the network :
> > http://en.wikipedia.org/wiki/Network_neutrality
> >
> > That's will be my last message on-list for this topic but feel free to
> > keep on discuss this off-list :)
>
> Net Neutrality has nothing to do with SMTP receivers.  It has everything
> to do with network carriers and QOS.  You have no inherent right to send
> email to _my_ MX, nor anyone else's.  Your rights end where mine begin.
> If I chose to drop your SMTP connections due to the rDNS name of your
> sending MTA, its status as being listed in the Spamhaus PBL, or any
> other reason, that's my right, and dropping you does not in any way
> infringe upon _your_ rights, because in this case, again, you have no
> rights.
>
> If, after reading this, you feel that receivers who reject mail sent
> directly from your residential IP are infringing upon your rights, then
> we can safely file your comments into the kook folder.
>
> --
> Stan

Very well said Stan.  Residential IP's are common to be malware infected with malware that sends itself out via its own SMTP program, and as such should be stopped.  

Thanks,
Dan



     

Re: smtpd_recipient_restrictions evaluation question

by Jerry-124 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 01 Nov 2009 07:00:30 -0600
Stan Hoeppner <stan@...> replied:

[snip]

>Net Neutrality has nothing to do with SMTP receivers.  It has
>everything to do with network carriers and QOS.  You have no inherent
>right to send email to _my_ MX, nor anyone else's.  Your rights end
>where mine begin.
> If I chose to drop your SMTP connections due to the rDNS name of your
>sending MTA, its status as being listed in the Spamhaus PBL, or any
>other reason, that's my right, and dropping you does not in any way
>infringe upon _your_ rights, because in this case, again, you have no
>rights.
>
>If, after reading this, you feel that receivers who reject mail sent
>directly from your residential IP are infringing upon your rights, then
>we can safely file your comments into the kook folder.

Better yet, stop sending them e-mail.

--  
Jerry
postfix.user@...

TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html

Another megabytes the dust.


Re: smtpd_recipient_restrictions evaluation question

by garphy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel V. Reinhardt a écrit :

> ----- Original Message ----
>
>  
>> From: Stan Hoeppner <stan@...>
>> To: postfix-users@...
>> Sent: Sun, November 1, 2009 1:00:30 PM
>> Subject: smtpd_recipient_restrictions evaluation question
>>
>> Simon Morvan put forth on 11/1/2009 4:20 AM:
>>
>>    
>>> That's prevent rejection but also prevent my ability to ensure my
>>> freedom to use the network :
>>> http://en.wikipedia.org/wiki/Network_neutrality
>>>
>>> That's will be my last message on-list for this topic but feel free to
>>> keep on discuss this off-list :)
>>>      
>> Net Neutrality has nothing to do with SMTP receivers.  It has everything
>> to do with network carriers and QOS.  You have no inherent right to send
>> email to _my_ MX, nor anyone else's.  Your rights end where mine begin.
>> If I chose to drop your SMTP connections due to the rDNS name of your
>> sending MTA, its status as being listed in the Spamhaus PBL, or any
>> other reason, that's my right, and dropping you does not in any way
>> infringe upon _your_ rights, because in this case, again, you have no
>> rights.
>>
>> If, after reading this, you feel that receivers who reject mail sent
>> directly from your residential IP are infringing upon your rights, then
>> we can safely file your comments into the kook folder.
>>
>> --
>> Stan
>>    
>
> Very well said Stan.  Residential IP's are common to be malware infected with malware that sends itself out via its own SMTP program, and as such should be stopped.  
>
> Thanks,
> Dan
>
>
>
>      
>  
And how am I supposed to send mail from my own mail server if I don't
trust my ISP mail relay nor have $$$ to have a colo space and my own IP
space ?

And, Stan, you refuse mails from my ISP mail relay... (the second
biggest in France...)

--
Simon

Re: smtpd_recipient_restrictions evaluation question

by Daniel V. Reinhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message





----- Original Message ----

> From: Simon Morvan <garphy@...>
> To: postfix-users@...
> Sent: Sun, November 1, 2009 2:37:14 PM
> Subject: Re: smtpd_recipient_restrictions evaluation question
>
> Daniel V. Reinhardt a écrit :
> > ----- Original Message ----
> >
> >  
> >> From: Stan Hoeppner
> >> To: postfix-users@...
> >> Sent: Sun, November 1, 2009 1:00:30 PM
> >> Subject: smtpd_recipient_restrictions evaluation question
> >>
> >> Simon Morvan put forth on 11/1/2009 4:20 AM:
> >>
> >>    
> >>> That's prevent rejection but also prevent my ability to ensure my
> >>> freedom to use the network :
> >>> http://en.wikipedia.org/wiki/Network_neutrality
> >>>
> >>> That's will be my last message on-list for this topic but feel free to
> >>> keep on discuss this off-list :)
> >>>      
> >> Net Neutrality has nothing to do with SMTP receivers.  It has everything
> >> to do with network carriers and QOS.  You have no inherent right to send
> >> email to _my_ MX, nor anyone else's.  Your rights end where mine begin.
> >> If I chose to drop your SMTP connections due to the rDNS name of your
> >> sending MTA, its status as being listed in the Spamhaus PBL, or any
> >> other reason, that's my right, and dropping you does not in any way
> >> infringe upon _your_ rights, because in this case, again, you have no
> >> rights.
> >>
> >> If, after reading this, you feel that receivers who reject mail sent
> >> directly from your residential IP are infringing upon your rights, then
> >> we can safely file your comments into the kook folder.
> >>
> >> --
> >> Stan
> >>    
> >
> > Very well said Stan.  Residential IP's are common to be malware infected with
> malware that sends itself out via its own SMTP program, and as such should be
> stopped.  
> >
> > Thanks,
> > Dan
> >
> >
> >
> >      
> >  
> And how am I supposed to send mail from my own mail server if I don't
> trust my ISP mail relay nor have $$$ to have a colo space and my own IP
> space ?
>
> And, Stan, you refuse mails from my ISP mail relay... (the second
> biggest in France...)
>
> --
> Simon

Simple you get a business account, and have them edit your rDNS and other important records accordingly.  Residential IP's shouldn't be allowed to send mail except from their own ISP Mail Server.  If you don't trust your ISP, then its time to find another one.




< Prev | 1 - 2 | Next >