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 [EMAIL PROTECTED]' 'set crypt_autoencrypt'

    send-hook . 'set sendmail="~/bin/msmtpQ -a gmail"; \
                 set from = "[EMAIL PROTECTED]"; \
                 my_hdr Reply-To: [EMAIL PROTECTED]'

    send-hook .*unibo\.it 'set sendmail="~/bin/msmtpQ -a hermes"; \
                           set from = "[EMAIL PROTECTED]"
                           my_hdr Reply-To: [EMAIL PROTECTED]'

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

1. send an email to [EMAIL PROTECTED]
2. send an email to [EMAIL PROTECTED]
3. send an email to [EMAIL PROTECTED]

now i'm expecting that all mails sent to unibo.it domain are set with
Reply-To and From headers to [EMAIL PROTECTED] and [EMAIL PROTECTED]
elsewhere but it is not.


this is the msmtp log

    mag 22 01:58:34 host=smtp.gmail.com tls=on auth=on
    [EMAIL PROTECTED] [EMAIL PROTECTED]
    [EMAIL PROTECTED] mailsize=472 exitcode=EX_OK

    mag 22 01:58:48 host=posta.studio.unibo.it tls=on auth=on
    [EMAIL PROTECTED] [EMAIL PROTECTED]
    [EMAIL PROTECTED] mailsize=493 exitcode=EX_OK
    
    mag 22 02:01:05 host=posta.studio.unibo.it tls=on auth=on
    [EMAIL PROTECTED] [EMAIL PROTECTED]
    [EMAIL PROTECTED] mailsize=486 exitcode=EX_OK

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

    From: [EMAIL PROTECTED] <--------- should be [EMAIL PROTECTED]
    To: [EMAIL PROTECTED]
    Subject: ciao
    Message-ID: <[EMAIL PROTECTED]>
    Reply-To: [EMAIL PROTECTED] <------- should be [EMAIL PROTECTED]

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







Attachment: signature.asc
Description: Digital signature

Reply via email to