Envelopes & Exim

barbie on 2006-05-04T09:13:24

It's recently been noted that the mail I send from home occasionally gets lost for the organisers list for the YAPC::Europe conference. It turns out that the envelope isn't set when it hits the blueyonder server, so its MTA inserts 'barbie@blueyonder.co.uk' as the envelope from, which isn't a valid email address, and thus causes a 550 error when another MTA tries to do a validation check. I've tried setting up an alias to that address, but it claims to have been taken, which makes me wonder why a 550 error is being return. But any road up, the blueyonder address I have is missbarbell@blueyonder.co.uk, in keeping with my domain, and I'm trying to find ways of setting the envelope header in exim.

I've been looking at the online references for exim, but the examples in the documents I've read so far don't appear to work. If anyone has any exim knowledge, I've set the following at the end of /etc/exim4/update-exim4.conf.conf:

begin rewrite

*@* missbarbell@blueyonder.co.uk Es

but running update-exim4.conf gets:

rainbow:/etc/exim4# update-exim4.conf
/usr/sbin/update-exim4.conf: line 23: begin: command not found
/usr/sbin/update-exim4.conf: line 25: *@*: command not found
/usr/sbin/update-exim4.conf: Error, no
/etc/exim4/update-exim4.conf.conf, exiting.
rainbow:/etc/exim4#

For the time being I've set the envelope via mutt, but that just ensures the envelope from is the same as the mail header from. If there is a way to set them to two different values, I've not found it. It works for now, as 'barbie@missbarbell.co.uk' will get a valid lookup, but just not from the same server that the mail came from. In many cases this might not matter, but anyone who has some sort of originator filtering on, will reject the mail.

If anyone knows why exim is not accepting the above configuration or knows a better way of setting the envelope from, please let me know.