Force Relay information update on mailwatch

Bugs in eFa 4
Post Reply
victorburgos
Posts: 3
Joined: 13 May 2017 20:53

Force Relay information update on mailwatch

Post by victorburgos » 21 Nov 2020 05:25

Hi, thanks in advance for your help.
I need to know how can I manually update relay information for my messages.
I need to do this because there is a strange behavior and some messages have relay info and others do not.

This is a message with correct relay info updated after a few minutes when the email has been delivered:
relay information.png
relay information.png (16.39 KiB) Viewed 117 times
This is another message without relay information that is never updated (message has been delivered correctly):
no relay information.png
no relay information.png (22.25 KiB) Viewed 117 times
What command should I run to update this section?
I have tried
  • php /usr/bin/mailwatch/tools/Postfix_relay/mailwatch_mailscanner_relay.php --refresh
  • php /usr/bin/mailwatch/tools/Postfix_relay/mailwatch_postfix_relay.php --refresh
I have waited several hours and some are updated but other are never updated and I know the message has been delivered correctly.
Using MailScanner v1.2.15 running on eFa-4.0.3

User avatar
shawniverson
Posts: 3230
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Force Relay information update on mailwatch

Post by shawniverson » 21 Nov 2020 14:37

Those scripts are systemd controlled. Have you tried restarting the services for them instead?

victorburgos
Posts: 3
Joined: 13 May 2017 20:53

Re: Force Relay information update on mailwatch

Post by victorburgos » 21 Nov 2020 23:51

Thanks shawniverson, I found 2 services:
  • postfix_relay
  • milter_relay
I already have relay information.

One additional question:
Is relay information updated in real time by these services or is it done via cron job and how often?
I would like to understand better how this process works and who to speed it up when I need to check if messages have been delivered correctly.
Without that line, I have to ssh to efa, and grep logs which takes a lot of time.

Thanks.

User avatar
shawniverson
Posts: 3230
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Force Relay information update on mailwatch

Post by shawniverson » 22 Nov 2020 12:48

Those both run continuously in the background and monitor the logs for relay information. In cases of high mail volume, it can take time to process the backlogs.

Post Reply