Re: locale and external address
Alle venerdì 7 dicembre 2007, Kyle Wheeler ha scritto: > This sounds like something you should more likely be asking the exim > mailing list. Yes, I've already posted a message in exim list... > That said, to prove for a fact whether it's mutt or exim, try > replacing your hooks with this: > send-hook .* 'my_hdr From: samiel <[EMAIL PROTECTED]>' > If your mail still has the wrong header, then there's nothing mutt can > do about it. Exim is likely rewriting things that use the form > "@hostname" (where "hostname" is the local machine's hostname), since > those are technically illegal according to the SMTP RFC (2822). I tried: the local mail arrives again with the wrong (external) address. The outgoing mail (I think for my provider doesn't recognize the sender name "[EMAIL PROTECTED]") doesn't arrives at all. Infact, in /var/log/exim4/mainlog I read: == 2007-12-07 23:25:12 1J0ldA-0003hk-I6 ** [EMAIL PROTECTED]: Unrouteable address 2007-12-07 23:25:12 1J0ldA-0003hk-I6 Frozen (delivery error message) == So, we can conclude that all this matter depends on exim behaviour... Thanx! M. -- linux user no.: 353546 public key at http://keyserver.linux.it
Re: locale and external address
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday, December 7 at 09:41 PM, quoth Mauro Sacchetto: >I made some experiments more. >If I put in my .muttrc: >send-hook .* 'my_hdr From: spiderman <[EMAIL PROTECTED]> >exim4 sends correctly the message, >and in the header I read the new address. SO, >it doesn'r re-writes the original, true address. >But if I put into: >send-hook .* 'my_hdr From: spiderman <[EMAIL PROTECTED]> >send-hook '~t debian$' 'my_hdr From: samiel <[EMAIL PROTECTED]>' >(for I've: set hostname="debian") >in local email I find again an ever my right external address. >Why in the first case the field "From" is changed >as I ask to Mutt, and in the second one not? This sounds like something you should more likely be asking the exim mailing list. That said, to prove for a fact whether it's mutt or exim, try replacing your hooks with this: send-hook .* 'my_hdr From: samiel <[EMAIL PROTECTED]>' If your mail still has the wrong header, then there's nothing mutt can do about it. Exim is likely rewriting things that use the form "@hostname" (where "hostname" is the local machine's hostname), since those are technically illegal according to the SMTP RFC (2822). ~Kyle - -- You cannot reason a person out of a position he did not reason himself into in the first place. -- Jonathan Swift -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iD8DBQFHWbP+BkIOoMqOI14RAirFAJ0a21Xe4MCxggBm7gExsVLeyoBIAwCgs8AB jpriOIOAANCOrOBAyZpMiFY= =OjaL -END PGP SIGNATURE-
Re: locale and external address
Alle giovedì 6 dicembre 2007, Kyle Wheeler ha scritto: > > I find again the old external address and not that one specified by > > the hook: "samiel <[EMAIL PROTECTED]>" I'm very confused, but > > I suspect that Exim rewrite the address furnished by Mutt with that > > one present in /etc/mail.addresses... Maybe, there is something to > > change in exim.conf too... M. > > Possibly. If your "sent" messages are correct, then your suspicion > sounds plausible. I made some experiments more. If I put in my .muttrc: send-hook .* 'my_hdr From: spiderman <[EMAIL PROTECTED]> exim4 sends correctly the message, and in the header I read the new address. SO, it doesn'r re-writes the original, true address. But if I put into: send-hook .* 'my_hdr From: spiderman <[EMAIL PROTECTED]> send-hook '~t debian$' 'my_hdr From: samiel <[EMAIL PROTECTED]>' (for I've: set hostname="debian") in local email I find again an ever my right external address. Why in the first case the field "From" is changed as I ask to Mutt, and in the second one not? M. -- linux user no.: 353546 public key at http://keyserver.linux.it
Re: locale and external address
Alle giovedì 6 dicembre 2007, Kyle Wheeler ha scritto: > > But when I controll in "inbox" after the delivering of email, > > When you control in "inbox"? I don't understand what you're talking > about. I mean that, after receiving the email, it stays in "inbox". In the header of this (seceived) mail, i find a changed field "from", still with the external address and not with that one present in the original email. Who or what does change it? So, I think it's exim... M. -- Prof. Mauro Sacchetto Santa Croce 1332a 30135 Venezia tel.: 041 5226494 cell.: 320 7414579 e-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] linux user no.: 353546 public key at http://keyserver.linux.it
Re: locale and external address
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, December 6 at 11:35 PM, quoth Mauro Sacchetto: >> If you use this hook instead: >> >> send-hook '~t @debian$' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' >> >> ...then it WILL match all three examples I listed above, but will NOT >> match [EMAIL PROTECTED] (because the $ at the end is still >> there). Make sense? > > It looks very resonnable, only that... I've still a trouble. > I adopted the hook you suggested me. Now: in "sent" the headers > look correct. Good! > But when I controll in "inbox" after the delivering of email, When you control in "inbox"? I don't understand what you're talking about. > I find again the old external address and not that one specified by > the hook: "samiel <[EMAIL PROTECTED]>" I'm very confused, but > I suspect that Exim rewrite the address furnished by Mutt with that > one present in /etc/mail.addresses... Maybe, there is something to > change in exim.conf too... M. Possibly. If your "sent" messages are correct, then your suspicion sounds plausible. ~Kyle - -- You can get more with a kind word and a gun than you can with a kind word alone. -- Al Capone -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iD8DBQFHWH0GBkIOoMqOI14RAmsqAJ9XSrB2IDrtFXdGKid0qMDF4pKW5wCgmlSw 26z7kC93JoGkrH08vnAJdhU= =ooci -END PGP SIGNATURE-
Re: locale and external address
Alle giovedì 6 dicembre 2007, Kyle Wheeler ha scritto: > Yes. When you use the ^ in your pattern, you're telling it to match > the beginning of the address (the $ at the end tells it to match the > end of the address). Thus [EMAIL PROTECTED] will ONLY match "@debian" and > nothing else---it will not match [EMAIL PROTECTED], [EMAIL PROTECTED] or > [EMAIL PROTECTED] either. ;) > If you use this hook instead: > > send-hook '~t @debian$' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' > > ...then it WILL match all three examples I listed above, but will NOT > match [EMAIL PROTECTED] (because the $ at the end is still > there). Make sense? It looks very resonnable, only that... I've still a trouble. I adopted the hook you suggested me. Now: in "sent" the headers look correct. The voice From is set just to "samiel <[EMAIL PROTECTED]>". But when I controll in "inbox" after the delivering of email, I find again the old external address and not that one specified by the hook: "samiel <[EMAIL PROTECTED]>" I'm very confused, but I suspect that Exim rewrite the address furnished by Mutt with that one present in /etc/mail.addresses... Maybe, there is something to change in exim.conf too... M. -- linux user no.: 353546 public key at http://keyserver.linux.it
Re: locale and external address
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, December 6 at 10:36 PM, quoth Mauro Sacchetto: > Alle giovedì 6 dicembre 2007, Rado S ha scritto: >>> I've an address for outgoing mail (with my provider's domain) and >>> a local one ([EMAIL PROTECTED]). When I send local mail, in the header >>> I fond always, as "From" field, the external address. There is a >>> way to tell Mutt to use the external address only for outgoing >>> emails and the internal one for local mail? > > I tried the following: > send-hook '~t [EMAIL PROTECTED]' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' > to send local email (the domain is "debian") having "[EMAIL PROTECTED]" > as sender, but it doesn't work. There is a misteke in format? Yes. When you use the ^ in your pattern, you're telling it to match the beginning of the address (the $ at the end tells it to match the end of the address). Thus [EMAIL PROTECTED] will ONLY match "@debian" and nothing else---it will not match [EMAIL PROTECTED], [EMAIL PROTECTED] or [EMAIL PROTECTED] either. ;) If you use this hook instead: send-hook '~t @debian$' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' ...then it WILL match all three examples I listed above, but will NOT match [EMAIL PROTECTED] (because the $ at the end is still there). Make sense? For more details, read up on "regular expressions" (Google should have plenty of info). ~Kyle - -- Come to me, son of Jor-El. Kneel before Zod. Snootchie-bootchies. -- Jay -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iD8DBQFHWHATBkIOoMqOI14RArFdAJ0ek6TMAK3j0z0BuTXHtXHdZ4CuWwCfSbu7 vrcxV2l++TRrM1NI1hILibk= =tOEU -END PGP SIGNATURE-
Re: locale and external address
Alle giovedì 6 dicembre 2007, Rado S ha scritto: > > I've an address for outgoing mail (with my provider's domain) and > > a local one ([EMAIL PROTECTED]). When I send local mail, in the header > > I fond always, as "From" field, the external address. There is a > > way to tell Mutt to use the external address only for outgoing > > emails and the internal one for local mail? > > Yes, read about the various hooks in manual.txt. I tried the following: send-hook '~t [EMAIL PROTECTED]' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' to send local email (the domain is "debian") having "[EMAIL PROTECTED]" as sender, but it doesn't work. There is a misteke in format? Note that I'm using exim4 on Debian Sid, which has the habit of get the address from /etc/email.addesses rather from .muttrc... Thanx MS -- linux user no.: 353546 public key at http://keyserver.linux.it
Re: locale and external address
=- Mauro Sacchetto wrote on Thu 6.Dec'07 at 14:16:02 +0100 -= > I've an address for outgoing mail (with my provider's domain) and > a local one ([EMAIL PROTECTED]). When I send local mail, in the header > I fond always, as "From" field, the external address. There is a > way to tell Mutt to use the external address only for outgoing > emails and the internal one for local mail? Yes, read about the various hooks in manual.txt. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what you give.
locale and external address
I've an address for outgoing mail (with my provider's domain) and a local one ([EMAIL PROTECTED]). When I send local mail, in the header I fond always, as "From" field, the external address. There is a way to tell Mutt to use the external address only for outgoing emails and the internal one for local mail? Thanx MS -- linux user no.: 353546 public key at http://keyserver.linux.it