Postfix bouncing

This is a discussion on Postfix bouncing within the mailing.postfix.users forums, part of the Mail Servers and Related category; Is there a way to configure postfix (or possibly procmail) to bounce emails from specific emails addresses? I'd like ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-28-2007
a113n
 
Posts: n/a
Default Postfix bouncing

Is there a way to configure postfix (or possibly procmail) to bounce
emails from specific emails addresses? I'd like to prevent all email
from specific addresses from reaching any of my mailboxes. I've read
through the postfix documentation, but I don't see anyway of forcing a
bounce, and the references to doing this via procmail state that this
is a bad idea because the mail has already been accepted by the time
it reaches procmail.

--
Ryan
Reply With Quote
  #2 (permalink)  
Old 11-29-2007
Ralf Hildebrandt
 
Posts: n/a
Default Re: Postfix bouncing

On 2007-11-28, a113n <dageyra@gmail.com> wrote:
> Is there a way to configure postfix (or possibly procmail) to bounce
> emails from specific emails addresses? I'd like to prevent all email
> from specific addresses from reaching any of my mailboxes.


Reject, not bounce.

> I've read through the postfix documentation, but I don't see anyway of
> forcing a bounce,


check_sender_access

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt@charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to plonk@charite.de
Reply With Quote
  #3 (permalink)  
Old 11-30-2007
ONYX
 
Posts: n/a
Default Re: Postfix bouncing

On 29 ÎÏÑÂ, 02:39, a113n <dage...@gmail.com> wrote:
> Is there a way to configure postfix (or possibly procmail) to bounce
> emails from specific emails addresses? I'd like to prevent all email
> from specific addresses from reaching any of my mailboxes. I've read
> through the postfix documentation, but I don't see anyway of forcing a
> bounce, and the references to doing this via procmail state that this
> is a bad idea because the mail has already been accepted by the time
> it reaches procmail.
>
> --
> Ryan


just check sender before accepting data!
use check_sender_access for NON smtpd_sender_restrictions, like this:

smtpd_recipient_restrictions = ...,
...,
check_sender_access
regexp:/path/to/file_with_restrictions,
...

The file /path/to/file_with_restrictions must contain something like
that:
/^spamer@.*/ REJECT Drink a poison
/.*@spamer-domain.com$/ REJECT Drink a poison
/^good-sender@.*/ OK
/.*@good-domain.com/ OK

If you wish to use smtpd_sender_restrictions - use it without
check_sender_access:

smtpd_sender_restrictions = ...,
...,
regexp:/path/to/
file_with_restrictions,
...

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0