Bug#305569: cannot get exim4-config to generate a config that uses /etc/email-addresses
Wim De Smet
Wim De Smet <fragmeat@yucom.be>, 305569@bugs.debian.org
Thu, 21 Apr 2005 22:39:02 +0200
Marc Haber wrote:
>Hi Wim,
>
>On Wed, Apr 20, 2005 at 10:48:37PM +0200, Wim De Smet wrote:
>
>
>>I have been trying for a while now to get /etc/email-addresses working
>>again. (it used to work with exim3) But for some reason or another exim
>>still doesn't rewrite outgoing From's in mail, causing bounces from the
>>smarthost. I will include /etc/exim4/update-exim4.conf.conf.
>>
>>I have tried several different combinations of the configuration options
>>with hiding a localhost and not entering anything in there, or keeping
>>the default value, or enter some mock value. Simple rewriting of all
>>hostnames does work but I only want rewriting to occur by use of
>>/etc/email-addresses
>>
>>
>
>/etc/email-addresses rewwriting does only happen for local_domains.
>
>I'd try to enable rewrite logging in the log_selector setting and see
>what's happening. Also , exim -brw could be of help to see why
>rewriting does not occur.
>
>If you don't succeed in debugging yourself, please get back here or on
>the pkg-exim4-users mailing list.
>
>
>
>>dc_other_hostnames=''
>>
>>
>
>This gets translated to local_domains, so rewriting only occurs for
>localhost and the fqdn of your machine.
>
>Greetings
>Marc
>
>
>
I'm confused to what is happening. I changed some things:
dc_other_hostnames='Orion'
So if I'm not mistaken this should cause rewriting to occur for just
'kromagg' or 'kromagg@Orion'
However, only exim4 -brw kromagg@local2005-04-21 22:34:29
"kromagg@localhost" from sender: rewritten as "wdesmet@yucom.be" by rule 1
sender: wdesmet@yucom.be
2005-04-21 22:34:29 "kromagg@localhost" from from: rewritten as
"wdesmet@yucom.be" by rule 1
from: wdesmet@yucom.be
to: kromagg@localhost
cc: kromagg@localhost
bcc: kromagg@localhost
2005-04-21 22:34:29 "kromagg@localhost" from reply-to: rewritten as
"wdesmet@yucom.be" by rule 1
reply-to: wdesmet@yucom.be
2005-04-21 22:34:29 "kromagg@localhost" from env-from rewritten as
"wdesmet@yucom.be" by rule 1
env-from: wdesmet@yucom.be
env-to: kromagg@localhost
host seems to do rewriting (kromagg@Orion or just kromagg don't work)
Now, the strange thing is, when sending an email and forcing From to be
kromagg@localhost in mutt. (I'd like to disable this feature where users
can set their own from but just for the testing I enabled it), I get the
following output:
2005-04-21 22:36:54 1DOiPu-0001ns-Bl "kromagg@localhost" from from:
rewritten as "wdesmet@yucom.be" by rule 1
2005-04-21 22:36:54 1DOiPu-0001ns-Bl <= kromagg@Orion U=kromagg P=local
S=390 id=20050421203654.GA6924@Orion T="test" from <kromagg@Orion> for
kromagg@gmail.com
2005-04-21 22:36:54 cwd=/var/spool/exim4 3 args: /usr/sbin/exim4 -Mc
1DOiPu-0001ns-Bl
2005-04-21 22:36:54 1DOiPu-0001ns-Bl ** kromagg@gmail.com
F=<kromagg@Orion> P=<kromagg@Orion> R=smarthost T=remote_smtp_smarthost:
SMTP error from remote mailer after RCPT TO:<kromagg@gmail.com>: host
mail.tiscali.be [62.235.13.171]: 550-Verification failed for
<kromagg@Orion>\n550-Unrouteable address\n550 Sender verify failed
2005-04-21 22:36:54 cwd=/var/spool/exim4 7 args: /usr/sbin/exim4 -t -oem
-oi -f <> -E1DOiPu-0001ns-Bl
2005-04-21 22:36:54 1DOiPu-0001nv-JC <= <> R=1DOiPu-0001ns-Bl
U=Debian-exim P=local S=1340 T="Mail delivery failed: returning message
to sender" from <> for kromagg@Orion
2005-04-21 22:36:54 1DOiPu-0001ns-Bl Completed QT=0s
So firstly, rewriting is not happening for the local hostname, and
secondly even when it does work, it doesn't really. Something seems to
be rewriting it afterwards again.
greets,
Wim