Skip to content

Can retry interval be configured? #133

Open

Description

@cscottpnw

Is it possible to configure the delivery retry interval?

Activity

  1. corecode commented on Feb 27, 2024

    @corecode
    Owner

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

  2. cscottpnw commented on Feb 27, 2024

    @cscottpnw
    Author

    Ok, thanks.

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

  3. corecode commented on Feb 27, 2024

    @corecode
    Owner

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

  4. cscottpnw commented on Feb 27, 2024

    @cscottpnw
    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.

  5. corecode commented on Feb 27, 2024

    @corecode
    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.

  6. cscottpnw commented on Feb 28, 2024

    @cscottpnw
    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
  7. corecode commented on Feb 28, 2024

    @corecode
    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?

  8. cscottpnw commented on Feb 28, 2024

    @cscottpnw
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions