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

Accounk-hook and $sendmail problems

0 views
Skip to first unread message

Tiago Macambira

unread,
Dec 8, 2002, 6:13:04 PM12/8/02
to

I've been trying to use only mutt as my e-mail program. I've got
to a point were I can read all my e-mail, dispersed in 5 IMAP
accounts, with mutt. Ok, no big deal here, just a bunch of
account-hooks and "set tunnel=''" and i got the thing running.
The only thing i haven't been able to do is send e-mail throught
all these account with mutt.

In other e-mail programs, like evolution, all i had to do was
associate a smtp server ( with or withou autentication ) to each
account. With mutt, all I (supposedly) had to do was set
$sendmail accordingly inside each account-hook. Here's a
modified excerpt of my .muttrc so you can have a clearer idea of
what I'm talking about:

account-hook . '\
unset imap_user;\
unset imap_pass;\
unset tunnel;\
set from="user...@host.com";\
set sendmail="/usr/sbin/sendmail -oem -oi";'

account-hook imaps://mail.exemple.com 'set \
imap_user="us...@exemple.com"\
imap_pass="********"\
from="us...@exemple.com"\
sendmail="/usr/bin/ssh us...@mail.exemple.com /usr/sbin/sendmail -oem -oi"'

account-hook imaps://another.exemple.com 'set \
tunnel="ssh -q -C -l user mail.another.exemple.com /home/user/imapd 2>/dev/null Maildir/"\
from="us...@another.exemple.com"\
sendmail="/usr/bin/ssh us...@another.exemple.com /usr/sbin/sendmail -oem -oi"'

The problem is that, no matter which account I'm currently
reading/using, $sendmail will always be set with the second
account-hook settings. Login into the accounts presents no problem,
though.


Could anyone tell me what I am doing wrong here?!

[]s
MaCa

jostein....@sensewave.com

unread,
Dec 10, 2002, 1:07:21 PM12/10/02
to

You can try send-hooks in this format:

send-hook . 'my_hdr From: Your Name <user...@firstpop.com>'
send-hook '~t ^.*@secondpop\.com' 'my_hdr From: Your Nickname
<user...@secondpop.com>'


Jostein

0 new messages