Hi,

>>> smtpd doesn't support address rewriting at the moment.
>>> It will either use the local `hostname` or the one supplied by your MUA.
>>
>> While I knew it didn't rewrite stuff, looking at it this way, it sure
>> can cause... interesting times.
>>
>> E.g. meaning if you mail out stuff with a plain "From: $USER" header, it
>> will pick up the first sendmail (or non-smtpd anyway) hostname on its
>> way... Which may work out, or not.

Interesting indeed, and unexpected.

> If no solution is in near sight, i'll start waving my dirty ol' cron
> workaround again... ;-)
> 
>     http://marc.info/?l=openbsd-tech&m=135280093712960&w=2
> 
> Michael: A quick fix for the "To: " header, which I suspect suffers from
> the same problem, should be to specify a fully qualified MAILTO address
> in the crontab.

Well, the patch to cron would only work for regular cronjobs, but not
the daily/weekly/monthly/security scripts or anything else send to
"root". Same goes for the MAILTO, which is ignored in those scripts as well.

Is there any ETA when smtpd will properly handle rewriting the address?

Thanks,
Michael

Reply via email to