Solved Retrieve sended webform mails

graffx

Verified User
Joined
Dec 7, 2020
Messages
48
Is it possible to look into mails (as admin) which are send by a webform.

I have a client on my VPS and they have external mail (Office 365).
The MX settings where set as send by VPS and not external.
All mails send by the webform are not inbox and I would like to retrieve them somehow, or at least see to which mailaddresses the form has send to.
 
Last edited:
or at least see to which mailaddresses the form has send to.
That's where logfiles are for.

Check the MX page of the customer, if the "use this server to handle mail" setting is unchecked too and Microsoft 365 settings are activated.

If it's authenticated mail via the webform, check the /var/log/exim/mainlog file for information.
If it's php mail by the webform, you could have a look in the /home/user/.php/php-mail.log file (mind the dot in front of php directory).
 
Hi Richard, thanks for your answer.
Works fine now its unchecked. But when I look at the log (php form) I only see the log from today. I need it from last month.
 
Hello.
You might have to change some settings then. The php-mail.log is rotated, so you get php-mail.log.1 and .2 and .3 and .4 so this is 4 days.
I don't know how you can see for a month. Maybe in the domain logfiles?

@jamgames2 do you have an idea?
 
Yes you are right, there are 4 files of last 4 days. But indeed would like to see older ones too.
 
In /usr/local/directadmin/conf/directadmin.conf ?
I see logs_to_keep=5
Do I need to change that?
And I guess there is no more logs from last month?
 
Do I need to change that?
No that is the amount of logs to keep.

You have really to put in what @jamgames2 said, so:
logs_to_keep_days=30
if you want to keep for 30 days. This way yo will have 5 logfiles, each containing 30 days of log.

Adjust to your need.

If this line dus not exist, then you can add it to the directadmin.conf file. Don't forget to restart direct admin afterwards.
 
Thanks, but is it correct this will be a future log and I can't retrieve older logs? In other words, can't get the older logs back?
Also not sure how to restart DA. I have used /admin/updates/ and restarted DA (in DA and not in terminal) but don't know if that will do it.
 
In other words, can't get the older logs back?
No. You can't re-create what already has gone. You might find some info in the domain logfiles themselves maybe.

For some odd reason they removed directadmin from the service monitor, previously one could restart it from there.

Via ssh you can use either command:
service directadmin restart
or
systemctl restart directadmin

I always use the first one, easier to remember imho. :)
 
Back
Top