Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mutt, exim, sender's email address

28 views
Skip to first unread message

Mike McClain

unread,
Mar 24, 2011, 7:20:01 PM3/24/11
to
Is there any automatic way to have the sender's email address
changed depending on whether or not the mail is going to a list?
I try to use one address for lists which get published world wide
and another for business that only goes to a select few. I've a tiny
script to change the address in /etc/email-addresses which affects
outgoing mail but try as hard as I might I still forget to switch
sometimes and the address I'd like to keep private goes public.
Thanks,
Mike

--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20110324215328.GA1928@playground

Brian

unread,
Mar 24, 2011, 8:50:02 PM3/24/11
to
On Thu 24 Mar 2011 at 14:53:29 -0700, Mike McClain wrote:

> Is there any automatic way to have the sender's email address
> changed depending on whether or not the mail is going to a list?
> I try to use one address for lists which get published world wide
> and another for business that only goes to a select few. I've a tiny
> script to change the address in /etc/email-addresses which affects
> outgoing mail but try as hard as I might I still forget to switch
> sometimes and the address I'd like to keep private goes public.

In my mutt configuration file I have:

send-hook . 'unmy_hdr From:'
send-hook '~t debian-user@lists\.debian\.org' 'my_hdr From: Brian <ad...@cityscape.co.uk>'

Would that be anything like what you are looking for?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110325002904.GD7935@desktop

kuLa

unread,
Mar 25, 2011, 3:50:01 AM3/25/11
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/03/11 21:53, Mike McClain wrote:
> Is there any automatic way to have the sender's email address
> changed depending on whether or not the mail is going to a list?
> I try to use one address for lists which get published world wide
> and another for business that only goes to a select few. I've a tiny
> script to change the address in /etc/email-addresses which affects
> outgoing mail but try as hard as I might I still forget to switch
> sometimes and the address I'd like to keep private goes public.
> Thanks,
> Mike
>

I would suggest to check 'rewrite' clause in the exim config file/s this
should help a bit
http://www.exim.org/exim-html-4.72/doc/html/spec_html/ch31.html

- --

|_|0|_| |
|_|_|0| "Heghlu'Meh QaQ jajVam" |
|0|0|0| -------- kuLa --------- |

gpg --keyserver pgp.mit.edu --recv-keys 0xC100B4CA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJNjEiiAAoJEOqHloDBALTKCRkIAKlnh8Jfs18Pijl+zARwii2/
ULSIf1pnLdbt9k6nj7PA73Wgm1+/QaQjbZt4k/H9/B8V6hVZ0W2+jhcC2kOkP4Ij
oiHx8bDEkMbZg0VGndh9VxZlLQEstKxVrG9Hvh3GXPLNUXlWY2M+NTt3CFtTkVxQ
8ec1Dwr3dwI6E0bAtCG4eJst1eWhLfVxXuErMx+1Qyn6mjlKYpbu7VbgofEIS5Hm
oANw3V6mSmR2xbo7yOTt5pxKIukT856h7X+WTQB3HNyJr9z+NnKZWxDA10ctc1nE
ESIEEzSZOq7AyxGsSWyv8opGEN8cDB2ZXOp0Nmtnj2LUyJIq8nKM/F6cJTwAW/w=
=Qlre
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4D8C48A2...@kulisz.net

Mike McClain

unread,
Mar 25, 2011, 2:40:02 PM3/25/11
to
On Fri, Mar 25, 2011 at 12:29:04AM +0000, Brian wrote:
> On Thu 24 Mar 2011 at 14:53:29 -0700, Mike McClain wrote:
>
> > Is there any automatic way to have the sender's email address
> > changed depending on whether or not the mail is going to a list?
>> <snip>

> In my mutt configuration file I have:
> send-hook . 'unmy_hdr From:'
> send-hook '~t debian-user@lists\.debian\.org' 'my_hdr From: Brian <ad...@cityscape.co.uk>'
>
> Would that be anything like what you are looking for?

Well, I don't know but I'll try it and see, from re-reading the docs
it surely looks like it, guess I just missed it.


Thanks,
Mike
--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110325172011.GA18525@playground

Mike McClain

unread,
Mar 25, 2011, 2:50:02 PM3/25/11
to
On Fri, Mar 25, 2011 at 07:47:46AM +0000, kuLa wrote:
> On 24/03/11 21:53, Mike McClain wrote:
> > Is there any automatic way to have the sender's email address
> > changed depending on whether or not the mail is going to a list?
<snip>
> I would suggest to check 'rewrite' clause in the exim config file/s this
> should help a bit
> http://www.exim.org/exim-html-4.72/doc/html/spec_html/ch31.html

Thanks, I'll take a look.


Mike
--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110325172421.GB18525@playground

Freeman

unread,
Mar 25, 2011, 3:20:02 PM3/25/11
to
On Fri, Mar 25, 2011 at 10:20:11AM -0700, Mike McClain wrote:
> On Fri, Mar 25, 2011 at 12:29:04AM +0000, Brian wrote:
> > On Thu 24 Mar 2011 at 14:53:29 -0700, Mike McClain wrote:
> >
> > > Is there any automatic way to have the sender's email address
> > > changed depending on whether or not the mail is going to a list?
> >> <snip>
>
> > In my mutt configuration file I have:
> > send-hook . 'unmy_hdr From:'
> > send-hook '~t debian-user@lists\.debian\.org' 'my_hdr From: Brian <ad...@cityscape.co.uk>'
> >
> > Would that be anything like what you are looking for?
>
> Well, I don't know but I'll try it and see, from re-reading the docs
> it surely looks like it, guess I just missed it.
> Thanks,
> Mike
> --

As of 1.5, mut can deliver directly to a remote SMTP but I don't know
whether or not the Debian package is compiled for that, probably.

Otherwise, exim4 will edit those "from:" headers to respect the local
domain or to what has been configured for a standard rewrite.

Brian's link look about good for conditional rewrite but I haven't read or
tried it.

--
Regards,
Freeman

"Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the
answer." --Somebody


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/2011032519...@Deneb.office

Freeman

unread,
Mar 25, 2011, 3:30:01 PM3/25/11
to
On Fri, Mar 25, 2011 at 12:15:43PM -0700, evenso wrote:
> On Fri, Mar 25, 2011 at 10:20:11AM -0700, Mike McClain wrote:
> > On Fri, Mar 25, 2011 at 12:29:04AM +0000, Brian wrote:
> > > On Thu 24 Mar 2011 at 14:53:29 -0700, Mike McClain wrote:
> > >
> > > > Is there any automatic way to have the sender's email address
> > > > changed depending on whether or not the mail is going to a list?
> > >> <snip>
> >
> > > In my mutt configuration file I have:
> > > send-hook . 'unmy_hdr From:'
> > > send-hook '~t debian-user@lists\.debian\.org' 'my_hdr From: Brian <ad...@cityscape.co.uk>'
> > >
> > > Would that be anything like what you are looking for?
> >
> > Well, I don't know but I'll try it and see, from re-reading the docs
> > it surely looks like it, guess I just missed it.
> > Thanks,
> > Mike
> > --
>
> As of 1.5, mut can deliver directly to a remote SMTP but I don't know
> whether or not the Debian package is compiled for that, probably.
>
> Otherwise, exim4 will edit those "from:" headers to respect the local
> domain or to what has been configured for a standard rewrite.
>
> Brian's link look about good for conditional rewrite but I haven't read or
> tried it.
>

P.S. Link to configuring mutt to send direct to remote SMTP (so exim4
doesn't rewrite the "from:" header.

http://wiki.mutt.org/?MuttFaq/Sendmail

You could make a macro in muttrc that sources that config and turn it on/off
depending on whether you wanted to send from your basic domain with exim4.

0 new messages