Re: [exim] who starts the delivery process?

2022-12-26 Thread Jasen Betts via Exim-users
On 2022-12-26, Askhat Tokabay via Exim-users  wrote:
> Helo
> I found in the documentation:
> Delivery processes may be started as a
> result of a message’s arrival, by a queue runner process,
> or by an administrator using the -M option.
>
> The question is the following:
> Can you tell me who starts the delivery process
> when a message arrives?

Usually message arrival, but there are settigns that can disable that
in certain conditions and then one of the others is needed to cause
delivery.

> Or how does the delivery process
> know that a message has arrived?

The process that receives the message fork()s a process to do the
delivery and passes it the exim_id (etc)

Exim is heavily multiprocess.

-- 
  Jasen.

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] local delivery fails after server move

2022-12-26 Thread Heiko Schlittermann via Exim-users
This router is ran for all your local domains. If it creates a new
address @+local_domains, there is no chance to get to the routers
further down the chain: A new address means, the routing starts again at
the very first router, and eventually it will reach your pgsql_aliases
again, which doesn't create a new address (declines), but, as "no_more"
is set, the address won't tried with the following routers.

You can either drop the "no_more" option, or, if the outcome of the
pgsql_aliases can *always* be handled by the routers further down in the
chain, you can use "redirect_router = userforward" in your pgsql_aliases
routers.

> pgsql_aliases:
>   debug_print = "R: pgsql alias $local_part @ $domain"
>   driver = redirect
>   domains = +local_domains
>   allow_fail
>   allow_defer
>   data = ${lookup pgsql{select a_target from current_alias_list \
>    where a_localpart = '${quote_pgsql:$local_part}' \
>     and domain='${quote_pgsql:$domain}'}}
>   file_transport = address_file
>   pipe_transport = address_pipe
>   no_more
> 
> userforward:
>   debug_print = "R: User Forward"
>   driver = redirect
>   check_local_user
…

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
 SCHLITTERMANN.de  internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --- key ID: F69376CE -


signature.asc
Description: PGP signature
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Gedalya via Exim-users

On 12/26/22 18:08, Askhat Tokabay wrote:
Do I understand correctly that the reception process start a delivery 
process?


Yes, when immediate deliveries are done, which is the usual case. 
Sometimes exim will queue a message instead, and then no delivery 
attempt will be made until the next queue run.




--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Askhat Tokabay via Exim-users
Ok, thank you.

пн, 26 дек. 2022 г. в 16:11, Gedalya :

> On 12/26/22 18:08, Askhat Tokabay wrote:
> > Do I understand correctly that the reception process start a delivery
> > process?
>
> Yes, when immediate deliveries are done, which is the usual case.
> Sometimes exim will queue a message instead, and then no delivery
> attempt will be made until the next queue run.
>
>
>
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Jeremy Harris via Exim-users

On 26/12/2022 04:12, Askhat Tokabay via Exim-users wrote:

I found in the documentation:
Delivery processes may be started as a
result of a message’s arrival, by a queue runner process,
or by an administrator using the -M option.

The question is the following:
Can you tell me who starts the delivery process
when a message arrives?

Or how does the delivery process
know that a message has arrived?


I susppect you may e thinking there is only one,
long-lived, delivery process - which does all deliveries.

That isn't so.  A process is started when a delivery is
needed.  It does what it can, which might handle more
than one message, and then terminates.  There could be
multiple delivery processes running in parallel, and there
could be none at all, at any given moment.
--
Cheers,
  Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Askhat Tokabay via Exim-users
This is a theoretical question, I write
exim instructions.

The documentation says that there are four types of processes:
1. The daemon process
2. Reception processes
3. Queue runner processes
4. Delivery processes

With respect to the first three, everything is clear,
the main process starts the second and third.

The fourth is launched by the third and admin,
the question is who starts it when the message arrives?

пн, 26 дек. 2022 г. в 15:33, Niels Kobschätzki :

> Maybe you should tell us what you want to do.
>
> Best,
>
> Niels
>
> On 26. Dec 2022, at 10:27, Askhat Tokabay 
> wrote:
>
> 
> Thanks,
>
> as I understand it,
> the delivery process,
> that the message has arrived,
> can be told by the process of
> receiving the message,
> which puts the message in the queue?
>
> Or can it tell the service
> that is listening on SMTP
> that it learns this from
> the receiving process?
>
> пн, 26 дек. 2022 г. в 14:58, Niels Kobschätzki :
>
>> Hi,
>>
>>
>> On 26. Dec 2022, at 09:41, Askhat Tokabay via Exim-users <
>> exim-users@exim.org> wrote:
>>
>> Helo
>> I found in the documentation:
>> Delivery processes may be started as a
>> result of a message’s arrival, by a queue runner process,
>> or by an administrator using the -M option.
>>
>> The question is the following:
>> Can you tell me who starts the delivery process
>> when a message arrives?
>>
>> Or how does the delivery process
>> know that a message has arrived?
>>
>>
>> My understanding is: smtp-session gets opened from a MUA or MTA via one
>> of the ports exim listens on: delivery process gets started because of the
>> smtp-session
>>
>> A mail couldn’t be delivered and sits in the queue: queue runner starts
>> it at some point
>>
>> Administrator runs something like “exim -M $message-id” and a delivery
>> process gets started.
>>
>> Best,
>>
>> Niels
>>
>
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Gedalya via Exim-users

On 12/26/22 12:12, Askhat Tokabay via Exim-users wrote:

Helo
I found in the documentation:
Delivery processes may be started as a
result of a message’s arrival, by a queue runner process,
or by an administrator using the -M option.

The question is the following:
Can you tell me who starts the delivery process
when a message arrives?

Or how does the delivery process
know that a message has arrived?

Thanks in advance for your reply.


First a few key facts:

1. There is only one Exim binary

2. Exim typically has one or two daemons running, if two then one 
listens on SMTP port(s) and the other only launches queue runners 
periodically.


3. Since there is only one binary, all exim processes are the same 
binary executed with different command-line options and sometimes as 
different users.


Starting a delivery process simply means exim starts a new exim process 
with the relevant command-line options. For local deliveries, the 
delivery process will also change to the user ID of the recipient. The 
process does the delivery and then exits.


When an SMTP connection comes in, exim forks rather soon. We now have a 
process handling that SMTP connection. Once a message has arrived, and 
it's time to attempt a delivery, that process will start the delivery 
process, not by just forking but by executing a new exim process, to 
allow for changing privileges.


Only the daemons are long-running. All other processes are started for a 
certain task and they exit when it is done.




--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Askhat Tokabay via Exim-users
You wrote:
Once a message has arrived, and
it's time to attempt a delivery, that process will start the delivery
process ...

Do I understand correctly that the reception process start a delivery
process?

пн, 26 дек. 2022 г. в 16:00, Gedalya :

> On 12/26/22 12:12, Askhat Tokabay via Exim-users wrote:
> > Helo
> > I found in the documentation:
> > Delivery processes may be started as a
> > result of a message’s arrival, by a queue runner process,
> > or by an administrator using the -M option.
> >
> > The question is the following:
> > Can you tell me who starts the delivery process
> > when a message arrives?
> >
> > Or how does the delivery process
> > know that a message has arrived?
> >
> > Thanks in advance for your reply.
>
> First a few key facts:
>
> 1. There is only one Exim binary
>
> 2. Exim typically has one or two daemons running, if two then one
> listens on SMTP port(s) and the other only launches queue runners
> periodically.
>
> 3. Since there is only one binary, all exim processes are the same
> binary executed with different command-line options and sometimes as
> different users.
>
> Starting a delivery process simply means exim starts a new exim process
> with the relevant command-line options. For local deliveries, the
> delivery process will also change to the user ID of the recipient. The
> process does the delivery and then exits.
>
> When an SMTP connection comes in, exim forks rather soon. We now have a
> process handling that SMTP connection. Once a message has arrived, and
> it's time to attempt a delivery, that process will start the delivery
> process, not by just forking but by executing a new exim process, to
> allow for changing privileges.
>
> Only the daemons are long-running. All other processes are started for a
> certain task and they exit when it is done.
>
>
>
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Odhiambo Washington via Exim-users
On Mon, Dec 26, 2022 at 12:34 PM Askhat Tokabay via Exim-users <
exim-users@exim.org> wrote:

> Thanks,
>
> as I understand it,
> the delivery process,
> that the message has arrived,
> can be told by the process of
> receiving the message,
> which puts the message in the queue?
>
> Or can it tell the service
> that is listening on SMTP
> that it learns this from
> the receiving process?
>

Exim is usually can be started in several ways:

exim_flags="-bd -q10m"
exim_flags="-bd"
...


Now go read about the options here:
https://exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html


PS: Try to not top-post.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Niels Kobschätzki via Exim-users
   Maybe you should tell us what you want to do.

   Best,
   Niels

 On 26. Dec 2022, at 10:27, Askhat Tokabay 
 wrote:

   �
   Thanks,
   as I understand it,
   the delivery process,
   that the message has arrived,
   can be told by the process of
   receiving the message,
   which puts the message in the queue?
   Or can it tell the service
   that is listening on SMTP
   that it learns this from
   the receiving process?
   pn, 26 dek. 2022 g. v 14:58, Niels Kobsch�tzki
   <[1]ni...@kobschaetzki.net>:

   Hi,

 On 26. Dec 2022, at 09:41, Askhat Tokabay via Exim-users
 <[2]exim-users@exim.org> wrote:

   �Helo
   I found in the documentation:
   Delivery processes may be started as a
   result of a message's arrival, by a queue runner process,
   or by an administrator using the -M option.
   The question is the following:
   Can you tell me who starts the delivery process
   when a message arrives?
   Or how does the delivery process
   know that a message has arrived?

   My understanding is: smtp-session gets opened from a MUA or MTA via one
   of the ports exim listens on: delivery process gets started because of
   the smtp-session
   A mail couldn't be delivered and sits in the queue: queue runner starts
   it at some point
   Administrator runs something like "exim -M $message-id" and a delivery
   process gets started.
   Best,
   Niels

References

   1. mailto:ni...@kobschaetzki.net
   2. mailto:exim-users@exim.org


smime.p7s
Description: S/MIME cryptographic signature
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Askhat Tokabay via Exim-users
Thanks,

as I understand it,
the delivery process,
that the message has arrived,
can be told by the process of
receiving the message,
which puts the message in the queue?

Or can it tell the service
that is listening on SMTP
that it learns this from
the receiving process?

пн, 26 дек. 2022 г. в 14:58, Niels Kobschätzki :

> Hi,
>
>
> On 26. Dec 2022, at 09:41, Askhat Tokabay via Exim-users <
> exim-users@exim.org> wrote:
>
> Helo
> I found in the documentation:
> Delivery processes may be started as a
> result of a message’s arrival, by a queue runner process,
> or by an administrator using the -M option.
>
> The question is the following:
> Can you tell me who starts the delivery process
> when a message arrives?
>
> Or how does the delivery process
> know that a message has arrived?
>
>
> My understanding is: smtp-session gets opened from a MUA or MTA via one of
> the ports exim listens on: delivery process gets started because of the
> smtp-session
>
> A mail couldn’t be delivered and sits in the queue: queue runner starts it
> at some point
>
> Administrator runs something like “exim -M $message-id” and a delivery
> process gets started.
>
> Best,
>
> Niels
>
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] who starts the delivery process?

2022-12-26 Thread Niels Kobschätzki via Exim-users
Hi,

> 
> On 26. Dec 2022, at 09:41, Askhat Tokabay via Exim-users 
>  wrote:
> 
> Helo
> I found in the documentation:
> Delivery processes may be started as a
> result of a message’s arrival, by a queue runner process,
> or by an administrator using the -M option.
> 
> The question is the following:
> Can you tell me who starts the delivery process
> when a message arrives?
> 
> Or how does the delivery process
> know that a message has arrived?

My understanding is: smtp-session gets opened from a MUA or MTA via one of the 
ports exim listens on: delivery process gets started because of the smtp-session

A mail couldn’t be delivered and sits in the queue: queue runner starts it at 
some point

Administrator runs something like “exim -M $message-id” and a delivery process 
gets started. 

Best,

Niels

smime.p7s
Description: S/MIME cryptographic signature
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] who starts the delivery process?

2022-12-26 Thread Askhat Tokabay via Exim-users
Helo
I found in the documentation:
Delivery processes may be started as a
result of a message’s arrival, by a queue runner process,
or by an administrator using the -M option.

The question is the following:
Can you tell me who starts the delivery process
when a message arrives?

Or how does the delivery process
know that a message has arrived?

Thanks in advance for your reply.
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/