On Mon, Jul 21, 2003 at 10:38:18AM +0800, yuwen wrote: > I use exim to send mail directly to the outside world. But since I > don't have my own doname name, the MAIL FROM field of my email is just > like [EMAIL PROTECTED]' where leo is my hostname. Many stmp server refuse mail > whose MAILFROM is not a correct domain name. Can I modify MAIL FROM in > someplace, like mailrc or on the comand line? I use `mail' as my MUA.
The best way I know to do it is with the rewrite rule.. I use exim4 now, but I think the commands are the same... Here's an excerpt from my old exim.conf file where The rewrite rule is located.. ----------------------------- cut ------------------ ###################################################################### # REWRITE CONFIGURATION # ###################################################################### # There are no rewriting specifications in this default configuration file. # This rewriting rule is particularly useful for dialup users who # don't have their own domain, but could be useful for anyone. # It looks up the real address of all local users in a file [EMAIL PROTECTED] ${lookup{$1}lsearch{/etc/email-addresses}\ # {$value}fail} frFs # I have only one user and one email account, so I don't bother with a # lookup.. just a direct rewrite rule.. [EMAIL PROTECTED] [EMAIL PROTECTED] Ffrs ------------------------ cut ----------------------- This should take care of it.. Before I added this rule, my mail wouldn't pass through the ISP.. I believe this will rewrite the "Sender: " header.. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]