[exim] Count all (incl. non local) recipients?

2021-07-13 Thread MRob via Exim-users
Hi, I was trying and find like $rcpt_count or $recipients_count for full 
count of addresses in TO/CC for incoming message. But these $rcpt_count 
or $recipients_count are for count envelope recipients (what's 
difference?)


I am wonder how we can look at TO:/CC: header which has many recipients 
but most are not for local domains? To get overall count of 
addresses/recipients at all domains in the TO: and CC: fields? Sorry if 
this is FAQ I tried to search mailing list


--
## 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] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-13 Thread Heiko Schlittermann via Exim-users
Brent Clark via Exim-users  (Di 13 Jul 2021 11:35:39 CEST):
> Good day Guys
> 
> Where I work, we have a story where we need to route authenticated mail via
> a smarthosts and non authenticated out another smarthost.
> 
> Would anyone perhaps have a suggestion of how I can achieve this.
> My Googling is not of much use today.

And then use this as a router condition

begin routers

smarthost:
driver = manualroute
route_data = ${if def:authenticated_id {SMART_AUTH} 
{SMART_NOAUTH}}
…

But, this is untested, just meant as a sketch.

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] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-13 Thread Dominic Benson via Exim-users
I would set an acl_m_ var when you accept authenticated mail, and then check 
that in the condition of your (authenticated smarthost) router, immediately 
before the default smarthost for unauth senders.

Heavily abbreviated illustration:

(acl section)
  accept
authenticated = *
set acl_m_authenticated = 1


(router section)
smarthost_authusers:
  condition = $acl_m_authenticated
  driver = manualroute
  route_list = * auth.smarthost.address

smarthost_other:
  driver = manualroute
  route_list = * default.smarthost.address


> On 13 Jul 2021, at 10:35, Brent Clark via Exim-users  
> wrote:
> 
> Good day Guys
> 
> Where I work, we have a story where we need to route authenticated mail via a 
> smarthosts and non authenticated out another smarthost.
> 
> Would anyone perhaps have a suggestion of how I can achieve this.
> My Googling is not of much use today.
> 
> Many thanks in advance.
> 
> Regards
> Brent Clark
> 
> 
> -- 
> ## 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/

-- 
## 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] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-13 Thread Brent Clark via Exim-users

Good day Guys

Where I work, we have a story where we need to route authenticated mail 
via a smarthosts and non authenticated out another smarthost.


Would anyone perhaps have a suggestion of how I can achieve this.
My Googling is not of much use today.

Many thanks in advance.

Regards
Brent Clark


--
## 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] How to check size or content of text part only?

2021-07-13 Thread Jeremy Harris via Exim-users

On 13/07/2021 09:19, MRob via Exim-users wrote:

 $message_body has boundary parts and content-type headers and the encoded pdf 
attachment. Howcan we do regular expr. for message text part only. I not sure 
if message has plaintext with html or not but I think just plaintext. 
Alternate, how can we test $message_size only for text part?


Mave a look around
http://exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html#SECTscanmimepart

and $mime_content_size
--
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/


[exim] How to check size or content of text part only?

2021-07-13 Thread MRob via Exim-users
Hi I wanted to add a test in exim acl config to catch current 
hotmail spam when body only has something like:


fypaz uin

but $message_body has boundary parts and content-type headers and the 
encoded pdf attachment. Howcan we do regular expr. for message text part 
only. I not sure if message has plaintext with html or not but I think 
just plaintext. Alternate, how can we test $message_size only for text 
part?


--
## 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/