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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 -- |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|