Marc Haber wrote:
I'm confused to what is happening. I changed some things: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
dc_other_hostnames='Orion'
So if I'm not mistaken this should cause rewriting to occur for just 'kromagg' or '[EMAIL PROTECTED]'
However, only exim4 -brw [EMAIL PROTECTED] 22:34:29 "[EMAIL PROTECTED]" from sender: rewritten as "[EMAIL PROTECTED]" by rule 1
sender: [EMAIL PROTECTED]
2005-04-21 22:34:29 "[EMAIL PROTECTED]" from from: rewritten as "[EMAIL PROTECTED]" by rule 1
from: [EMAIL PROTECTED]
to: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
2005-04-21 22:34:29 "[EMAIL PROTECTED]" from reply-to: rewritten as "[EMAIL PROTECTED]" by rule 1
reply-to: [EMAIL PROTECTED]
2005-04-21 22:34:29 "[EMAIL PROTECTED]" from env-from rewritten as "[EMAIL PROTECTED]" by rule 1
env-from: [EMAIL PROTECTED]
env-to: [EMAIL PROTECTED]
host seems to do rewriting ([EMAIL PROTECTED] or just kromagg don't work)
Now, the strange thing is, when sending an email and forcing From to be [EMAIL PROTECTED] 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 "[EMAIL PROTECTED]" from from: rewritten as "[EMAIL PROTECTED]" by rule 1
2005-04-21 22:36:54 1DOiPu-0001ns-Bl <= [EMAIL PROTECTED] U=kromagg P=local S=390 [EMAIL PROTECTED] T="test" from <[EMAIL PROTECTED]> for [EMAIL PROTECTED]
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 ** [EMAIL PROTECTED] F=<[EMAIL PROTECTED]> P=<[EMAIL PROTECTED]> R=smarthost T=remote_smtp_smarthost: SMTP error from remote mailer after RCPT TO:<[EMAIL PROTECTED]>: host mail.tiscali.be [62.235.13.171]: 550-Verification failed for <[EMAIL PROTECTED]>\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 [EMAIL PROTECTED]
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
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

