Re: [exim] exim rewrites the "From:" address

2023-02-28 Thread Nick via Exim-users
A seg, 27-02-2023 às 20:38 +, Andrew C Aitchison via Exim-users
escreveu:
> On Mon, 27 Feb 2023, Nick via Exim-users wrote:
> 
> > That doesn't address the question - no-one doubted that Exim 4.xx
> > is able to preserve the From: address.
> > The point is, what is it in the config files that makes it rewrite
> > the From: address; or alternatively, what should be in the config
> > files to make it preserve the From: address?
> 
> Well, I would look at the header rewrite section first. It starts
> with
> begin rewrite
> and continues until the nexxt begin (or the end of the file).
> 
> -- 
> Andrew C. Aitchison  Kendal, UK
>     and...@aitchison.me.uk
> 

The 'begin rewrite' section in my /var/lib/exim4/config.autogenerated
is as follows:
--cut
begin rewrite

.ifndef NO_EAA_REWRITE_REWRITE
*@+local_domains "${lookup{${local_part}}lsearch{/etc/email-addresses}\
{$value}fail}" Ffrs
*@ETC_MAILNAME "${lookup{${local_part}}lsearch{/etc/email-addresses}\ 
{$value}fail}" Ffrs
.endif

begin authenticators
cut--
I guess the next step is to display the output of
exim -bP macros | grep NO_EAA_REWRITE_REWRITE
which produces no output at all, so NO_EAA_REWRITE_REWRITE
seems not to be set. So exim is looking at /etc/email-addresses.
I'd overlooked /etc/email-addresses. Seems that putting
an email address in there results in all email from that
user getting its From: address rewritten.
So I took out that user from the /etc/email-addresses
file. Now, that user can use mailx -r and it does what I want.
Your message solved my problem.
Thank you!

-- 
## 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 customize the autoreply email subject?

2023-02-28 Thread Jeremy Harris via Exim-users

On 28/02/2023 08:54, Cyborg via Exim-users wrote:

Am 28.02.23 um 00:27 schrieb Tony via Exim-users:

 Now, the auto reply email subject start with "*Autoreply*:" , I want to change 
it.  How?


Sounds like a custom rule:

grep -r -i "Autoreply" /etc/exim/*


The autoreply transport has a "subject" option
(and the string "Autoreply" is no in the source code).

https://exim.org/exim-html-current/doc/html/spec_html/ch-the_autoreply_transport.html
--
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] How to customize the autoreply email subject?

2023-02-28 Thread Cyborg via Exim-users

Am 28.02.23 um 00:27 schrieb Tony via Exim-users:
 Now, the auto reply email subject start with "*Autoreply*:" , I want 
to change it.  How?


Sounds like a custom rule:

grep -r -i "Autoreply" /etc/exim/*

Best regards,
Marius

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