Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

errors_to

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


Klaus+exim at Ethgen

Jun 14, 2012, 6:29 AM

Post #1 of 5 (450 views)
Permalink
errors_to

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello folks,

I have a small problem with errors_to. I have to send errors for several
mails to a special address. That work fine using the errors_to setting.
But the errors_to also set the envelope-from to the respective address.
That must not happens at all. The envelope-from must be the original
one.

I tried to set address_data to $sender_address in the router as advised
and use that for return_path in transport but that does not work.

Is there any way to enforce sending errors on that host to a different
person than to the envelope sender without modifying it?

Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus [at] Ethgen>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQGcBAEBCgAGBQJP2eczAAoJEKZ8CrGAGfasWwkL/Rh/h2yxCbHbZT9i2b0jMBS5
SQqLJF0c2FazYDkR3JrzZVdLkuOrOHVXGRoC/WFQyuO2hUL65JWx4v8pky5qrAJ1
YHyI7+CVXea2TexOmfIUXUyEFHUc3ovJ/EPMu6J5Zh8mOcWS+/8OTvkhDQu8K8aM
LFR6pNWLCh9dELcqaHSw0qum+AQL2+dKRG0Q+QeeaUSS0Duz/wUAyq2yhlxVVWxD
nWbckC1pPZCgM6oyBikw6Q82TN0iWEaF+bRoufBo/sHRidQSBUBM9aEjm3lxY4KQ
cftieoFOGC/0TKLA82KrySFmwXIKoRNG8kkB8JwUXcO3n010IZxHPgMYJ/tSeQiE
iaYhONmKTQOFqPwyBBEAqyYffjkyDHNmNgSAFyGhFOe9d186SRtU6QqyyrpOTZO+
K8eqAkN1ZHr4QR89i6h8fFCyGuzSNEvsCdnczVOvlEjhtMJZhNZwTye0nfJ3mDyw
S9Nn1b8MXk/i09213OPqTBON9nRHV1ssduc15pnL9A==
=UW4r
-----END 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/


wbh at conducive

Jun 14, 2012, 8:27 AM

Post #2 of 5 (441 views)
Permalink
Re: errors_to [In reply to]

Klaus Ethgen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hello folks,
>
> I have a small problem with errors_to. I have to send errors for several
> mails to a special address. That work fine using the errors_to setting.
> But the errors_to also set the envelope-from to the respective address.
> That must not happens at all. The envelope-from must be the original
> one.
>
> I tried to set address_data to $sender_address in the router as advised
> and use that for return_path in transport but that does not work.
>
> Is there any way to enforce sending errors on that host to a different
> person than to the envelope sender without modifying it?
>
> Regards
> Klaus

I may be dense (again) but that appears to be two different needs?

$envelope_from handling/re-writing/NOT - for an edge-case ONLY,
..and choice of report destination?

All CAN be handled however you need them to be.

If the destination is not [the | a] sysadmin, rewrite control rules may
be in order.

As our errors were few, and seldom mysterious, we found it simpler to
justify - or not - a look at logs and the 'original' - archived with an
'unseen' router if/as/when appropriate.

YMMV

Bill
--
韓家標

--
## 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-users at spodhuis

Jun 14, 2012, 6:16 PM

Post #3 of 5 (439 views)
Permalink
Re: errors_to [In reply to]

On 2012-06-14 at 14:29 +0100, Klaus Ethgen wrote:
> I have a small problem with errors_to. I have to send errors for several
> mails to a special address. That work fine using the errors_to setting.
> But the errors_to also set the envelope-from to the respective address.
> That must not happens at all. The envelope-from must be the original
> one.
>
> I tried to set address_data to $sender_address in the router as advised
> and use that for return_path in transport but that does not work.
>
> Is there any way to enforce sending errors on that host to a different
> person than to the envelope sender without modifying it?

Not really, that comes to mind, other than the documented approach,
which should work. It's tested in the test suite, as test 0253.

Perhaps you could provide more details about how you configured it,
including routers and transports, what actually happened, and the
log-lines from the delivery?

-Phil

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


Klaus+exim at Ethgen

Jun 20, 2012, 5:36 AM

Post #4 of 5 (414 views)
Permalink
Re: errors_to [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

Am Fr den 15. Jun 2012 um 2:16 schrieb Phil Pennock:
> On 2012-06-14 at 14:29 +0100, Klaus Ethgen wrote:
> > I have a small problem with errors_to. I have to send errors for several
> > mails to a special address. That work fine using the errors_to setting.
> > But the errors_to also set the envelope-from to the respective address.
> > That must not happens at all. The envelope-from must be the original
> > one.
> >
> > I tried to set address_data to $sender_address in the router as advised
> > and use that for return_path in transport but that does not work.
> >
> > Is there any way to enforce sending errors on that host to a different
> > person than to the envelope sender without modifying it?
>
> Not really, that comes to mind, other than the documented approach,
> which should work. It's tested in the test suite, as test 0253.

Hmm.. That is more or less as I did. Well, it seems that I tuned the
wrong transport. :-( Now it works. B-)

Thanks
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus [at] Ethgen>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQGcBAEBCgAGBQJP4cPXAAoJEKZ8CrGAGfas3QwL/1Q+0DF2j6bAvQnhUN05X4DK
NR7WuzIeWVebr4GTiWgVudHCEV5kXNIyzfb0OGwYnDthEWQqaKwogaEmPv/FuNjo
jgQTyODB/nVdRiu7faR1YfymzRw91mXQ9JTW+ycRo7SHjgJSYP1FsG7rExErrJV5
EAYijwQyZUlXi2OS+9cB7FOTqGRxKCeFDM4Veaz5PCPCbmB+s4B5c8a96K0cgWew
cT4S9dduq1C6H7xpPcQwOe8ulc5E8+EyigUmWVu11TCzgoorF6sPlAyfWXqHAObn
HnZ/zGdqM7osxLnTvukOvM5Cm0SyQ3IbBhzJ1wjjlmXczD4+hugUXIRzl4+qMj3C
JbjNVimyypHDwcj9hFe5Z7N0mtjg8vGb8WcDo9KVkkbIkXMY2ElRxN9tKJGX1ICx
BZQlmryZU5EkdLCTwcwovn4iT2+3j7GRHUMiO9kAAtPkk+qGubI6GaF27eumNdl1
aOghbnLxuMYUzQA7tz/CE4iUNMHXth9b/gMBXnbfWg==
=AFfJ
-----END 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/


Klaus+exim at Ethgen

Jun 27, 2012, 9:54 AM

Post #5 of 5 (383 views)
Permalink
Re: errors_to [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I have to roll up the problem again. First here is the relevant parts
how I solved it:
smarthost:
debug_print = "R: smarthost for $local_part@$domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp_smarthost
route_list = * DCsmarthost byname
hosts_randomize = true
host_find_failed = defer
same_domain_copy_routing = yes
address_data = $sender_address
errors_to = ${perl{ldap_get_hostmaster}{$sender_host_address}}
no_verify
no_more

...

remote_smtp_smarthost:
debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
driver = smtp
max_rcpt = 1
return_path = $address_data

Now I have a strange behaviour. If I send a mail to one or more
_different_ domains, everything is fine. But if, and only if, I send a
mail to two or more recipients on the same domain the envelope_from gets
set to <> for all recipients except the last one. The last one gets the
right recipient.

Anybody an idea what could get wrong in that case?

Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus [at] Ethgen>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQGcBAEBCgAGBQJP6zrDAAoJEKZ8CrGAGfashyML/ia2JI/dM/V7bo9Vjlp0tT2g
1O+BgwPoXASjeS235EMMrSMClVyZObIH77WxoEsQuo00W5gMRIpC2sDJrxpBA4fT
4equmaRprxuowMKtYvPwb4M6CNcOZm6F5vPsqqQjKglT4BN36jAF1Dt+3WaKv+SQ
LVsUkHdArQCUauU87bZyNGlDjOAw/vObKiwf1f+ib06kSoo2ta60pFwSedBk0X97
jlUnslI2/WQ+chopJT3tX2Vl2MTk9TrMFeSqHCAN/2Q4hGBI8g6S4DEUz0rKxvmv
qrsuitjSZUgyZw+oKfY8rLn15GHoj4CjcD33OC0hbUI5/YwsapCtY0oloQgH7GK0
G5jwht8nWhSjixFnteTbHGCZkbXB252AgcftfnEx4EAE6S150B1ubHd9s6lhndrn
XyCxdbGAwEs9XrgKmofWv0cLMc9q/bwAILMV+TgHsxz2Z6nSvOwz8RWshcDXIUL2
CrgEuuNXOpcRsY6DeRa52bhuhXkdHYmo+NKTkKzhkg==
=sdKx
-----END 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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.