>> "HMG" == Horacio Menezo Ganau <[EMAIL PROTECTED]> writes:

[Headerrewriting with smail]

HMG> Please, send any answers to "[EMAIL PROTECTED]" since I don't think a
HMG> reply to this message will work (in fact, if I try to make a reply to any 
of

Well, I send it to the list. Shouldn't be a problem, right?

Try this (I got it from someone else some time ago):

-----[/etc/smail/routers]-----
smart_host:
        driver=smarthost, transport=smtp-remap;
        path=your.providers.smtp.host

- -----[/etc/smail/transports]-----

[...]

smtp-remap:
        driver=tcpsmtp, max_addrs=100, -max_chars, inet,
        remove_header="From",
        insert_header="From: ${lookup:from:lsearch{maps/[EMAIL PROTECTED] 
($from: $fullname)}}",
        remove_header="Message-ID",
        insert_header="Message-ID: <[EMAIL PROTECTED]>",
        insert_header="Sender: ${lookup:from:lsearch{maps/[EMAIL PROTECTED] 
($from: $fullname)}}";
        use_bind, defer_no_connect, -local_mx_okay, defnames

- -----[/etc/smail/maps/from]-----
root    [EMAIL PROTECTED] (root)
martinb [EMAIL PROTECTED] (Martin Bialasinski)
robot   [EMAIL PROTECTED] (Testuser)
- -----[end]-----

So, smail will use the address on the right for the user on the
left. If the user is not found in the file, the default address in the 
transports file will be used.

HTH,
        Martin

Reply via email to