Locke n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Aug 2002 Posts: 50 Location: Baton Rouge, LA, US
|
Posted: Sat Jul 26, 2003 6:15 am Post subject: Mail woes: multiple SMTP accounts and mutt |
|
|
Hey everyone, I just returned to Gentoo from BSD-land, and getting mutt to play nicely with my mail setup is proving to be quite a task. I know a fair amount about networking, but the harder I try at this the more mixed up I get. My basic problem is this:
I have two POP accounts and two corresponding SMTP accounts -- one at my university and one with my web/FTP host. Both require that I authenticate before sending mail with either PLAIN or LOGIN. I can grab the mail and sort it just fine with fetchmail and procmail, but I can't seem to get the smtp working properly. Basically, here's (part of) what's in my .muttrc:
Code: |
set nouse_from
folder-hook lsu "my_hdr From: Chris Morris <cmorri9@lsu.edu>"
folder-hook . "my_hdr From: Chris Morris <chris@supermorris.net>"
|
Everything sent from within my "lsu" folder needs to be sent from my Uni account, and everything else with the hosting account. Stuff sent from @lsu.edu needs to go to notes.lsu.edu with username A and password B, and stuff from @supermorris.net needs to go to mail.supermorris.net with name C and password D. I can't find anything with Google that addresses this specific situation, except for a few awful hacks that I couldn't get to work or something using IMAP (which is out of the question). I'm open to using pretty much any MTA (I've tried SSMTP, exim, and sendmail), but I'd rather not have a daemon running if I can help it. How should I be tackling this?
Compounding this problem, I use DHCP-based connections and have no "real" hostname. My machine thinks it's arkady.bellsouth.net or arkady.lsu.edu (depending on if I'm in my dorm or at home), when it's actually dhcp-nnn-nn-nnn.lsu.edu or adsl-nnn-nnn-nnn.msy.bellsouth.net. Most MTAs seem to assume that my machine has one domain name that never changes. How can I get around this?
Thunderbird, Sylpheed, and other mail programs handle this with multiple identities, but I want a console-based solution that I can reasonably expect to be on most 'nix machines. Am I missing something, or are the console mail solutions severely lacking in this department?
Slightly related: After sorting mail with procmail, mutt can't tell which messages I've read and which I haven't (using MH since I have mail stored by Sylpheed that I want to read). Is there anything I can do to 'mark' messages like in other clients?
Thanks in advance for any help. |
|