postfix pdf

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix pdf

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=<[hidden email]>
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk
from local; from=<[hidden email]>: 5.7.1 message content rejected
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=<[hidden email]>, orig_to=<[hidden email]>,
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=<[hidden email]>, orig_to=<[hidden email]>, 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=<[hidden email]>, orig_to=<[hidden email]>, 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



Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

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 <[hidden email]> 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=<[hidden email]>
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk
from local; from=<[hidden email]>: 5.7.1 message content rejected
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=<[hidden email]>, orig_to=<[hidden email]>,
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=<[hidden email]>, orig_to=<[hidden email]>, 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=<[hidden email]>, orig_to=<[hidden email]>, 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





Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Robert Chalmers
In reply to this post by linux-service

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 <[hidden email]> 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=<[hidden email]>
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk from local; from=<[hidden email]>: 5.7.1 message content rejected
> Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: to=<[hidden email]>, orig_to=<[hidden email]>, 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=<[hidden email]>, orig_to=<[hidden email]>, 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=<[hidden email]>, orig_to=<[hidden email]>, 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
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

linux-service
In reply to this post by chaouche yacine

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 [hidden email] 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=<[hidden email]>
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk
from local; from=<[hidden email]>: 5.7.1 message content rejected
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=<[hidden email]>, orig_to=<[hidden email]>,
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=<[hidden email]>, orig_to=<[hidden email]>, 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=<[hidden email]>, orig_to=<[hidden email]>, 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






Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

linux-service
In reply to this post by chaouche yacine

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 [hidden email] 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=<[hidden email]>
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC: reject: body
lgwSkgRBEQhIAhx6yJgLL8xxhz71jAvOOv2ZV998L7fVZoLoto1CdVf87Vx9d9DObHjAWvewI7Bk
from local; from=<[hidden email]>: 5.7.1 message content rejected
Jan  5 15:44:40 mail postfix/cleanup[21419]: 3AF94CC3CDC:
to=<[hidden email]>, orig_to=<[hidden email]>,
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=<[hidden email]>, orig_to=<[hidden email]>, 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=<[hidden email]>, orig_to=<[hidden email]>, 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






Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Viktor Dukhovni
In reply to this post by linux-service

> On Jan 5, 2017, at 10:29 AM, linux-service <[hidden email]> 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.

Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

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 <[hidden email]> 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.
>


Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Viktor Dukhovni
In reply to this post by linux-service

> On Jan 5, 2017, at 10:29 AM, linux-service <[hidden email]> 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.

Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

D'Arcy Cain
In reply to this post by linux-service
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:[hidden email]
VoIP: sip:[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Wietse Venema
In reply to this post by Viktor Dukhovni
Viktor Dukhovni:
>
> > On Jan 5, 2017, at 10:29 AM, linux-service <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Viktor Dukhovni

> On Jan 5, 2017, at 4:44 PM, Wietse Venema <[hidden email]> 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.

Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Postfix User-2
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
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

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
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Noel Jones-2
On 1/5/2017 6:47 PM, Wietse Venema wrote:

> 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
>

Maybe have discard: exit with a fatal error when it's called as
bounce?
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Geert Stappers
On Fri, Jan 06, 2017 at 12:29:58PM -0600, Noel Jones wrote:

> On 1/5/2017 6:47 PM, Wietse Venema wrote:
> > 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
> >
>
> Maybe have discard: exit with a fatal error when it's called as bounce?


FWIW, this is most likely the quote that Wietse is referring to:

  There is a race between mankind and the universe. Mankind is trying
  to build bigger, better, faster, and more foolproof machines. The
  universe is trying to build bigger, better, and faster fools. So far
  the universe is winning.

I can only hope that we, the postfix community, will focus on postfix.
And I tent to say
  Remove the warning labels. The problem should sort itself out.


Groeten
Geert Stappers
--
Leven en laten leven
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Wietse Venema
In reply to this post by Noel Jones-2
Noel Jones:

> On 1/5/2017 6:47 PM, Wietse Venema wrote:
> > 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
> >
>
> Maybe have discard: exit with a fatal error when it's called as
> bounce?

Instead of logging a warning when it receives an unexpected
protocol message?

Postfix could require that the 'first' message between Postfix
programs(*) contains the protocol name (enqueue, bounce, deliver,
verify, ...). That way, the warning message for a protocol mis-match
could be made more informative.

        Wietse

(*) Or more general: every message that can be the first message
    after a connection is made between Postfix programs.
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Noel Jones-2
On 1/6/2017 1:28 PM, Wietse Venema wrote:
>> Maybe have discard: exit with a fatal error when it's called as
>> bounce?
>
> Instead of logging a warning when it receives an unexpected
> protocol message?

Yes, that would solve this misuse.  We can't prevent all unwise
uses, but maybe we can raise the entry level for foolishness.

> Postfix could require that the 'first' message between Postfix
> programs(*) contains the protocol name (enqueue, bounce, deliver,
> verify, ...). That way, the warning message for a protocol mis-match
> could be made more informative.

Better error messages are always good.  I don't know what it would
take to implement this, but it isn't worth a lot of trouble.




  -- Noel Jones
Reply | Threaded
Open this post in threaded view
|

Re: postfix pdf

Jan Ceuleers
In reply to this post by Wietse Venema
On 06/01/17 20:28, Wietse Venema wrote:
> Instead of logging a warning when it receives an unexpected protocol
> message?
> Postfix could require that the 'first' message between Postfix
> programs(*) contains the protocol name (enqueue, bounce, deliver,
> verify, ...). That way, the warning message for a protocol mis-match
> could be made more informative.
You could also include the Postfix version number so as to be able to
warn on mismatches.