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

Can retry interval be configured? #133

Open
cscottpnw opened this issue Feb 27, 2024 · 8 comments
Open

Can retry interval be configured? #133

cscottpnw opened this issue Feb 27, 2024 · 8 comments

Comments

@cscottpnw
Copy link

Is it possible to configure the delivery retry interval?

@corecode
Copy link
Owner

i don't think so. the retry is exponential, i think.

@cscottpnw
Copy link
Author

Ok, thanks.

Anything stupid/dangerous about running a dma -q every 5 minutes via cron?

@corecode
Copy link
Owner

You should be fine, but it won't do anything. What are you trying to do?

@cscottpnw
Copy link
Author

My backup system, which backs up my email with the email service stopped, doesn't finish/exit until its email report is delivered. I don't bring mail server backup until the backup is complete. Chicken/egg.

My intent is to run dma with the DEFER option set so it will accept the report email, and allow the backup command to exit so the email server can be started. The report email will then be delivered when the next dma -q runs. Right now, I have a sendmail -i process issued by the backup system that is waiting a long time. At least several hours before its eventually delivered.

The above seems a bit of a kludge, so I may just install Postfix on the backup server. Just trying to make the defaults of my new FBSD 14.0 install work as-is.

@corecode
Copy link
Owner

How does the backup system know that the report has been delivered? dma should exit with success once the queue file has been written.

@cscottpnw
Copy link
Author

AMANDA, the backup utility, spawns off sendmail -i <recipient address> (dma) process that holds the parent process open until it the mail delivery succeeds.

My observation has been that the sendmail process remains running until the mail system comes up. A complicating factor is the mail system being backed up hosts the backup report recipient address.

Workflow:

  1. Mail service is stopped on remote host
  2. Backup begins, which includes mail system
  3. Back up completes
  4. Backup parent process spawns child process of sendmail -i <recipient address> (dma)
  5. Mail delivery fails because mail service is still down.
  6. The sendmail process remains running in the backup indefinitely causing the backup parent process to also remain running

@corecode
Copy link
Owner

dma will daemonize once the queue file has been written, which means that it'll fork into the background and the parent exits. Is there some special code that deals with process groups?

@cscottpnw
Copy link
Author

The same sendmail processes waiting behavior is generated by other services such as Nagios (monitoring). e.g. sendmail -i (dma).

It may just be something on this server. Its a new installation of FreeBSD 14.0. Maybe there's something about the default MTA setup that's causing sendmail to wait for delivery. If I find the answer, I'll post it here.

Thanks for your help!

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

2 participants