Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Mail folder for the dmarc user? #271

Closed
VimBowen opened this issue Mar 28, 2023 · 1 comment
Closed

No Mail folder for the dmarc user? #271

VimBowen opened this issue Mar 28, 2023 · 1 comment

Comments

@VimBowen
Copy link

Hi, sorry to bother you again. I have been running my server just fine with your script. A friend wanted me to set up a server for them and look after it, but I keep seeing an undelivered email in the mail.err log. It's been sent to 'root@mydomain.com' a quick search mentioned something about aliasing... but that's not really my issue per se.

Reading the undelivered email, it's a message saying that the weekly cronjob to clear the dmarc directories failed because it could not find the Mail directory for the dmarc user. I checked in /home/dmarc and there are only files for bash.

I compared this to my the dmarc directory on my server, and I have a Mail folder with an Inbox and dovecot files. In the Inbox there is only one message in the new folder. I have no idea idea how it got there, so I assume it was generated via the script as it shares the same creation date/time as the dmarc directory.

Back on my friend's server this does not exist.

The only thing I can think of, is if I send an email to dmarc@theirdomain.com to generate the Mail folder? But would just like some advice as I don't want to break anything, and I can't find much online about having a dmarc user.

Thanks in advance.

@VimBowen
Copy link
Author

My bad, I didn't quite understand dmarc or how the reports were generated. I sent an email from my friend's server to google and I received a report today, thereby generating the missing directory.

Would it be possible to edit the cron.weekly file so that it doesn't send an error if the Mail directory is not yet generated?

Also, what is the script cleaning? I noticed that it will delete *.mail* but the message received in the 'new' folder is *.mydomain*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant