How to deliver a nonlocal address locally

This is a discussion on How to deliver a nonlocal address locally within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; Hi, I've experienced some problems with smarthost and automatical email address rewriting quite similar to the ones described at ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-09-2005
Steffen Wolf
 
Posts: n/a
Default How to deliver a nonlocal address locally

Hi,

I've experienced some problems with smarthost and automatical email
address rewriting quite similar to the ones described at
http://bugs.debian.org/309792

However my approach to a solution is slightly different, but let me
explain the problem first.

I've set up exim to deliver outgoing mail via a free mail service (gmx),
but then changed the account's password without telling exim. So all
outgoing mail was rejected by gmx and a delivery failure message was
generated by exim and now exim tried to send this failure notice to the
rewritten address (...@gmx), which of course also failed!

What happened then is that the failure notice got frozen and deleted
after two days, but it could have been delivered locally, if only I knew
how to tell exim that this particular email address (...@gmx) can be
delivered to ...@localhost instead.

How can I do this? How can I tell exim (exim4, debian, btw) to catch all
mails going to a given address (...@gmx) and deliver them locally to a
corresponding local address?


Btw. I noticed a line "freeze_tell = postmaster" in
/etc/exim4/conf.d/main/02_exim4-config_options which supposedly tells
postmaster about the frozen messages. Well, in short, it didn't. Is
there any possibility that this line was ignored, or does it have to be
activated by another switch?

This is the log entry for such a failure message:

2005-08-01 20:31:05 1Dzf45-00070w-O4
<= <> R=1Dzf3v-00070n-RY U=Debian-exim P=local S=4225
2005-08-01 20:31:08 1Dzf45-00070w-O4
cram_md5 authenticator failed H=mail.gmx.net [213.165.64.20]
535 5.7.0 {mp020} Incorrect username or password
2005-08-01 20:31:09 1Dzf45-00070w-O4
plain authenticator failed H=mail.gmx.net [213.165.64.20]
535 5.7.0 {mp020} Incorrect username or password
2005-08-01 20:31:11 1Dzf45-00070w-O4
login authenticator failed H=mail.gmx.net [213.165.64.20]
535 5.7.0 {mp020} Incorrect username or password
2005-08-01 20:31:15 1Dzf45-00070w-O4
** ...@gmx... R=smarthost T=remote_smtp: SMTP error from remote mailer
after MAIL FROM:<>: host mail.gmx.net [213.165.64.20]: 550 5.1.7 {mp020}
This server does not accept an empty envelope from
( http://www.gmx.net/serverrules )
2005-08-01 20:31:15 1Dzf45-00070w-O4 Frozen (delivery error message)
2005-08-01 20:56:46 1Dzf45-00070w-O4 Message is frozen
2005-08-01 21:26:46 1Dzf45-00070w-O4 Message is frozen
2005-08-01 21:56:46 1Dzf45-00070w-O4 Message is frozen
...
2005-08-03 19:26:50 1Dzf45-00070w-O4 Message is frozen
2005-08-03 19:56:50 1Dzf45-00070w-O4 Message is frozen
2005-08-03 20:26:50 1Dzf45-00070w-O4 Message is frozen
2005-08-03 20:56:50 1Dzf45-00070w-O4 Unfrozen by errmsg timer
2005-08-03 20:56:52 1Dzf45-00070w-O4
cram_md5 authenticator failed H=mail.gmx.net [213.165.64.20]
535 5.7.0 {mp022} Incorrect username or password
2005-08-03 20:56:53 1Dzf45-00070w-O4
plain authenticator failed H=mail.gmx.net [213.165.64.20]
535 5.7.0 {mp022} Incorrect username or password
2005-08-03 20:56:55 1Dzf45-00070w-O4
login authenticator failed H=mail.gmx.net [213.165.64.20]
535 5.7.0 {mp022} Incorrect username or password
2005-08-03 20:56:58 1Dzf45-00070w-O4
** ...@gmx... R=smarthost T=remote_smtp: SMTP error from remote mailer
after MAIL FROM:<>: host mail.gmx.net [213.165.64.20]: 550 5.1.7 {mp022}
This server does not accept an empty envelope from
( http://www.gmx.net/serverrules )
2005-08-03 20:56:58 1Dzf45-00070w-O4 ...@gmx...: error ignored
2005-08-03 20:56:58 1Dzf45-00070w-O4 Completed

tia,
stw
Reply With Quote
  #2 (permalink)  
Old 08-10-2005
Jakob Hirsch
 
Posts: n/a
Default Re: How to deliver a nonlocal address locally

Steffen Wolf wrote:

> What happened then is that the failure notice got frozen and deleted
> after two days, but it could have been delivered locally, if only I knew
> how to tell exim that this particular email address (...@gmx) can be
> delivered to ...@localhost instead.


add a router at the top of the routers section:

remote_local:
driver = redirect
domains = gmx.de
local_parts = steffen.wolf
data = the_local_username


> Btw. I noticed a line "freeze_tell = postmaster" in
> /etc/exim4/conf.d/main/02_exim4-config_options which supposedly tells
> postmaster about the frozen messages. Well, in short, it didn't. Is


-- snip --
message. If freeze_tell is set, Exim generates a warning message whenever it
freezes something, unless the message it is freezing is a locally-generated
bounce message. (Without this exception there is the possibility of
looping.)
-- snip --
Reply With Quote
  #3 (permalink)  
Old 08-10-2005
Steffen Wolf
 
Posts: n/a
Default Re: How to deliver a nonlocal address locally

Jakob Hirsch wrote:

> Steffen Wolf wrote:


>> What happened then is that the failure notice got frozen and deleted
>> after two days, but it could have been delivered locally, if only I knew
>> how to tell exim that this particular email address (...@gmx) can be
>> delivered to ...@localhost instead.


> add a router at the top of the routers section:


> remote_local:
> driver = redirect
> domains = gmx.de
> local_parts = steffen.wolf
> data = the_local_username


Perfect! It works just fine. Thanks a lot.


>> Btw. I noticed a line "freeze_tell = postmaster" in
>> /etc/exim4/conf.d/main/02_exim4-config_options which supposedly tells
>> postmaster about the frozen messages. Well, in short, it didn't. Is


> -- snip --
> message. If freeze_tell is set, Exim generates a warning message whenever it
> freezes something, unless the message it is freezing is a locally-generated
> bounce message. (Without this exception there is the possibility of
> looping.)
> -- snip --


Ah, that explains it. Sounds reasonable.

stw
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0