• Queue delivery order

    From Thorsten Glaser@21:1/5 to All on Sun Apr 16 01:53:34 2023
    Hi,

    I’ve got a… problem? feature request? anyway, an issue with a
    sendmail 8.14.9 installation that runs in “queue only + queue
    runner” mode:

    # /usr/sbin/sendmail -L sm-mta -bd -odq -q12m

    When I send two mails and then trigger a queue run manually
    (sudo sendmail -v -q) or the -q12m hits the second mail is
    ALWAYS delivered before the first.

    I need this to be changed so the oldest mails are tried first.

    So far, so good. I found QueueSortOrder and when I use…

    $ sudo mailq -O QueueSortOrder=time

    … I get the correct order, but…

    $ sudo sendmail -O QueueSortOrder=time -v -q

    … still sends them in the reverse order. Same for =modification.

    Is this possible at all? A bug in the old version, since fixed?
    Any advice?

    Thanks in advance,
    //mirabilos (from IRC)
    --
    21:49⎜<allamoox:#sendmail> I have a question guys,
    ⎜ Can I use my PC as SMTP server, I use Windows 7 .
    ⎜ Already googled and Installed IIS
    ⎜ but Still I can't send E-mail

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Thorsten Glaser on Sun Apr 16 04:34:19 2023
    Thorsten Glaser wrote:

    When I send two mails and then trigger a queue run manually
    (sudo sendmail -v -q) or the -q12m hits the second mail is
    ALWAYS delivered before the first.

    What's the time difference between sending those two mails?
    If it's not at least 1s then you basically get random ordering

    Check the timestamps in the queue:
    grep '^T' /var/spool/mq*/qf*
    (use the right queue path for your setup)


    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thorsten Glaser@21:1/5 to All on Sun Apr 16 21:50:59 2023
    Claus Aßmann dixit:

    What's the time difference between sending those two mails?
    If it's not at least 1s then you basically get random ordering

    Oh. It seems I had two issues: no QueueSortOrder in the normal
    case (where several seconds to minutes were between the mails)
    and sending them to fast when manually trying whether adding
    QueueSortOrder fixes things. Now…

    $ sudo sendmail -O QueueSortOrder=time -v -q

    … sends the mails in the submission order, when I send them
    with some delay.

    Thanks!

    Now to figure out how to put that into the .mc instead of
    just hacking up the .cf…

    bye,
    //mirabilos
    --
    (gnutls can also be used, but if you are compiling lynx for your own use,
    there is no reason to consider using that package)
    -- Thomas E. Dickey on the Lynx mailing list, about OpenSSL

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Thorsten Glaser on Mon Apr 17 00:52:54 2023
    Thorsten Glaser wrote:

    $ sudo sendmail -O QueueSortOrder=time -v -q

    Now to figure out how to put that into the .mc instead of
    just hacking up the .cf

    See cf/README

    confQUEUE_SORT_ORDER QueueSortOrder [Priority] Queue sort algorithm:
    Priority, Host, Filename, Random,
    Modification, or Time.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)