Re: bouce table - where to bounce specified E-mail

2016-09-01 Thread Zalezny Niezalezny
Thank You Wietse for Your time and patient. I will read RFC first - for now
topic is closed for me.


On Thu, Sep 1, 2016 at 5:14 PM, Wietse Venema  wrote:

> Zalezny Niezalezny:
> > Hi ,
> >
> > You suggest to remove sender address.
>
> No, you SPECIFY the null sender address. This concept was introduced
> more than 30 years ago. The current definition is in RFC 5321.
>
> With the SMTP protocol:
> MAIL FROM:<>
>
> With the Postfix sendmail command:
> sendmail -f '' recipients...
> sendmail -f '' -t
>
> Wietse
>
> >
> > MfG
> >
> > Zalezny
> >
> > On Thu, Sep 1, 2016 at 4:19 PM, Wietse Venema 
> wrote:
> >
> > > Zalezny Niezalezny:
> > > > Hi,
> > > >
> > > > just a short question, is there any possibility in Postfix to control
> > > which
> > > > E-mail should be bounced and which not ?
> > >
> > > Postfix implements RFC 5321. If an email message has the null envelope
> > > sender address
> > >
> > > MAIL FROM:<>
> > >
> > > then that email message will not result in a non-delivery notification.
> > >
> > > Wietse
> > >
>


Re: bouce table - where to bounce specified E-mail

2016-09-01 Thread Wietse Venema
Zalezny Niezalezny:
> Hi ,
> 
> You suggest to remove sender address.

No, you SPECIFY the null sender address. This concept was introduced
more than 30 years ago. The current definition is in RFC 5321.

With the SMTP protocol:
MAIL FROM:<>

With the Postfix sendmail command:
sendmail -f '' recipients...
sendmail -f '' -t

Wietse

> 
> MfG
> 
> Zalezny
> 
> On Thu, Sep 1, 2016 at 4:19 PM, Wietse Venema  wrote:
> 
> > Zalezny Niezalezny:
> > > Hi,
> > >
> > > just a short question, is there any possibility in Postfix to control
> > which
> > > E-mail should be bounced and which not ?
> >
> > Postfix implements RFC 5321. If an email message has the null envelope
> > sender address
> >
> > MAIL FROM:<>
> >
> > then that email message will not result in a non-delivery notification.
> >
> > Wietse
> >


Re: bouce table - where to bounce specified E-mail

2016-09-01 Thread Zalezny Niezalezny
Hi ,

You suggest to remove sender address. How to do it in Postfix ?


MfG

Zalezny

On Thu, Sep 1, 2016 at 4:19 PM, Wietse Venema  wrote:

> Zalezny Niezalezny:
> > Hi,
> >
> > just a short question, is there any possibility in Postfix to control
> which
> > E-mail should be bounced and which not ?
>
> Postfix implements RFC 5321. If an email message has the null envelope
> sender address
>
> MAIL FROM:<>
>
> then that email message will not result in a non-delivery notification.
>
> Wietse
>


Re: bouce table - where to bounce specified E-mail

2016-09-01 Thread Wietse Venema
Zalezny Niezalezny:
> Hi,
> 
> just a short question, is there any possibility in Postfix to control which
> E-mail should be bounced and which not ?

Postfix implements RFC 5321. If an email message has the null envelope
sender address

MAIL FROM:<>

then that email message will not result in a non-delivery notification.

Wietse


bouce table - where to bounce specified E-mail

2016-09-01 Thread Zalezny Niezalezny
Hi,

just a short question, is there any possibility in Postfix to control which
E-mail should be bounced and which not ?

We have some relay server which should not bounce some specified test
e-mails (with error). Is there any bounce table ?


Thanks in advance

Zalezny


Re: Address rewriting help?

2016-09-01 Thread Noel Jones
On 8/31/2016 5:32 PM, Tom Horsley wrote:
> On Wed, 31 Aug 2016 17:19:54 -0500
> Noel Jones wrote:
> 
>> Sounds as if smtp_generic_maps may be a better fit for this than
>> canonical maps.
>> http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
> 
> I tried generic maps first, but that not only changed
> the sender address, but the To: address as well, so I
> could only send mail to myself (maybe I didn't
> read enough to configure it correctly :-).

If you use a "*" wildcard to blindly rewrite everything, that's what
will happen.

You must limit the scope of the rewriting.  The examples in the link
above showed how to do this.

Something like:
@mydomain.local   externalu...@example.com

If you have multiple local fantasy domains, each one needs to be
listed; just add more lines.  No need to list the individual users.



  -- Noel Jones