PowerMTA Support Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

PowerMTA 5.5r1 is out!!!!  Please contact support@port25.com for a license and download access.

Author Topic: how to view email body/content in server where PMTA is installed  (Read 48901 times)

msuser

  • Jr. Member
  • **
  • Karma: +0/-4
  • Posts: 29

hi Team,

Can you please help us in how to view the email content/body where we install PMTA in the server.

Thanks.
Logged

ReyM

  • Full Member
  • ***
  • Karma: +25/-6
  • Posts: 440
Re: how to view email body/content in server where PMTA is installed
« Reply #1 on: May 28, 2018, 11:14:39 AM »

Configure PMTA to write the message to disk and view it there
Logged

msuser

  • Jr. Member
  • **
  • Karma: +0/-4
  • Posts: 29
Re: how to view email body/content in server where PMTA is installed
« Reply #2 on: May 29, 2018, 01:34:06 AM »

but in general or by default where does PMTA writes/saves the emails temporarily in the Q. and how can we view emails content/body from this Q?
Logged

ReyM

  • Full Member
  • ***
  • Karma: +25/-6
  • Posts: 440
Re: how to view email body/content in server where PMTA is installed
« Reply #3 on: May 29, 2018, 09:06:34 AM »

You can create a VMTA for testing

Code: [Select]
<virtual-mta test123>
<domain *>
file-format newfile-pickup
file-destination <path>$domain/$user
</domain>
</virtual-mta>

Or if you are looking for incoming, use the domain directive
Code: [Select]
<domain [domain-in-question]>
    max-msg-rate unlimited
    type file
    file-format newfile-pickup
    file-destination <path>/$domain/$user
</domain>
Logged

Port25-Admin1

  • Administrator
  • Hero Member
  • *****
  • Karma: +49/-4
  • Posts: 2361
Re: how to view email body/content in server where PMTA is installed
« Reply #4 on: May 30, 2018, 09:34:58 AM »

> but in general or by default where does PMTA writes/saves the emails temporarily in the Q. and how can we view emails content/body from this Q?

They are in the spool directory, the location of which can be found in the config file.  However, DO NOT handle the files while PowerMTA is running as it may cause PowerMTA to crash.
Logged
Port25-Admin1
------------------
Try the following commands:
Quote
pmta show topdomains --errors
pmta show topqueues --errors
pmta --help

When PowerMTA won't start use:
Quote
pmtad --debug
When all else fails-->support@port25.com