<<< Date Index >>>     <<< Thread Index >>>

send-hook and Reply-To header



ciao! i got two account to send email: my main main account and the
university account which i use to communicate to professors and in
general to all university-related people. the following is my
configuration which sometime works and sometime not

    unhook send-hook
    unhook send2-hook

    send-hook . 'unset crypt_autoencrypt'

    send-hook '~t xxx@gmail\.com' 'set crypt_autoencrypt'

    send-hook . 'set sendmail="~/bin/msmtpQ -a gmail"; \
                 set from = "abcd@xxxxxxxxx"; \
                 my_hdr Reply-To: abcd@xxxxxxxxx'

    send-hook .*unibo\.it 'set sendmail="~/bin/msmtpQ -a hermes"; \
                           set from = "abdc@xxxxxxxxxxxxxxx"
                           my_hdr Reply-To: abdc@xxxxxxxxxxxxxxx'

having some tests i got strange behavior. here the steps i followed:

1. send an email to abcd@xxxxxxxxx
2. send an email to abdc@xxxxxxxxxxxxxxx
3. send an email to abdc@xxxxxxxxx

now i'm expecting that all mails sent to unibo.it domain are set with
Reply-To and From headers to abcd@xxxxxxxxxxxxxxx and abdc@xxxxxxxxx
elsewhere but it is not.


this is the msmtp log

    mag 22 01:58:34 host=smtp.gmail.com tls=on auth=on
    user=abdc@xxxxxxxxx from=abdc@xxxxxxxxx
    recipients=abdc@xxxxxxxxx mailsize=472 exitcode=EX_OK

    mag 22 01:58:48 host=posta.studio.unibo.it tls=on auth=on
    user=abdc@xxxxxxxxxxxxxxx from=abdc@xxxxxxxxxxxxxxx
    recipients=abdc@xxxxxxxxxxxxxxx mailsize=493 exitcode=EX_OK
    
    mag 22 02:01:05 host=posta.studio.unibo.it tls=on auth=on
    user=abdc@xxxxxxxxxxxxxxx from=abdc@xxxxxxxxxxxxxxx
    recipients=abdc@xxxxxxxxx mailsize=486 exitcode=EX_OK

the first two emails' headers are right, not the third one's.

    From: abcd@xxxxxxxxxxxxxxx <--------- should be abcd@xxxxxxxxx
    To: abcd@xxxxxxxxx
    Subject: ciao
    Message-ID: <20080522000104.GC29783@lemurdoc>
    Reply-To: abcd@xxxxxxxxxxxxxxx <------- should be abcd@xxxxxxxxx

i do not know where to look, any help is appreciated.







Attachment: signature.asc
Description: Digital signature