Re: Delay re-sending message following onward rejection

2017-01-05 Thread Dominic Raferd
On 4 January 2017 at 18:34, Wietse Venema  wrote:
> Dominic Raferd:
>>
>> Thanks Wietse that sounds like a good plan, how would I set up a
>> 'special' smtp client for gmail servers with the reduced mx session
>> limit?
>
> /etc/postfix/main.cf:
> transport_maps = hash:/etc/postfix/transport
>
> /etc/postfix/transport:
> gmail.com:  one-mx-session
> ...ditto for other domains...
>
> /etc/postfix/master.cf:
> one-mx-sessionunix  -  -  -  -  -  smtp
> -o smtp_mx_session_limit=1
>
> And leave smtp_mx_address_limit alone (don't set it to 1, otherwise
> mail will back up in the queue for no good reason).
>

Brilliant, thank you Wietse. It didn't like the colon in
/etc/postfix/transport so I took it out, otherwise it seems to be
working. I will monitor over the coming days (I am only getting these
responses from gmail a couple of times per day on average) and check
that it is now pulling the offending mails before they get re-sent.

Have others previously encountered problems like this? Maybe I am
unusual in using gmail for our user mailboxes + postfix for relaying
(so we can use our own domain names, dmarc etc while using gmail front
ends)?

Dominic


postfix pdf

2017-01-05 Thread linux-service

I want to receive a mail with pdf attached but got errors:

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
message-id=<809c0b3357a556a826cd508693b0f...@www.ubuntushop.be>
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body 
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk 
from local; from=: 5.7.1 message content rejected
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
to=, orig_to=, 
relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.7.1, status=bounced 
(message content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
to=, orig_to=, relay=none, 
delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message 
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
to=, orig_to=, relay=none, 
delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message 
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes






Re: postfix pdf

2017-01-05 Thread chaouche yacine
Are you sending the PDF via a common MUA or via a program/script ? 

On Thursday, January 5, 2017 4:30 PM, linux-service  
wrote:
 

 I want to receive a mail with pdf attached but got errors:

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
message-id=<809c0b3357a556a826cd508693b0f...@www.ubuntushop.be>
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body 
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk 
from local; from=: 5.7.1 message content rejected
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
to=, orig_to=, 
relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.7.1, status=bounced 
(message content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
to=, orig_to=, relay=none, 
delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message 
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
to=, orig_to=, relay=none, 
delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message 
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected 
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: 
deliver_request_get: error receiving common attributes





   

Re: postfix pdf

2017-01-05 Thread linux-service

Yes, from joomla with phpmail

I have disabled body_checks in postfix and than it was ok.


guy


Op 05-01-17 om 16:39 schreef chaouche yacine:

Are you sending the PDF via a common MUA or via a program/script ?


On Thursday, January 5, 2017 4:30 PM, linux-service 
 wrote:



I want to receive a mail with pdf attached but got errors:

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
message-id=<809c0b3357a556a826cd508693b0f...@www.ubuntushop.be 
>

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk 

from local; from=mailto:i...@ubuntushop.be>>: 
5.7.1 message content rejected

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=mailto:duport...@mail.duportail.be>>, 
orig_to=mailto:g...@duportail.be>>,

relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.7.1, status=bounced
(message content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=mailto:r...@mail.duportail.be>>, 
orig_to=mailto:g...@duportail.be>>, relay=none,

delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=mailto:d...@mail.duportail.be>>, 
orig_to=mailto:g...@duportail.be>>, relay=none,

delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes









Re: postfix pdf

2017-01-05 Thread Robert Chalmers

From a different site…

How do I configure Postfix to never send NDR responses? For example, if someone 
tries to send an email to a user that doesn't exist, I don't want my server to 
respond and let them know that it doesn't exist. I just simply don't want it to 
respond.
It is strongly suggested that you do not disable NDR responses on any mail 
server. However, it is possible to disable NDR responses in Postfix if you 
would like to.

Open your Postfix master.cf file and find the following line:

bounce unix - - n - 0 bounce

Change it to this:

bounce unix - - n - 0 discard

Next, restart Postfix.

Please be advised that you will see an error in your logs whenever Postfix runs 
the discard handler instead of the bounce handler. The errors will look similar 
to this:

Dec 15 16:07:40 websrv1 postfix/discard[15220]: warning: unexpected attribute 
nrequest from bounce socket (expecting: flags)

Dec 15 16:07:40 websrv1 postfix/discard[15220]: warning: deliver_request_get: 
error receiving common attributes


So maybe you already have the ‘discard’ set ?



> On 5 Jan 2017, at 15:29, linux-service  wrote:
> 
> I want to receive a mail with pdf attached but got errors:
> 
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
> message-id=<809c0b3357a556a826cd508693b0f...@www.ubuntushop.be>
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body 
> lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk 
> from local; from=: 5.7.1 message content rejected
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
> to=, orig_to=, relay=none, 
> delay=0.05, delays=0.05/0/0/0, dsn=5.7.1, status=bounced (message content 
> rejected)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> nrequest from bounce socket (expecting: flags)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: deliver_request_get: 
> error receiving common attributes
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
> to=, orig_to=, relay=none, 
> delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message content 
> rejected)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> nrequest from bounce socket (expecting: flags)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: deliver_request_get: 
> error receiving common attributes
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: 
> to=, orig_to=, relay=none, 
> delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message content 
> rejected)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> nrequest from bounce socket (expecting: flags)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: deliver_request_get: 
> error receiving common attributes
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> nrequest from bounce socket (expecting: flags)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: deliver_request_get: 
> error receiving common attributes
> 
> 
> 



Re: postfix pdf

2017-01-05 Thread linux-service

body of mail:

http://www.ubuntushop.be/mailbody.txt

guy


Op 05-01-17 om 16:39 schreef chaouche yacine:

Are you sending the PDF via a common MUA or via a program/script ?


On Thursday, January 5, 2017 4:30 PM, linux-service 
 wrote:



I want to receive a mail with pdf attached but got errors:

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
message-id=<809c0b3357a556a826cd508693b0f...@www.ubuntushop.be 
>

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk 

from local; from=mailto:i...@ubuntushop.be>>: 
5.7.1 message content rejected

Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=mailto:duport...@mail.duportail.be>>, 
orig_to=mailto:g...@duportail.be>>,

relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.7.1, status=bounced
(message content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=mailto:r...@mail.duportail.be>>, 
orig_to=mailto:g...@duportail.be>>, relay=none,

delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=mailto:d...@mail.duportail.be>>, 
orig_to=mailto:g...@duportail.be>>, relay=none,

delay=0.06, delays=0.06/0/0/0, dsn=5.7.1, status=bounced (message
content rejected)
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes
Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected
attribute nrequest from bounce socket (expecting: flags)
Jan  5 15:44:40 mail postfix/discard[21428]: warning:
deliver_request_get: error receiving common attributes









Re: postfix pdf

2017-01-05 Thread Viktor Dukhovni

> On Jan 5, 2017, at 10:29 AM, linux-service  wrote:
> 
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> nrequest from bounce socket (expecting: flags)

It looks like your Postfix installation is broken (contains binaries from
multiple versions of Postfix).  Stop postfix, re-install, and restart.

If problem persists, report a potential bug.

-- 
Viktor.



Re: postfix pdf

2017-01-05 Thread linux-service
I did changed joomla from phpmail to sendmail and the problem is over, 
even with body_checks enabled



guy


Op 05-01-17 om 17:48 schreef Viktor Dukhovni:

On Jan 5, 2017, at 10:29 AM, linux-service  wrote:

Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
nrequest from bounce socket (expecting: flags)

It looks like your Postfix installation is broken (contains binaries from
multiple versions of Postfix).  Stop postfix, re-install, and restart.

If problem persists, report a potential bug.






Re: postfix pdf

2017-01-05 Thread Viktor Dukhovni

> On Jan 5, 2017, at 10:29 AM, linux-service  wrote:
> 
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> nrequest from bounce socket (expecting: flags)
> Jan  5 15:44:40 mail postfix/discard[21428]: warning: deliver_request_get: 
> error receiving common attributes

Note, I would not expect discard service requests to see the "nrequest"
attribute.  Posting the master.cf file is likely necessary for further
help.

-- 
Viktor.



Re: postfix pdf

2017-01-05 Thread D'Arcy Cain

On 2017-01-05 11:53 AM, linux-service wrote:

I did changed joomla from phpmail to sendmail and the problem is over,
even with body_checks enabled


Just goes to show - if you have a problem and you think that PHP is the 
solution then you have two problems.  :-)


--
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net


Re: postfix pdf

2017-01-05 Thread Wietse Venema
Viktor Dukhovni:
> 
> > On Jan 5, 2017, at 10:29 AM, linux-service  wrote:
> > 
> > Jan  5 15:44:40 mail postfix/discard[21428]: warning: unexpected attribute 
> > nrequest from bounce socket (expecting: flags)
> 
> It looks like your Postfix installation is broken (contains binaries from
> multiple versions of Postfix).  Stop postfix, re-install, and restart.
> 

No, he followed Robert Chalmer's advice to substitute the discard service
in place of the bounce service. Terrible idea.

Wietse


Re: postfix pdf

2017-01-05 Thread Viktor Dukhovni

> On Jan 5, 2017, at 4:44 PM, Wietse Venema  wrote:
> 
> No, he followed Robert Chalmer's advice to substitute the discard service
> in place of the bounce service. Terrible idea.

Wow, more than "terrible": profoundly misguided.  The bounce service is not
a delivery agent and should not be modified.

Perhaps we should add comments above internal core service entries in
master.cf: "DO NOT REMOVE, DO NOT MODIFY, ..."

-- 
Viktor.



Re: postfix pdf

2017-01-05 Thread Postfix User
On Thu, 5 Jan 2017 17:11:15 -0500, Viktor Dukhovni stated:

>Perhaps we should add comments above internal core service entries in
>master.cf: "DO NOT REMOVE, DO NOT MODIFY, ..."

Personally, I believe it would be a waste of time Victor. Like the
saying, "Nothing is foolproof to the sufficiently motivated fool",
printing those warnings would probably make some individuals consider it
a challenge. On the other hand, if they are going to break it anyway,
what harm can it cause.

-- 
Gerard


Re: postfix pdf

2017-01-05 Thread Wietse Venema
Postfix User:
> On Thu, 5 Jan 2017 17:11:15 -0500, Viktor Dukhovni stated:
> 
> >Perhaps we should add comments above internal core service entries in
> >master.cf: "DO NOT REMOVE, DO NOT MODIFY, ..."
> 
> Personally, I believe it would be a waste of time Victor. Like the
> saying, "Nothing is foolproof to the sufficiently motivated fool",
> printing those warnings would probably make some individuals consider it
> a challenge. On the other hand, if they are going to break it anyway,
> what harm can it cause.

Making Postfix more fool-proof, versus nature making better fools.

Wietse