Re: Pick the transport based on the destination host, not domain?

2014-11-25 Thread Wietse Venema
Viktor Dukhovni: > On Mon, Nov 24, 2014 at 01:38:15PM -0500, Wietse Venema wrote: > > >/etc/postfix/smtp_dns_reply_filter: > ># /domain ttl IN address/ action, all case-insensitive. > ># Note: the domain name ends in ".". > >/^\S+\.google.com\.\s+\S

Re: Strip body / attachments from bounces?

2014-11-25 Thread Noel Jones
On 11/25/2014 1:34 PM, Viktor Dukhovni wrote: > On Tue, Nov 25, 2014 at 11:19:36AM -0600, Noel Jones wrote: > >> http://www.postfix.org/postconf.5.html#bounce_size_limit >> >> You can set "bounce_size_limit = 0" to return the message headers >> only. > > The minimum allowed value is "1". There

Re: Strip body / attachments from bounces?

2014-11-25 Thread Wietse Venema
Viktor Dukhovni: > On Tue, Nov 25, 2014 at 11:19:36AM -0600, Noel Jones wrote: > > > http://www.postfix.org/postconf.5.html#bounce_size_limit > > > > You can set "bounce_size_limit = 0" to return the message headers > > only. > > The minimum allowed value is "1". Therefore, to bounce headers

Re: Strip body / attachments from bounces?

2014-11-25 Thread Viktor Dukhovni
On Tue, Nov 25, 2014 at 11:19:36AM -0600, Noel Jones wrote: > http://www.postfix.org/postconf.5.html#bounce_size_limit > > You can set "bounce_size_limit = 0" to return the message headers > only. The minimum allowed value is "1". Therefore, to bounce headers only bounce_size_limit =

Re: Bouncing email containing attachments

2014-11-25 Thread Jos Chrispijn
Noel Jones schreef op 25-11-2014 at 18:23 CET: You'll need to use a milter or proxy for this. Maybe milter-regexp will do the trick. Yes, you'll need to examine the envelope sender, and the mime headers. -- Noel Jones Thanks for your response - will check your suggestion and see if it fits m

Re: Bouncing email containing attachments

2014-11-25 Thread Noel Jones
On 11/25/2014 10:24 AM, Jos Chrispijn wrote: > Can you tell me how I can block email from certain users who have > attachment(s) included? > > I want to force senders to use WeTransfer - bouncing their email > should also create a separate reply asking this user to use > WeTransfer instead of emai

Re: Strip body / attachments from bounces?

2014-11-25 Thread Robert Schetterer
Am 25.11.2014 um 17:51 schrieb John Oliver: > I'm looking for a way to remove anything from the original email from > bounces. Yes, I know this is a goofy use case :-) I found a useful > article about customizing bounce messages which I'll look into, but I > didn't see anything in it about making

Re: Strip body / attachments from bounces?

2014-11-25 Thread Noel Jones
On 11/25/2014 10:51 AM, John Oliver wrote: > I'm looking for a way to remove anything from the original email from > bounces. Yes, I know this is a goofy use case :-) I found a useful > article about customizing bounce messages which I'll look into, but I > didn't see anything in it about making

Re: Pick the transport based on the destination host, not domain?

2014-11-25 Thread Darren Pilgrim
On 11/25/2014 8:48 AM, Viktor Dukhovni wrote: On Tue, Nov 25, 2014 at 08:10:28AM -0800, Darren Pilgrim wrote: For example, if a domain has MX records, but we drop them all, it may not be appropriate to then use the A/ records. Rather, it seems that such a domain is unreachable. So the "IGN

Strip body / attachments from bounces?

2014-11-25 Thread John Oliver
I'm looking for a way to remove anything from the original email from bounces. Yes, I know this is a goofy use case :-) I found a useful article about customizing bounce messages which I'll look into, but I didn't see anything in it about making sure the bounce contains nothing but the bounce mes

Re: Pick the transport based on the destination host, not domain?

2014-11-25 Thread Viktor Dukhovni
On Tue, Nov 25, 2014 at 08:10:28AM -0800, Darren Pilgrim wrote: > >For example, if a domain has MX records, but we drop them all, it > >may not be appropriate to then use the A/ records. Rather, it > >seems that such a domain is unreachable. So the "IGNORE" could > >be augmented by: > > > >

Bouncing email containing attachments

2014-11-25 Thread Jos Chrispijn
Can you tell me how I can block email from certain users who have attachment(s) included? I want to force senders to use WeTransfer - bouncing their email should also create a separate reply asking this user to use WeTransfer instead of email (as in attachments). As attachements in fact are

Re: Pick the transport based on the destination host, not domain?

2014-11-25 Thread Darren Pilgrim
On 11/25/2014 8:06 AM, Viktor Dukhovni wrote: On Mon, Nov 24, 2014 at 01:38:15PM -0500, Wietse Venema wrote: /etc/postfix/smtp_dns_reply_filter: # /domain ttl IN address/ action, all case-insensitive. # Note: the domain name ends in ".". /^\S+\.g

Re: Pick the transport based on the destination host, not domain?

2014-11-25 Thread Viktor Dukhovni
On Mon, Nov 24, 2014 at 01:38:15PM -0500, Wietse Venema wrote: >/etc/postfix/smtp_dns_reply_filter: ># /domain ttl IN address/ action, all case-insensitive. ># Note: the domain name ends in ".". >/^\S+\.google.com\.\s+\S+\s+\S+\s+\s+/ IGNORE >

Re: use of two check_policy_service

2014-11-25 Thread Ing. Jorge E. Rojas
thanks Noel, i will make a try results notes to the list when is finished