3

I am trying to find the folder where Postfix store email's attachment but I can't seems to find it. Anyone know how?

4
  • postfix doesn't store attachments separately, they are embedded in the mail.
    – cas
    Nov 2 '15 at 9:26
  • Is there any way to extract the attachment and save the file outside?
    – Norman
    Nov 3 '15 at 2:27
  • 1
    from postfix while it's still in the queue? no, not without a lot of stuffing around. from your mail client (e.g. mutt or mail or any script that can read your mailbox): yes, easily.
    – cas
    Nov 3 '15 at 2:46
  • 1
    Postfix does not really care about attachments. It generally sees the header with addresses, and the messsage body with whatever it may contain, text, images, files, it's just stored as text.
    – Lenne
    Nov 8 '16 at 19:51
3

it's also inside the file that stores the mail itself and is MIME-encoded.

3
  • Is there any way to extract the attachment and save the file outside?
    – Norman
    Nov 3 '15 at 2:27
  • 1
    @Norman superuser.com/questions/187106/… munpack Nov 7 '15 at 3:39
  • 1
    @JacobEvans I tried using mumpack and ripmime and think that ripmime is more straight forward due to the file structure that is extracted from the email. I could easily manipulate the files after extraction. Thanks!
    – Norman
    Nov 9 '15 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.