[exim] Re: Local DKIM signing

2023-12-25 Thread Hardy via Exim-users

Am 24.12.23 um 14:50 schrieb Jeremy Harris via Exim-users:

You'd have to first smtp-deliver these local-dest mails to yourself.

Use a manualroute router to pick them out of the flow first time round,
and send to 127.0.0.1
This could be done, for example, by selecting ones lacking a dkim signature
but with a local source.


Thanks Jeremy, this looks simple enough, but I don't know how to do this last 
bit. How can I check in a router whether the message is signed already? 
dkim_status is defined in ACLs only. Without switching out I will create a loop.

Hardy


smime.p7s
Description: Kryptografische S/MIME-Signatur

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Re: manualroute router

2023-12-25 Thread Jeremy Harris via Exim-users

On 12/25/23 06:51, Odhiambo Washington via Exim-users wrote:

it
is routing ALL domains.



Conditions on a router tell it when not to run. If you don't
provide any restriction, it will always run.
--
Cheers,
  Jeremy


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Re: Local DKIM signing

2023-12-25 Thread Jeremy Harris via Exim-users

On 12/25/23 10:00, Hardy via Exim-users wrote:

 I don't know how to do this last bit. How can I check in a router whether the 
message is signed already?


Write a condition that looks for the dkim signature *header*.

--
Cheers,
  Jeremy


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Re: manualroute router

2023-12-25 Thread Odhiambo Washington via Exim-users
On Mon, Dec 25, 2023 at 2:12 PM Jeremy Harris via Exim-users <
exim-users@lists.exim.org> wrote:

> On 12/25/23 06:51, Odhiambo Washington via Exim-users wrote:
> > it
> > is routing ALL domains.
> >
>
> Conditions on a router tell it when not to run. If you don't provide any
> restriction, it will always run.
>

Thank you, Jeremy.

Merry Christmas.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Difficulty getting Exim Address rewriting working on Ubuntu Linux

2023-12-25 Thread Michael Lueck via Exim-users

Greetings,

Häid Jõule! / Joyful Christmas! 🌲✝️🌲✝️🌲

We are having difficulty getting Exim Address rewriting working on Ubuntu Linux.

The steps I have taken:

1) Configured the Debian / Ubuntu style configuration over to:

dc_use_split_config='true'

2) Put rewrite rules here: /etc/exim4/conf.d/rewrite/00_exim4-config_header

r...@hostname.subdomain.realdomain.com   realemailaddr...@realdomain.com   
FTfrst
r...@realdomain.com  realemailaddr...@realdomain.com   
FTfrst

3) Ran the following commands to update the Exim configuration:

sudo update-exim4.conf
sudo service exim4 restart

Send a test email, and it properly goes out to realemailaddr...@realdomain.com

So then I wanted to wildcard so that I did not need to think of every possible 
variation the local mail might be coming from in order to bridge it to the real 
Internet.

Attempted rules:

root   
realemailaddr...@realdomain.com   FTfrst
hostname   
realemailaddr...@realdomain.com   FTfrst
subdomain  
realemailaddr...@realdomain.com   FTfrst

Those did not fire.

So I updated the syntax to:

root*  
realemailaddr...@realdomain.com   FTfrst
*hostname* 
realemailaddr...@realdomain.com   FTfrst
*subdomain*
realemailaddr...@realdomain.com   FTfrst

Those still do not fire. However

*  
realemailaddr...@realdomain.com   FTfrst

DOES work as an option!

I simplified the rewrite option list to:

*  
realemailaddr...@realdomain.com   Eh

I found test program:  exim -brw root

So am using that to now test the rules to see if they fire or not. The objective is to get exim to state that it will send the mail to realemailaddr...@realdomain.com address. The only way I can 
wildcard get Exim to do the rewrite is to run on the bare "*" rule.


What is wrong that other wild card attempts are not successful?

I am thankful,

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Re: Difficulty getting Exim Address rewriting working on Ubuntu Linux

2023-12-25 Thread Jeremy Harris via Exim-users

On 12/25/23 15:12, Michael Lueck via Exim-users wrote:

What is wrong that other wild card attempts are not successful?


Only asterisks at the start of a local-part (or domain) are usable
in that sort of match element.  You could, perhaps, use a full RE
instead.


Docs:
https://exim.org/exim-html-current/doc/html/spec_html/ch-address_rewriting.html 
 section 5
https://exim.org/exim-html-current/doc/html/spec_html/ch-address_rewriting.html 
 section 5
--
Cheers,
  Jeremy


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Re: Difficulty getting Exim Address rewriting working on Ubuntu Linux

2023-12-25 Thread Michael Lueck via Exim-users

Greetings Jeremy,


Jeremy Harris wrote:

Author: Jeremy Harris
Date: 2023-12-25 13:51 -500
To: exim-users
Subject: [exim] Re: Difficulty getting Exim Address rewriting working on Ubuntu 
Linux
On 12/25/23 15:12, Michael Lueck via Exim-users wrote:

What is wrong that other wild card attempts are not successful?


Only asterisks at the start of a local-part (or domain) are usable
in that sort of match element. You could, perhaps, use a full RE
instead.



A I perceived you mean that the asterisks only worked on either the 
address or system name side of the entire email address.

So I changed my rules on the test VM system to:


begin rewrite
root@* 
realemailaddr...@realdomain.com   Eh
*@hostname*
realemailaddr...@realdomain.com   Eh
*@*subdomain*  
realemailaddr...@realdomain.com   Eh



And these rewrite rules worked with the command line test, and then sending 
real test emails.

Waiting to update the configuration on the real server.

I anticipate success there as well.




Docs:
https://exim.org/exim-html-current/doc/html/spec_html/ch-address_rewriting.html 
section 5
https://exim.org/exim-html-current/doc/html/spec_html/ch-address_rewriting.html 
section 5



Yes, that page I had been working from to build these rewrite rules.



I appreciate the assistance very much!

I am thankful,

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] memory issue

2023-12-25 Thread Jim Pazarena via Exim-users
I created a new VM for exim . I've loaded many VMs .. this chassis has 
several active VMs actually.
I have never seen the following .. it seems like a chassis memory error 
.. however the other two VMs on this chassis run without issue. So I 
wonder ..
is there anything on exim that could -possibly- be triggering this ? 
SSL ? (this is FreeBSD 14.0)


Merry Christmas to all.


2023-12-25 10:34:15 SIGSEGV (fault address: 0xff7c)
2023-12-25 10:34:15 SIGSEGV (maybe attempt to write to immutable memory)
2023-12-25 10:34:15 SIGSEGV (44383 handling incoming connection from 
emailh.ca [23.235.65.100]

)
2023-12-25 10:34:15 SIGSEGV (fault address: 0xff7c)
2023-12-25 10:34:15 SIGSEGV (maybe attempt to write to immutable memory)
2023-12-25 10:34:15 SIGSEGV (44384 handling incoming connection from 
emailh.ca [23.235.65.100]

)
2023-12-25 10:34:15 SIGSEGV (fault address: 0xff7c)
2023-12-25 10:34:15 SIGSEGV (maybe attempt to write to immutable memory)
2023-12-25 10:34:15 SIGSEGV (44385 handling incoming connection from 
emailh.ca [23.235.65.100]

)
2023-12-25 10:34:15 SIGSEGV (fault address: 0xff7c)
2023-12-25 10:34:15 SIGSEGV (maybe attempt to write to immutable memory)
2023-12-25 10:34:15 SIGSEGV (44386 handling incoming connection from 
emailh.ca [23.235.65.100]

)


--
Jim Pazarena e...@paz.bz
Haida Gwaii - British Columbia - Canada

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Re: memory issue

2023-12-25 Thread Jeremy Harris via Exim-users

On 12/25/23 21:10, Jim Pazarena via Exim-users wrote:

is there anything on exim that could -possibly- be triggering this ?


Obviously yes.  But we can't guess what.  At least it's consistent;
deref of a value "-4".  What we really need is a stacktrace.
Were it a current Exim version I'd expect to see one, on FreeBSD.
What are you running?

Alternatively, can you set up for getting coredumps from setuid programs?
--
Cheers,
  Jeremy


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/